mixpanel-browser 2.71.1 → 2.72.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 (38) hide show
  1. package/.github/workflows/tests.yml +1 -0
  2. package/CHANGELOG.md +7 -0
  3. package/dist/mixpanel-core.cjs.d.ts +47 -10
  4. package/dist/mixpanel-core.cjs.js +51 -17
  5. package/dist/mixpanel-recorder.js +681 -113
  6. package/dist/mixpanel-recorder.min.js +1 -1
  7. package/dist/mixpanel-recorder.min.js.map +1 -1
  8. package/dist/mixpanel-with-async-recorder.cjs.d.ts +47 -10
  9. package/dist/mixpanel-with-async-recorder.cjs.js +51 -17
  10. package/dist/mixpanel-with-recorder.d.ts +47 -10
  11. package/dist/mixpanel-with-recorder.js +731 -129
  12. package/dist/mixpanel-with-recorder.min.d.ts +47 -10
  13. package/dist/mixpanel-with-recorder.min.js +1 -1
  14. package/dist/mixpanel.amd.d.ts +47 -10
  15. package/dist/mixpanel.amd.js +731 -129
  16. package/dist/mixpanel.cjs.d.ts +47 -10
  17. package/dist/mixpanel.cjs.js +731 -129
  18. package/dist/mixpanel.globals.js +51 -17
  19. package/dist/mixpanel.min.js +144 -144
  20. package/dist/mixpanel.module.d.ts +47 -10
  21. package/dist/mixpanel.module.js +731 -129
  22. package/dist/mixpanel.umd.d.ts +47 -10
  23. package/dist/mixpanel.umd.js +731 -129
  24. package/dist/rrweb-bundled.js +12760 -0
  25. package/dist/rrweb-compiled.js +2496 -7176
  26. package/package.json +3 -2
  27. package/rollup.config.mjs +15 -4
  28. package/src/autocapture/index.js +1 -1
  29. package/src/autocapture/rageclick.js +20 -1
  30. package/src/autocapture/shadow-dom-observer.js +3 -15
  31. package/src/autocapture/utils.js +30 -0
  32. package/src/config.js +1 -1
  33. package/src/index.d.ts +47 -10
  34. package/src/mixpanel-core.js +1 -0
  35. package/src/recorder/recorder.js +1 -1
  36. package/src/recorder/rrweb-entrypoint.js +6 -0
  37. package/src/recorder/session-recording.js +69 -12
  38. package/src/utils.js +24 -0
@@ -1,2 +1,2 @@
1
- (function(){"use strict";var W;if(typeof window=="undefined"){var to={hostname:""};W={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:to,referrer:""},screen:{width:0,height:0},location:to,addEventListener:function(){},removeEventListener:function(){}}}else W=window;function ro(t,n){(n==null||n>t.length)&&(n=t.length);for(var o=0,e=new Array(n);o<n;o++)e[o]=t[o];return e}function no(t,n,o,e,r,i,s){try{var a=t[i](s),u=a.value}catch(l){o(l);return}a.done?n(u):Promise.resolve(u).then(e,r)}function bn(t){return function(){var n=this,o=arguments;return new Promise(function(e,r){var i=t.apply(n,o);function s(u){no(i,e,r,s,a,"next",u)}function a(u){no(i,e,r,s,a,"throw",u)}s(void 0)})}}function sr(t,n,o){return io()?sr=Reflect.construct:sr=function(r,i,s){var a=[null];a.push.apply(a,i);var u=Function.bind.apply(r,a),l=new u;return s&&xt(l,s.prototype),l},sr.apply(null,arguments)}function xu(t,n){for(var o=0;o<n.length;o++){var e=n[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function oe(t,n,o){return n&&xu(t.prototype,n),t}function B(){return B=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},B.apply(this,arguments)}function Sn(t){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},Sn(t)}function ue(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&xt(t,n)}function T(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Eu(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Rt(t,n){if(t==null)return{};var o={},e=Object.keys(t),r,i;for(i=0;i<e.length;i++)r=e[i],!(n.indexOf(r)>=0)&&(o[r]=t[r]);return o}function xt(t,n){return xt=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},xt(t,n)}function N(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Au(t,n){if(t){if(typeof t=="string")return ro(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ro(t,n)}}function ar(t){var n=typeof Map=="function"?new Map:void 0;return ar=function(e){if(e===null||!Eu(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return sr(e,arguments,Sn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),xt(r,e)},ar(t)}function io(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(io=function(){return!!t})()}function O(t,n){var o=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=Au(t))||n){o&&(t=o);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Et(t,n){var o,e,r,i,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(l){return function(c){return u([l,c])}}function u(l){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(r=l[0]&2?e.return:l[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,l[1])).done)return r;switch(e=0,r&&(l=[l[0]&2,r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,e=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(l[0]===6&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(t,s)}catch(c){l=[6,c],e=0}finally{o=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function oo(t){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&t[n],e=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Mu=Object.defineProperty,ku=function(t,n,o){return n in t?Mu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},I=function(t,n,o){return ku(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)},so,_u=Object.defineProperty,Tu=function(t,n,o){return n in t?_u(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},ao=function(t,n,o){return Tu(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)},ie=function(t){return 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}(ie||{}),uo={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ur={},Pu=function(){return!!globalThis.Zone};function Cn(t){if(ur[t])return ur[t];var n=globalThis[t],o=n.prototype,e=t in uo?uo[t]:void 0,r=!!(e&&e.every(function(c){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(o,c))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),i=t in lo?lo[t]:void 0,s=!!(i&&i.every(function(c){var f;return typeof o[c]=="function"&&((f=o[c])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Pu())return ur[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var l=u[t].prototype;return document.body.removeChild(a),l?ur[t]=l:o}catch(c){return o}}var In={};function $e(t,n,o){var e,r=t+"."+String(o);if(In[r])return In[r].call(n);var i=Cn(t),s=(e=Object.getOwnPropertyDescriptor(i,o))==null?void 0:e.get;return s?(In[r]=s,s.call(n)):n[o]}var On={};function co(t,n,o){var e=t+"."+String(o);if(On[e])return On[e].bind(n);var r=Cn(t),i=r[o];return typeof i!="function"?n[o]:(On[e]=i,i.bind(n))}function Nu(t){return $e("Node",t,"childNodes")}function $u(t){return $e("Node",t,"parentNode")}function Du(t){return $e("Node",t,"parentElement")}function Lu(t){return $e("Node",t,"textContent")}function Fu(t,n){return co("Node",t,"contains")(n)}function Bu(t){return co("Node",t,"getRootNode")()}function Uu(t){return!t||!("host"in t)?null:$e("ShadowRoot",t,"host")}function zu(t){return t.styleSheets}function Wu(t){return!t||!("shadowRoot"in t)?null:$e("Element",t,"shadowRoot")}function Gu(t,n){return $e("Element",t,"querySelector")(n)}function Vu(t,n){return $e("Element",t,"querySelectorAll")(n)}function ju(){return Cn("MutationObserver").constructor}function Yu(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var le={childNodes:Nu,parentNode:$u,parentElement:Du,textContent:Lu,contains:Fu,getRootNode:Bu,host:Uu,styleSheets:zu,shadowRoot:Wu,querySelector:Gu,querySelectorAll:Vu,mutationObserver:ju,patch:Yu};function fo(t){return t.nodeType===t.ELEMENT_NODE}function At(t){var n=t&&"host"in t&&"mode"in t&&le.host(t)||null;return!!(n&&"shadowRoot"in n&&le.shadowRoot(n)===t)}function Mt(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function qu(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function Hu(t){var n=t.cssText;if(n.split('"').length<3)return n;var o=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?o.push("layer"):t.layerName&&o.push("layer("+t.layerName+")"),t.supportsText&&o.push("supports("+t.supportsText+")"),t.media.length&&o.push(t.media.mediaText),o.join(" ")+";"}function Rn(t){try{var n=t.rules||t.cssRules;if(!n)return null;var o=t.href;!o&&t.ownerNode&&t.ownerNode.ownerDocument&&(o=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return ho(r,o)}).join("");return qu(e)}catch(r){return null}}function ho(t,n){if(Zu(t)){var o;try{o=Rn(t.styleSheet)||Hu(t)}catch(r){o=t.cssText}return t.styleSheet.href?fr(o,t.styleSheet.href):o}else{var e=t.cssText;return Ku(t)&&t.selectorText.includes(":")&&(e=Ju(e)),n?fr(e,n):e}}function Ju(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function Zu(t){return"styleSheet"in t}function Ku(t){return"selectorText"in t}var po=function(){function t(){ao(this,"idNodeMap",new Map),ao(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var i=(r=this.getMeta(e))==null?void 0:r.id;return i!=null?i:-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e){var r=this,i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var i=r.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var i=this.getNode(e);if(i){var s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function Xu(){return new po}function lr(t){var n=t.element,o=t.maskInputOptions,e=t.tagName,r=t.type,i=t.value,s=t.maskInputFn,a=i||"",u=r&&Ve(r);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function Ve(t){return t.toLowerCase()}var vo="__rrweb_original__";function Qu(t){var n=t.getContext("2d");if(!n)return!0;for(var o=50,e=0;e<t.width;e+=o)for(var r=0;r<t.height;r+=o){var i=n.getImageData,s=vo in i?i[vo]:i,a=new Uint32Array(s.call(n,e,r,Math.min(o,t.width-e),Math.min(o,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function cr(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Ve(n):null}function mo(t,n){var o;try{o=new URL(t,n!=null?n:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=o.pathname.match(e),i;return(i=r==null?void 0:r[1])!=null?i:null}function el(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var tl=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,rl=/^(?:[a-z+]+:)?\/\//i,nl=/^www\..*/i,il=/^(data:)([^,]*),(.*)/i;function fr(t,n){return(t||"").replace(tl,function(o,e,r,i,s,a){var u=r||s||a,l=e||i||"";if(!u)return o;if(rl.test(u)||nl.test(u)||il.test(u))return"url("+l+u+l+")";if(u[0]==="/")return"url("+l+(el(n)+u)+l+")";var c=n.split("/"),f=u.split("/");c.pop();for(var h=O(f),v;!(v=h()).done;){var d=v.value;d!=="."&&(d===".."?c.pop():c.push(d))}return"url("+l+c.join("/")+l+")"})}function hr(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ol(t,n,o){o===void 0&&(o=!1);var e=Array.from(n.childNodes),r=[],i=0;if(e.length>1&&t&&typeof t=="string"){for(var s=hr(t,o),a=s.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var l=hr(e[u].textContent,o),c=100,f=3;f<l.length&&(l[f].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,f),1)!==-1);f++);for(;f<l.length;f++){var h=l.substring(0,f),v=s.split(h),d=-1;if(v.length===2)d=v[0].length;else if(v.length>2&&v[0]===""&&e[u-1].textContent!=="")d=s.indexOf(h,1);else if(v.length===1){if(h=h.substring(0,h.length-1),v=s.split(h),v.length<=1)return r.push(t),r;f=c+1}else f===l.length-1&&(d=s.indexOf(h));if(v.length>=2&&f>c){var y=e[u-1].textContent;if(y&&typeof y=="string"){var p=hr(y).length;d=s.indexOf(h,p)}d===-1&&(d=v[0].length)}if(d!==-1){for(var g=Math.floor(d/a);g>0&&g<t.length;){if(i+=1,i>50*e.length)return r.push(t),r;var w=hr(t.substring(0,g),o);if(w.length===d){r.push(t.substring(0,g)),t=t.substring(g),s=s.substring(d);break}else w.length<d?g+=Math.max(1,Math.floor((d-w.length)/a)):g-=Math.max(1,Math.floor((w.length-d)*a))}break}}}}return r.push(t),r}function sl(t,n){return ol(t,n).join("/* rr_split */")}var al=1,ul=new RegExp("[^a-z0-9-_:]"),kt=-2;function go(){return al++}function ll(t){if(T(t,HTMLFormElement))return"form";var n=Ve(t.tagName);return ul.test(n)?"div":n}var ot,yo,cl=/^[^ \t\n\r\u000c]+/,fl=/^[, \t\n\r\u000c]+/;function hl(t,n){if(n.trim()==="")return n;var o=0;function e(l){var c,f=l.exec(n.substring(o));return f?(c=f[0],o+=c.length,c):""}for(var r=[];e(fl),!(o>=n.length);){var i=e(cl);if(i.slice(-1)===",")i=st(t,i.substring(0,i.length-1)),r.push(i);else{var s="";i=st(t,i);for(var a=!1;;){var u=n.charAt(o);if(u===""){r.push((i+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,r.push((i+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return r.join(", ")}var wo=new WeakMap;function st(t,n){return!n||n.trim()===""?n:xn(t,n)}function dl(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function xn(t,n){var o=wo.get(t);if(o||(o=t.createElement("a"),wo.set(t,o)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return o.setAttribute("href",n),o.href}function bo(t,n,o,e){return e&&(o==="src"||o==="href"&&!(n==="use"&&e[0]==="#")||o==="xlink:href"&&e[0]!=="#"||o==="background"&&(n==="table"||n==="td"||n==="th")?st(t,e):o==="srcset"?hl(t,e):o==="style"?fr(e,xn(t)):n==="object"&&o==="data"?st(t,e):e)}function So(t,n,o){return(t==="video"||t==="audio")&&n==="autoplay"}function pl(t,n,o){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(o)return t.matches(o)}catch(i){}return!1}function dr(t,n,o){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return o?dr(le.parentNode(t),n,o):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return o?dr(le.parentNode(t),n,o):!1}function Co(t,n,o,e){var r;if(fo(t)){if(r=t,!le.childNodes(r).length)return!1}else{if(le.parentElement(t)===null)return!1;r=le.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(dr(r,n,e))return!0;if(o){if(e){if(r.closest(o))return!0}else if(r.matches(o))return!0}}catch(i){}return!1}function vl(t,n,o){var e=t.contentWindow;if(e){var r=!1,i;try{i=e.document.readyState}catch(u){return}if(i!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},o);t.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function ml(t,n,o){var e=!1,r;try{r=t.sheet}catch(s){return}if(!r){var i=setTimeout(function(){e||(n(),e=!0)},o);t.addEventListener("load",function(){clearTimeout(i),e=!0,n()})}}function gl(t,n){var o=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,l=u===void 0?{}:u,c=n.maskTextFn,f=n.maskInputFn,h=n.dataURLOptions,v=h===void 0?{}:h,d=n.inlineImages,y=n.recordCanvas,p=n.keepIframeSrcFn,g=n.newlyAddedElement,w=g===void 0?!1:g,b=n.cssCaptured,S=b===void 0?!1:b,C=yl(o,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ie.Document,childNodes:[],compatMode:t.compatMode}:{type:ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return bl(t,{doc:o,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:f,dataURLOptions:v,inlineImages:d,recordCanvas:y,keepIframeSrcFn:p,newlyAddedElement:w,rootId:C});case t.TEXT_NODE:return wl(t,{doc:o,needsMask:s,maskTextFn:c,rootId:C,cssCaptured:S});case t.CDATA_SECTION_NODE:return{type:ie.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:ie.Comment,textContent:le.textContent(t)||"",rootId:C};default:return!1}}function yl(t,n){if(n.hasNode(t)){var o=n.getId(t);return o===1?void 0:o}}function wl(t,n){var o=n.needsMask,e=n.maskTextFn,r=n.rootId,i=n.cssCaptured,s=le.parentNode(t),a=s&&s.tagName,u="",l=a==="STYLE"?!0:void 0,c=a==="SCRIPT"?!0:void 0;return c?u="SCRIPT_PLACEHOLDER":i||(u=le.textContent(t),l&&u&&(u=fr(u,xn(n.doc)))),!l&&!c&&u&&o&&(u=e?e(u,le.parentElement(t)):u.replace(/[\S]/g,"*")),{type:ie.Text,textContent:u||"",rootId:r}}function bl(t,n){for(var o=n.doc,e=n.blockClass,r=n.blockSelector,i=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,l=n.dataURLOptions,c=l===void 0?{}:l,f=n.inlineImages,h=n.recordCanvas,v=n.keepIframeSrcFn,d=n.newlyAddedElement,y=d===void 0?!1:d,p=n.rootId,g=pl(t,e,r),w=ll(t),b={},S=t.attributes.length,C=0;C<S;C++){var R=t.attributes[C];So(w,R.name,R.value)||(b[R.name]=bo(o,w,Ve(R.name),R.value))}if(w==="link"&&i){var A=Array.from(o.styleSheets).find(function(we){return we.href===t.href}),x=null;A&&(x=Rn(A)),x&&(delete b.rel,delete b.href,b._cssText=x)}if(w==="style"&&t.sheet){var _=Rn(t.sheet);_&&(t.childNodes.length>1&&(_=sl(_,t)),b._cssText=_)}if(w==="input"||w==="textarea"||w==="select"){var U=t.value,M=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&U?b.value=lr({element:t,type:cr(t),tagName:w,value:U,maskInputOptions:a,maskInputFn:u}):M&&(b.checked=M)}if(w==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),w==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(t.__context==="2d")Qu(t)||(b.rr_dataURL=t.toDataURL(c.type,c.quality));else if(!("__context"in t)){var P=t.toDataURL(c.type,c.quality),G=o.createElement("canvas");G.width=t.width,G.height=t.height;var pe=G.toDataURL(c.type,c.quality);P!==pe&&(b.rr_dataURL=P)}}if(w==="img"&&f){ot||(ot=o.createElement("canvas"),yo=ot.getContext("2d"));var V=t,ge=V.currentSrc||V.getAttribute("src")||"<unknown-src>",he=V.crossOrigin,Q=function(){V.removeEventListener("load",Q);try{ot.width=V.naturalWidth,ot.height=V.naturalHeight,yo.drawImage(V,0,0),b.rr_dataURL=ot.toDataURL(c.type,c.quality)}catch(we){if(V.crossOrigin!=="anonymous"){V.crossOrigin="anonymous",V.complete&&V.naturalWidth!==0?Q():V.addEventListener("load",Q);return}else console.warn("Cannot inline img src="+ge+"! Error: "+we)}V.crossOrigin==="anonymous"&&(he?b.crossOrigin=he:V.removeAttribute("crossorigin"))};V.complete&&V.naturalWidth!==0?Q():V.addEventListener("load",Q)}if(w==="audio"||w==="video"){var ae=b;ae.rr_mediaState=t.paused?"paused":"played",ae.rr_mediaCurrentTime=t.currentTime,ae.rr_mediaPlaybackRate=t.playbackRate,ae.rr_mediaMuted=t.muted,ae.rr_mediaLoop=t.loop,ae.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),g){var ye=t.getBoundingClientRect(),Ze=ye.width,Ae=ye.height;b={class:b.class,rr_width:""+Ze+"px",rr_height:""+Ae+"px"}}w==="iframe"&&!v(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var St;try{customElements.get(w)&&(St=!0)}catch(we){}return{type:ie.Element,tagName:w,attributes:b,childNodes:[],isSVG:dl(t)||void 0,needBlock:g,rootId:p,isCustom:St}}function H(t){return t==null?"":t.toLowerCase()}function Sl(t,n){if(n.comment&&t.type===ie.Comment)return!0;if(t.type===ie.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&mo(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(H(t.attributes.name).match(/^msapplication-tile(image|color)$/)||H(t.attributes.name)==="application-name"||H(t.attributes.rel)==="icon"||H(t.attributes.rel)==="apple-touch-icon"||H(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&H(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(H(t.attributes.property).match(/^(og|twitter|fb):/)||H(t.attributes.name).match(/^(og|twitter):/)||H(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(H(t.attributes.name)==="robots"||H(t.attributes.name)==="googlebot"||H(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(H(t.attributes.name)==="author"||H(t.attributes.name)==="generator"||H(t.attributes.name)==="framework"||H(t.attributes.name)==="publisher"||H(t.attributes.name)==="progid"||H(t.attributes.property).match(/^article:/)||H(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(H(t.attributes.name)==="google-site-verification"||H(t.attributes.name)==="yandex-verification"||H(t.attributes.name)==="csrf-token"||H(t.attributes.name)==="p:domain_verify"||H(t.attributes.name)==="verify-v1"||H(t.attributes.name)==="verification"||H(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function at(t,n){var o=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,l=u===void 0?!1:u,c=n.inlineStylesheet,f=c===void 0?!0:c,h=n.maskInputOptions,v=h===void 0?{}:h,d=n.maskTextFn,y=n.maskInputFn,p=n.slimDOMOptions,g=n.dataURLOptions,w=g===void 0?{}:g,b=n.inlineImages,S=b===void 0?!1:b,C=n.recordCanvas,R=C===void 0?!1:C,A=n.onSerialize,x=n.onIframeLoad,_=n.iframeLoadTimeout,U=_===void 0?5e3:_,M=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,G=P===void 0?5e3:P,pe=n.keepIframeSrcFn,V=pe===void 0?function(){return!1}:pe,ge=n.newlyAddedElement,he=ge===void 0?!1:ge,Q=n.cssCaptured,ae=Q===void 0?!1:Q,ye=n.needsMask,Ze=n.preserveWhiteSpace,Ae=Ze===void 0?!0:Ze;if(!ye){var St=ye===void 0;ye=Co(t,s,a,St)}var we=gl(t,{doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,inlineStylesheet:f,maskInputOptions:v,maskTextFn:d,maskInputFn:y,dataURLOptions:w,inlineImages:S,recordCanvas:R,keepIframeSrcFn:V,newlyAddedElement:he,cssCaptured:ae});if(!we)return console.warn(t,"not serialized"),null;var Ke;e.hasNode(t)?Ke=e.getId(t):Sl(we,p)||!Ae&&we.type===ie.Text&&!we.textContent.replace(/^\s+|\s+$/gm,"").length?Ke=kt:Ke=go();var z=Object.assign(we,{id:Ke});if(e.add(t,z),Ke===kt)return null;A&&A(t);var Xe=!l;if(z.type===ie.Element){Xe=Xe&&!z.needBlock,delete z.needBlock;var Qe=le.shadowRoot(t);Qe&&Mt(Qe)&&(z.isShadowHost=!0)}if((z.type===ie.Document||z.type===ie.Element)&&Xe){p.headWhitespace&&z.type===ie.Element&&z.tagName==="head"&&(Ae=!1);var Ct={doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:f,maskInputOptions:v,maskTextFn:d,maskInputFn:y,slimDOMOptions:p,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:U,onStylesheetLoad:M,stylesheetLoadTimeout:G,keepIframeSrcFn:V,cssCaptured:!1};if(!(z.type===ie.Element&&z.tagName==="textarea"&&z.attributes.value!==void 0)){z.type===ie.Element&&z.attributes._cssText!==void 0&&typeof z.attributes._cssText=="string"&&(Ct.cssCaptured=!0);for(var rr=O(Array.from(le.childNodes(t))),nr;!(nr=rr()).done;){var Xi=nr.value,yn=at(Xi,Ct);yn&&z.childNodes.push(yn)}}var Ge=null;if(fo(t)&&(Ge=le.shadowRoot(t)))for(var et=O(Array.from(le.childNodes(Ge))),It;!(It=et()).done;){var ir=It.value,Ot=at(ir,Ct);Ot&&(Mt(Ge)&&(Ot.isShadow=!0),z.childNodes.push(Ot))}}var tt=le.parentNode(t);return tt&&At(tt)&&Mt(tt)&&(z.isShadow=!0),z.type===ie.Element&&z.tagName==="iframe"&&vl(t,function(){var Ne=t.contentDocument;if(Ne&&x){var rt=at(Ne,{doc:Ne,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:d,maskInputFn:y,slimDOMOptions:p,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:U,onStylesheetLoad:M,stylesheetLoadTimeout:G,keepIframeSrcFn:V});rt&&x(t,rt)}},U),z.type===ie.Element&&z.tagName==="link"&&typeof z.attributes.rel=="string"&&(z.attributes.rel==="stylesheet"||z.attributes.rel==="preload"&&typeof z.attributes.href=="string"&&mo(z.attributes.href)==="css")&&ml(t,function(){if(M){var Ne=at(t,{doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:d,maskInputFn:y,slimDOMOptions:p,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:U,onStylesheetLoad:M,stylesheetLoadTimeout:G,keepIframeSrcFn:V});Ne&&M(t,Ne)}},G),z}function Cl(t,n){var o=n||{},e=o.mirror,r=e===void 0?new po:e,i=o.blockClass,s=i===void 0?"rr-block":i,a=o.blockSelector,u=a===void 0?null:a,l=o.maskTextClass,c=l===void 0?"rr-mask":l,f=o.maskTextSelector,h=f===void 0?null:f,v=o.inlineStylesheet,d=v===void 0?!0:v,y=o.inlineImages,p=y===void 0?!1:y,g=o.recordCanvas,w=g===void 0?!1:g,b=o.maskAllInputs,S=b===void 0?!1:b,C=o.maskTextFn,R=o.maskInputFn,A=o.slimDOM,x=A===void 0?!1:A,_=o.dataURLOptions,U=o.preserveWhiteSpace,M=o.onSerialize,P=o.onIframeLoad,G=o.iframeLoadTimeout,pe=o.onStylesheetLoad,V=o.stylesheetLoadTimeout,ge=o.keepIframeSrcFn,he=ge===void 0?function(){return!1}:ge,Q=S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:S===!1?{password:!0}:S,ae=x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x;return at(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:Q,maskTextFn:C,maskInputFn:R,slimDOMOptions:ae,dataURLOptions:_,inlineImages:p,recordCanvas:w,preserveWhiteSpace:U,onSerialize:M,onIframeLoad:P,iframeLoadTimeout:G,onStylesheetLoad:pe,stylesheetLoadTimeout:V,keepIframeSrcFn:he,newlyAddedElement:!1})}function Il(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ol(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var o=function e(){return T(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),o}var En={exports:{}},J=String,Io=function(){return{isColorSupported:!1,reset:J,bold:J,dim:J,italic:J,underline:J,inverse:J,hidden:J,strikethrough:J,black:J,red:J,green:J,yellow:J,blue:J,magenta:J,cyan:J,white:J,gray:J,bgBlack:J,bgRed:J,bgGreen:J,bgYellow:J,bgBlue:J,bgMagenta:J,bgCyan:J,bgWhite:J}};En.exports=Io(),En.exports.createColors=Io;var Rl=En.exports,xl={},El=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"})),re=Ol(El),Oo=Rl,Ro=re,An=function(t){ue(n,t);function n(e,r,i,s,a,u){var l;return l=t.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof r!="undefined"&&typeof i!="undefined"&&(typeof r=="number"?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,n),l}var o=n.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Oo.isColorSupported),Ro&&r&&(s=Ro(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length,f,h;if(r){var v=Oo.createColors(!0),d=v.bold,y=v.gray,p=v.red;f=function(g){return d(p(g))},h=function(g){return y(g)}}else f=h=function(g){return g};return a.slice(u,l).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-c)+" | ";if(b===i.line){var C=h(S.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+g+"\n "+C+f("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(ar(Error)),Mn=An;An.default=An;var De={};De.isClean=Symbol("isClean"),De.my=Symbol("my");var xo={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Al(t){return t[0].toUpperCase()+t.slice(1)}var kn=function(){function t(o){this.builder=o}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(i+s+a,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(i.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)i+=u}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return xo[i];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[i]!="undefined")return u.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var l="raw"+Al(i);return this[l]?s=this[l](u,e):u.walk(function(c){if(s=c.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=xo[i]),u.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return r=i.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var i;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){var i;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return r=i.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(typeof i.raws.between!="undefined")return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before!="undefined"){var a=i.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),Eo=kn;kn.default=kn;var Ml=Eo;function _n(t,n){var o=new Ml(n);o.stringify(t)}var pr=_n;_n.default=_n;var vr=De.isClean,kl=De.my,_l=Mn,Tl=Eo,Pl=pr;function Tn(t,n){var o=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r=="undefined"?"undefined":N(r);e==="parent"&&i==="object"?n&&(o[e]=n):e==="source"?o[e]=r:Array.isArray(r)?o[e]=r.map(function(s){return Tn(s,o)}):(i==="object"&&r!==null&&(r=Tn(r)),o[e]=r)}return o}var Pn=function(){function t(o){o===void 0&&(o={}),this.raws={},this[vr]=!1,this[kl]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var r=O(o[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Tn(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,a=i.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new _l(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[vr]){this[vr]=!1;for(var e=this;e=e.parent;)e[vr]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)i[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),i=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){var i=new Tl;return i.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s=this,a=!1,u=O(r),l;!(l=u()).done;){var c=l.value;c===this?a=!0:a?(this.parent.insertAfter(s,c),s=c):this.parent.insertBefore(s,c)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))i[u]=l.map(function(f){return(typeof f=="undefined"?"undefined":N(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof l=="undefined"?"undefined":N(l))==="object"&&l.toJSON)i[u]=l.toJSON(null,r);else if(u==="source"){var c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),i[u]={end:l.end,inputId:c,start:l.start}}else i[u]=l}return s&&(i.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Pl),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var a in i)s[a]=i[a];return e.warn(r,s)},oe(t,[{key:"proxyOf",get:function(){return this}}]),t}(),mr=Pn;Pn.default=Pn;var Nl=mr,Nn=function(t){ue(n,t);function n(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=B({},o,{value:String(o.value)})),e=t.call(this,o)||this,e.type="decl",e}return oe(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Nl),gr=Nn;Nn.default=Nn;var $l="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Dl=function(t){t===void 0&&(t=21);for(var n="",o=t;o--;)n+=$l[Math.random()*64|0];return n},Ll={nanoid:Dl},Ao=re.SourceMapConsumer,Mo=re.SourceMapGenerator,Fl=re.existsSync,Bl=re.readFileSync,$n=re.dirname,Ul=re.join;function zl(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Dn=function(){function t(o,e){if(e.map!==!1){this.loadAnnotation(o),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=$n(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ao(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return zl(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":N(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=$n(e),Fl(e))return this.mapFile=e,Bl(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var i=r(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(T(r,Ao))return Mo.fromSourceMap(r).toString();if(T(r,Mo))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Ul($n(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),ko=Dn;Dn.default=Dn;var Wl=re.SourceMapConsumer,Gl=re.SourceMapGenerator,_o=re.fileURLToPath,yr=re.pathToFileURL,Ln=re.isAbsolute,Fn=re.resolve,Vl=Ll.nanoid,Bn=re,To=Mn,jl=ko,Un=Symbol("fromOffsetCache"),Yl=!!(Wl&&Gl),Po=!!(Fn&&Ln),wr=function(){function t(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":N(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Po||/^\w+:\/\//.test(e.from)||Ln(e.from)?this.file=e.from:this.file=Fn(e.from)),Po&&Yl){var r=new jl(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 "+Vl(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var a,u,l;if(r&&(typeof r=="undefined"?"undefined":N(r))==="object"){var c=r,f=i;if(typeof c.offset=="number"){var h=this.fromOffset(c.offset);r=h.line,i=h.col}else r=c.line,i=c.column;if(typeof f.offset=="number"){var v=this.fromOffset(f.offset);u=v.line,l=v.col}else u=f.line,l=f.column}else if(!i){var d=this.fromOffset(r);r=d.line,i=d.col}var y=this.origin(r,i,u,l);return y?a=new To(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new To(e,u===void 0?r:{column:i,line:r},u===void 0?i:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:i,endColumn:l,endLine:u,line:r,source:this.css},this.file&&(yr&&(a.input.url=yr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,i;if(this[Un])i=this[Un];else{var s=this.css.split("\n");i=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)i[u]=a,a+=s[u].length+1;this[Un]=i}r=i[i.length-1];var c=0;if(e>=r)c=i.length-1;else for(var f=i.length-2,h;c<f;)if(h=c+(f-c>>1),e<i[h])f=h-1;else if(e>=i[h+1])c=h+1;else{c=h;break}return{col:e-i[c]+1,line:c+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Fn(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var l;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i}));var c;Ln(u.source)?c=yr(u.source):c=new URL(u.source,this.map.consumer().sourceRoot||yr(this.map.mapFile));var f={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:c.toString()};if(c.protocol==="file:")if(_o)f.file=_o(c);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},oe(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),br=wr;wr.default=wr,Bn&&Bn.registerInput&&Bn.registerInput(wr);var No=re.SourceMapConsumer,Sr=re.SourceMapGenerator,Cr=re.dirname,$o=re.relative,Do=re.resolve,Lo=re.sep,Fo=re.pathToFileURL,ql=br,Hl=!!(No&&Sr),Jl=!!(Cr&&Do&&$o&&Lo),Zl=function(){function t(o,e,r,i){this.stringify=o,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}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),a=i.root||Cr(i.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new No(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Jl&&Hl&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Sr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Sr({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]},n.generateString=function(){var e=this;this.css="",this.map=new Sr({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(c,f,h){if(e.css+=c,f&&h!=="end"&&(a.generated.line=r,a.generated.column=i-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=c.match(/\n/g),u?(r+=u.length,l=c.lastIndexOf("\n"),i=c.length-l):i+=c.length,f&&h!=="start"){var v=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=i-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=i-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Cr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Cr(Do(i,this.mapOpts.annotation)));var s=$o(i,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new ql(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Fo){var i=Fo(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Lo==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),Bo=Zl,Kl=mr,zn=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="comment",e}return n}(Kl),Ir=zn;zn.default=zn;var Uo=De.isClean,zo=De.my,Wo=gr,Go=Ir,Xl=mr,Vo,Wn,Gn,jo;function Yo(t){return t.map(function(n){return n.nodes&&(n.nodes=Yo(n.nodes)),delete n.source,n})}function qo(t){if(t[Uo]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),o;!(o=n()).done;){var e=o.value;qo(e)}}var Me=function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var a=O(i),u;!(u=a()).done;)for(var l=u.value,c=this.normalize(l,this.last),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=O(this.nodes),s;!(s=i()).done;){var a=s.value;a.cleanRaws(r)}},o.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,a;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[i]+=1;return delete this.indexes[i],a}},o.every=function(r){return this.nodes.every(r)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},o.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var c;return(c=i)[s].apply(c,[].concat(u.map(function(f){return typeof f=="function"?function(h,v){return f(h.toProxy(),v)}:f})))}:s==="every"||s==="some"?function(a){return i[s](function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],c))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,a){return i[s]===a||(i[s]=a,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},o.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},o.insertAfter=function(r,i){var s=this.index(r),a=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),l;!(l=u()).done;){var c=l.value;this.proxyOf.nodes.splice(s+1,0,c)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},o.insertBefore=function(r,i){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(i,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var l=O(u),c;!(c=l()).done;){var f=c.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(r,i){var s=this;if(typeof r=="string")r=Yo(Vo(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var c=O(r),f;!(f=c()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Wo(r)]}else if(r.selector)r=[new Wn(r)];else if(r.name)r=[new Gn(r)];else if(r.text)r=[new Go(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(d){return d[zo]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Uo]&&qo(d),typeof d.raws.before=="undefined"&&i&&typeof i.raws.before!="undefined"&&(d.raws.before=i.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var a=O(i),u;!(u=a()).done;){for(var l=u.value,c=this.normalize(l,this.first,"prepend").reverse(),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+c.length}return this.markDirty(),this},o.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},o.removeAll=function(){for(var r=O(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},o.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(a){i.props&&!i.props.includes(a.prop)||i.fast&&!a.value.includes(i.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},o.some=function(r){return this.nodes.some(r)},o.walk=function(r){return this.each(function(i,s){var a;try{a=r(i,s)}catch(u){throw i.addToError(u)}return a!==!1&&i.walk&&(a=i.walk(r)),a})},o.walkAtRules=function(r,i){return i?T(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return i(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="atrule")return i(s,a)}))},o.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},o.walkDecls=function(r,i){return i?T(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return i(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="decl")return i(s,a)}))},o.walkRules=function(r,i){return i?T(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return i(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="rule")return i(s,a)}))},oe(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(Xl);Me.registerParse=function(t){Vo=t},Me.registerRule=function(t){Wn=t},Me.registerAtRule=function(t){Gn=t},Me.registerRoot=function(t){jo=t};var je=Me;Me.default=Me,Me.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Gn.prototype):t.type==="rule"?Object.setPrototypeOf(t,Wn.prototype):t.type==="decl"?Object.setPrototypeOf(t,Wo.prototype):t.type==="comment"?Object.setPrototypeOf(t,Go.prototype):t.type==="root"&&Object.setPrototypeOf(t,jo.prototype),t[zo]=!0,t.nodes&&t.nodes.forEach(function(n){Me.rebuild(n)})};var Ql=je,Ho,Jo,_t=function(t){ue(n,t);function n(e){var r;return r=t.call(this,B({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.toResult=function(r){r===void 0&&(r={});var i=new Ho(new Jo,this,r);return i.stringify()},n}(Ql);_t.registerLazyResult=function(t){Ho=t},_t.registerProcessor=function(t){Jo=t};var Vn=_t;_t.default=_t;var Zo={},Ko=function(n){Zo[n]||(Zo[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},jn=function(){function t(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,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]}var n=t.prototype;return n.toString=function(){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},t}(),Xo=jn;jn.default=jn;var ec=Xo,Yn=function(){function t(o,e,r){this.processor=o,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new ec(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},oe(t,[{key:"content",get:function(){return this.css}}]),t}(),qn=Yn;Yn.default=Yn;var Hn=39,Qo=34,Or=92,es=47,Rr=10,Tt=32,xr=12,Er=9,Ar=13,tc=91,rc=93,nc=40,ic=41,oc=123,sc=125,ac=59,uc=42,lc=58,cc=64,Mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,kr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fc=/.[\r\n"'(/\\]/,ts=/[\da-f]/i,hc=function(n,o){o===void 0&&(o={});var e=n.css.valueOf(),r=o.ignoreErrors,i,s,a,u,l,c,f,h,v,d,y=e.length,p=0,g=[],w=[];function b(){return p}function S(x){throw n.error("Unclosed "+x,p)}function C(){return w.length===0&&p>=y}function R(x){if(w.length)return w.pop();if(!(p>=y)){var _=x?x.ignoreUnclosed:!1;switch(i=e.charCodeAt(p),i){case Rr:case Tt:case Er:case Ar:case xr:{s=p;do s+=1,i=e.charCodeAt(s);while(i===Tt||i===Rr||i===Er||i===Ar||i===xr);d=["space",e.slice(p,s)],p=s-1;break}case tc:case rc:case oc:case sc:case lc:case ac:case ic:{var U=String.fromCharCode(i);d=[U,U,p];break}case nc:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==Hn&&v!==Qo&&v!==Tt&&v!==Rr&&v!==Er&&v!==xr&&v!==Ar){s=p;do{if(c=!1,s=e.indexOf(")",s+1),s===-1)if(r||_){s=p;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===Or;)f-=1,c=!c}while(c);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||fc.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case Hn:case Qo:{a=i===Hn?"'":'"',s=p;do{if(c=!1,s=e.indexOf(a,s+1),s===-1)if(r||_){s=p+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===Or;)f-=1,c=!c}while(c);d=["string",e.slice(p,s+1),p,s],p=s;break}case cc:{Mr.lastIndex=p+1,Mr.test(e),Mr.lastIndex===0?s=e.length-1:s=Mr.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Or:{for(s=p,l=!0;e.charCodeAt(s+1)===Or;)s+=1,l=!l;if(i=e.charCodeAt(s+1),l&&i!==es&&i!==Tt&&i!==Rr&&i!==Er&&i!==Ar&&i!==xr&&(s+=1,ts.test(e.charAt(s)))){for(;ts.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Tt&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{i===es&&e.charCodeAt(p+1)===uc?(s=e.indexOf("*/",p+2)+1,s===0&&(r||_?s=e.length:S("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(kr.lastIndex=p+1,kr.test(e),kr.lastIndex===0?s=e.length-1:s=kr.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function A(x){w.push(x)}return{back:A,endOfFile:C,nextToken:R,position:b}},rs=je,_r=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],i))},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],i))},n}(rs),Jn=_r;_r.default=_r,rs.registerAtRule(_r);var ns=je,is,os,ut=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.normalize=function(r,i,s){var a=t.prototype.normalize.call(this,r);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var u=O(a),l;!(l=u()).done;){var c=l.value;c.raws.before=i.raws.before}}return a},o.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},o.toResult=function(r){r===void 0&&(r={});var i=new is(new os,this,r);return i.stringify()},n}(ns);ut.registerLazyResult=function(t){is=t},ut.registerProcessor=function(t){os=t};var Pt=ut;ut.default=ut,ns.registerRoot(ut);var Nt={comma:function(n){return Nt.split(n,[","],!0)},space:function(n){var o=[" ","\n"," "];return Nt.split(n,o)},split:function(n,o,e){for(var r=[],i="",s=!1,a=0,u=!1,l="",c=!1,f=O(n),h;!(h=f()).done;){var v=h.value;c?c=!1:v==="\\"?c=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=v}return(e||i!=="")&&r.push(i.trim()),r}},ss=Nt;Nt.default=Nt;var as=je,dc=ss,Tr=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return oe(n,[{key:"selectors",get:function(){return dc.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(as),Zn=Tr;Tr.default=Tr,as.registerRule(Tr);var pc=gr,vc=hc,mc=Ir,gc=Jn,yc=Pt,us=Zn,ls={empty:!0,space:!0};function wc(t){for(var n=t.length-1;n>=0;n--){var o=t[n],e=o[3]||o[2];if(e)return e}}var bc=function(){function t(o){this.input=o,this.root=new yc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new gc;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,a,u=!1,l=!1,c=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?f.push(i==="("?")":"]"):i==="{"&&f.length>0?f.push("}"):i===f[f.length-1]&&f.pop(),f.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(c.length>0){for(a=c.length-1,s=c[a];s&&s[0]==="space";)s=c[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),u&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,a,u=O(e.entries()),l;!(l=u()).done;){var c=l.value,f=c[0],h=c[1];if(i=h,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(i);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=i}return!1},n.comment=function(e){var r=new mc;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=vc(this.input)},n.decl=function(e,r){var i=new pc;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||wc(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var l=[],c;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",y=f;y>0;y--){var p=v[y][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new us;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},n.endFile=function(){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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),c=[],f=e;f;){if(i=f[0],c.push(f),i==="("||i==="[")a||(a=f),u.push(i==="("?")":"]");else if(l&&s&&i==="{")a||(a=f),u.push("}");else if(u.length===0)if(i===";")if(s){this.decl(c,l);return}else break;else if(i==="{"){this.rule(c);return}else if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}else i===":"&&(s=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!l)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,l)}else this.unknownWord(c)},n.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var a,u,l=i.length,c="",f=!0,h,v,d=0;d<l;d+=1)a=i[d],u=a[0],u==="space"&&d===l-1&&!s?f=!1:u==="comment"?(v=i[d-1]?i[d-1][0]:"empty",h=i[d+1]?i[d+1][0]:"empty",!ls[v]&&!ls[h]?c.slice(-1)===","?f=!1:c+=a[1]:f=!1):c+=a[1];if(!f){var y=i.reduce(function(p,g){return p+g[1]},"");e.raws[r]={raw:y,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new us;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),Sc=bc,Cc=je,Ic=Sc,Oc=br;function Pr(t,n){var o=new Oc(t,n),e=new Ic(o);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var Kn=Pr;Pr.default=Pr,Cc.registerParse(Pr);var Oe=De.isClean,Rc=De.my,xc=Bo,Ec=pr,Ac=je,Mc=Vn,kc=Ko,cs=qn,_c=Kn,Tc=Pt,Pc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Nc={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},$c={Once:!0,postcssPlugin:!0,prepare:!0},lt=0;function $t(t){return(typeof t=="undefined"?"undefined":N(t))==="object"&&typeof t.then=="function"}function fs(t){var n=!1,o=Pc[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[o,o+"-"+n,lt,o+"Exit",o+"Exit-"+n]:n?[o,o+"-"+n,o+"Exit",o+"Exit-"+n]:t.append?[o,lt,o+"Exit"]:[o,o+"Exit"]}function hs(t){var n;return t.type==="document"?n=["Document",lt,"DocumentExit"]:t.type==="root"?n=["Root",lt,"RootExit"]:n=fs(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Xn(t){return t[Oe]=!1,t.nodes&&t.nodes.forEach(function(n){return Xn(n)}),t}var Qn={},ct=function(){function t(o,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":N(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Xn(e);else if(T(e,t)||T(e,cs))s=Xn(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=_c;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Rc]&&Ac.rebuild(s)}this.result=new cs(o,s,r),this.helpers=B({},Qn,{postcss:Qn,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":N(u))==="object"&&u.prepare?B({},u,u.prepare(i.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){var s=i.postcssPlugin,a=i.postcssVersion,u=this.result.processor.version,l=a.split("."),c=u.split(".");(l[0]!==c[0]||parseInt(l[1])>parseInt(c[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(c,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([c,h])},i=O(this.plugins),s;!(s=i()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":N(a))==="object")for(var u in a){if(!Nc[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!$c[u])if(N(a[u])==="object")for(var l in a[u])l==="*"?r(a,u,a[u][l]):r(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return bn(function(){var r,i,s,a,u,l,c,f,h,v,d,y;return Et(this,function(p){switch(p.label){case 0:e.plugin=0,r=0,p.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!$t(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Oe])return[3,14];u[Oe]=!0,l=[hs(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(c=e.visitTick(l),!$t(c))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,c];case 10:return p.sent(),[3,12];case 11:throw f=p.sent(),h=l[l.length-1].node,e.handleError(f,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return Et(this,function(R){switch(R.label){case 0:g=y.value,w=g[0],b=g[1],e.result.lastPlugin=w,R.label=1;case 1:return R.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(S)]);case 2:return R.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:R.sent(),R.label=5;case 5:return[3,7];case 6:throw C=R.sent(),e.handleError(C);case 7:return[2]}})},d=O(e.listeners.OnceExit),p.label=15;case 15:return(y=d()).done?[3,18]:[5,oo(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":N(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return $t(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Ec;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new xc(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=O(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if($t(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Oe];)a[Oe]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),l;!(l=u()).done;){var c=l.value;this.visitSync(this.listeners.OnceExit,c)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||kc("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(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i=O(e),s;!(s=i()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var c=void 0;try{c=l(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if($t(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],l=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return l(i.toProxy(),this.helpers)}catch(d){throw this.handleError(d,i)}}if(r.iterator!==0){for(var c=r.iterator,f;f=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!f[Oe]){f[Oe]=!0,e.push(hs(f));return}r.iterator=0,delete i.indexes[c]}for(var h=r.events;r.eventIndex<h.length;){var v=h[r.eventIndex];if(r.eventIndex+=1,v===lt){i.nodes&&i.nodes.length&&(i[Oe]=!0,r.iterator=i.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}e.pop()},n.walkSync=function(e){var r=this;e[Oe]=!0;for(var i=fs(e),s=O(i),a;!(a=s()).done;){var u=a.value;if(u===lt)e.nodes&&e.each(function(c){c[Oe]||r.walkSync(c)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},oe(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t}();ct.registerPostcss=function(t){Qn=t};var ds=ct;ct.default=ct,Tc.registerLazyResult(ct),Mc.registerLazyResult(ct);var Dc=Bo,Lc=pr,Fc=Ko,Bc=Kn,Uc=qn,ei=function(){function t(o,e,r){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=r,this._map=void 0;var i,s=Lc;this.result=new Uc(this._processor,i,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Dc(s,i,this._opts,e);if(u.isMap()){var l=u.generate(),c=l[0],f=l[1];c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Fc("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(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},oe(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=Bc;try{e=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t}(),zc=ei;ei.default=ei;var Wc=zc,Gc=ds,Vc=Vn,jc=Pt,Dt=function(){function t(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=O(e),s;!(s=i()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":N(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Wc(this,e,r):new Gc(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),Yc=Dt;Dt.default=Dt,jc.registerProcessor(Dt),Vc.registerProcessor(Dt);var qc=gr,Hc=ko,Jc=Ir,Zc=Jn,Kc=br,Xc=Pt,Qc=Zn;function Lt(t,n){if(Array.isArray(t))return t.map(function(f){return Lt(f)});var o=t.inputs,e=Rt(t,["inputs"]);if(o){n=[];for(var r=O(o),i;!(i=r()).done;){var s=i.value,a=B({},s,{__proto__:Kc.prototype});a.map&&(a.map=B({},a.map,{__proto__:Hc.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Lt(f,n)})),e.source){var u=e.source,l=u.inputId,c=Rt(u,["inputId"]);e.source=c,l!=null&&(e.source.input=n[l])}if(e.type==="root")return new Xc(e);if(e.type==="decl")return new qc(e);if(e.type==="rule")return new Qc(e);if(e.type==="comment")return new Jc(e);if(e.type==="atrule")return new Zc(e);throw new Error("Unknown node type: "+t.type)}var ef=Lt;Lt.default=Lt;var tf=Mn,ps=gr,rf=ds,nf=je,ti=Yc,of=pr,sf=ef,vs=Vn,af=Xo,ms=Ir,gs=Jn,uf=qn,lf=br,cf=Kn,ff=ss,ys=Zn,ws=Pt,hf=mr;function j(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ti(n)}j.plugin=function(n,o){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=n,l.postcssVersion=new ti().version,l}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,a,u){return j([r(u)]).process(s,a)},r},j.stringify=of,j.parse=cf,j.fromJSON=sf,j.list=ff,j.comment=function(t){return new ms(t)},j.atRule=function(t){return new gs(t)},j.decl=function(t){return new ps(t)},j.rule=function(t){return new ys(t)},j.root=function(t){return new ws(t)},j.document=function(t){return new vs(t)},j.CssSyntaxError=tf,j.Declaration=ps,j.Container=nf,j.Processor=ti,j.Document=vs,j.Comment=ms,j.Warning=af,j.AtRule=gs,j.Result=uf,j.Input=lf,j.Rule=ys,j.Root=ws,j.Node=hf,rf.registerPostcss(j);var df=j;j.default=j;var K=Il(df);K.stringify,K.fromJSON,K.plugin,K.parse,K.list,K.document,K.comment,K.atRule,K.rule,K.decl,K.root,K.CssSyntaxError,K.Declaration,K.Container,K.Processor,K.Document,K.Comment,K.Warning,K.AtRule,K.Result,K.Input,K.Rule,K.Root,K.Node;var pf=Object.defineProperty,vf=function(t,n,o){return n in t?pf(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},be=function(t,n,o){return vf(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)};function mf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gf(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var o=function e(){return T(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),o}var ri={exports:{}},Z=String,bs=function(){return{isColorSupported:!1,reset:Z,bold:Z,dim:Z,italic:Z,underline:Z,inverse:Z,hidden:Z,strikethrough:Z,black:Z,red:Z,green:Z,yellow:Z,blue:Z,magenta:Z,cyan:Z,white:Z,gray:Z,bgBlack:Z,bgRed:Z,bgGreen:Z,bgYellow:Z,bgBlue:Z,bgMagenta:Z,bgCyan:Z,bgWhite:Z}};ri.exports=bs(),ri.exports.createColors=bs;var yf=ri.exports,wf={},bf=Object.freeze(Object.defineProperty({__proto__:null,default:wf},Symbol.toStringTag,{value:"Module"})),ne=gf(bf),Ss=yf,Cs=ne,ni=function(t){ue(n,t);function n(e,r,i,s,a,u){var l;return l=t.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof r!="undefined"&&typeof i!="undefined"&&(typeof r=="number"?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,n),l}var o=n.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Ss.isColorSupported),Cs&&r&&(s=Cs(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length,f,h;if(r){var v=Ss.createColors(!0),d=v.bold,y=v.gray,p=v.red;f=function(g){return d(p(g))},h=function(g){return y(g)}}else f=h=function(g){return g};return a.slice(u,l).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-c)+" | ";if(b===i.line){var C=h(S.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+g+"\n "+C+f("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(ar(Error)),ii=ni;ni.default=ni;var Le={};Le.isClean=Symbol("isClean"),Le.my=Symbol("my");var Is={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Sf(t){return t[0].toUpperCase()+t.slice(1)}var oi=function(){function t(o){this.builder=o}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(i+s+a,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(i.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)i+=u}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Is[i];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[i]!="undefined")return u.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var l="raw"+Sf(i);return this[l]?s=this[l](u,e):u.walk(function(c){if(s=c.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Is[i]),u.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return r=i.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var i;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){var i;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return r=i.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(typeof i.raws.between!="undefined")return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before!="undefined"){var a=i.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),Os=oi;oi.default=oi;var Cf=Os;function si(t,n){var o=new Cf(n);o.stringify(t)}var Nr=si;si.default=si;var $r=Le.isClean,If=Le.my,Of=ii,Rf=Os,xf=Nr;function ai(t,n){var o=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r=="undefined"?"undefined":N(r);e==="parent"&&i==="object"?n&&(o[e]=n):e==="source"?o[e]=r:Array.isArray(r)?o[e]=r.map(function(s){return ai(s,o)}):(i==="object"&&r!==null&&(r=ai(r)),o[e]=r)}return o}var ui=function(){function t(o){o===void 0&&(o={}),this.raws={},this[$r]=!1,this[If]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var r=O(o[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ai(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,a=i.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Of(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[$r]){this[$r]=!1;for(var e=this;e=e.parent;)e[$r]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)i[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),i=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){var i=new Rf;return i.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s=this,a=!1,u=O(r),l;!(l=u()).done;){var c=l.value;c===this?a=!0:a?(this.parent.insertAfter(s,c),s=c):this.parent.insertBefore(s,c)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))i[u]=l.map(function(f){return(typeof f=="undefined"?"undefined":N(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof l=="undefined"?"undefined":N(l))==="object"&&l.toJSON)i[u]=l.toJSON(null,r);else if(u==="source"){var c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),i[u]={end:l.end,inputId:c,start:l.start}}else i[u]=l}return s&&(i.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=xf),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var a in i)s[a]=i[a];return e.warn(r,s)},oe(t,[{key:"proxyOf",get:function(){return this}}]),t}(),Dr=ui;ui.default=ui;var Ef=Dr,li=function(t){ue(n,t);function n(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=B({},o,{value:String(o.value)})),e=t.call(this,o)||this,e.type="decl",e}return oe(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Ef),Lr=li;li.default=li;var Af="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Mf=function(t){t===void 0&&(t=21);for(var n="",o=t;o--;)n+=Af[Math.random()*64|0];return n},kf={nanoid:Mf},Rs=ne.SourceMapConsumer,xs=ne.SourceMapGenerator,_f=ne.existsSync,Tf=ne.readFileSync,ci=ne.dirname,Pf=ne.join;function Nf(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var fi=function(){function t(o,e){if(e.map!==!1){this.loadAnnotation(o),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=ci(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Rs(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return Nf(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":N(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=ci(e),_f(e))return this.mapFile=e,Tf(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var i=r(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(T(r,Rs))return xs.fromSourceMap(r).toString();if(T(r,xs))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Pf(ci(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),Es=fi;fi.default=fi;var $f=ne.SourceMapConsumer,Df=ne.SourceMapGenerator,As=ne.fileURLToPath,Fr=ne.pathToFileURL,hi=ne.isAbsolute,di=ne.resolve,Lf=kf.nanoid,pi=ne,Ms=ii,Ff=Es,vi=Symbol("fromOffsetCache"),Bf=!!($f&&Df),ks=!!(di&&hi),Br=function(){function t(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":N(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!ks||/^\w+:\/\//.test(e.from)||hi(e.from)?this.file=e.from:this.file=di(e.from)),ks&&Bf){var r=new Ff(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 "+Lf(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var a,u,l;if(r&&(typeof r=="undefined"?"undefined":N(r))==="object"){var c=r,f=i;if(typeof c.offset=="number"){var h=this.fromOffset(c.offset);r=h.line,i=h.col}else r=c.line,i=c.column;if(typeof f.offset=="number"){var v=this.fromOffset(f.offset);u=v.line,l=v.col}else u=f.line,l=f.column}else if(!i){var d=this.fromOffset(r);r=d.line,i=d.col}var y=this.origin(r,i,u,l);return y?a=new Ms(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Ms(e,u===void 0?r:{column:i,line:r},u===void 0?i:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:i,endColumn:l,endLine:u,line:r,source:this.css},this.file&&(Fr&&(a.input.url=Fr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,i;if(this[vi])i=this[vi];else{var s=this.css.split("\n");i=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)i[u]=a,a+=s[u].length+1;this[vi]=i}r=i[i.length-1];var c=0;if(e>=r)c=i.length-1;else for(var f=i.length-2,h;c<f;)if(h=c+(f-c>>1),e<i[h])f=h-1;else if(e>=i[h+1])c=h+1;else{c=h;break}return{col:e-i[c]+1,line:c+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:di(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var l;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i}));var c;hi(u.source)?c=Fr(u.source):c=new URL(u.source,this.map.consumer().sourceRoot||Fr(this.map.mapFile));var f={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:c.toString()};if(c.protocol==="file:")if(As)f.file=As(c);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=B({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},oe(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),Ur=Br;Br.default=Br,pi&&pi.registerInput&&pi.registerInput(Br);var _s=ne.SourceMapConsumer,zr=ne.SourceMapGenerator,Wr=ne.dirname,Ts=ne.relative,Ps=ne.resolve,Ns=ne.sep,$s=ne.pathToFileURL,Uf=Ur,zf=!!(_s&&zr),Wf=!!(Wr&&Ps&&Ts&&Ns),Gf=function(){function t(o,e,r,i){this.stringify=o,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}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),a=i.root||Wr(i.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new _s(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Wf&&zf&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=zr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new zr({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]},n.generateString=function(){var e=this;this.css="",this.map=new zr({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(c,f,h){if(e.css+=c,f&&h!=="end"&&(a.generated.line=r,a.generated.column=i-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=c.match(/\n/g),u?(r+=u.length,l=c.lastIndexOf("\n"),i=c.length-l):i+=c.length,f&&h!=="start"){var v=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=i-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=i-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Wr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Wr(Ps(i,this.mapOpts.annotation)));var s=Ts(i,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new Uf(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if($s){var i=$s(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Ns==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),Ds=Gf,Vf=Dr,mi=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="comment",e}return n}(Vf),Gr=mi;mi.default=mi;var Ls=Le.isClean,Fs=Le.my,Bs=Lr,Us=Gr,jf=Dr,zs,gi,yi,Ws;function Gs(t){return t.map(function(n){return n.nodes&&(n.nodes=Gs(n.nodes)),delete n.source,n})}function Vs(t){if(t[Ls]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),o;!(o=n()).done;){var e=o.value;Vs(e)}}var ke=function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var a=O(i),u;!(u=a()).done;)for(var l=u.value,c=this.normalize(l,this.last),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=O(this.nodes),s;!(s=i()).done;){var a=s.value;a.cleanRaws(r)}},o.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,a;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[i]+=1;return delete this.indexes[i],a}},o.every=function(r){return this.nodes.every(r)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},o.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var c;return(c=i)[s].apply(c,[].concat(u.map(function(f){return typeof f=="function"?function(h,v){return f(h.toProxy(),v)}:f})))}:s==="every"||s==="some"?function(a){return i[s](function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],c))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,a){return i[s]===a||(i[s]=a,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},o.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},o.insertAfter=function(r,i){var s=this.index(r),a=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),l;!(l=u()).done;){var c=l.value;this.proxyOf.nodes.splice(s+1,0,c)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},o.insertBefore=function(r,i){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(i,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var l=O(u),c;!(c=l()).done;){var f=c.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(r,i){var s=this;if(typeof r=="string")r=Gs(zs(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var c=O(r),f;!(f=c()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Bs(r)]}else if(r.selector)r=[new gi(r)];else if(r.name)r=[new yi(r)];else if(r.text)r=[new Us(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(d){return d[Fs]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Ls]&&Vs(d),typeof d.raws.before=="undefined"&&i&&typeof i.raws.before!="undefined"&&(d.raws.before=i.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var a=O(i),u;!(u=a()).done;){for(var l=u.value,c=this.normalize(l,this.first,"prepend").reverse(),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+c.length}return this.markDirty(),this},o.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},o.removeAll=function(){for(var r=O(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},o.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(a){i.props&&!i.props.includes(a.prop)||i.fast&&!a.value.includes(i.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},o.some=function(r){return this.nodes.some(r)},o.walk=function(r){return this.each(function(i,s){var a;try{a=r(i,s)}catch(u){throw i.addToError(u)}return a!==!1&&i.walk&&(a=i.walk(r)),a})},o.walkAtRules=function(r,i){return i?T(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return i(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="atrule")return i(s,a)}))},o.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},o.walkDecls=function(r,i){return i?T(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return i(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="decl")return i(s,a)}))},o.walkRules=function(r,i){return i?T(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return i(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="rule")return i(s,a)}))},oe(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(jf);ke.registerParse=function(t){zs=t},ke.registerRule=function(t){gi=t},ke.registerAtRule=function(t){yi=t},ke.registerRoot=function(t){Ws=t};var Ye=ke;ke.default=ke,ke.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,yi.prototype):t.type==="rule"?Object.setPrototypeOf(t,gi.prototype):t.type==="decl"?Object.setPrototypeOf(t,Bs.prototype):t.type==="comment"?Object.setPrototypeOf(t,Us.prototype):t.type==="root"&&Object.setPrototypeOf(t,Ws.prototype),t[Fs]=!0,t.nodes&&t.nodes.forEach(function(n){ke.rebuild(n)})};var Yf=Ye,js,Ys,Ft=function(t){ue(n,t);function n(e){var r;return r=t.call(this,B({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.toResult=function(r){r===void 0&&(r={});var i=new js(new Ys,this,r);return i.stringify()},n}(Yf);Ft.registerLazyResult=function(t){js=t},Ft.registerProcessor=function(t){Ys=t};var wi=Ft;Ft.default=Ft;var qs={},Hs=function(n){qs[n]||(qs[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},bi=function(){function t(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,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]}var n=t.prototype;return n.toString=function(){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},t}(),Js=bi;bi.default=bi;var qf=Js,Si=function(){function t(o,e,r){this.processor=o,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new qf(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},oe(t,[{key:"content",get:function(){return this.css}}]),t}(),Ci=Si;Si.default=Si;var Ii=39,Zs=34,Vr=92,Ks=47,jr=10,Bt=32,Yr=12,qr=9,Hr=13,Hf=91,Jf=93,Zf=40,Kf=41,Xf=123,Qf=125,eh=59,th=42,rh=58,nh=64,Jr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ih=/.[\r\n"'(/\\]/,Xs=/[\da-f]/i,oh=function(n,o){o===void 0&&(o={});var e=n.css.valueOf(),r=o.ignoreErrors,i,s,a,u,l,c,f,h,v,d,y=e.length,p=0,g=[],w=[];function b(){return p}function S(x){throw n.error("Unclosed "+x,p)}function C(){return w.length===0&&p>=y}function R(x){if(w.length)return w.pop();if(!(p>=y)){var _=x?x.ignoreUnclosed:!1;switch(i=e.charCodeAt(p),i){case jr:case Bt:case qr:case Hr:case Yr:{s=p;do s+=1,i=e.charCodeAt(s);while(i===Bt||i===jr||i===qr||i===Hr||i===Yr);d=["space",e.slice(p,s)],p=s-1;break}case Hf:case Jf:case Xf:case Qf:case rh:case eh:case Kf:{var U=String.fromCharCode(i);d=[U,U,p];break}case Zf:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==Ii&&v!==Zs&&v!==Bt&&v!==jr&&v!==qr&&v!==Yr&&v!==Hr){s=p;do{if(c=!1,s=e.indexOf(")",s+1),s===-1)if(r||_){s=p;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===Vr;)f-=1,c=!c}while(c);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||ih.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case Ii:case Zs:{a=i===Ii?"'":'"',s=p;do{if(c=!1,s=e.indexOf(a,s+1),s===-1)if(r||_){s=p+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===Vr;)f-=1,c=!c}while(c);d=["string",e.slice(p,s+1),p,s],p=s;break}case nh:{Jr.lastIndex=p+1,Jr.test(e),Jr.lastIndex===0?s=e.length-1:s=Jr.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Vr:{for(s=p,l=!0;e.charCodeAt(s+1)===Vr;)s+=1,l=!l;if(i=e.charCodeAt(s+1),l&&i!==Ks&&i!==Bt&&i!==jr&&i!==qr&&i!==Hr&&i!==Yr&&(s+=1,Xs.test(e.charAt(s)))){for(;Xs.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Bt&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{i===Ks&&e.charCodeAt(p+1)===th?(s=e.indexOf("*/",p+2)+1,s===0&&(r||_?s=e.length:S("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(Zr.lastIndex=p+1,Zr.test(e),Zr.lastIndex===0?s=e.length-1:s=Zr.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function A(x){w.push(x)}return{back:A,endOfFile:C,nextToken:R,position:b}},Qs=Ye,Kr=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],i))},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],i))},n}(Qs),Oi=Kr;Kr.default=Kr,Qs.registerAtRule(Kr);var ea=Ye,ta,ra,ft=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.normalize=function(r,i,s){var a=t.prototype.normalize.call(this,r);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var u=O(a),l;!(l=u()).done;){var c=l.value;c.raws.before=i.raws.before}}return a},o.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},o.toResult=function(r){r===void 0&&(r={});var i=new ta(new ra,this,r);return i.stringify()},n}(ea);ft.registerLazyResult=function(t){ta=t},ft.registerProcessor=function(t){ra=t};var Ut=ft;ft.default=ft,ea.registerRoot(ft);var zt={comma:function(n){return zt.split(n,[","],!0)},space:function(n){var o=[" ","\n"," "];return zt.split(n,o)},split:function(n,o,e){for(var r=[],i="",s=!1,a=0,u=!1,l="",c=!1,f=O(n),h;!(h=f()).done;){var v=h.value;c?c=!1:v==="\\"?c=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=v}return(e||i!=="")&&r.push(i.trim()),r}},na=zt;zt.default=zt;var ia=Ye,sh=na,Xr=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return oe(n,[{key:"selectors",get:function(){return sh.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(ia),Ri=Xr;Xr.default=Xr,ia.registerRule(Xr);var ah=Lr,uh=oh,lh=Gr,ch=Oi,fh=Ut,oa=Ri,sa={empty:!0,space:!0};function hh(t){for(var n=t.length-1;n>=0;n--){var o=t[n],e=o[3]||o[2];if(e)return e}}var dh=function(){function t(o){this.input=o,this.root=new fh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new ch;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,a,u=!1,l=!1,c=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?f.push(i==="("?")":"]"):i==="{"&&f.length>0?f.push("}"):i===f[f.length-1]&&f.pop(),f.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(c.length>0){for(a=c.length-1,s=c[a];s&&s[0]==="space";)s=c[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),u&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,a,u=O(e.entries()),l;!(l=u()).done;){var c=l.value,f=c[0],h=c[1];if(i=h,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(i);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=i}return!1},n.comment=function(e){var r=new lh;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=uh(this.input)},n.decl=function(e,r){var i=new ah;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||hh(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var l=[],c;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",y=f;y>0;y--){var p=v[y][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new oa;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},n.endFile=function(){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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),c=[],f=e;f;){if(i=f[0],c.push(f),i==="("||i==="[")a||(a=f),u.push(i==="("?")":"]");else if(l&&s&&i==="{")a||(a=f),u.push("}");else if(u.length===0)if(i===";")if(s){this.decl(c,l);return}else break;else if(i==="{"){this.rule(c);return}else if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}else i===":"&&(s=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!l)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,l)}else this.unknownWord(c)},n.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var a,u,l=i.length,c="",f=!0,h,v,d=0;d<l;d+=1)a=i[d],u=a[0],u==="space"&&d===l-1&&!s?f=!1:u==="comment"?(v=i[d-1]?i[d-1][0]:"empty",h=i[d+1]?i[d+1][0]:"empty",!sa[v]&&!sa[h]?c.slice(-1)===","?f=!1:c+=a[1]:f=!1):c+=a[1];if(!f){var y=i.reduce(function(p,g){return p+g[1]},"");e.raws[r]={raw:y,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new oa;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),ph=dh,vh=Ye,mh=ph,gh=Ur;function Qr(t,n){var o=new gh(t,n),e=new mh(o);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var xi=Qr;Qr.default=Qr,vh.registerParse(Qr);var Re=Le.isClean,yh=Le.my,wh=Ds,bh=Nr,Sh=Ye,Ch=wi,Ih=Hs,aa=Ci,Oh=xi,Rh=Ut,xh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Eh={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},Ah={Once:!0,postcssPlugin:!0,prepare:!0},ht=0;function Wt(t){return(typeof t=="undefined"?"undefined":N(t))==="object"&&typeof t.then=="function"}function ua(t){var n=!1,o=xh[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[o,o+"-"+n,ht,o+"Exit",o+"Exit-"+n]:n?[o,o+"-"+n,o+"Exit",o+"Exit-"+n]:t.append?[o,ht,o+"Exit"]:[o,o+"Exit"]}function la(t){var n;return t.type==="document"?n=["Document",ht,"DocumentExit"]:t.type==="root"?n=["Root",ht,"RootExit"]:n=ua(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ei(t){return t[Re]=!1,t.nodes&&t.nodes.forEach(function(n){return Ei(n)}),t}var Ai={},dt=function(){function t(o,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":N(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Ei(e);else if(T(e,t)||T(e,aa))s=Ei(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Oh;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[yh]&&Sh.rebuild(s)}this.result=new aa(o,s,r),this.helpers=B({},Ai,{postcss:Ai,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":N(u))==="object"&&u.prepare?B({},u,u.prepare(i.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){var s=i.postcssPlugin,a=i.postcssVersion,u=this.result.processor.version,l=a.split("."),c=u.split(".");(l[0]!==c[0]||parseInt(l[1])>parseInt(c[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(c,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([c,h])},i=O(this.plugins),s;!(s=i()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":N(a))==="object")for(var u in a){if(!Eh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ah[u])if(N(a[u])==="object")for(var l in a[u])l==="*"?r(a,u,a[u][l]):r(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return bn(function(){var r,i,s,a,u,l,c,f,h,v,d,y;return Et(this,function(p){switch(p.label){case 0:e.plugin=0,r=0,p.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!Wt(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Re])return[3,14];u[Re]=!0,l=[la(u)],p.label=8;case 8:if(!(l.length>0))return[3,13];if(c=e.visitTick(l),!Wt(c))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,c];case 10:return p.sent(),[3,12];case 11:throw f=p.sent(),h=l[l.length-1].node,e.handleError(f,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return Et(this,function(R){switch(R.label){case 0:g=y.value,w=g[0],b=g[1],e.result.lastPlugin=w,R.label=1;case 1:return R.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(S)]);case 2:return R.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:R.sent(),R.label=5;case 5:return[3,7];case 6:throw C=R.sent(),e.handleError(C);case 7:return[2]}})},d=O(e.listeners.OnceExit),p.label=15;case 15:return(y=d()).done?[3,18]:[5,oo(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":N(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Wt(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=bh;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new wh(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=O(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if(Wt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Re];)a[Re]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),l;!(l=u()).done;){var c=l.value;this.visitSync(this.listeners.OnceExit,c)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Ih("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(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i=O(e),s;!(s=i()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var c=void 0;try{c=l(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Wt(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],l=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return l(i.toProxy(),this.helpers)}catch(d){throw this.handleError(d,i)}}if(r.iterator!==0){for(var c=r.iterator,f;f=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!f[Re]){f[Re]=!0,e.push(la(f));return}r.iterator=0,delete i.indexes[c]}for(var h=r.events;r.eventIndex<h.length;){var v=h[r.eventIndex];if(r.eventIndex+=1,v===ht){i.nodes&&i.nodes.length&&(i[Re]=!0,r.iterator=i.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}e.pop()},n.walkSync=function(e){var r=this;e[Re]=!0;for(var i=ua(e),s=O(i),a;!(a=s()).done;){var u=a.value;if(u===ht)e.nodes&&e.each(function(c){c[Re]||r.walkSync(c)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},oe(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t}();dt.registerPostcss=function(t){Ai=t};var ca=dt;dt.default=dt,Rh.registerLazyResult(dt),Ch.registerLazyResult(dt);var Mh=Ds,kh=Nr,_h=Hs,Th=xi,Ph=Ci,Mi=function(){function t(o,e,r){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=r,this._map=void 0;var i,s=kh;this.result=new Ph(this._processor,i,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Mh(s,i,this._opts,e);if(u.isMap()){var l=u.generate(),c=l[0],f=l[1];c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||_h("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(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},oe(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=Th;try{e=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t}(),Nh=Mi;Mi.default=Mi;var $h=Nh,Dh=ca,Lh=wi,Fh=Ut,Gt=function(){function t(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=O(e),s;!(s=i()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":N(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new $h(this,e,r):new Dh(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),Bh=Gt;Gt.default=Gt,Fh.registerProcessor(Gt),Lh.registerProcessor(Gt);var Uh=Lr,zh=Es,Wh=Gr,Gh=Oi,Vh=Ur,jh=Ut,Yh=Ri;function Vt(t,n){if(Array.isArray(t))return t.map(function(f){return Vt(f)});var o=t.inputs,e=Rt(t,["inputs"]);if(o){n=[];for(var r=O(o),i;!(i=r()).done;){var s=i.value,a=B({},s,{__proto__:Vh.prototype});a.map&&(a.map=B({},a.map,{__proto__:zh.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Vt(f,n)})),e.source){var u=e.source,l=u.inputId,c=Rt(u,["inputId"]);e.source=c,l!=null&&(e.source.input=n[l])}if(e.type==="root")return new jh(e);if(e.type==="decl")return new Uh(e);if(e.type==="rule")return new Yh(e);if(e.type==="comment")return new Wh(e);if(e.type==="atrule")return new Gh(e);throw new Error("Unknown node type: "+t.type)}var qh=Vt;Vt.default=Vt;var Hh=ii,fa=Lr,Jh=ca,Zh=Ye,ki=Bh,Kh=Nr,Xh=qh,ha=wi,Qh=Js,da=Gr,pa=Oi,ed=Ci,td=Ur,rd=xi,nd=na,va=Ri,ma=Ut,id=Dr;function Y(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ki(n)}Y.plugin=function(n,o){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=n,l.postcssVersion=new ki().version,l}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,a,u){return Y([r(u)]).process(s,a)},r},Y.stringify=Kh,Y.parse=rd,Y.fromJSON=Xh,Y.list=nd,Y.comment=function(t){return new da(t)},Y.atRule=function(t){return new pa(t)},Y.decl=function(t){return new fa(t)},Y.rule=function(t){return new va(t)},Y.root=function(t){return new ma(t)},Y.document=function(t){return new ha(t)},Y.CssSyntaxError=Hh,Y.Declaration=fa,Y.Container=Zh,Y.Processor=ki,Y.Document=ha,Y.Comment=da,Y.Warning=Qh,Y.AtRule=pa,Y.Result=ed,Y.Input=td,Y.Rule=va,Y.Root=ma,Y.Node=id,Jh.registerPostcss(Y);var od=Y;Y.default=Y;var X=mf(od);X.stringify,X.fromJSON,X.plugin,X.parse,X.list,X.document,X.comment,X.atRule,X.rule,X.decl,X.root,X.CssSyntaxError,X.Declaration,X.Container,X.Processor,X.Document,X.Comment,X.Warning,X.AtRule,X.Result,X.Input,X.Rule,X.Root,X.Node;var sd=function(){function t(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];be(this,"parentElement",null),be(this,"parentNode",null),be(this,"ownerDocument"),be(this,"firstChild",null),be(this,"lastChild",null),be(this,"previousSibling",null),be(this,"nextSibling",null),be(this,"ELEMENT_NODE",1),be(this,"TEXT_NODE",3),be(this,"nodeType"),be(this,"nodeName"),be(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(T(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},oe(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t}(),ga={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ya={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},en={},ad=function(){return!!globalThis.Zone};function _i(t){if(en[t])return en[t];var n=globalThis[t],o=n.prototype,e=t in ga?ga[t]:void 0,r=!!(e&&e.every(function(c){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(o,c))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),i=t in ya?ya[t]:void 0,s=!!(i&&i.every(function(c){var f;return typeof o[c]=="function"&&((f=o[c])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!ad())return en[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var l=u[t].prototype;return document.body.removeChild(a),l?en[t]=l:o}catch(c){return o}}var Ti={};function Fe(t,n,o){var e,r=t+"."+String(o);if(Ti[r])return Ti[r].call(n);var i=_i(t),s=(e=Object.getOwnPropertyDescriptor(i,o))==null?void 0:e.get;return s?(Ti[r]=s,s.call(n)):n[o]}var Pi={};function wa(t,n,o){var e=t+"."+String(o);if(Pi[e])return Pi[e].bind(n);var r=_i(t),i=r[o];return typeof i!="function"?n[o]:(Pi[e]=i,i.bind(n))}function ud(t){return Fe("Node",t,"childNodes")}function ld(t){return Fe("Node",t,"parentNode")}function cd(t){return Fe("Node",t,"parentElement")}function fd(t){return Fe("Node",t,"textContent")}function hd(t,n){return wa("Node",t,"contains")(n)}function dd(t){return wa("Node",t,"getRootNode")()}function pd(t){return!t||!("host"in t)?null:Fe("ShadowRoot",t,"host")}function vd(t){return t.styleSheets}function md(t){return!t||!("shadowRoot"in t)?null:Fe("Element",t,"shadowRoot")}function gd(t,n){return Fe("Element",t,"querySelector")(n)}function yd(t,n){return Fe("Element",t,"querySelectorAll")(n)}function ba(){return _i("MutationObserver").constructor}function qe(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var $={childNodes:ud,parentNode:ld,parentElement:cd,textContent:fd,contains:hd,getRootNode:dd,host:pd,styleSheets:vd,shadowRoot:md,querySelector:gd,querySelectorAll:yd,mutationObserver:ba,patch:qe};function ce(t,n,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(t,n,e),function(){return o.removeEventListener(t,n,e)}}var pt="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.",Sa={map:{},getId:function(){return console.error(pt),-1},getNode:function(){return console.error(pt),null},removeNodeFromMap:function(){console.error(pt)},has:function(){return console.error(pt),!1},reset:function(){console.error(pt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Sa=new Proxy(Sa,{get:function(n,o,e){return o==="map"&&console.error(pt),Reflect.get(n,o,e)}}));function jt(t,n,o){o===void 0&&(o={});var e=null,r=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();!r&&o.leading===!1&&(r=u);var l=n-(u-r),c=this;l<=0||l>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(c,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){r=o.leading===!1?0:Date.now(),e=null,t.apply(c,s)},l))}}function tn(t,n,o,e,r){r===void 0&&(r=window);var i=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),i&&i.set&&i.set.call(this,a)}}),function(){return tn(t,n,i||{},!0)}}var rn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(rn=function(){return new Date().getTime()});function Ca(t){var n,o,e,r,i=t.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:i.documentElement.scrollLeft||(i==null?void 0:i.body)&&((n=$.parentElement(i.body))==null?void 0:n.scrollLeft)||((o=i==null?void 0:i.body)==null?void 0:o.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(i==null?void 0:i.documentElement.scrollTop)||(i==null?void 0:i.body)&&((e=$.parentElement(i.body))==null?void 0:e.scrollTop)||((r=i==null?void 0:i.body)==null?void 0:r.scrollTop)||0}}function Ia(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Oa(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ra(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:$.parentElement(t);return n}function fe(t,n,o,e){if(!t)return!1;var r=Ra(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(dr(r,n,e))return!0}catch(i){}return!!(o&&(r.matches(o)||e&&r.closest(o)!==null))}function wd(t,n){return n.getId(t)!==-1}function Ni(t,n,o){return t.tagName==="TITLE"&&o.headTitleMutations?!0:n.getId(t)===kt}function xa(t,n){if(At(t))return!1;var o=n.getId(t);if(!n.has(o))return!0;var e=$.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?xa(e,n):!0}function $i(t){return!!t.changedTouches}function bd(t){t===void 0&&(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)}function Ea(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Aa(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Di(t){return t?T(t,sd)&&"shadowRoot"in t?!!t.shadowRoot:!!$.shadowRoot(t):!1}var Sd=function(){function t(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},t}();function Ma(t){var n,o=null;return"getRootNode"in t&&((n=$.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&$.host($.getRootNode(t))&&(o=$.host($.getRootNode(t))),o}function Cd(t){for(var n=t,o;o=Ma(n);)n=o;return n}function Id(t){var n=t.ownerDocument;if(!n)return!1;var o=Cd(t);return $.contains(n,o)}function ka(t){var n=t.ownerDocument;return n?$.contains(n,t)||Id(t):!1}var D=function(t){return 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}(D||{}),k=function(t){return 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}(k||{}),de=function(t){return 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}(de||{}),_e=function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t}(_e||{}),vt=function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t}(vt||{}),mt=function(t){return 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}(mt||{}),_a=function(t){return 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}(_a||{});function Ta(t){return"__ln"in t}var Od=function(){function t(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,i=0;i<e;i++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Ta(e.previousSibling)){var i=e.previousSibling.__ln.next;r.next=i,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,i&&(i.previous=r)}else if(e.nextSibling&&Ta(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t}(),Pa=function(t,n){return t+"@"+n},Rd=function(){function t(){var o=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),I(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],r=new Set,i=new Od,s=function(M){for(var P=M,G=kt;G===kt;)P=P&&P.nextSibling,G=P&&o.mirror.getId(P);return G},a=function(M){var P=$.parentNode(M);if(!(!P||!ka(M))){var G=!1;if(M.nodeType===Node.TEXT_NODE){var pe=P.tagName;if(pe==="TEXTAREA")return;pe==="STYLE"&&o.addedSet.has(P)&&(G=!0)}var V=At(P)?o.mirror.getId(Ma(M)):o.mirror.getId(P),ge=s(M);if(V===-1||ge===-1)return i.addNode(M);var he=at(M,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(Q){Ea(Q,o.mirror)&&o.iframeManager.addIframe(Q),Aa(Q,o.mirror)&&o.stylesheetManager.trackLinkElement(Q),Di(M)&&o.shadowDomManager.addShadowRoot($.shadowRoot(M),o.doc)},onIframeLoad:function(Q,ae){o.iframeManager.attachIframe(Q,ae),o.shadowDomManager.observeAttachShadow(Q)},onStylesheetLoad:function(Q,ae){o.stylesheetManager.attachLinkElement(Q,ae)},cssCaptured:G});he&&(e.push({parentId:V,nextId:ge,node:he}),r.add(he.id))}};o.mapRemoves.length;)o.mirror.removeNodeFromMap(o.mapRemoves.shift());for(var u=O(o.movedSet),l;!(l=u()).done;){var c=l.value;Na(o.removesSubTreeCache,c,o.mirror)&&!o.movedSet.has($.parentNode(c))||a(c)}for(var f=O(o.addedSet),h;!(h=f()).done;){var v=h.value;!$a(o.droppedSet,v)&&!Na(o.removesSubTreeCache,v,o.mirror)||$a(o.movedSet,v)?a(v):o.droppedSet.add(v)}for(var d=null;i.length;){var y=null;if(d){var p=o.mirror.getId($.parentNode(d.value)),g=s(d.value);p!==-1&&g!==-1&&(y=d)}if(!y)for(var w=i.tail;w;){var b=w;if(w=w.previous,b){var S=o.mirror.getId($.parentNode(b.value)),C=s(b.value);if(C===-1)continue;if(S!==-1){y=b;break}else{var R=b.value,A=$.parentNode(R);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var x=$.host(A),_=o.mirror.getId(x);if(_!==-1){y=b;break}}}}}if(!y){for(;i.head;)i.removeNode(i.head.value);break}d=y.previous,i.removeNode(y.value),a(y.value)}var U={texts:o.texts.map(function(M){var P=M.node,G=$.parentNode(P);return G&&G.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(G),{id:o.mirror.getId(P),value:M.value}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return o.mirror.has(M.id)}),attributes:o.attributes.map(function(M){var P=M.attributes;if(typeof P.style=="string"){var G=JSON.stringify(M.styleDiff),pe=JSON.stringify(M._unchangedStyles);G.length<P.style.length&&(G+pe).split("var(").length===P.style.split("var(").length&&(P.style=M.styleDiff)}return{id:o.mirror.getId(M.node),attributes:P}}).filter(function(M){return!r.has(M.id)}).filter(function(M){return o.mirror.has(M.id)}),removes:o.removes,adds:e};!U.texts.length&&!U.attributes.length&&!U.removes.length&&!U.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(U))}}),I(this,"genTextAreaValueMutation",function(e){var r=o.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(r),o.attributeMap.set(e,r));var i=Array.from($.childNodes(e),function(s){return $.textContent(s)||""}).join("");r.attributes.value=lr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:cr(e),value:i,maskInputFn:o.maskInputFn})}),I(this,"processMutation",function(e){if(!Ni(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var r=$.textContent(e.target);!fe(e.target,o.blockClass,o.blockSelector,!1)&&r!==e.oldValue&&o.texts.push({value:Co(e.target,o.maskTextClass,o.maskTextSelector,!0)&&r?o.maskTextFn?o.maskTextFn(r,Ra(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var i=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=cr(i);a=lr({element:i,maskInputOptions:o.maskInputOptions,tagName:i.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(fe(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var l=o.attributeMap.get(e.target);if(i.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!i.contentDocument)s="rr_src";else return;if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(l),o.attributeMap.set(e.target,l)),s==="type"&&i.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&i.setAttribute("data-rr-is-password","true"),!So(i.tagName,s))if(l.attributes[s]=bo(o.doc,Ve(i.tagName),Ve(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){o.unattachedDoc=o.doc}var c=o.unattachedDoc.createElement("span");e.oldValue&&c.setAttribute("style",e.oldValue);for(var f=O(Array.from(i.style)),h;!(h=f()).done;){var v=h.value,d=i.style.getPropertyValue(v),y=i.style.getPropertyPriority(v);d!==c.style.getPropertyValue(v)||y!==c.style.getPropertyPriority(v)?y===""?l.styleDiff[v]=d:l.styleDiff[v]=[d,y]:l._unchangedStyles[v]=[d,y]}for(var p=O(Array.from(c.style)),g;!(g=p()).done;){var w=g.value;i.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else s==="open"&&i.tagName==="DIALOG"&&(i.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(fe(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return o.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var S=o.mirror.getId(b),C=At(e.target)?o.mirror.getId($.host(e.target)):o.mirror.getId(e.target);fe(e.target,o.blockClass,o.blockSelector,!1)||Ni(b,o.mirror,o.slimDOMOptions)||!wd(b,o.mirror)||(o.addedSet.has(b)?(Li(o.addedSet,b),o.droppedSet.add(b)):o.addedSet.has(e.target)&&S===-1||xa(e.target,o.mirror)||(o.movedSet.has(b)&&o.movedMap[Pa(S,C)]?Li(o.movedSet,b):(o.removes.push({parentId:C,id:S,isShadow:At(e.target)&&Mt(e.target)?!0:void 0}),xd(b,o.removesSubTreeCache))),o.mapRemoves.push(b))});break}}}),I(this,"genAdds",function(e,r){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(Ni(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var i=null;r&&o.mirror.hasNode(r)&&(i=o.mirror.getId(r)),i&&i!==-1&&(o.movedMap[Pa(o.mirror.getId(e),i)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);fe(e,o.blockClass,o.blockSelector,!1)||($.childNodes(e).forEach(function(s){return o.genAdds(s)}),Di(e)&&$.childNodes($.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}})}var n=t.prototype;return n.init=function(e){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(i){r[i]=e[i]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t}();function Li(t,n){t.delete(n),$.childNodes(n).forEach(function(o){return Li(t,o)})}function xd(t,n){for(var o=[t];o.length;){var e=o.pop();n.has(e)||(n.add(e),$.childNodes(e).forEach(function(r){return o.push(r)}))}}function Na(t,n,o){return t.size===0?!1:Ed(t,n)}function Ed(t,n,o){var e=$.parentNode(n);return e?t.has(e):!1}function $a(t,n){return t.size===0?!1:Da(t,n)}function Da(t,n){var o=$.parentNode(n);return o?t.has(o)?!0:Da(t,o):!1}var Yt;function Ad(t){Yt=t}function Md(){Yt=void 0}var F=function(t){if(!Yt)return t;var n=function(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(i){if(Yt&&Yt(i)===!0)return;throw i}};return n},He=[];function qt(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(o){}return t&&t.target}function La(t,n){var o=new Rd;He.push(o),o.init(t);var e=new(ba())(F(o.processMutations.bind(o)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function kd(t){var n=t.mousemoveCb,o=t.sampling,e=t.doc,r=t.mirror;if(o.mousemove===!1)return function(){};var i=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,l=jt(F(function(h){var v=Date.now()-u;n(a.map(function(d){return d.timeOffset-=v,d}),h),a=[],u=null}),s),c=F(jt(F(function(h){var v=qt(h),d=$i(h)?h.changedTouches[0]:h,y=d.clientX,p=d.clientY;u||(u=rn()),a.push({x:y,y:p,id:r.getId(v),timeOffset:rn()-u}),l(typeof DragEvent!="undefined"&&T(h,DragEvent)?k.Drag:T(h,MouseEvent)?k.MouseMove:k.TouchMove)}),i,{trailing:!1})),f=[ce("mousemove",c,e),ce("touchmove",c,e),ce("drag",c,e)];return F(function(){f.forEach(function(h){return h()})})}function _d(t){var n=t.mouseInteractionCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],l=null,c=function(f){return function(h){var v=qt(h);if(!fe(v,r,i,!0)){var d=null,y=f;if("pointerType"in h){switch(h.pointerType){case"mouse":d=_e.Mouse;break;case"touch":d=_e.Touch;break;case"pen":d=_e.Pen;break}d===_e.Touch?de[f]===de.MouseDown?y="TouchStart":de[f]===de.MouseUp&&(y="TouchEnd"):_e.Pen}else $i(h)&&(d=_e.Touch);d!==null?(l=d,(y.startsWith("Touch")&&d===_e.Touch||y.startsWith("Mouse")&&d===_e.Mouse)&&(d=null)):de[f]===de.Click&&(d=l,l=null);var p=$i(h)?h.changedTouches[0]:h;if(p){var g=e.getId(v),w=p.clientX,b=p.clientY;F(n)(B({type:de[y],id:g,x:w,y:b},d!==null&&{pointerType:d}))}}}};return Object.keys(de).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var h=Ve(f),v=c(f);if(window.PointerEvent)switch(de[f]){case de.MouseDown:case de.MouseUp:h=h.replace("mouse","pointer");break;case de.TouchStart:case de.TouchEnd:return}u.push(ce(h,v,o))}),F(function(){u.forEach(function(f){return f()})})}function Fa(t){var n=t.scrollCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling,a=F(jt(F(function(u){var l=qt(u);if(!(!l||fe(l,r,i,!0))){var c=e.getId(l);if(l===o&&o.defaultView){var f=Ca(o.defaultView);n({id:c,x:f.left,y:f.top})}else n({id:c,x:l.scrollLeft,y:l.scrollTop})}}),s.scroll||100));return ce("scroll",a,o)}function Td(t,n){var o=t.viewportResizeCb,e=n.win,r=-1,i=-1,s=F(jt(F(function(){var a=Ia(),u=Oa();(r!==a||i!==u)&&(o({width:Number(u),height:Number(a)}),r=a,i=u)}),200));return ce("resize",s,e)}var Pd=["INPUT","TEXTAREA","SELECT"],Ba=new WeakMap;function Nd(t){var n=t.inputCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,l=t.maskInputFn,c=t.sampling,f=t.userTriggeredOnInput;function h(S){var C=qt(S),R=S.isTrusted,A=C&&C.tagName;if(C&&A==="OPTION"&&(C=$.parentElement(C)),!(!C||!A||Pd.indexOf(A)<0||fe(C,r,i,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var x=C.value,_=!1,U=cr(C)||"";U==="radio"||U==="checkbox"?_=C.checked:(u[A.toLowerCase()]||u[U])&&(x=lr({element:C,maskInputOptions:u,tagName:A,type:U,value:x,maskInputFn:l})),v(C,f?{text:x,isChecked:_,userTriggered:R}:{text:x,isChecked:_});var M=C.name;U==="radio"&&M&&_&&o.querySelectorAll('input[type="radio"][name="'+M+'"]').forEach(function(P){if(P!==C){var G=P.value;v(P,f?{text:G,isChecked:!_,userTriggered:!1}:{text:G,isChecked:!_})}})}}function v(S,C){var R=Ba.get(S);if(!R||R.text!==C.text||R.isChecked!==C.isChecked){Ba.set(S,C);var A=e.getId(S);F(n)(B({},C,{id:A}))}}var d=c.input==="last"?["change"]:["input","change"],y=d.map(function(S){return ce(S,F(h),o)}),p=o.defaultView;if(!p)return function(){y.forEach(function(S){return S()})};var g=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),w=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var b;(b=y).push.apply(b,[].concat(w.map(function(S){return tn(S[0],S[1],{set:function(){F(h)({target:this,isTrusted:!1})}},!1,p)})))}return F(function(){y.forEach(function(S){return S()})})}function nn(t){var n=[];function o(e,r){if(on("CSSGroupingRule")&&T(e.parentRule,CSSGroupingRule)||on("CSSMediaRule")&&T(e.parentRule,CSSMediaRule)||on("CSSSupportsRule")&&T(e.parentRule,CSSSupportsRule)||on("CSSConditionRule")&&T(e.parentRule,CSSConditionRule)){var i=Array.from(e.parentRule.cssRules),s=i.indexOf(e);r.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return o(t,n)}function Be(t,n,o){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=o.getId(t),{styleId:r,id:e}):{}}function $d(t,n){var o=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,i=n.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:F(function(h,v,d){var y=d[0],p=d[1],g=Be(v,e,r.styleMirror),w=g.id,b=g.styleId;return(w&&w!==-1||b&&b!==-1)&&o({id:w,styleId:b,adds:[{rule:y,index:p}]}),h.apply(v,d)})}),i.CSSStyleSheet.prototype.addRule=function(h,v,d){d===void 0&&(d=this.cssRules.length);var y=h+" { "+v+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[y,d])};var a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:F(function(h,v,d){var y=d[0],p=Be(v,e,r.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,removes:[{index:y}]}),h.apply(v,d)})}),i.CSSStyleSheet.prototype.removeRule=function(h){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:F(function(h,v,d){var y=d[0],p=Be(v,e,r.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replace:y}),h.apply(v,d)})}));var l;i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:F(function(h,v,d){var y=d[0],p=Be(v,e,r.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replaceSync:y}),h.apply(v,d)})}));var c={};sn("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(sn("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),sn("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),sn("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(c).forEach(function(h){var v=h[0],d=h[1];f[v]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(f[v].insertRule,{apply:F(function(y,p,g){var w=g[0],b=g[1],S=Be(p.parentStyleSheet,e,r.styleMirror),C=S.id,R=S.styleId;return(C&&C!==-1||R&&R!==-1)&&o({id:C,styleId:R,adds:[{rule:w,index:[].concat(nn(p),[b||0])}]}),y.apply(p,g)})}),d.prototype.deleteRule=new Proxy(f[v].deleteRule,{apply:F(function(y,p,g){var w=g[0],b=Be(p.parentStyleSheet,e,r.styleMirror),S=b.id,C=b.styleId;return(S&&S!==-1||C&&C!==-1)&&o({id:S,styleId:C,removes:[{index:[].concat(nn(p),[w])}]}),y.apply(p,g)})})}),F(function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,u&&(i.CSSStyleSheet.prototype.replace=u),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(function(h){var v=h[0],d=h[1];d.prototype.insertRule=f[v].insertRule,d.prototype.deleteRule=f[v].deleteRule})})}function Ua(t,n){var o=t.mirror,e=t.stylesheetManager,r,i,s,a=null;n.nodeName==="#document"?a=o.getId(n):a=o.getId($.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(i=n.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.ShadowRoot,l=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!l?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var f;return(f=l.get)==null?void 0:f.call(this)},set:function(f){var h,v=(h=l.set)==null?void 0:h.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(d){}return v}}),F(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function Dd(t,n){var o=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,i=t.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:F(function(l,c,f){var h,v=f[0],d=f[1],y=f[2];if(r.has(v))return a.apply(c,[v,d,y]);var p=Be((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,i.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,set:{property:v,value:d,priority:y},index:nn(c.parentRule)}),l.apply(c,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:F(function(l,c,f){var h,v=f[0];if(r.has(v))return u.apply(c,[v]);var d=Be((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,i.styleMirror),y=d.id,p=d.styleId;return(y&&y!==-1||p&&p!==-1)&&o({id:y,styleId:p,remove:{property:v},index:nn(c.parentRule)}),l.apply(c,f)})}),F(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Ld(t){var n=t.mediaInteractionCb,o=t.blockClass,e=t.blockSelector,r=t.mirror,i=t.sampling,s=t.doc,a=F(function(l){return jt(F(function(c){var f=qt(c);if(!(!f||fe(f,o,e,!0))){var h=f.currentTime,v=f.volume,d=f.muted,y=f.playbackRate,p=f.loop;n({type:l,id:r.getId(f),currentTime:h,volume:v,muted:d,playbackRate:y,loop:p})}}),i.media||500)}),u=[ce("play",a(mt.Play),s),ce("pause",a(mt.Pause),s),ce("seeked",a(mt.Seeked),s),ce("volumechange",a(mt.VolumeChange),s),ce("ratechange",a(mt.RateChange),s)];return F(function(){u.forEach(function(l){return l()})})}function Fd(t){var n=t.fontCb,o=t.doc,e=o.defaultView;if(!e)return function(){};var r=[],i=new WeakMap,s=e.FontFace;e.FontFace=function(l,c,f){var h=new s(l,c,f);return i.set(h,{family:l,buffer:typeof c!="string",descriptors:f,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),h};var a=qe(o.fonts,"add",function(u){return function(l){return setTimeout(F(function(){var c=i.get(l);c&&(n(c),i.delete(l))}),0),u.apply(this,[l])}});return r.push(function(){e.FontFace=s}),r.push(a),F(function(){r.forEach(function(u){return u()})})}function Bd(t){var n=t.doc,o=t.mirror,e=t.blockClass,r=t.blockSelector,i=t.selectionCb,s=!0,a=F(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var l=[],c=u.rangeCount||0,f=0;f<c;f++){var h=u.getRangeAt(f),v=h.startContainer,d=h.startOffset,y=h.endContainer,p=h.endOffset,g=fe(v,e,r,!0)||fe(y,e,r,!0);g||l.push({start:o.getId(v),startOffset:d,end:o.getId(y),endOffset:p})}i({ranges:l})}});return a(),ce("selectionchange",a)}function Ud(t){var n=t.doc,o=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=qe(e.customElements,"define",function(i){return function(s,a,u){try{o({define:{name:s}})}catch(l){console.warn("Custom element callback failed for "+s)}return i.apply(this,[s,a,u])}});return r}function zd(t,n){var o=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,i=t.scrollCb,s=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,l=t.styleSheetRuleCb,c=t.styleDeclarationCb,f=t.canvasMutationCb,h=t.fontCb,v=t.selectionCb,d=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.mutation){var w;(w=n).mutation.apply(w,[].concat(p))}o.apply(void 0,[].concat(p))},t.mousemoveCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.mousemove){var w;(w=n).mousemove.apply(w,[].concat(p))}e.apply(void 0,[].concat(p))},t.mouseInteractionCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.mouseInteraction){var w;(w=n).mouseInteraction.apply(w,[].concat(p))}r.apply(void 0,[].concat(p))},t.scrollCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.scroll){var w;(w=n).scroll.apply(w,[].concat(p))}i.apply(void 0,[].concat(p))},t.viewportResizeCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.viewportResize){var w;(w=n).viewportResize.apply(w,[].concat(p))}s.apply(void 0,[].concat(p))},t.inputCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.input){var w;(w=n).input.apply(w,[].concat(p))}a.apply(void 0,[].concat(p))},t.mediaInteractionCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.mediaInteaction){var w;(w=n).mediaInteaction.apply(w,[].concat(p))}u.apply(void 0,[].concat(p))},t.styleSheetRuleCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.styleSheetRule){var w;(w=n).styleSheetRule.apply(w,[].concat(p))}l.apply(void 0,[].concat(p))},t.styleDeclarationCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.styleDeclaration){var w;(w=n).styleDeclaration.apply(w,[].concat(p))}c.apply(void 0,[].concat(p))},t.canvasMutationCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.canvasMutation){var w;(w=n).canvasMutation.apply(w,[].concat(p))}f.apply(void 0,[].concat(p))},t.fontCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.font){var w;(w=n).font.apply(w,[].concat(p))}h.apply(void 0,[].concat(p))},t.selectionCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.selection){var w;(w=n).selection.apply(w,[].concat(p))}v.apply(void 0,[].concat(p))},t.customElementCb=function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];if(n.customElement){var w;(w=n).customElement.apply(w,[].concat(p))}d.apply(void 0,[].concat(p))}}function Wd(t,n){n===void 0&&(n={});var o=t.doc.defaultView;if(!o)return function(){};zd(t,n);var e;t.recordDOM&&(e=La(t,t.doc));var r=kd(t),i=_d(t),s=Fa(t),a=Td(t,{win:o}),u=Nd(t),l=Ld(t),c=function(){},f=function(){},h=function(){},v=function(){};t.recordDOM&&(c=$d(t,{win:o}),f=Ua(t,t.doc),h=Dd(t,{win:o}),t.collectFonts&&(v=Fd(t)));for(var d=Bd(t),y=Ud(t),p=[],g=O(t.plugins),w;!(w=g()).done;){var b=w.value;p.push(b.observer(b.callback,o,b.options))}return F(function(){He.forEach(function(S){return S.reset()}),e==null||e.disconnect(),r(),i(),s(),a(),u(),l(),c(),f(),h(),v(),d(),y(),p.forEach(function(S){return S()})})}function on(t){return typeof window[t]!="undefined"}function sn(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var za=function(){function t(o){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var n=t.prototype;return n.getId=function(e,r,i,s){var a=i||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),l=a.get(r);return l||(l=this.generateIdFn(),a.set(r,l),u.set(l,r)),l},n.getIds=function(e,r){var i=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return i.getId(e,u,s,a)})},n.getRemoteId=function(e,r,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(e,r){var i=this,s=this.getRemoteIdToIdMap(e);return r.map(function(a){return i.getRemoteId(e,a,s)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t}(),Gd=function(){function t(o){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new za(go)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new za(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=e.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var i=e.source;if(i){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var i=this,s;switch(r.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:D.IncrementalSnapshot,data:{source:k.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return r;case D.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case D.IncrementalSnapshot:switch(r.data.source){case k.Mutation:return r.data.adds.forEach(function(u){i.replaceIds(u,e,["parentId","nextId","previousId"]),i.replaceIdOnNode(u.node,e);var l=i.crossOriginIframeRootIdMap.get(e);l&&i.patchRootIdOnNode(u.node,l)}),r.data.removes.forEach(function(u){i.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){i.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){i.replaceIds(u,e,["id"])}),r;case k.Drag:case k.TouchMove:case k.MouseMove:return r.data.positions.forEach(function(u){i.replaceIds(u,e,["id"])}),r;case k.ViewportResize:return!1;case k.MediaInteraction:case k.MouseInteraction:case k.Scroll:case k.CanvasMutation:case k.Input:return this.replaceIds(r.data,e,["id"]),r;case k.StyleSheetRule:case k.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case k.Font:return r;case k.Selection:return r.data.ranges.forEach(function(u){i.replaceIds(u,e,["start","end"])}),r;case k.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){i.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,i,s){for(var a=O(s),u;!(u=a()).done;){var l=u.value;!Array.isArray(r[l])&&typeof r[l]!="number"||(Array.isArray(r[l])?r[l]=e.getIds(i,r[l]):r[l]=e.getId(i,r[l]))}return r},n.replaceIds=function(e,r,i){return this.replace(this.crossOriginIframeMirror,e,r,i)},n.replaceStyleIds=function(e,r,i){return this.replace(this.crossOriginIframeStyleMirror,e,r,i)},n.replaceIdOnNode=function(e,r){var i=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){i.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(e,r){var i=this;e.type!==_a.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){i.patchRootIdOnNode(s,r)})},t}(),Vd=function(){function t(o){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var i=this;if(Mt(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=La(B({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Fa(B({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,i.mirror.getId($.host(e))),i.restoreHandlers.push(Ua({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var i=this;this.restoreHandlers.push(qe(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),l=$.shadowRoot(this);return l&&ka(this)&&i.addShadowRoot(l,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t}(),gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jd=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),an=0;an<gt.length;an++)jd[gt.charCodeAt(an)]=an;var Yd=function(n){var o=new Uint8Array(n),e,r=o.length,i="";for(e=0;e<r;e+=3)i+=gt[o[e]>>2],i+=gt[(o[e]&3)<<4|o[e+1]>>4],i+=gt[(o[e+1]&15)<<2|o[e+2]>>6],i+=gt[o[e+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Wa=new Map;function qd(t,n){var o=Wa.get(t);return o||(o=new Map,Wa.set(t,o)),o.has(n)||o.set(n,[]),o.get(n)}var Ga=function(t,n,o){if(!(!t||!(ja(t,n)||(typeof t=="undefined"?"undefined":N(t))==="object"))){var e=t.constructor.name,r=qd(o,e),i=r.indexOf(t);return i===-1&&(i=r.length,r.push(t)),i}};function un(t,n,o){if(T(t,Array))return t.map(function(d){return un(d,n,o)});if(t===null)return t;if(T(t,Float32Array)||T(t,Float64Array)||T(t,Int32Array)||T(t,Uint32Array)||T(t,Uint8Array)||T(t,Uint16Array)||T(t,Int16Array)||T(t,Int8Array)||T(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(T(t,ArrayBuffer)){var r=t.constructor.name,i=Yd(t);return{rr_type:r,base64:i}}else if(T(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[un(t.buffer,n,o),t.byteOffset,t.byteLength]}}else if(T(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(T(t,HTMLCanvasElement)){var l="HTMLImageElement",c=t.toDataURL();return{rr_type:l,src:c}}else if(T(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[un(t.data,n,o),t.width,t.height]}}else if(ja(t,n)||(typeof t=="undefined"?"undefined":N(t))==="object"){var h=t.constructor.name,v=Ga(t,n,o);return{rr_type:h,index:v}}return t}var Va=function(t,n,o){return t.map(function(e){return un(e,n,o)})},ja=function(t,n){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return T(t,n[r])})};function Hd(t,n,o,e){for(var r=function(){var l=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var c=qe(n.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var v=this,d=arguments.length,y=new Array(d),p=0;p<d;p++)y[p]=arguments[p];return fe(this.canvas,o,e,!0)||setTimeout(function(){var g=Va(y,n,v);t(v.canvas,{type:vt["2D"],property:l,args:g})},0),h.apply(this,y)}});i.push(c)}catch(h){var f=tn(n.CanvasRenderingContext2D.prototype,l,{set:function(d){t(this.canvas,{type:vt["2D"],property:l,args:[d],setter:!0})}});i.push(f)}},i=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=O(s),u;!(u=a()).done;)r();return function(){i.forEach(function(l){return l()})}}function Jd(t){return t==="experimental-webgl"?"webgl":t}function Ya(t,n,o,e){var r=[];try{var i=qe(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];if(!fe(this,n,o,!0)){var f=Jd(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(l[0]&&N(l[0])==="object"){var h=l[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],l))}});r.push(i)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function qa(t,n,o,e,r,i){for(var s=function(){var f=c.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var h=qe(t,f,function(d){return function(){for(var y=arguments.length,p=new Array(y),g=0;g<y;g++)p[g]=arguments[g];var w=d.apply(this,p);if(Ga(w,i,this),"tagName"in this.canvas&&!fe(this.canvas,e,r,!0)){var b=Va(p,i,this),S={type:n,property:f,args:b};o(this.canvas,S)}return w}});a.push(h)}catch(d){var v=tn(t,f,{set:function(p){o(this.canvas,{type:n,property:f,args:[p],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(t),l=O(u),c;!(c=l()).done;)s();return a}function Zd(t,n,o,e){var r,i=[];if((r=i).push.apply(r,[].concat(qa(n.WebGLRenderingContext.prototype,vt.WebGL,t,o,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=i).push.apply(s,[].concat(qa(n.WebGL2RenderingContext.prototype,vt.WebGL2,t,o,e,n)))}return function(){i.forEach(function(a){return a()})}}var Ha="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Kd=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},Ja=typeof window!="undefined"&&window.Blob&&new Blob([Kd(Ha)],{type:"text/javascript;charset=utf-8"});function Xd(t){var n;try{if(n=Ja&&(window.URL||window.webkitURL).createObjectURL(Ja),!n)throw"";var o=new Worker(n,{name:t==null?void 0:t.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),o}catch(e){return new Worker("data:text/javascript;base64,"+Ha,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Qd=function(){function t(o){var e=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(f,h){var v=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(v||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(f)||e.pendingCanvasMutations.set(f,[]),e.pendingCanvasMutations.get(f).push(h)});var r=o.sampling,i=r===void 0?"all":r,s=o.win,a=o.blockClass,u=o.blockSelector,l=o.recordCanvas,c=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&i==="all"&&this.initCanvasMutationObserver(s,a,u),l&&typeof i=="number"&&this.initCanvasFPSObserver(i,s,a,u,{dataURLOptions:c})}var n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,i,s,a){var u=this,l=Ya(r,i,s,!0),c=new Map,f=new Xd;f.onmessage=function(g){var w=g.data.id;if(c.set(w,!1),"base64"in g.data){var b=g.data,S=b.base64,C=b.type,R=b.width,A=b.height;u.mutationCb({id:w,type:vt["2D"],commands:[{property:"clearRect",args:[0,0,R,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,d,y=function(){var g=[];return r.document.querySelectorAll("canvas").forEach(function(w){fe(w,i,s,!0)||g.push(w)}),g},p=function(g){if(v&&g-v<h){d=requestAnimationFrame(p);return}v=g;var w=u;y().forEach(bn(function(b){var S,C,R,A;return Et(this,function(x){switch(x.label){case 0:return C=w.mirror.getId(b),c.get(C)?[2]:b.width===0||b.height===0?[2]:(c.set(C,!0),["webgl","webgl2"].includes(b.__context)&&(R=b.getContext(b.__context),((S=R==null?void 0:R.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&R.clear(R.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return A=x.sent(),f.postMessage({id:C,bitmap:A,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),d=requestAnimationFrame(p)};d=requestAnimationFrame(p),this.resetObservers=function(){l(),cancelAnimationFrame(d)}},n.initCanvasMutationObserver=function(e,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Ya(e,r,i,!1),a=Hd(this.processMutation.bind(this),e,r,i),u=Zd(this.processMutation.bind(this),e,r,i);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(i){e.rafStamps.latestId=i,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,i){var s=e.mirror.getId(i);e.flushPendingCanvasMutationFor(i,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var i=this.pendingCanvasMutations.get(e);if(!(!i||r===-1)){var s=i.map(function(u){u.type;var l=Rt(u,["type"]);return l}),a=i[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t}(),ep=function(){function t(o){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new Sd),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var i,s=function(){var f=c.value,h=void 0;i.styleMirror.has(f)?h=i.styleMirror.getId(f):(h=i.styleMirror.add(f),u.push({styleId:h,rules:Array.from(f.rules||CSSRule,function(v,d){return{rule:ho(v,f.href),index:d}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],l=O(e),c;!(c=l()).done;)i=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(e){},t}(),tp=function(){function t(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var i=this.nodeMap.get(e);return i&&Array.from(i).some(function(s){return s!==r})},n.add=function(e,r){var i=this;this.active||(this.active=!0,requestAnimationFrame(function(){i.nodeMap=new WeakMap,i.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t}(),te,ln,Fi,cn=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Bi=document.createElement("iframe");document.body.appendChild(Bi),Array.from=((so=Bi.contentWindow)==null?void 0:so.Array.from)||Array.from,document.body.removeChild(Bi)}}catch(t){console.debug("Unable to override Array.from",t)}var Se=Xu();function Ue(t){t===void 0&&(t={});var n=t.emit,o=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,i=r===void 0?"rr-block":r,s=t.blockSelector,a=s===void 0?null:s,u=t.ignoreClass,l=u===void 0?"rr-ignore":u,c=t.ignoreSelector,f=c===void 0?null:c,h=t.maskTextClass,v=h===void 0?"rr-mask":h,d=t.maskTextSelector,y=d===void 0?null:d,p=t.inlineStylesheet,g=p===void 0?!0:p,w=t.maskAllInputs,b=t.maskInputOptions,S=t.slimDOMOptions,C=t.maskInputFn,R=t.maskTextFn,A=t.hooks,x=t.packFn,_=t.sampling,U=_===void 0?{}:_,M=t.dataURLOptions,P=M===void 0?{}:M,G=t.mousemoveWait,pe=t.recordDOM,V=pe===void 0?!0:pe,ge=t.recordCanvas,he=ge===void 0?!1:ge,Q=t.recordCrossOriginIframes,ae=Q===void 0?!1:Q,ye=t.recordAfter,Ze=ye===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":ye,Ae=t.userTriggeredOnInput,St=Ae===void 0?!1:Ae,we=t.collectFonts,Ke=we===void 0?!1:we,z=t.inlineImages,Xe=z===void 0?!1:z,Qe=t.plugins,Ct=t.keepIframeSrcFn,rr=Ct===void 0?function(){return!1}:Ct,nr=t.ignoreCSSAttributes,Xi=nr===void 0?new Set([]):nr,yn=t.errorHandler;Ad(yn);var Ge=ae?window.parent===window:!0,et=!1;if(!Ge)try{window.parent.document&&(et=!1)}catch(q){et=!0}if(Ge&&!n)throw new Error("emit function is required");if(!Ge&&!et)return function(){};G!==void 0&&U.mousemove===void 0&&(U.mousemove=G),Se.reset();var It=w===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b!==void 0?b:{password:!0},ir=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};bd();var Ot,tt=0,Ne=function(q){for(var ve=O(Qe||[]),E;!(E=ve()).done;){var ee=E.value;ee.eventProcessor&&(q=ee.eventProcessor(q))}return x&&!et&&(q=x(q)),q};te=function(q,ve){var E,ee=q;if(ee.timestamp=rn(),(E=He[0])!=null&&E.isFrozen()&&ee.type!==D.FullSnapshot&&!(ee.type===D.IncrementalSnapshot&&ee.data.source===k.Mutation)&&He.forEach(function(Lp){return Lp.unfreeze()}),Ge)n==null||n(Ne(ee),ve);else if(et){var Np={type:"rrweb",event:Ne(ee),origin:window.location.origin,isCheckout:ve};window.parent.postMessage(Np,"*")}if(ee.type===D.FullSnapshot)Ot=ee,tt=0;else if(ee.type===D.IncrementalSnapshot){if(ee.data.source===k.Mutation&&ee.data.isAttachIframe)return;tt++;var $p=e&&tt>=e,Dp=o&&ee.timestamp-Ot.timestamp>o;($p||Dp)&&ln(!0)}};for(var rt=function(q){te({type:D.IncrementalSnapshot,data:B({source:k.Mutation},q)})},Su=function(q){return te({type:D.IncrementalSnapshot,data:B({source:k.Scroll},q)})},Cu=function(q){return te({type:D.IncrementalSnapshot,data:B({source:k.CanvasMutation},q)})},Tp=function(q){return te({type:D.IncrementalSnapshot,data:B({source:k.AdoptedStyleSheet},q)})},nt=new ep({mutationCb:rt,adoptedStyleSheetCb:Tp}),it=new Gd({mirror:Se,mutationCb:rt,stylesheetManager:nt,recordCrossOriginIframes:ae,wrappedEmit:te}),Pp=O(Qe||[]),Iu;!(Iu=Pp()).done;){var Ou=Iu.value;Ou.getMirror&&Ou.getMirror({nodeMirror:Se,crossOriginIframeMirror:it.crossOriginIframeMirror,crossOriginIframeStyleMirror:it.crossOriginIframeStyleMirror})}var Qi=new tp;Fi=new Qd({recordCanvas:he,mutationCb:Cu,win:window,blockClass:i,blockSelector:a,mirror:Se,sampling:U.canvas,dataURLOptions:P});var wn=new Vd({mutationCb:rt,scrollCb:Su,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskInputOptions:It,dataURLOptions:P,maskTextFn:R,maskInputFn:C,recordCanvas:he,inlineImages:Xe,sampling:U,slimDOMOptions:ir,iframeManager:it,stylesheetManager:nt,canvasManager:Fi,keepIframeSrcFn:rr,processedNodeManager:Qi},mirror:Se});ln=function(q){if(q===void 0&&(q=!1),!!V){te({type:D.Meta,data:{href:window.location.href,width:Oa(),height:Ia()}},q),nt.reset(),wn.init(),He.forEach(function(E){return E.lock()});var ve=Cl(document,{mirror:Se,blockClass:i,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskAllInputs:It,maskTextFn:R,maskInputFn:C,slimDOM:ir,dataURLOptions:P,recordCanvas:he,inlineImages:Xe,onSerialize:function(E){Ea(E,Se)&&it.addIframe(E),Aa(E,Se)&&nt.trackLinkElement(E),Di(E)&&wn.addShadowRoot($.shadowRoot(E),document)},onIframeLoad:function(E,ee){it.attachIframe(E,ee),wn.observeAttachShadow(E)},onStylesheetLoad:function(E,ee){nt.attachLinkElement(E,ee)},keepIframeSrcFn:rr});if(!ve)return console.warn("Failed to snapshot the document");te({type:D.FullSnapshot,data:{node:ve,initialOffset:Ca(window)}},q),He.forEach(function(E){return E.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&nt.adoptStyleSheets(document.adoptedStyleSheets,Se.getId(document))}};try{var or=[],Ru=function(q){var ve;return F(Wd)({mutationCb:rt,mousemoveCb:function(E,ee){return te({type:D.IncrementalSnapshot,data:{source:ee,positions:E}})},mouseInteractionCb:function(E){return te({type:D.IncrementalSnapshot,data:B({source:k.MouseInteraction},E)})},scrollCb:Su,viewportResizeCb:function(E){return te({type:D.IncrementalSnapshot,data:B({source:k.ViewportResize},E)})},inputCb:function(E){return te({type:D.IncrementalSnapshot,data:B({source:k.Input},E)})},mediaInteractionCb:function(E){return te({type:D.IncrementalSnapshot,data:B({source:k.MediaInteraction},E)})},styleSheetRuleCb:function(E){return te({type:D.IncrementalSnapshot,data:B({source:k.StyleSheetRule},E)})},styleDeclarationCb:function(E){return te({type:D.IncrementalSnapshot,data:B({source:k.StyleDeclaration},E)})},canvasMutationCb:Cu,fontCb:function(E){return te({type:D.IncrementalSnapshot,data:B({source:k.Font},E)})},selectionCb:function(E){te({type:D.IncrementalSnapshot,data:B({source:k.Selection},E)})},customElementCb:function(E){te({type:D.IncrementalSnapshot,data:B({source:k.CustomElement},E)})},blockClass:i,ignoreClass:l,ignoreSelector:f,maskTextClass:v,maskTextSelector:y,maskInputOptions:It,inlineStylesheet:g,sampling:U,recordDOM:V,recordCanvas:he,inlineImages:Xe,userTriggeredOnInput:St,collectFonts:Ke,doc:q,maskInputFn:C,maskTextFn:R,keepIframeSrcFn:rr,blockSelector:a,slimDOMOptions:ir,dataURLOptions:P,mirror:Se,iframeManager:it,stylesheetManager:nt,shadowDomManager:wn,processedNodeManager:Qi,canvasManager:Fi,ignoreCSSAttributes:Xi,plugins:((ve=Qe==null?void 0:Qe.filter(function(E){return E.observer}))==null?void 0:ve.map(function(E){return{observer:E.observer,options:E.options,callback:function(ee){return te({type:D.Plugin,data:{plugin:E.name,payload:ee}})}}}))||[]},A)};it.addLoadListener(function(q){try{or.push(Ru(q.contentDocument))}catch(ve){console.warn(ve)}});var eo=function(){ln(),or.push(Ru(document)),cn=!0};return document.readyState==="interactive"||document.readyState==="complete"?eo():(or.push(ce("DOMContentLoaded",function(){te({type:D.DomContentLoaded,data:{}}),Ze==="DOMContentLoaded"&&eo()})),or.push(ce("load",function(){te({type:D.Load,data:{}}),Ze==="load"&&eo()},window))),function(){or.forEach(function(q){try{q()}catch(E){var ve=String(E).toLowerCase();ve.includes("cross-origin")||console.warn(E)}}),Qi.destroy(),cn=!1,Md()}}catch(q){console.warn(q)}}Ue.addCustomEvent=function(t,n){if(!cn)throw new Error("please add custom event after start recording");te({type:D.Custom,data:{tag:t,payload:n}})},Ue.freezePage=function(){He.forEach(function(t){return t.freeze()})},Ue.takeFullSnapshot=function(t){if(!cn)throw new Error("please take full snapshot after start recording");ln(t)},Ue.mirror=Se;var Za;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Za||(Za={})),Ue.addCustomEvent,Ue.freezePage,Ue.takeFullSnapshot;var Ka=W.setImmediate,ze,Ui,zi,Xa=Object.prototype.toString,rp=typeof Ka!="undefined"?function(n){return Ka(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ze=function(n,o,e,r){return Object.defineProperty(n,o,{value:e,writable:!0,configurable:r!==!1})}}catch(t){ze=function(o,e,r){return o[e]=r,o}}zi=function(){var n,o,e;function r(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(s,a){e=new r(s,a),o?o.next=e:n=e,o=e,e=void 0},drain:function(){var s=n;for(n=o=Ui=void 0;s;)s.fn.call(s.self),s=s.next}}}();function fn(t,n){zi.add(t,n),Ui||(Ui=rp(zi.drain))}function Qa(t){var n,o=typeof t;return t!==null&&(o==="object"||o==="function")&&(n=t.then),typeof n=="function"?n:!1}function Wi(){for(var t=0;t<this.chain.length;t++)np(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function np(t,n,o){var e,r;try{n===!1?o.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(r=Qa(e))?r.call(e,o.resolve,o.reject):o.resolve(e))}catch(i){o.reject(i)}}function eu(t){var n,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(n=Qa(t))?fn(function(){var e=new ru(o);try{n.call(t,function(){eu.apply(e,arguments)},function(){Ht.apply(e,arguments)})}catch(r){Ht.call(e,r)}}):(o.msg=t,o.state=1,o.chain.length>0&&fn(Wi,o))}catch(e){Ht.call(new ru(o),e)}}}function Ht(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&fn(Wi,n))}function tu(t,n,o,e){for(var r=0;r<n.length;r++)(function(s){t.resolve(n[s]).then(function(u){o(s,u)},e)})(r)}function ru(t){this.def=t,this.triggered=!1}function ip(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function We(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new ip(this);this.then=function(e,r){var i={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return i.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");i.resolve=a,i.reject=u}),n.chain.push(i),n.state!==0&&fn(Wi,n),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){eu.call(n,e)},function(e){Ht.call(n,e)})}catch(o){Ht.call(n,o)}}var nu=ze({},"constructor",We,!1);We.prototype=nu,ze(nu,"__NPO__",0,!1),ze(We,"resolve",function(n){var o=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");r(n)})}),ze(We,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ze(We,"all",function(n){var o=this;return Xa.call(n)!=="[object Array]"?o.reject(TypeError("Not an array")):n.length===0?o.resolve([]):new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;tu(o,n,function(c,f){a[c]=f,++u===s&&r(a)},i)})}),ze(We,"race",function(n){var o=this;return Xa.call(n)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");tu(o,n,function(a,u){r(u)},i)})});var L;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?L=Promise:L=We;var Gi={LIB_VERSION:"2.71.1"},hn=24*60*60*1e3,Vi=8*1e3,dn=Array.prototype,op=Function.prototype,iu=Object.prototype,Je=dn.slice,Jt=iu.toString,pn=iu.hasOwnProperty,Zt=W.console,Kt=W.navigator,me=W.document,vn=W.opera,ou=W.screen,yt=Kt.userAgent,ji=op.bind,su=dn.forEach,au=dn.indexOf,uu=dn.map,sp=Array.isArray,Yi={},m={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ce={log:function(){},warn:function(){},error:function(){},critical:function(){if(!m.isUndefined(Zt)&&Zt){var t=["Mixpanel error:"].concat(m.toArray(arguments));try{Zt.error.apply(Zt,t)}catch(n){m.each(t,function(o){Zt.error(o)})}}}},qi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(Ce,arguments)}},Xt=function(t){return{log:qi(Ce.log,t),error:qi(Ce.error,t),critical:qi(Ce.critical,t)}};m.bind=function(t,n){var o,e;if(ji&&t.bind===ji)return ji.apply(t,Je.call(arguments,1));if(!m.isFunction(t))throw new TypeError;return o=Je.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,o.concat(Je.call(arguments)));var r={};r.prototype=t.prototype;var i=new r;r.prototype=null;var s=t.apply(i,o.concat(Je.call(arguments)));return Object(s)===s?s:i},e},m.each=function(t,n,o){if(t!=null){if(su&&t.forEach===su)t.forEach(n,o);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(o,t[e],e,t)===Yi)return}else for(var i in t)if(pn.call(t,i)&&n.call(o,t[i],i,t)===Yi)return}},m.extend=function(t){return m.each(Je.call(arguments,1),function(n){for(var o in n)n[o]!==void 0&&(t[o]=n[o])}),t},m.isArray=sp||function(t){return Jt.call(t)==="[object Array]"},m.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch(n){return!1}},m.isArguments=function(t){return!!(t&&pn.call(t,"callee"))},m.toArray=function(t){return t?t.toArray?t.toArray():m.isArray(t)||m.isArguments(t)?Je.call(t):m.values(t):[]},m.map=function(t,n,o){if(uu&&t.map===uu)return t.map(n,o);var e=[];return m.each(t,function(r){e.push(n.call(o,r))}),e},m.keys=function(t){var n=[];return t===null||m.each(t,function(o,e){n[n.length]=e}),n},m.values=function(t){var n=[];return t===null||m.each(t,function(o){n[n.length]=o}),n},m.include=function(t,n){var o=!1;return t===null?o:au&&t.indexOf===au?t.indexOf(n)!=-1:(m.each(t,function(e){if(o||(o=e===n))return Yi}),o)},m.includes=function(t,n){return t.indexOf(n)!==-1},m.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},m.isObject=function(t){return t===Object(t)&&!m.isArray(t)},m.isEmptyObject=function(t){if(m.isObject(t)){for(var n in t)if(pn.call(t,n))return!1;return!0}return!1},m.isUndefined=function(t){return t===void 0},m.isString=function(t){return Jt.call(t)=="[object String]"},m.isDate=function(t){return Jt.call(t)=="[object Date]"},m.isNumber=function(t){return Jt.call(t)=="[object Number]"},m.isElement=function(t){return!!(t&&t.nodeType===1)},m.encodeDates=function(t){return m.each(t,function(n,o){m.isDate(n)?t[o]=m.formatDate(n):m.isObject(n)&&(t[o]=m.encodeDates(n))}),t},m.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},m.formatDate=function(t){function n(o){return o<10?"0"+o:o}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},m.strip_empty_properties=function(t){var n={};return m.each(t,function(o,e){m.isString(o)&&o.length>0&&(n[e]=o)}),n},m.truncate=function(t,n){var o;return typeof t=="string"?o=t.slice(0,n):m.isArray(t)?(o=[],m.each(t,function(e){o.push(m.truncate(e,n))})):m.isObject(t)?(o={},m.each(t,function(e,r){o[r]=m.truncate(e,n)})):o=t,o},m.JSONEncode=function(){return function(t){var n=t,o=function(r){var i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return i.lastIndex=0,i.test(r)?'"'+r.replace(i,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,i){var s="",a=" ",u=0,l="",c="",f=0,h=s,v=[],d=i[r];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(r)),typeof d){case"string":return o(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,v=[],Jt.apply(d)==="[object Array]"){for(f=d.length,u=0;u<f;u+=1)v[u]=e(u,d)||"null";return c=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,c}for(l in d)pn.call(d,l)&&(c=e(l,d),c&&v.push(o(l)+(s?": ":":")+c));return c=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,c}};return e("",{"":n})}}(),m.JSONDecode=function(){var t,n,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(v){var d=new SyntaxError(v);throw d.at=t,d.text=e,d},i=function(v){return v&&v!==n&&r("Expected '"+v+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},s=function(){var v,d="";for(n==="-"&&(d="-",i("-"));n>="0"&&n<="9";)d+=n,i();if(n===".")for(d+=".";i()&&n>="0"&&n<="9";)d+=n;if(n==="e"||n==="E")for(d+=n,i(),(n==="-"||n==="+")&&(d+=n,i());n>="0"&&n<="9";)d+=n,i();if(v=+d,!isFinite(v))r("Bad number");else return v},a=function(){var v,d,y="",p;if(n==='"')for(;i();){if(n==='"')return i(),y;if(n==="\\")if(i(),n==="u"){for(p=0,d=0;d<4&&(v=parseInt(i(),16),!!isFinite(v));d+=1)p=p*16+v;y+=String.fromCharCode(p)}else if(typeof o[n]=="string")y+=o[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)i()},l=function(){switch(n){case"t":return i("t"),i("r"),i("u"),i("e"),!0;case"f":return i("f"),i("a"),i("l"),i("s"),i("e"),!1;case"n":return i("n"),i("u"),i("l"),i("l"),null}r('Unexpected "'+n+'"')},c,f=function(){var v=[];if(n==="["){if(i("["),u(),n==="]")return i("]"),v;for(;n;){if(v.push(c()),u(),n==="]")return i("]"),v;i(","),u()}}r("Bad array")},h=function(){var v,d={};if(n==="{"){if(i("{"),u(),n==="}")return i("}"),d;for(;n;){if(v=a(),u(),i(":"),Object.hasOwnProperty.call(d,v)&&r('Duplicate key "'+v+'"'),d[v]=c(),u(),n==="}")return i("}"),d;i(","),u()}}r("Bad object")};return c=function(){switch(u(),n){case"{":return h();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():l()}},function(v){var d;return e=v,t=0,n=" ",d=c(),u(),n&&r("Syntax error"),d}}(),m.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,r,i,s,a,u,l,c=0,f=0,h="",v=[];if(!t)return t;t=m.utf8Encode(t);do o=t.charCodeAt(c++),e=t.charCodeAt(c++),r=t.charCodeAt(c++),l=o<<16|e<<8|r,i=l>>18&63,s=l>>12&63,a=l>>6&63,u=l&63,v[f++]=n.charAt(i)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(c<t.length);switch(h=v.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},m.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",o,e,r=0,i;for(o=e=0,r=t.length,i=0;i<r;i++){var s=t.charCodeAt(i),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>o&&(n+=t.substring(o,e)),n+=a,o=e=i+1)}return e>o&&(n+=t.substring(o,t.length)),n},m.UUID=function(){try{return W.crypto.randomUUID()}catch(o){for(var t=new Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",m.map(t,function(e){return e.toString(16)}).join("")}};var lu=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];m.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<lu.length;n++)if(t.indexOf(lu[n])!==-1)return!0;return!1},m.HTTPBuildQuery=function(t,n){var o,e,r=[];return m.isUndefined(n)&&(n="&"),m.each(t,function(i,s){o=encodeURIComponent(i.toString()),e=encodeURIComponent(s),r[r.length]=e+"="+o}),r.join(n)},m.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+n+"=([^&#]*)",e=new RegExp(o),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(s){Ce.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},m.cookie={get:function(t){for(var n=t+"=",o=me.cookie.split(";"),e=0;e<o.length;e++){for(var r=o[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(t){var n;try{n=m.JSONDecode(m.cookie.get(t))||{}}catch(o){}return n},set_seconds:function(t,n,o,e,r,i,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var c=hu(me.location.hostname);a=c?"; domain=."+c:""}if(o){var f=new Date;f.setTime(f.getTime()+o*1e3),u="; expires="+f.toGMTString()}i&&(r=!0,l="; SameSite=None"),r&&(l+="; secure"),me.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+l},set:function(t,n,o,e,r,i,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var c=hu(me.location.hostname);a=c?"; domain=."+c:""}if(o){var f=new Date;f.setTime(f.getTime()+o*24*60*60*1e3),u="; expires="+f.toGMTString()}i&&(r=!0,l="; SameSite=None"),r&&(l+="; secure");var h=t+"="+encodeURIComponent(n)+u+"; path=/"+a+l;return me.cookie=h,h},remove:function(t,n,o){m.cookie.set(t,"",-1,n,!1,!1,o)}};var cu=function(t){var n=!0;try{var o="__mplss_"+Zi(8),e="xyz";t.setItem(o,e),t.getItem(o)!==e&&(n=!1),t.removeItem(o)}catch(r){n=!1}return n},Hi=null,Qt=function(t,n){return Hi!==null&&!n?Hi:Hi=cu(t||W.localStorage)},Ji=null,ap=function(t,n){return Ji!==null&&!n?Ji:Ji=cu(t||W.sessionStorage)};function fu(t,n,o){var e=function(r){Ce.error(n+" error: "+r)};return{is_supported:function(r){var i=o(t,r);return i||Ce.error(n+" unsupported"),i},error:e,get:function(r){try{return t.getItem(r)}catch(i){e(i)}return null},parse:function(r){try{return m.JSONDecode(t.getItem(r))||{}}catch(i){}return null},set:function(r,i){try{t.setItem(r,i)}catch(s){e(s)}},remove:function(r){try{t.removeItem(r)}catch(i){e(i)}}}}m.localStorage=fu(W.localStorage,"localStorage",Qt),m.sessionStorage=fu(W.sessionStorage,"sessionStorage",ap),m.register_event=function(){var t=function(e,r,i,s,a){if(!e){Ce.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(r,i,!!a);else{var u="on"+r,l=e[u];e[u]=n(e,i,l)}};function n(e,r,i){var s=function(a){if(a=a||o(W.event),!!a){var u=!0,l,c;return m.isFunction(i)&&(l=i(a)),c=r.call(e,a),(l===!1||c===!1)&&(u=!1),u}};return s}function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation),e}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},t}();var up=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');m.dom_query=function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function o(r,i){var s=" "+i+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function e(r){if(!me.getElementsByTagName)return[];var i=r.split(" "),s,a,u,l,c,f,h,v,d,y,p=[me];for(f=0;f<i.length;f++){if(s=i[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var g=a[1],w=me.getElementById(g);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];p=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),l=[],c=0,h=0;h<p.length;h++)for(u=="*"?d=t(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[c++]=d[v];for(p=[],y=0,h=0;h<l.length;h++)l[h].className&&m.isString(l[h].className)&&o(l[h],b)&&(p[y++]=l[h]);continue}var S=s.match(up);if(S){u=S[1];var C=S[2],R=S[3],A=S[4];for(u||(u="*"),l=[],c=0,h=0;h<p.length;h++)for(u=="*"?d=t(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[c++]=d[v];p=[],y=0;var x;switch(R){case"=":x=function(_){return _.getAttribute(C)==A};break;case"~":x=function(_){return _.getAttribute(C).match(new RegExp("\\b"+A+"\\b"))};break;case"|":x=function(_){return _.getAttribute(C).match(new RegExp("^"+A+"-?"))};break;case"^":x=function(_){return _.getAttribute(C).indexOf(A)===0};break;case"$":x=function(_){return _.getAttribute(C).lastIndexOf(A)==_.getAttribute(C).length-A.length};break;case"*":x=function(_){return _.getAttribute(C).indexOf(A)>-1};break;default:x=function(_){return _.getAttribute(C)}}for(p=[],y=0,h=0;h<l.length;h++)x(l[h])&&(p[y++]=l[h]);continue}for(u=s,l=[],c=0,h=0;h<p.length;h++)for(d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)l[c++]=d[v];p=l}return p}return function(r){return m.isElement(r)?[r]:m.isObject(r)&&!m.isUndefined(r.length)?r:e.call(this,r)}}();var lp=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],cp=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];m.info={campaignParams:function(t){var n="",o={};return m.each(lp,function(e){n=m.getQueryParam(me.URL,e),n.length?o[e]=n:t!==void 0&&(o[e]=t)}),o},clickParams:function(){var t="",n={};return m.each(cp,function(o){t=m.getQueryParam(me.URL,o),t.length&&(n[o]=t)}),n},marketingParams:function(){return m.extend(m.info.campaignParams(),m.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=m.info.searchEngine(t),o=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=m.getQueryParam(t,o);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,o){return n=n||"",o||m.includes(t," OPR/")?m.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":m.includes(t,"IEMobile")||m.includes(t,"WPDesktop")?"Internet Explorer Mobile":m.includes(t,"SamsungBrowser/")?"Samsung Internet":m.includes(t,"Edge")||m.includes(t,"Edg/")?"Microsoft Edge":m.includes(t,"FBIOS")?"Facebook Mobile":m.includes(t,"Whale/")?"Whale Browser":m.includes(t,"Chrome")?"Chrome":m.includes(t,"CriOS")?"Chrome iOS":m.includes(t,"UCWEB")||m.includes(t,"UCBrowser")?"UC Browser":m.includes(t,"FxiOS")?"Firefox iOS":m.includes(n,"Apple")?m.includes(t,"Mobile")?"Mobile Safari":"Safari":m.includes(t,"Android")?"Android Mobile":m.includes(t,"Konqueror")?"Konqueror":m.includes(t,"Firefox")?"Firefox":m.includes(t,"MSIE")||m.includes(t,"Trident/")?"Internet Explorer":m.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,o){var e=m.info.browser(t,n,o),r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},i=r[e];if(i===void 0)return null;var s=t.match(i);return s?parseFloat(s[s.length-2]):null},os:function(){var t=yt;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return W.location.href},properties:function(t){return typeof t!="object"&&(t={}),m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(yt,Kt.vendor,vn),$referrer:me.referrer,$referring_domain:m.info.referringDomain(me.referrer),$device:m.info.device(yt)}),{$current_url:m.info.currentUrl(),$browser_version:m.info.browserVersion(yt,Kt.vendor,vn),$screen_height:ou.height,$screen_width:ou.width,mp_lib:"web",$lib_version:Gi.LIB_VERSION,$insert_id:Zi(),time:m.timestamp()/1e3},m.strip_empty_properties(t))},people_properties:function(){return m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(yt,Kt.vendor,vn)}),{$browser_version:m.info.browserVersion(yt,Kt.vendor,vn)})},mpPageViewProperties:function(){return m.strip_empty_properties({current_page_title:me.title,current_domain:W.location.hostname,current_url_path:W.location.pathname,current_url_protocol:W.location.protocol,current_url_search:W.location.search})}};var fp=function(t,n){var o=null,e=[];return function(r){var i=this;return e.push(r),o||(o=new L(function(s){setTimeout(function(){var a=t.apply(i,[e]);o=null,e=[],s(a)},n)})),o}},Zi=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},hp=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,dp=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,hu=function(t){var n=dp,o=t.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(n=hp);var r=t.match(n);return r?r[0]:""},pp=function(){var t=W.navigator.onLine;return m.isUndefined(t)||t},Ki=function(){},mn=null,gn=null;typeof JSON!="undefined"&&(mn=JSON.stringify,gn=JSON.parse),mn=mn||m.JSONEncode,gn=gn||m.JSONDecode,m.info=m.info,m.info.browser=m.info.browser,m.info.browserVersion=m.info.browserVersion,m.info.device=m.info.device,m.info.properties=m.info.properties,m.isBlockedUA=m.isBlockedUA,m.isEmptyObject=m.isEmptyObject,m.isObject=m.isObject,m.JSONDecode=m.JSONDecode,m.JSONEncode=m.JSONEncode,m.toArray=m.toArray,m.NPO=We;var vp="mixpanelBrowserDb",du="mixpanelRecordingEvents",pu="mixpanelRecordingRegistry",mp=1,gp=[du,pu],xe=function(t){this.dbPromise=null,this.storeName=t};xe.prototype._openDb=function(){return new L(function(t,n){var o=W.indexedDB.open(vp,mp);o.onerror=function(){n(o.error)},o.onsuccess=function(){t(o.result)},o.onupgradeneeded=function(e){var r=e.target.result;gp.forEach(function(i){r.createObjectStore(i)})}})},xe.prototype.init=function(){return W.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof W.IDBDatabase?L.resolve():L.reject(t)})):L.reject("indexedDB is not supported in this browser")},xe.prototype.isInitialized=function(){return!!this.dbPromise},xe.prototype.makeTransaction=function(t,n){var o=this.storeName,e=function(r){return new L(function(i,s){var a=r.transaction(o,t);a.oncomplete=function(){i(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):L.reject(r)}.bind(this))},xe.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(o){o.put(n,t)})},xe.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(o){n=o.get(t)}).then(function(){return n.result})},xe.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},xe.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var yp="__mp_opt_in_out_";function wp(t,n){if(Op(n))return Ce.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var o=Ip(t,n)==="0";return o&&Ce.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function bp(t){return Rp(t,function(n){return this.get_config(n)})}function Sp(t){return t=t||{},t.persistenceType==="localStorage"?m.localStorage:m.cookie}function Cp(t,n){return n=n||{},(n.persistencePrefix||yp)+t}function Ip(t,n){return Sp(n).get(Cp(t,n))}function Op(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||W,o=n.navigator||{},e=!1;return m.each([o.doNotTrack,o.msDoNotTrack,n.doNotTrack],function(r){m.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function Rp(t,n){return function(){var o=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),i=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(o=wp(e,{ignoreDnt:r,persistenceType:i,persistencePrefix:s,window:a}))}catch(l){Ce.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var xp=Xt("lock"),vu=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||W.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||L};vu.prototype.withLock=function(t,n){var o=this.promiseImpl;return new o(m.bind(function(e,r){var i=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,f=a+":X",h=a+":Y",v=a+":Z",d=function(b){if(new Date().getTime()-s>l){xp.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+i+"]"),c.removeItem(v),c.removeItem(h),g();return}setTimeout(function(){try{b()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(b,S){b()?S():d(function(){y(b,S)})},p=function(){var b=c.getItem(h);return b&&b!==i?!1:(c.setItem(h,i),c.getItem(h)===i?!0:(Qt(c,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){c.setItem(f,i),y(p,function(){if(c.getItem(f)===i){w();return}d(function(){if(c.getItem(h)!==i){g();return}y(function(){return!c.getItem(v)},w)})})},w=function(){c.setItem(v,"1");var b=function(){c.removeItem(v),c.getItem(h)===i&&c.removeItem(h),c.getItem(f)===i&&c.removeItem(f)};t().then(function(S){b(),e(S)}).catch(function(S){b(),r(S)})};try{if(Qt(c,!0))g();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var wt=function(t){this.storage=t||W.localStorage};wt.prototype.init=function(){return L.resolve()},wt.prototype.isInitialized=function(){return!0},wt.prototype.setItem=function(t,n){return new L(m.bind(function(o,e){try{this.storage.setItem(t,mn(n))}catch(r){e(r)}o()},this))},wt.prototype.getItem=function(t){return new L(m.bind(function(n,o){var e;try{e=gn(this.storage.getItem(t))}catch(r){o(r)}n(e)},this))},wt.prototype.removeItem=function(t){return new L(m.bind(function(n,o){try{this.storage.removeItem(t)}catch(e){o(e)}n()},this))};var mu=Xt("batch"),Ee=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new wt,this.lock=new vu(t,{storage:n.sharedLockStorage||W.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||m.bind(mu.error,mu),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=fp(m.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=m.bind(function(o){return this._enqueuePersisted([o])},this)};Ee.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?L.resolve():this.queueStorage.init().then(m.bind(function(){this.initialized=!0},this)).catch(m.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Ee.prototype.enqueue=function(t,n){var o={id:Zi(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),L.resolve(!0))},Ee.prototype._enqueuePersisted=function(t){var n=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return this.saveToStorage(o.concat(t))},this)).then(m.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(t)),o},this)).catch(m.bind(function(o){return this.reportError("Error enqueueing items",o,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(m.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},Ee.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){if(o.length){var e={};m.each(n,function(s){e[s.id]=!0});for(var r=0;r<o.length;r++){var i=o[r];if(new Date().getTime()>i.flushAfter&&!e[i.id]&&(i.orphaned=!0,n.push(i),n.length>=t))break}}return n},this)):L.resolve(n)};var gu=function(t,n){var o=[];return m.each(t,function(e){e.id&&!n[e.id]&&o.push(e)}),o};Ee.prototype.removeItemsByID=function(t){var n={};if(m.each(t,function(e){n[e]=!0}),this.memQueue=gu(this.memQueue,n),this.usePersistence){var o=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(e){return e=gu(e,n),this.saveToStorage(e)},this)).then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.id&&n[i.id])throw new Error("Item not removed from storage")}return!0},this)).catch(m.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(o,this.pid).catch(m.bind(function(e){return this.reportError("Error acquiring storage lock",e),Qt(this.lock.storage,!0)?!1:o().then(m.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(m.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return L.resolve(!0)};var yu=function(t,n){var o=[];return m.each(t,function(e){var r=e.id;if(r in n){var i=n[r];i!==null&&(e.payload=i,o.push(e))}else o.push(e)}),o};Ee.prototype.updatePayloads=function(t){return this.memQueue=yu(this.memQueue,t),this.usePersistence?this.lock.withLock(m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return o=yu(o,t),this.saveToStorage(o)},this)).catch(m.bind(function(o){return this.reportError("Error updating items",t,o),!1},this))},this),this.pid).catch(m.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):L.resolve(!0)},Ee.prototype.readFromStorage=function(){return this.ensureInit().then(m.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(m.bind(function(t){return t&&(m.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(m.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Ee.prototype.saveToStorage=function(t){return this.ensureInit().then(m.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(m.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Ee.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(m.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):L.resolve()};var Ep=10*60*1e3,er=Xt("batch"),Ie=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ee(t,{errorReporter:m.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=n.flushOnlyOnInterval||!1,this._flushPromise=null};Ie.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Ie.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ie.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ie.prototype.clear=function(){return this.queue.clear()},Ie.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ie.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ie.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(m.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ie.prototype.sendRequestPromise=function(t,n){return new L(m.bind(function(o){this.sendRequest(t,n,o)},this))},Ie.prototype.flush=function(t){if(this.requestInProgress)return er.log("Flush: Request already in progress"),L.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(m.bind(function(r){var i=r.length===e,s=[],a={};if(m.each(r,function(f){var h=f.payload;if(this.beforeSendHook&&!f.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=m.extend({},h.properties,{mp_sent_by_lib_version:Gi.LIB_VERSION}));var v=!0,d=f.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[d]}),v=!1):this.reportError("[dupe] found item with no ID",{item:f}),v&&s.push(h)}a[f.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),L.resolve();var u=m.bind(function(){return this.queue.removeItemsByID(m.map(r,function(f){return f.id})).then(m.bind(function(f){return m.each(r,m.bind(function(h){var v=h.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),L.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),L.resolve())},this))},this),l=m.bind(function(f){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(m.isObject(f)&&f.error==="timeout"&&new Date().getTime()-o>=n)return this.reportError("Network timeout; retrying"),this.flush();if(m.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!pp()||f.error==="timeout")){var h=this.flushInterval*2;return f.retryAfter&&(h=parseInt(f.retryAfter,10)*1e3||h),h=Math.min(Ep,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),L.resolve()}else if(m.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),L.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(c.transport="sendBeacon"),er.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,c).then(l)},this)).catch(m.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Ie.prototype.reportError=function(t,n){if(er.error.apply(er.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(o){er.error(o)}};var wu=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},Ap=250,bt=Xt("recorder"),bu=W.CompressionStream,Mp={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},kp=new Set([k.MouseMove,k.MouseInteraction,k.Scroll,k.ViewportResize,k.Input,k.TouchMove,k.MediaInteraction,k.Drag,k.Selection]);function _p(t){return t.type===D.IncrementalSnapshot&&kp.has(t.data.source)}var se=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||Ki,this._onMaxLengthReached=t.onMaxLengthReached||Ki,this._onBatchSent=t.onBatchSent||Ki,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=hn,this.recordMinMs=0;var n=Qt(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new xe(du),this.batcher=new Ie(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Mp,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Ap,sharedLockTimeoutMS:10*1e3})};se.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var o=this._mixpanel.get_property("$user_id");return o&&(t.$user_id=o),t},se.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},se.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},se.prototype.get_config=function(t){return this.getConfig(t)},se.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){bt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>hn&&(this.recordMaxMs=hn,bt.critical("record_max_ms cannot be greater than "+hn+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Vi&&(this.recordMinMs=Vi,bt.critical("record_min_ms cannot be greater than "+Vi+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=m.info.currentUrl(),this.replayStartUrl=m.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}.bind(this);n();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}_p(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var e=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),e)},se.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},se.prototype.isRrwebStopped=function(){return this._stopRecording===null},se.prototype.flushEventsWithOptOut=function(t,n,o){var e=function(r){r===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,o,e)},se.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}},se.deserialize=function(t,n){var o=new se(m.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return o},se.prototype._sendRequest=function(t,n,o,e){var r=function(s,a){s.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=m.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");W.fetch(i+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},se.prototype._flushEvents=bp(function(t,n,o){var e=t.length;if(e>0){for(var r=this.replayId,i=1/0,s=-1/0,a=!1,u=0;u<e;u++)i=Math.min(i,t[u].timestamp),s=Math.max(s,t[u].timestamp),t[u].type===D.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){o({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=i}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var l=s-this.replayStartTime,c={$current_url:this.batchStartUrl,$lib_version:Gi.LIB_VERSION,batch_start_time:i/1e3,mp_lib:"web",replay_id:r,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(c,this.getUserIdInfo()),bu){var h=new Blob([f],{type:"application/json"}).stream(),v=h.pipeThrough(new bu("gzip"));new Response(v).blob().then(function(d){c.format="gzip",this._sendRequest(r,c,d,o)}.bind(this))}else c.format="body",this._sendRequest(r,c,f,o)}}),se.prototype.reportError=function(t,n){bt.error.apply(bt.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(o){bt.error(o)}};var Te=function(t){this.idb=new xe(pu),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};Te.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Te.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},Te.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return L.resolve();var n=t.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,t)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),L.resolve())},Te.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(t){return wu(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):L.resolve(null)},Te.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Te.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}.bind(this)).catch(this.handleError.bind(this))},Te.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):L.resolve()},Te.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(t){var n=t.filter(function(o){return wu(o)}).map(function(o){var e=se.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(o.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return L.all(n)}.bind(this)).catch(this.handleError.bind(this)):L.resolve([])};var tr=Xt("recorder"),Pe=function(t,n,o){this.mixpanelInstance=t,this.rrwebRecord=n||Ue,this.sharedLockStorage=o,this.recordingRegistry=new Te({mixpanelInstance:this.mixpanelInstance,errorReporter:tr.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Pe.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){tr.log("Recording already in progress, skipping startRecording.");return}var n=function(){tr.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){tr.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:o,replayId:m.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=se.deserialize(t.activeSerializedRecording,r):this.activeRecording=new se(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Pe.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Pe.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Pe.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var o=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),o}return L.resolve()},Pe.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),L.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(tr.log("No resumable recording found."),null)}.bind(this))},Pe.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Pe.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Pe.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),W.__mp_recorder=Pe})();
1
+ (function(){"use strict";var z;if(typeof window=="undefined"){var so={hostname:""};z={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:so,referrer:""},screen:{width:0,height:0},location:so,addEventListener:function(){},removeEventListener:function(){}}}else z=window;function ao(t,n){(n==null||n>t.length)&&(n=t.length);for(var o=0,e=new Array(n);o<n;o++)e[o]=t[o];return e}function uo(t,n,o,e,r,i,s){try{var a=t[i](s),u=a.value}catch(l){o(l);return}a.done?n(u):Promise.resolve(u).then(e,r)}function In(t){return function(){var n=this,o=arguments;return new Promise(function(e,r){var i=t.apply(n,o);function s(u){uo(i,e,r,s,a,"next",u)}function a(u){uo(i,e,r,s,a,"throw",u)}s(void 0)})}}function lr(t,n,o){return lo()?lr=Reflect.construct:lr=function(r,i,s){var a=[null];a.push.apply(a,i);var u=Function.bind.apply(r,a),l=new u;return s&&Mt(l,s.prototype),l},lr.apply(null,arguments)}function Pu(t,n){for(var o=0;o<n.length;o++){var e=n[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function se(t,n,o){return n&&Pu(t.prototype,n),t}function U(){return U=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},U.apply(this,arguments)}function On(t){return On=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},On(t)}function ue(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Mt(t,n)}function M(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Nu(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function At(t,n){if(t==null)return{};var o={},e=Object.keys(t),r,i;for(i=0;i<e.length;i++)r=e[i],!(n.indexOf(r)>=0)&&(o[r]=t[r]);return o}function Mt(t,n){return Mt=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Mt(t,n)}function N(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function $u(t,n){if(t){if(typeof t=="string")return ao(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ao(t,n)}}function cr(t){var n=typeof Map=="function"?new Map:void 0;return cr=function(e){if(e===null||!Nu(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return lr(e,arguments,On(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Mt(r,e)},cr(t)}function lo(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(lo=function(){return!!t})()}function O(t,n){var o=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=$u(t))||n){o&&(t=o);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kt(t,n){var o,e,r,i,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(l){return function(c){return u([l,c])}}function u(l){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(r=l[0]&2?e.return:l[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,l[1])).done)return r;switch(e=0,r&&(l=[l[0]&2,r.value]),l[0]){case 0:case 1:r=l;break;case 4:return s.label++,{value:l[1],done:!1};case 5:s.label++,e=l[1],l=[0];continue;case 7:l=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){s.label=l[1];break}if(l[0]===6&&s.label<r[1]){s.label=r[1],r=l;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(l);break}r[2]&&s.ops.pop(),s.trys.pop();continue}l=n.call(t,s)}catch(c){l=[6,c],e=0}finally{o=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function co(t){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&t[n],e=0;if(o)return o.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Lu=Object.defineProperty,Du=function(t,n,o){return n in t?Lu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},I=function(t,n,o){return Du(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)},fo,Fu=Object.defineProperty,Bu=function(t,n,o){return n in t?Fu(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},ho=function(t,n,o){return Bu(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)},ie=function(t){return 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}(ie||{}),po={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},vo={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},fr={},Uu=function(){return!!globalThis.Zone};function Rn(t){if(fr[t])return fr[t];var n=globalThis[t],o=n.prototype,e=t in po?po[t]:void 0,r=!!(e&&e.every(function(c){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(o,c))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),i=t in vo?vo[t]:void 0,s=!!(i&&i.every(function(c){var f;return typeof o[c]=="function"&&((f=o[c])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Uu())return fr[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var l=u[t].prototype;return document.body.removeChild(a),l?fr[t]=l:o}catch(c){return o}}var xn={};function $e(t,n,o){var e,r=t+"."+String(o);if(xn[r])return xn[r].call(n);var i=Rn(t),s=(e=Object.getOwnPropertyDescriptor(i,o))==null?void 0:e.get;return s?(xn[r]=s,s.call(n)):n[o]}var En={};function mo(t,n,o){var e=t+"."+String(o);if(En[e])return En[e].bind(n);var r=Rn(t),i=r[o];return typeof i!="function"?n[o]:(En[e]=i,i.bind(n))}function zu(t){return $e("Node",t,"childNodes")}function Wu(t){return $e("Node",t,"parentNode")}function Gu(t){return $e("Node",t,"parentElement")}function ju(t){return $e("Node",t,"textContent")}function Vu(t,n){return mo("Node",t,"contains")(n)}function Yu(t){return mo("Node",t,"getRootNode")()}function qu(t){return!t||!("host"in t)?null:$e("ShadowRoot",t,"host")}function Hu(t){return t.styleSheets}function Ju(t){return!t||!("shadowRoot"in t)?null:$e("Element",t,"shadowRoot")}function Zu(t,n){return $e("Element",t,"querySelector")(n)}function Ku(t,n){return $e("Element",t,"querySelectorAll")(n)}function Xu(){return Rn("MutationObserver").constructor}function Qu(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var le={childNodes:zu,parentNode:Wu,parentElement:Gu,textContent:ju,contains:Vu,getRootNode:Yu,host:qu,styleSheets:Hu,shadowRoot:Ju,querySelector:Zu,querySelectorAll:Ku,mutationObserver:Xu,patch:Qu};function go(t){return t.nodeType===t.ELEMENT_NODE}function _t(t){var n=t&&"host"in t&&"mode"in t&&le.host(t)||null;return!!(n&&"shadowRoot"in n&&le.shadowRoot(n)===t)}function Tt(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function el(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function tl(t){var n=t.cssText;if(n.split('"').length<3)return n;var o=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?o.push("layer"):t.layerName&&o.push("layer("+t.layerName+")"),t.supportsText&&o.push("supports("+t.supportsText+")"),t.media.length&&o.push(t.media.mediaText),o.join(" ")+";"}function An(t){try{var n=t.rules||t.cssRules;if(!n)return null;var o=t.href;!o&&t.ownerNode&&t.ownerNode.ownerDocument&&(o=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return yo(r,o)}).join("");return el(e)}catch(r){return null}}function yo(t,n){if(nl(t)){var o;try{o=An(t.styleSheet)||tl(t)}catch(r){o=t.cssText}return t.styleSheet.href?pr(o,t.styleSheet.href):o}else{var e=t.cssText;return il(t)&&t.selectorText.includes(":")&&(e=rl(e)),n?pr(e,n):e}}function rl(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function nl(t){return"styleSheet"in t}function il(t){return"selectorText"in t}var wo=function(){function t(){ho(this,"idNodeMap",new Map),ho(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var i=(r=this.getMeta(e))==null?void 0:r.id;return i!=null?i:-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e){var r=this,i=this.getId(e);this.idNodeMap.delete(i),e.childNodes&&e.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var i=r.id;this.idNodeMap.set(i,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var i=this.getNode(e);if(i){var s=this.nodeMetaMap.get(i);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t}();function ol(){return new wo}function hr(t){var n=t.element,o=t.maskInputOptions,e=t.tagName,r=t.type,i=t.value,s=t.maskInputFn,a=i||"",u=r&&je(r);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function je(t){return t.toLowerCase()}var bo="__rrweb_original__";function sl(t){var n=t.getContext("2d");if(!n)return!0;for(var o=50,e=0;e<t.width;e+=o)for(var r=0;r<t.height;r+=o){var i=n.getImageData,s=bo in i?i[bo]:i,a=new Uint32Array(s.call(n,e,r,Math.min(o,t.width-e),Math.min(o,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function dr(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?je(n):null}function So(t,n){var o;try{o=new URL(t,n!=null?n:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=o.pathname.match(e),i;return(i=r==null?void 0:r[1])!=null?i:null}function al(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var ul=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ll=/^(?:[a-z+]+:)?\/\//i,cl=/^www\..*/i,fl=/^(data:)([^,]*),(.*)/i;function pr(t,n){return(t||"").replace(ul,function(o,e,r,i,s,a){var u=r||s||a,l=e||i||"";if(!u)return o;if(ll.test(u)||cl.test(u)||fl.test(u))return"url("+l+u+l+")";if(u[0]==="/")return"url("+l+(al(n)+u)+l+")";var c=n.split("/"),f=u.split("/");c.pop();for(var h=O(f),v;!(v=h()).done;){var p=v.value;p!=="."&&(p===".."?c.pop():c.push(p))}return"url("+l+c.join("/")+l+")"})}function vr(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function hl(t,n,o){o===void 0&&(o=!1);var e=Array.from(n.childNodes),r=[],i=0;if(e.length>1&&t&&typeof t=="string"){for(var s=vr(t,o),a=s.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var l=vr(e[u].textContent,o),c=100,f=3;f<l.length&&(l[f].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,f),1)!==-1);f++);for(;f<l.length;f++){var h=l.substring(0,f),v=s.split(h),p=-1;if(v.length===2)p=v[0].length;else if(v.length>2&&v[0]===""&&e[u-1].textContent!=="")p=s.indexOf(h,1);else if(v.length===1){if(h=h.substring(0,h.length-1),v=s.split(h),v.length<=1)return r.push(t),r;f=c+1}else f===l.length-1&&(p=s.indexOf(h));if(v.length>=2&&f>c){var y=e[u-1].textContent;if(y&&typeof y=="string"){var d=vr(y).length;p=s.indexOf(h,d)}p===-1&&(p=v[0].length)}if(p!==-1){for(var g=Math.floor(p/a);g>0&&g<t.length;){if(i+=1,i>50*e.length)return r.push(t),r;var w=vr(t.substring(0,g),o);if(w.length===p){r.push(t.substring(0,g)),t=t.substring(g),s=s.substring(p);break}else w.length<p?g+=Math.max(1,Math.floor((p-w.length)/a)):g-=Math.max(1,Math.floor((w.length-p)*a))}break}}}}return r.push(t),r}function dl(t,n){return hl(t,n).join("/* rr_split */")}var pl=1,vl=new RegExp("[^a-z0-9-_:]"),Pt=-2;function Co(){return pl++}function ml(t){if(M(t,HTMLFormElement))return"form";var n=je(t.tagName);return vl.test(n)?"div":n}var st,Io,gl=/^[^ \t\n\r\u000c]+/,yl=/^[, \t\n\r\u000c]+/;function wl(t,n){if(n.trim()==="")return n;var o=0;function e(l){var c,f=l.exec(n.substring(o));return f?(c=f[0],o+=c.length,c):""}for(var r=[];e(yl),!(o>=n.length);){var i=e(gl);if(i.slice(-1)===",")i=at(t,i.substring(0,i.length-1)),r.push(i);else{var s="";i=at(t,i);for(var a=!1;;){var u=n.charAt(o);if(u===""){r.push((i+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,r.push((i+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return r.join(", ")}var Oo=new WeakMap;function at(t,n){return!n||n.trim()===""?n:Mn(t,n)}function bl(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Mn(t,n){var o=Oo.get(t);if(o||(o=t.createElement("a"),Oo.set(t,o)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return o.setAttribute("href",n),o.href}function Ro(t,n,o,e){return e&&(o==="src"||o==="href"&&!(n==="use"&&e[0]==="#")||o==="xlink:href"&&e[0]!=="#"||o==="background"&&(n==="table"||n==="td"||n==="th")?at(t,e):o==="srcset"?wl(t,e):o==="style"?pr(e,Mn(t)):n==="object"&&o==="data"?at(t,e):e)}function xo(t,n,o){return(t==="video"||t==="audio")&&n==="autoplay"}function Sl(t,n,o){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(o)return t.matches(o)}catch(i){}return!1}function mr(t,n,o){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return o?mr(le.parentNode(t),n,o):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return o?mr(le.parentNode(t),n,o):!1}function Eo(t,n,o,e){var r;if(go(t)){if(r=t,!le.childNodes(r).length)return!1}else{if(le.parentElement(t)===null)return!1;r=le.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(mr(r,n,e))return!0;if(o){if(e){if(r.closest(o))return!0}else if(r.matches(o))return!0}}catch(i){}return!1}function Cl(t,n,o){var e=t.contentWindow;if(e){var r=!1,i;try{i=e.document.readyState}catch(u){return}if(i!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},o);t.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function Il(t,n,o){var e=!1,r;try{r=t.sheet}catch(s){return}if(!r){var i=setTimeout(function(){e||(n(),e=!0)},o);t.addEventListener("load",function(){clearTimeout(i),e=!0,n()})}}function Ol(t,n){var o=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,l=u===void 0?{}:u,c=n.maskTextFn,f=n.maskInputFn,h=n.dataURLOptions,v=h===void 0?{}:h,p=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,g=n.newlyAddedElement,w=g===void 0?!1:g,b=n.cssCaptured,S=b===void 0?!1:b,C=Rl(o,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ie.Document,childNodes:[],compatMode:t.compatMode}:{type:ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return El(t,{doc:o,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:l,maskInputFn:f,dataURLOptions:v,inlineImages:p,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:w,rootId:C});case t.TEXT_NODE:return xl(t,{doc:o,needsMask:s,maskTextFn:c,rootId:C,cssCaptured:S});case t.CDATA_SECTION_NODE:return{type:ie.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:ie.Comment,textContent:le.textContent(t)||"",rootId:C};default:return!1}}function Rl(t,n){if(n.hasNode(t)){var o=n.getId(t);return o===1?void 0:o}}function xl(t,n){var o=n.needsMask,e=n.maskTextFn,r=n.rootId,i=n.cssCaptured,s=le.parentNode(t),a=s&&s.tagName,u="",l=a==="STYLE"?!0:void 0,c=a==="SCRIPT"?!0:void 0;return c?u="SCRIPT_PLACEHOLDER":i||(u=le.textContent(t),l&&u&&(u=pr(u,Mn(n.doc)))),!l&&!c&&u&&o&&(u=e?e(u,le.parentElement(t)):u.replace(/[\S]/g,"*")),{type:ie.Text,textContent:u||"",rootId:r}}function El(t,n){for(var o=n.doc,e=n.blockClass,r=n.blockSelector,i=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,l=n.dataURLOptions,c=l===void 0?{}:l,f=n.inlineImages,h=n.recordCanvas,v=n.keepIframeSrcFn,p=n.newlyAddedElement,y=p===void 0?!1:p,d=n.rootId,g=Sl(t,e,r),w=ml(t),b={},S=t.attributes.length,C=0;C<S;C++){var R=t.attributes[C];xo(w,R.name,R.value)||(b[R.name]=Ro(o,w,je(R.name),R.value))}if(w==="link"&&i){var A=Array.from(o.styleSheets).find(function(we){return we.href===t.href}),x=null;A&&(x=An(A)),x&&(delete b.rel,delete b.href,b._cssText=x)}if(w==="style"&&t.sheet){var k=An(t.sheet);k&&(t.childNodes.length>1&&(k=dl(k,t)),b._cssText=k)}if(w==="input"||w==="textarea"||w==="select"){var P=t.value,_=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&P?b.value=hr({element:t,type:dr(t),tagName:w,value:P,maskInputOptions:a,maskInputFn:u}):_&&(b.checked=_)}if(w==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),w==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(t.__context==="2d")sl(t)||(b.rr_dataURL=t.toDataURL(c.type,c.quality));else if(!("__context"in t)){var $=t.toDataURL(c.type,c.quality),G=o.createElement("canvas");G.width=t.width,G.height=t.height;var pe=G.toDataURL(c.type,c.quality);$!==pe&&(b.rr_dataURL=$)}}if(w==="img"&&f){st||(st=o.createElement("canvas"),Io=st.getContext("2d"));var j=t,ge=j.currentSrc||j.getAttribute("src")||"<unknown-src>",he=j.crossOrigin,Q=function(){j.removeEventListener("load",Q);try{st.width=j.naturalWidth,st.height=j.naturalHeight,Io.drawImage(j,0,0),b.rr_dataURL=st.toDataURL(c.type,c.quality)}catch(we){if(j.crossOrigin!=="anonymous"){j.crossOrigin="anonymous",j.complete&&j.naturalWidth!==0?Q():j.addEventListener("load",Q);return}else console.warn("Cannot inline img src="+ge+"! Error: "+we)}j.crossOrigin==="anonymous"&&(he?b.crossOrigin=he:j.removeAttribute("crossorigin"))};j.complete&&j.naturalWidth!==0?Q():j.addEventListener("load",Q)}if(w==="audio"||w==="video"){var ae=b;ae.rr_mediaState=t.paused?"paused":"played",ae.rr_mediaCurrentTime=t.currentTime,ae.rr_mediaPlaybackRate=t.playbackRate,ae.rr_mediaMuted=t.muted,ae.rr_mediaLoop=t.loop,ae.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),g){var ye=t.getBoundingClientRect(),Ke=ye.width,Ae=ye.height;b={class:b.class,rr_width:""+Ke+"px",rr_height:""+Ae+"px"}}w==="iframe"&&!v(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Ot;try{customElements.get(w)&&(Ot=!0)}catch(we){}return{type:ie.Element,tagName:w,attributes:b,childNodes:[],isSVG:bl(t)||void 0,needBlock:g,rootId:d,isCustom:Ot}}function H(t){return t==null?"":t.toLowerCase()}function Al(t,n){if(n.comment&&t.type===ie.Comment)return!0;if(t.type===ie.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&So(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(H(t.attributes.name).match(/^msapplication-tile(image|color)$/)||H(t.attributes.name)==="application-name"||H(t.attributes.rel)==="icon"||H(t.attributes.rel)==="apple-touch-icon"||H(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&H(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(H(t.attributes.property).match(/^(og|twitter|fb):/)||H(t.attributes.name).match(/^(og|twitter):/)||H(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(H(t.attributes.name)==="robots"||H(t.attributes.name)==="googlebot"||H(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(H(t.attributes.name)==="author"||H(t.attributes.name)==="generator"||H(t.attributes.name)==="framework"||H(t.attributes.name)==="publisher"||H(t.attributes.name)==="progid"||H(t.attributes.property).match(/^article:/)||H(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(H(t.attributes.name)==="google-site-verification"||H(t.attributes.name)==="yandex-verification"||H(t.attributes.name)==="csrf-token"||H(t.attributes.name)==="p:domain_verify"||H(t.attributes.name)==="verify-v1"||H(t.attributes.name)==="verification"||H(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ut(t,n){var o=n.doc,e=n.mirror,r=n.blockClass,i=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,l=u===void 0?!1:u,c=n.inlineStylesheet,f=c===void 0?!0:c,h=n.maskInputOptions,v=h===void 0?{}:h,p=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,g=n.dataURLOptions,w=g===void 0?{}:g,b=n.inlineImages,S=b===void 0?!1:b,C=n.recordCanvas,R=C===void 0?!1:C,A=n.onSerialize,x=n.onIframeLoad,k=n.iframeLoadTimeout,P=k===void 0?5e3:k,_=n.onStylesheetLoad,$=n.stylesheetLoadTimeout,G=$===void 0?5e3:$,pe=n.keepIframeSrcFn,j=pe===void 0?function(){return!1}:pe,ge=n.newlyAddedElement,he=ge===void 0?!1:ge,Q=n.cssCaptured,ae=Q===void 0?!1:Q,ye=n.needsMask,Ke=n.preserveWhiteSpace,Ae=Ke===void 0?!0:Ke;if(!ye){var Ot=ye===void 0;ye=Eo(t,s,a,Ot)}var we=Ol(t,{doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,dataURLOptions:w,inlineImages:S,recordCanvas:R,keepIframeSrcFn:j,newlyAddedElement:he,cssCaptured:ae});if(!we)return console.warn(t,"not serialized"),null;var Xe;e.hasNode(t)?Xe=e.getId(t):Al(we,d)||!Ae&&we.type===ie.Text&&!we.textContent.replace(/^\s+|\s+$/gm,"").length?Xe=Pt:Xe=Co();var W=Object.assign(we,{id:Xe});if(e.add(t,W),Xe===Pt)return null;A&&A(t);var Qe=!l;if(W.type===ie.Element){Qe=Qe&&!W.needBlock,delete W.needBlock;var et=le.shadowRoot(t);et&&Tt(et)&&(W.isShadowHost=!0)}if((W.type===ie.Document||W.type===ie.Element)&&Qe){d.headWhitespace&&W.type===ie.Element&&W.tagName==="head"&&(Ae=!1);var Rt={doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:l,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:P,onStylesheetLoad:_,stylesheetLoadTimeout:G,keepIframeSrcFn:j,cssCaptured:!1};if(!(W.type===ie.Element&&W.tagName==="textarea"&&W.attributes.value!==void 0)){W.type===ie.Element&&W.attributes._cssText!==void 0&&typeof W.attributes._cssText=="string"&&(Rt.cssCaptured=!0);for(var or=O(Array.from(le.childNodes(t))),sr;!(sr=or()).done;){var no=sr.value,Sn=ut(no,Rt);Sn&&W.childNodes.push(Sn)}}var Ge=null;if(go(t)&&(Ge=le.shadowRoot(t)))for(var tt=O(Array.from(le.childNodes(Ge))),xt;!(xt=tt()).done;){var ar=xt.value,Et=ut(ar,Rt);Et&&(Tt(Ge)&&(Et.isShadow=!0),W.childNodes.push(Et))}}var rt=le.parentNode(t);return rt&&_t(rt)&&Tt(rt)&&(W.isShadow=!0),W.type===ie.Element&&W.tagName==="iframe"&&Cl(t,function(){var Ne=t.contentDocument;if(Ne&&x){var nt=ut(Ne,{doc:Ne,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:P,onStylesheetLoad:_,stylesheetLoadTimeout:G,keepIframeSrcFn:j});nt&&x(t,nt)}},P),W.type===ie.Element&&W.tagName==="link"&&typeof W.attributes.rel=="string"&&(W.attributes.rel==="stylesheet"||W.attributes.rel==="preload"&&typeof W.attributes.href=="string"&&So(W.attributes.href)==="css")&&Il(t,function(){if(_){var Ne=ut(t,{doc:o,mirror:e,blockClass:r,blockSelector:i,needsMask:ye,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:v,maskTextFn:p,maskInputFn:y,slimDOMOptions:d,dataURLOptions:w,inlineImages:S,recordCanvas:R,preserveWhiteSpace:Ae,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:P,onStylesheetLoad:_,stylesheetLoadTimeout:G,keepIframeSrcFn:j});Ne&&_(t,Ne)}},G),W}function Ml(t,n){var o=n||{},e=o.mirror,r=e===void 0?new wo:e,i=o.blockClass,s=i===void 0?"rr-block":i,a=o.blockSelector,u=a===void 0?null:a,l=o.maskTextClass,c=l===void 0?"rr-mask":l,f=o.maskTextSelector,h=f===void 0?null:f,v=o.inlineStylesheet,p=v===void 0?!0:v,y=o.inlineImages,d=y===void 0?!1:y,g=o.recordCanvas,w=g===void 0?!1:g,b=o.maskAllInputs,S=b===void 0?!1:b,C=o.maskTextFn,R=o.maskInputFn,A=o.slimDOM,x=A===void 0?!1:A,k=o.dataURLOptions,P=o.preserveWhiteSpace,_=o.onSerialize,$=o.onIframeLoad,G=o.iframeLoadTimeout,pe=o.onStylesheetLoad,j=o.stylesheetLoadTimeout,ge=o.keepIframeSrcFn,he=ge===void 0?function(){return!1}:ge,Q=S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:S===!1?{password:!0}:S,ae=x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x;return ut(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:c,maskTextSelector:h,skipChild:!1,inlineStylesheet:p,maskInputOptions:Q,maskTextFn:C,maskInputFn:R,slimDOMOptions:ae,dataURLOptions:k,inlineImages:d,recordCanvas:w,preserveWhiteSpace:P,onSerialize:_,onIframeLoad:$,iframeLoadTimeout:G,onStylesheetLoad:pe,stylesheetLoadTimeout:j,keepIframeSrcFn:he,newlyAddedElement:!1})}function kl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _l(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var o=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),o}var kn={exports:{}},J=String,Ao=function(){return{isColorSupported:!1,reset:J,bold:J,dim:J,italic:J,underline:J,inverse:J,hidden:J,strikethrough:J,black:J,red:J,green:J,yellow:J,blue:J,magenta:J,cyan:J,white:J,gray:J,bgBlack:J,bgRed:J,bgGreen:J,bgYellow:J,bgBlue:J,bgMagenta:J,bgCyan:J,bgWhite:J}};kn.exports=Ao(),kn.exports.createColors=Ao;var Tl=kn.exports,Pl={},Nl=Object.freeze(Object.defineProperty({__proto__:null,default:Pl},Symbol.toStringTag,{value:"Module"})),re=_l(Nl),Mo=Tl,ko=re,_n=function(t){ue(n,t);function n(e,r,i,s,a,u){var l;return l=t.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof r!="undefined"&&typeof i!="undefined"&&(typeof r=="number"?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,n),l}var o=n.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=Mo.isColorSupported),ko&&r&&(s=ko(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length,f,h;if(r){var v=Mo.createColors(!0),p=v.bold,y=v.gray,d=v.red;f=function(g){return p(d(g))},h=function(g){return y(g)}}else f=h=function(g){return g};return a.slice(u,l).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-c)+" | ";if(b===i.line){var C=h(S.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+g+"\n "+C+f("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(cr(Error)),Tn=_n;_n.default=_n;var Le={};Le.isClean=Symbol("isClean"),Le.my=Symbol("my");var _o={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $l(t){return t[0].toUpperCase()+t.slice(1)}var Pn=function(){function t(o){this.builder=o}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(i+s+a,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(i.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)i+=u}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return _o[i];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[i]!="undefined")return u.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var l="raw"+$l(i);return this[l]?s=this[l](u,e):u.walk(function(c){if(s=c.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=_o[i]),u.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return r=i.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var i;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){var i;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return r=i.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(typeof i.raws.between!="undefined")return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before!="undefined"){var a=i.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),To=Pn;Pn.default=Pn;var Ll=To;function Nn(t,n){var o=new Ll(n);o.stringify(t)}var gr=Nn;Nn.default=Nn;var yr=Le.isClean,Dl=Le.my,Fl=Tn,Bl=To,Ul=gr;function $n(t,n){var o=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r=="undefined"?"undefined":N(r);e==="parent"&&i==="object"?n&&(o[e]=n):e==="source"?o[e]=r:Array.isArray(r)?o[e]=r.map(function(s){return $n(s,o)}):(i==="object"&&r!==null&&(r=$n(r)),o[e]=r)}return o}var Ln=function(){function t(o){o===void 0&&(o={}),this.raws={},this[yr]=!1,this[Dl]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var r=O(o[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=$n(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,a=i.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Fl(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[yr]){this[yr]=!1;for(var e=this;e=e.parent;)e[yr]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)i[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),i=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){var i=new Bl;return i.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s=this,a=!1,u=O(r),l;!(l=u()).done;){var c=l.value;c===this?a=!0:a?(this.parent.insertAfter(s,c),s=c):this.parent.insertBefore(s,c)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))i[u]=l.map(function(f){return(typeof f=="undefined"?"undefined":N(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof l=="undefined"?"undefined":N(l))==="object"&&l.toJSON)i[u]=l.toJSON(null,r);else if(u==="source"){var c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),i[u]={end:l.end,inputId:c,start:l.start}}else i[u]=l}return s&&(i.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Ul),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var a in i)s[a]=i[a];return e.warn(r,s)},se(t,[{key:"proxyOf",get:function(){return this}}]),t}(),wr=Ln;Ln.default=Ln;var zl=wr,Dn=function(t){ue(n,t);function n(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=U({},o,{value:String(o.value)})),e=t.call(this,o)||this,e.type="decl",e}return se(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(zl),br=Dn;Dn.default=Dn;var Wl="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gl=function(t){t===void 0&&(t=21);for(var n="",o=t;o--;)n+=Wl[Math.random()*64|0];return n},jl={nanoid:Gl},Po=re.SourceMapConsumer,No=re.SourceMapGenerator,Vl=re.existsSync,Yl=re.readFileSync,Fn=re.dirname,ql=re.join;function Hl(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Bn=function(){function t(o,e){if(e.map!==!1){this.loadAnnotation(o),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=Fn(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Po(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return Hl(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":N(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=Fn(e),Vl(e))return this.mapFile=e,Yl(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var i=r(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(M(r,Po))return No.fromSourceMap(r).toString();if(M(r,No))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=ql(Fn(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),$o=Bn;Bn.default=Bn;var Jl=re.SourceMapConsumer,Zl=re.SourceMapGenerator,Lo=re.fileURLToPath,Sr=re.pathToFileURL,Un=re.isAbsolute,zn=re.resolve,Kl=jl.nanoid,Wn=re,Do=Tn,Xl=$o,Gn=Symbol("fromOffsetCache"),Ql=!!(Jl&&Zl),Fo=!!(zn&&Un),Cr=function(){function t(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":N(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Fo||/^\w+:\/\//.test(e.from)||Un(e.from)?this.file=e.from:this.file=zn(e.from)),Fo&&Ql){var r=new Xl(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 "+Kl(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var a,u,l;if(r&&(typeof r=="undefined"?"undefined":N(r))==="object"){var c=r,f=i;if(typeof c.offset=="number"){var h=this.fromOffset(c.offset);r=h.line,i=h.col}else r=c.line,i=c.column;if(typeof f.offset=="number"){var v=this.fromOffset(f.offset);u=v.line,l=v.col}else u=f.line,l=f.column}else if(!i){var p=this.fromOffset(r);r=p.line,i=p.col}var y=this.origin(r,i,u,l);return y?a=new Do(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Do(e,u===void 0?r:{column:i,line:r},u===void 0?i:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:i,endColumn:l,endLine:u,line:r,source:this.css},this.file&&(Sr&&(a.input.url=Sr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,i;if(this[Gn])i=this[Gn];else{var s=this.css.split("\n");i=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)i[u]=a,a+=s[u].length+1;this[Gn]=i}r=i[i.length-1];var c=0;if(e>=r)c=i.length-1;else for(var f=i.length-2,h;c<f;)if(h=c+(f-c>>1),e<i[h])f=h-1;else if(e>=i[h+1])c=h+1;else{c=h;break}return{col:e-i[c]+1,line:c+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:zn(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var l;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i}));var c;Un(u.source)?c=Sr(u.source):c=new URL(u.source,this.map.consumer().sourceRoot||Sr(this.map.mapFile));var f={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:c.toString()};if(c.protocol==="file:")if(Lo)f.file=Lo(c);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=U({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},se(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),Ir=Cr;Cr.default=Cr,Wn&&Wn.registerInput&&Wn.registerInput(Cr);var Bo=re.SourceMapConsumer,Or=re.SourceMapGenerator,Rr=re.dirname,Uo=re.relative,zo=re.resolve,Wo=re.sep,Go=re.pathToFileURL,ec=Ir,tc=!!(Bo&&Or),rc=!!(Rr&&zo&&Uo&&Wo),nc=function(){function t(o,e,r,i){this.stringify=o,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}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),a=i.root||Rr(i.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Bo(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),rc&&tc&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Or.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Or({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]},n.generateString=function(){var e=this;this.css="",this.map=new Or({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(c,f,h){if(e.css+=c,f&&h!=="end"&&(a.generated.line=r,a.generated.column=i-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=c.match(/\n/g),u?(r+=u.length,l=c.lastIndexOf("\n"),i=c.length-l):i+=c.length,f&&h!=="start"){var v=f.parent||{raws:{}},p=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!p||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=i-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=i-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Rr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Rr(zo(i,this.mapOpts.annotation)));var s=Uo(i,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new ec(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Go){var i=Go(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Wo==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),jo=nc,ic=wr,jn=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="comment",e}return n}(ic),xr=jn;jn.default=jn;var Vo=Le.isClean,Yo=Le.my,qo=br,Ho=xr,oc=wr,Jo,Vn,Yn,Zo;function Ko(t){return t.map(function(n){return n.nodes&&(n.nodes=Ko(n.nodes)),delete n.source,n})}function Xo(t){if(t[Vo]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),o;!(o=n()).done;){var e=o.value;Xo(e)}}var Me=function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var a=O(i),u;!(u=a()).done;)for(var l=u.value,c=this.normalize(l,this.last),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=O(this.nodes),s;!(s=i()).done;){var a=s.value;a.cleanRaws(r)}},o.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,a;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[i]+=1;return delete this.indexes[i],a}},o.every=function(r){return this.nodes.every(r)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},o.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var c;return(c=i)[s].apply(c,[].concat(u.map(function(f){return typeof f=="function"?function(h,v){return f(h.toProxy(),v)}:f})))}:s==="every"||s==="some"?function(a){return i[s](function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],c))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,a){return i[s]===a||(i[s]=a,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},o.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},o.insertAfter=function(r,i){var s=this.index(r),a=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),l;!(l=u()).done;){var c=l.value;this.proxyOf.nodes.splice(s+1,0,c)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},o.insertBefore=function(r,i){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(i,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var l=O(u),c;!(c=l()).done;){var f=c.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(r,i){var s=this;if(typeof r=="string")r=Ko(Jo(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var c=O(r),f;!(f=c()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new qo(r)]}else if(r.selector)r=[new Vn(r)];else if(r.name)r=[new Yn(r)];else if(r.text)r=[new Ho(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(p){return p[Yo]||n.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[Vo]&&Xo(p),typeof p.raws.before=="undefined"&&i&&typeof i.raws.before!="undefined"&&(p.raws.before=i.raws.before.replace(/\S/g,"")),p.parent=s.proxyOf,p});return v},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var a=O(i),u;!(u=a()).done;){for(var l=u.value,c=this.normalize(l,this.first,"prepend").reverse(),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+c.length}return this.markDirty(),this},o.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},o.removeAll=function(){for(var r=O(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},o.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(a){i.props&&!i.props.includes(a.prop)||i.fast&&!a.value.includes(i.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},o.some=function(r){return this.nodes.some(r)},o.walk=function(r){return this.each(function(i,s){var a;try{a=r(i,s)}catch(u){throw i.addToError(u)}return a!==!1&&i.walk&&(a=i.walk(r)),a})},o.walkAtRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return i(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="atrule")return i(s,a)}))},o.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},o.walkDecls=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return i(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="decl")return i(s,a)}))},o.walkRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return i(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="rule")return i(s,a)}))},se(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(oc);Me.registerParse=function(t){Jo=t},Me.registerRule=function(t){Vn=t},Me.registerAtRule=function(t){Yn=t},Me.registerRoot=function(t){Zo=t};var Ve=Me;Me.default=Me,Me.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Yn.prototype):t.type==="rule"?Object.setPrototypeOf(t,Vn.prototype):t.type==="decl"?Object.setPrototypeOf(t,qo.prototype):t.type==="comment"?Object.setPrototypeOf(t,Ho.prototype):t.type==="root"&&Object.setPrototypeOf(t,Zo.prototype),t[Yo]=!0,t.nodes&&t.nodes.forEach(function(n){Me.rebuild(n)})};var sc=Ve,Qo,es,Nt=function(t){ue(n,t);function n(e){var r;return r=t.call(this,U({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.toResult=function(r){r===void 0&&(r={});var i=new Qo(new es,this,r);return i.stringify()},n}(sc);Nt.registerLazyResult=function(t){Qo=t},Nt.registerProcessor=function(t){es=t};var qn=Nt;Nt.default=Nt;var ts={},rs=function(n){ts[n]||(ts[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Hn=function(){function t(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,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]}var n=t.prototype;return n.toString=function(){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},t}(),ns=Hn;Hn.default=Hn;var ac=ns,Jn=function(){function t(o,e,r){this.processor=o,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new ac(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},se(t,[{key:"content",get:function(){return this.css}}]),t}(),Zn=Jn;Jn.default=Jn;var Kn=39,is=34,Er=92,os=47,Ar=10,$t=32,Mr=12,kr=9,_r=13,uc=91,lc=93,cc=40,fc=41,hc=123,dc=125,pc=59,vc=42,mc=58,gc=64,Tr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Pr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yc=/.[\r\n"'(/\\]/,ss=/[\da-f]/i,wc=function(n,o){o===void 0&&(o={});var e=n.css.valueOf(),r=o.ignoreErrors,i,s,a,u,l,c,f,h,v,p,y=e.length,d=0,g=[],w=[];function b(){return d}function S(x){throw n.error("Unclosed "+x,d)}function C(){return w.length===0&&d>=y}function R(x){if(w.length)return w.pop();if(!(d>=y)){var k=x?x.ignoreUnclosed:!1;switch(i=e.charCodeAt(d),i){case Ar:case $t:case kr:case _r:case Mr:{s=d;do s+=1,i=e.charCodeAt(s);while(i===$t||i===Ar||i===kr||i===_r||i===Mr);p=["space",e.slice(d,s)],d=s-1;break}case uc:case lc:case hc:case dc:case mc:case pc:case fc:{var P=String.fromCharCode(i);p=[P,P,d];break}case cc:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(d+1),h==="url"&&v!==Kn&&v!==is&&v!==$t&&v!==Ar&&v!==kr&&v!==Mr&&v!==_r){s=d;do{if(c=!1,s=e.indexOf(")",s+1),s===-1)if(r||k){s=d;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===Er;)f-=1,c=!c}while(c);p=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||yc.test(u)?p=["(","(",d]:(p=["brackets",u,d,s],d=s);break}case Kn:case is:{a=i===Kn?"'":'"',s=d;do{if(c=!1,s=e.indexOf(a,s+1),s===-1)if(r||k){s=d+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===Er;)f-=1,c=!c}while(c);p=["string",e.slice(d,s+1),d,s],d=s;break}case gc:{Tr.lastIndex=d+1,Tr.test(e),Tr.lastIndex===0?s=e.length-1:s=Tr.lastIndex-2,p=["at-word",e.slice(d,s+1),d,s],d=s;break}case Er:{for(s=d,l=!0;e.charCodeAt(s+1)===Er;)s+=1,l=!l;if(i=e.charCodeAt(s+1),l&&i!==os&&i!==$t&&i!==Ar&&i!==kr&&i!==_r&&i!==Mr&&(s+=1,ss.test(e.charAt(s)))){for(;ss.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===$t&&(s+=1)}p=["word",e.slice(d,s+1),d,s],d=s;break}default:{i===os&&e.charCodeAt(d+1)===vc?(s=e.indexOf("*/",d+2)+1,s===0&&(r||k?s=e.length:S("comment")),p=["comment",e.slice(d,s+1),d,s],d=s):(Pr.lastIndex=d+1,Pr.test(e),Pr.lastIndex===0?s=e.length-1:s=Pr.lastIndex-2,p=["word",e.slice(d,s+1),d,s],g.push(p),d=s);break}}return d++,p}}function A(x){w.push(x)}return{back:A,endOfFile:C,nextToken:R,position:b}},as=Ve,Nr=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],i))},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],i))},n}(as),Xn=Nr;Nr.default=Nr,as.registerAtRule(Nr);var us=Ve,ls,cs,lt=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.normalize=function(r,i,s){var a=t.prototype.normalize.call(this,r);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var u=O(a),l;!(l=u()).done;){var c=l.value;c.raws.before=i.raws.before}}return a},o.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},o.toResult=function(r){r===void 0&&(r={});var i=new ls(new cs,this,r);return i.stringify()},n}(us);lt.registerLazyResult=function(t){ls=t},lt.registerProcessor=function(t){cs=t};var Lt=lt;lt.default=lt,us.registerRoot(lt);var Dt={comma:function(n){return Dt.split(n,[","],!0)},space:function(n){var o=[" ","\n"," "];return Dt.split(n,o)},split:function(n,o,e){for(var r=[],i="",s=!1,a=0,u=!1,l="",c=!1,f=O(n),h;!(h=f()).done;){var v=h.value;c?c=!1:v==="\\"?c=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=v}return(e||i!=="")&&r.push(i.trim()),r}},fs=Dt;Dt.default=Dt;var hs=Ve,bc=fs,$r=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return se(n,[{key:"selectors",get:function(){return bc.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(hs),Qn=$r;$r.default=$r,hs.registerRule($r);var Sc=br,Cc=wc,Ic=xr,Oc=Xn,Rc=Lt,ds=Qn,ps={empty:!0,space:!0};function xc(t){for(var n=t.length-1;n>=0;n--){var o=t[n],e=o[3]||o[2];if(e)return e}}var Ec=function(){function t(o){this.input=o,this.root=new Rc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Oc;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,a,u=!1,l=!1,c=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?f.push(i==="("?")":"]"):i==="{"&&f.length>0?f.push("}"):i===f[f.length-1]&&f.pop(),f.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(c.length>0){for(a=c.length-1,s=c[a];s&&s[0]==="space";)s=c[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),u&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,a,u=O(e.entries()),l;!(l=u()).done;){var c=l.value,f=c[0],h=c[1];if(i=h,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(i);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=i}return!1},n.comment=function(e){var r=new Ic;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Cc(this.input)},n.decl=function(e,r){var i=new Sc;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||xc(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var l=[],c;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),p="",y=f;y>0;y--){var d=v[y][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=v.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new ds;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},n.endFile=function(){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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),c=[],f=e;f;){if(i=f[0],c.push(f),i==="("||i==="[")a||(a=f),u.push(i==="("?")":"]");else if(l&&s&&i==="{")a||(a=f),u.push("}");else if(u.length===0)if(i===";")if(s){this.decl(c,l);return}else break;else if(i==="{"){this.rule(c);return}else if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}else i===":"&&(s=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!l)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,l)}else this.unknownWord(c)},n.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var a,u,l=i.length,c="",f=!0,h,v,p=0;p<l;p+=1)a=i[p],u=a[0],u==="space"&&p===l-1&&!s?f=!1:u==="comment"?(v=i[p-1]?i[p-1][0]:"empty",h=i[p+1]?i[p+1][0]:"empty",!ps[v]&&!ps[h]?c.slice(-1)===","?f=!1:c+=a[1]:f=!1):c+=a[1];if(!f){var y=i.reduce(function(d,g){return d+g[1]},"");e.raws[r]={raw:y,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new ds;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),Ac=Ec,Mc=Ve,kc=Ac,_c=Ir;function Lr(t,n){var o=new _c(t,n),e=new kc(o);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var ei=Lr;Lr.default=Lr,Mc.registerParse(Lr);var Oe=Le.isClean,Tc=Le.my,Pc=jo,Nc=gr,$c=Ve,Lc=qn,Dc=rs,vs=Zn,Fc=ei,Bc=Lt,Uc={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},zc={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},Wc={Once:!0,postcssPlugin:!0,prepare:!0},ct=0;function Ft(t){return(typeof t=="undefined"?"undefined":N(t))==="object"&&typeof t.then=="function"}function ms(t){var n=!1,o=Uc[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[o,o+"-"+n,ct,o+"Exit",o+"Exit-"+n]:n?[o,o+"-"+n,o+"Exit",o+"Exit-"+n]:t.append?[o,ct,o+"Exit"]:[o,o+"Exit"]}function gs(t){var n;return t.type==="document"?n=["Document",ct,"DocumentExit"]:t.type==="root"?n=["Root",ct,"RootExit"]:n=ms(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ti(t){return t[Oe]=!1,t.nodes&&t.nodes.forEach(function(n){return ti(n)}),t}var ri={},ft=function(){function t(o,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":N(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ti(e);else if(M(e,t)||M(e,vs))s=ti(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Fc;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Tc]&&$c.rebuild(s)}this.result=new vs(o,s,r),this.helpers=U({},ri,{postcss:ri,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":N(u))==="object"&&u.prepare?U({},u,u.prepare(i.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){var s=i.postcssPlugin,a=i.postcssVersion,u=this.result.processor.version,l=a.split("."),c=u.split(".");(l[0]!==c[0]||parseInt(l[1])>parseInt(c[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(c,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([c,h])},i=O(this.plugins),s;!(s=i()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":N(a))==="object")for(var u in a){if(!zc[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Wc[u])if(N(a[u])==="object")for(var l in a[u])l==="*"?r(a,u,a[u][l]):r(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return In(function(){var r,i,s,a,u,l,c,f,h,v,p,y;return kt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!Ft(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Oe])return[3,14];u[Oe]=!0,l=[gs(u)],d.label=8;case 8:if(!(l.length>0))return[3,13];if(c=e.visitTick(l),!Ft(c))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,c];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),h=l[l.length-1].node,e.handleError(f,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return kt(this,function(R){switch(R.label){case 0:g=y.value,w=g[0],b=g[1],e.result.lastPlugin=w,R.label=1;case 1:return R.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(S)]);case 2:return R.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:R.sent(),R.label=5;case 5:return[3,7];case 6:throw C=R.sent(),e.handleError(C);case 7:return[2]}})},p=O(e.listeners.OnceExit),d.label=15;case 15:return(y=p()).done?[3,18]:[5,co(v())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":N(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Ft(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Nc;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new Pc(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=O(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if(Ft(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Oe];)a[Oe]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),l;!(l=u()).done;){var c=l.value;this.visitSync(this.listeners.OnceExit,c)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Dc("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(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i=O(e),s;!(s=i()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var c=void 0;try{c=l(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Ft(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],l=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return l(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(r.iterator!==0){for(var c=r.iterator,f;f=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!f[Oe]){f[Oe]=!0,e.push(gs(f));return}r.iterator=0,delete i.indexes[c]}for(var h=r.events;r.eventIndex<h.length;){var v=h[r.eventIndex];if(r.eventIndex+=1,v===ct){i.nodes&&i.nodes.length&&(i[Oe]=!0,r.iterator=i.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}e.pop()},n.walkSync=function(e){var r=this;e[Oe]=!0;for(var i=ms(e),s=O(i),a;!(a=s()).done;){var u=a.value;if(u===ct)e.nodes&&e.each(function(c){c[Oe]||r.walkSync(c)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},se(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t}();ft.registerPostcss=function(t){ri=t};var ys=ft;ft.default=ft,Bc.registerLazyResult(ft),Lc.registerLazyResult(ft);var Gc=jo,jc=gr,Vc=rs,Yc=ei,qc=Zn,ni=function(){function t(o,e,r){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=r,this._map=void 0;var i,s=jc;this.result=new qc(this._processor,i,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Gc(s,i,this._opts,e);if(u.isMap()){var l=u.generate(),c=l[0],f=l[1];c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Vc("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(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},se(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=Yc;try{e=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t}(),Hc=ni;ni.default=ni;var Jc=Hc,Zc=ys,Kc=qn,Xc=Lt,Bt=function(){function t(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=O(e),s;!(s=i()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":N(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Jc(this,e,r):new Zc(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),Qc=Bt;Bt.default=Bt,Xc.registerProcessor(Bt),Kc.registerProcessor(Bt);var ef=br,tf=$o,rf=xr,nf=Xn,of=Ir,sf=Lt,af=Qn;function Ut(t,n){if(Array.isArray(t))return t.map(function(f){return Ut(f)});var o=t.inputs,e=At(t,["inputs"]);if(o){n=[];for(var r=O(o),i;!(i=r()).done;){var s=i.value,a=U({},s,{__proto__:of.prototype});a.map&&(a.map=U({},a.map,{__proto__:tf.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Ut(f,n)})),e.source){var u=e.source,l=u.inputId,c=At(u,["inputId"]);e.source=c,l!=null&&(e.source.input=n[l])}if(e.type==="root")return new sf(e);if(e.type==="decl")return new ef(e);if(e.type==="rule")return new af(e);if(e.type==="comment")return new rf(e);if(e.type==="atrule")return new nf(e);throw new Error("Unknown node type: "+t.type)}var uf=Ut;Ut.default=Ut;var lf=Tn,ws=br,cf=ys,ff=Ve,ii=Qc,hf=gr,df=uf,bs=qn,pf=ns,Ss=xr,Cs=Xn,vf=Zn,mf=Ir,gf=ei,yf=fs,Is=Qn,Os=Lt,wf=wr;function V(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ii(n)}V.plugin=function(n,o){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=n,l.postcssVersion=new ii().version,l}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,a,u){return V([r(u)]).process(s,a)},r},V.stringify=hf,V.parse=gf,V.fromJSON=df,V.list=yf,V.comment=function(t){return new Ss(t)},V.atRule=function(t){return new Cs(t)},V.decl=function(t){return new ws(t)},V.rule=function(t){return new Is(t)},V.root=function(t){return new Os(t)},V.document=function(t){return new bs(t)},V.CssSyntaxError=lf,V.Declaration=ws,V.Container=ff,V.Processor=ii,V.Document=bs,V.Comment=Ss,V.Warning=pf,V.AtRule=Cs,V.Result=vf,V.Input=mf,V.Rule=Is,V.Root=Os,V.Node=wf,cf.registerPostcss(V);var bf=V;V.default=V;var K=kl(bf);K.stringify,K.fromJSON,K.plugin,K.parse,K.list,K.document,K.comment,K.atRule,K.rule,K.decl,K.root,K.CssSyntaxError,K.Declaration,K.Container,K.Processor,K.Document,K.Comment,K.Warning,K.AtRule,K.Result,K.Input,K.Rule,K.Root,K.Node;var Sf=Object.defineProperty,Cf=function(t,n,o){return n in t?Sf(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},be=function(t,n,o){return Cf(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)};function If(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Of(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var o=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),o}var oi={exports:{}},Z=String,Rs=function(){return{isColorSupported:!1,reset:Z,bold:Z,dim:Z,italic:Z,underline:Z,inverse:Z,hidden:Z,strikethrough:Z,black:Z,red:Z,green:Z,yellow:Z,blue:Z,magenta:Z,cyan:Z,white:Z,gray:Z,bgBlack:Z,bgRed:Z,bgGreen:Z,bgYellow:Z,bgBlue:Z,bgMagenta:Z,bgCyan:Z,bgWhite:Z}};oi.exports=Rs(),oi.exports.createColors=Rs;var Rf=oi.exports,xf={},Ef=Object.freeze(Object.defineProperty({__proto__:null,default:xf},Symbol.toStringTag,{value:"Module"})),ne=Of(Ef),xs=Rf,Es=ne,si=function(t){ue(n,t);function n(e,r,i,s,a,u){var l;return l=t.call(this,e)||this,l.name="CssSyntaxError",l.reason=e,a&&(l.file=a),s&&(l.source=s),u&&(l.plugin=u),typeof r!="undefined"&&typeof i!="undefined"&&(typeof r=="number"?(l.line=r,l.column=i):(l.line=r.line,l.column=r.column,l.endLine=i.line,l.endColumn=i.column)),l.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(l,n),l}var o=n.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(r){var i=this;if(!this.source)return"";var s=this.source;r==null&&(r=xs.isColorSupported),Es&&r&&(s=Es(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length,f,h;if(r){var v=xs.createColors(!0),p=v.bold,y=v.gray,d=v.red;f=function(g){return p(d(g))},h=function(g){return y(g)}}else f=h=function(g){return g};return a.slice(u,l).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-c)+" | ";if(b===i.line){var C=h(S.replace(/\d/g," "))+g.slice(0,i.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+g+"\n "+C+f("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(cr(Error)),ai=si;si.default=si;var De={};De.isClean=Symbol("isClean"),De.my=Symbol("my");var As={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Af(t){return t[0].toUpperCase()+t.slice(1)}var ui=function(){function t(o){this.builder=o}var n=t.prototype;return n.atrule=function(e,r){var i="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?i+=e.raws.afterName:s&&(i+=" "),e.nodes)this.block(e,i+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(i+s+a,e)}},n.beforeAfter=function(e,r){var i;e.type==="decl"?i=this.raw(e,null,"beforeDecl"):e.type==="comment"?i=this.raw(e,null,"beforeComment"):r==="before"?i=this.raw(e,null,"beforeRule"):i=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(i.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var l=0;l<a;l++)i+=u}return i},n.block=function(e,r){var i=this.raw(e,"between","beforeOpen");this.builder(r+i+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var i=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||i)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),i=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+i+"*/",e)},n.decl=function(e,r){var i=this.raw(e,"between","colon"),s=e.prop+i+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,i){var s;if(i||(i=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(i==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return As[i];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[i]!="undefined")return u.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(e,i);var l="raw"+Af(i);return this[l]?s=this[l](u,e):u.walk(function(c){if(s=c.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=As[i]),u.rawCache[i]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length>0&&typeof i.raws.after!="undefined")return r=i.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var i;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeDecl=function(e,r){var i;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return i=s.raws.before,i.includes("\n")&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i=="undefined"?i=this.raw(r,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i},n.rawBeforeOpen=function(e){var r;return e.walk(function(i){if(i.type!=="decl"&&(r=i.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(i){if(i.nodes&&(i.parent!==e||e.first!==i)&&typeof i.raws.before!="undefined")return r=i.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(i){if(typeof i.raws.between!="undefined")return r=i.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length===0&&(r=i.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(i){var s=i.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof i.raws.before!="undefined"){var a=i.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(r=i.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var i=e[r],s=e.raws[r];return s&&s.value===i?s.raw:i},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t}(),Ms=ui;ui.default=ui;var Mf=Ms;function li(t,n){var o=new Mf(n);o.stringify(t)}var Dr=li;li.default=li;var Fr=De.isClean,kf=De.my,_f=ai,Tf=Ms,Pf=Dr;function ci(t,n){var o=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],i=typeof r=="undefined"?"undefined":N(r);e==="parent"&&i==="object"?n&&(o[e]=n):e==="source"?o[e]=r:Array.isArray(r)?o[e]=r.map(function(s){return ci(s,o)}):(i==="object"&&r!==null&&(r=ci(r)),o[e]=r)}return o}var fi=function(){function t(o){o===void 0&&(o={}),this.raws={},this[Fr]=!1,this[kf]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var r=O(o[e]),i;!(i=r()).done;){var s=i.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ci(this);for(var i in e)r[i]=e[i];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var i=this.rangeBy(r),s=i.end,a=i.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new _f(e)},n.getProxyProcessor=function(){return{get:function(r,i){return i==="proxyOf"?r:i==="root"?function(){return r.root().toProxy()}:r[i]},set:function(r,i,s){return r[i]===s||(r[i]=s,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Fr]){this[Fr]=!1;for(var e=this;e=e.parent;)e[Fr]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var i=this.source.start;if(e.index)i=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(i=this.positionInside(s,r))}return i},n.positionInside=function(e,r){for(var i=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)i[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),i=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line}),{end:i,start:r}},n.raw=function(e,r){var i=new Tf;return i.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(this.parent){for(var s=this,a=!1,u=O(r),l;!(l=u()).done;){var c=l.value;c===this?a=!0:a?(this.parent.insertAfter(s,c),s=c):this.parent.insertBefore(s,c)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var i={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var l=this[u];if(Array.isArray(l))i[u]=l.map(function(f){return(typeof f=="undefined"?"undefined":N(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof l=="undefined"?"undefined":N(l))==="object"&&l.toJSON)i[u]=l.toJSON(null,r);else if(u==="source"){var c=r.get(l.input);c==null&&(c=a,r.set(l.input,a),a++),i[u]={end:l.end,inputId:c,start:l.start}}else i[u]=l}return s&&(i.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),i},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Pf),e.stringify&&(e=e.stringify);var r="";return e(this,function(i){r+=i}),r},n.warn=function(e,r,i){var s={node:this};for(var a in i)s[a]=i[a];return e.warn(r,s)},se(t,[{key:"proxyOf",get:function(){return this}}]),t}(),Br=fi;fi.default=fi;var Nf=Br,hi=function(t){ue(n,t);function n(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=U({},o,{value:String(o.value)})),e=t.call(this,o)||this,e.type="decl",e}return se(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Nf),Ur=hi;hi.default=hi;var $f="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Lf=function(t){t===void 0&&(t=21);for(var n="",o=t;o--;)n+=$f[Math.random()*64|0];return n},Df={nanoid:Lf},ks=ne.SourceMapConsumer,_s=ne.SourceMapGenerator,Ff=ne.existsSync,Bf=ne.readFileSync,di=ne.dirname,Uf=ne.join;function zf(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var pi=function(){function t(o,e){if(e.map!==!1){this.loadAnnotation(o),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=di(this.mapFile)),i&&(this.text=i)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new ks(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,i=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||i.test(e))return zf(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":N(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var i=e.lastIndexOf(r.pop()),s=e.indexOf("*/",i);i>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(i,s)))}},n.loadFile=function(e){if(this.root=di(e),Ff(e))return this.mapFile=e,Bf(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var i=r(e);if(i){var s=this.loadFile(i);if(!s)throw new Error("Unable to load previous source map: "+i.toString());return s}}else{if(M(r,ks))return _s.fromSourceMap(r).toString();if(M(r,_s))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Uf(di(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),Ts=pi;pi.default=pi;var Wf=ne.SourceMapConsumer,Gf=ne.SourceMapGenerator,Ps=ne.fileURLToPath,zr=ne.pathToFileURL,vi=ne.isAbsolute,mi=ne.resolve,jf=Df.nanoid,gi=ne,Ns=ai,Vf=Ts,yi=Symbol("fromOffsetCache"),Yf=!!(Wf&&Gf),$s=!!(mi&&vi),Wr=function(){function t(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":N(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!$s||/^\w+:\/\//.test(e.from)||vi(e.from)?this.file=e.from:this.file=mi(e.from)),$s&&Yf){var r=new Vf(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 "+jf(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,i,s){s===void 0&&(s={});var a,u,l;if(r&&(typeof r=="undefined"?"undefined":N(r))==="object"){var c=r,f=i;if(typeof c.offset=="number"){var h=this.fromOffset(c.offset);r=h.line,i=h.col}else r=c.line,i=c.column;if(typeof f.offset=="number"){var v=this.fromOffset(f.offset);u=v.line,l=v.col}else u=f.line,l=f.column}else if(!i){var p=this.fromOffset(r);r=p.line,i=p.col}var y=this.origin(r,i,u,l);return y?a=new Ns(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Ns(e,u===void 0?r:{column:i,line:r},u===void 0?i:{column:l,line:u},this.css,this.file,s.plugin),a.input={column:i,endColumn:l,endLine:u,line:r,source:this.css},this.file&&(zr&&(a.input.url=zr(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,i;if(this[yi])i=this[yi];else{var s=this.css.split("\n");i=new Array(s.length);for(var a=0,u=0,l=s.length;u<l;u++)i[u]=a,a+=s[u].length+1;this[yi]=i}r=i[i.length-1];var c=0;if(e>=r)c=i.length-1;else for(var f=i.length-2,h;c<f;)if(h=c+(f-c>>1),e<i[h])f=h-1;else if(e>=i[h+1])c=h+1;else{c=h;break}return{col:e-i[c]+1,line:c+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:mi(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,i,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var l;typeof i=="number"&&(l=a.originalPositionFor({column:s,line:i}));var c;vi(u.source)?c=zr(u.source):c=new URL(u.source,this.map.consumer().sourceRoot||zr(this.map.mapFile));var f={column:u.column,endColumn:l&&l.column,endLine:l&&l.line,line:u.line,url:c.toString()};if(c.protocol==="file:")if(Ps)f.file=Ps(c);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,i=["hasBOM","css","file","id"];r<i.length;r++){var s=i[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=U({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},se(t,[{key:"from",get:function(){return this.file||this.id}}]),t}(),Gr=Wr;Wr.default=Wr,gi&&gi.registerInput&&gi.registerInput(Wr);var Ls=ne.SourceMapConsumer,jr=ne.SourceMapGenerator,Vr=ne.dirname,Ds=ne.relative,Fs=ne.resolve,Bs=ne.sep,Us=ne.pathToFileURL,qf=Gr,Hf=!!(Ls&&jr),Jf=!!(Vr&&Fs&&Ds&&Bs),Zf=function(){function t(o,e,r,i){this.stringify=o,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}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var i=r.value,s=this.toUrl(this.path(i.file)),a=i.root||Vr(i.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ls(i.text),u.sourcesContent&&(u.sourcesContent=null)):u=i.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Jf&&Hf&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=jr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new jr({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]},n.generateString=function(){var e=this;this.css="",this.map=new jr({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,i=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,l;this.stringify(this.root,function(c,f,h){if(e.css+=c,f&&h!=="end"&&(a.generated.line=r,a.generated.column=i-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=c.match(/\n/g),u?(r+=u.length,l=c.lastIndexOf("\n"),i=c.length-l):i+=c.length,f&&h!=="start"){var v=f.parent||{raws:{}},p=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!p||f!==v.last||v.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=i-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=i-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var i=this.opts.to?Vr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(i=Vr(Fs(i,this.mapOpts.annotation)));var s=Ds(i,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(i){if(i.source&&i.source.input.map){var s=i.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new qf(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var i=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(i,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Us){var i=Us(e).toString();return this.memoizedFileURLs.set(e,i),i}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Bs==="\\"&&(e=e.replace(/\\/g,"/"));var i=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,i),i},t}(),zs=Zf,Kf=Br,wi=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="comment",e}return n}(Kf),Yr=wi;wi.default=wi;var Ws=De.isClean,Gs=De.my,js=Ur,Vs=Yr,Xf=Br,Ys,bi,Si,qs;function Hs(t){return t.map(function(n){return n.nodes&&(n.nodes=Hs(n.nodes)),delete n.source,n})}function Js(t){if(t[Ws]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),o;!(o=n()).done;){var e=o.value;Js(e)}}var ke=function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];for(var a=O(i),u;!(u=a()).done;)for(var l=u.value,c=this.normalize(l,this.last),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var i=O(this.nodes),s;!(s=i()).done;){var a=s.value;a.cleanRaws(r)}},o.each=function(r){if(this.proxyOf.nodes){for(var i=this.getIterator(),s,a;this.indexes[i]<this.proxyOf.nodes.length&&(s=this.indexes[i],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[i]+=1;return delete this.indexes[i],a}},o.every=function(r){return this.nodes.every(r)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},o.getProxyProcessor=function(){return{get:function(i,s){return s==="proxyOf"?i:i[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),l=0;l<a;l++)u[l]=arguments[l];var c;return(c=i)[s].apply(c,[].concat(u.map(function(f){return typeof f=="function"?function(h,v){return f(h.toProxy(),v)}:f})))}:s==="every"||s==="some"?function(a){return i[s](function(u){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],c))})}:s==="root"?function(){return i.root().toProxy()}:s==="nodes"?i.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?i[s].toProxy():i[s]:i[s]},set:function(i,s,a){return i[s]===a||(i[s]=a,(s==="name"||s==="params"||s==="selector")&&i.markDirty()),!0}}},o.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},o.insertAfter=function(r,i){var s=this.index(r),a=this.normalize(i,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),l;!(l=u()).done;){var c=l.value;this.proxyOf.nodes.splice(s+1,0,c)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},o.insertBefore=function(r,i){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(i,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var l=O(u),c;!(c=l()).done;){var f=c.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(r,i){var s=this;if(typeof r=="string")r=Hs(Ys(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var l=u.value;l.parent&&l.parent.removeChild(l,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var c=O(r),f;!(f=c()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new js(r)]}else if(r.selector)r=[new bi(r)];else if(r.name)r=[new Si(r)];else if(r.text)r=[new Vs(r)];else throw new Error("Unknown node type in node creation");var v=r.map(function(p){return p[Gs]||n.rebuild(p),p=p.proxyOf,p.parent&&p.parent.removeChild(p),p[Ws]&&Js(p),typeof p.raws.before=="undefined"&&i&&typeof i.raws.before!="undefined"&&(p.raws.before=i.raws.before.replace(/\S/g,"")),p.parent=s.proxyOf,p});return v},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i=i.reverse();for(var a=O(i),u;!(u=a()).done;){for(var l=u.value,c=this.normalize(l,this.first,"prepend").reverse(),f=O(c),h;!(h=f()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var p in this.indexes)this.indexes[p]=this.indexes[p]+c.length}return this.markDirty(),this},o.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},o.removeAll=function(){for(var r=O(this.proxyOf.nodes),i;!(i=r()).done;){var s=i.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var i;for(var s in this.indexes)i=this.indexes[s],i>=r&&(this.indexes[s]=i-1);return this.markDirty(),this},o.replaceValues=function(r,i,s){return s||(s=i,i={}),this.walkDecls(function(a){i.props&&!i.props.includes(a.prop)||i.fast&&!a.value.includes(i.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},o.some=function(r){return this.nodes.some(r)},o.walk=function(r){return this.each(function(i,s){var a;try{a=r(i,s)}catch(u){throw i.addToError(u)}return a!==!1&&i.walk&&(a=i.walk(r)),a})},o.walkAtRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return i(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="atrule")return i(s,a)}))},o.walkComments=function(r){return this.walk(function(i,s){if(i.type==="comment")return r(i,s)})},o.walkDecls=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return i(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="decl")return i(s,a)}))},o.walkRules=function(r,i){return i?M(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return i(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return i(s,a)}):(i=r,this.walk(function(s,a){if(s.type==="rule")return i(s,a)}))},se(n,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),n}(Xf);ke.registerParse=function(t){Ys=t},ke.registerRule=function(t){bi=t},ke.registerAtRule=function(t){Si=t},ke.registerRoot=function(t){qs=t};var Ye=ke;ke.default=ke,ke.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Si.prototype):t.type==="rule"?Object.setPrototypeOf(t,bi.prototype):t.type==="decl"?Object.setPrototypeOf(t,js.prototype):t.type==="comment"?Object.setPrototypeOf(t,Vs.prototype):t.type==="root"&&Object.setPrototypeOf(t,qs.prototype),t[Gs]=!0,t.nodes&&t.nodes.forEach(function(n){ke.rebuild(n)})};var Qf=Ye,Zs,Ks,zt=function(t){ue(n,t);function n(e){var r;return r=t.call(this,U({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.toResult=function(r){r===void 0&&(r={});var i=new Zs(new Ks,this,r);return i.stringify()},n}(Qf);zt.registerLazyResult=function(t){Zs=t},zt.registerProcessor=function(t){Ks=t};var Ci=zt;zt.default=zt;var Xs={},Qs=function(n){Xs[n]||(Xs[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Ii=function(){function t(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,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]}var n=t.prototype;return n.toString=function(){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},t}(),ea=Ii;Ii.default=Ii;var eh=ea,Oi=function(){function t(o,e,r){this.processor=o,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var i=new eh(e,r);return this.messages.push(i),i},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},se(t,[{key:"content",get:function(){return this.css}}]),t}(),Ri=Oi;Oi.default=Oi;var xi=39,ta=34,qr=92,ra=47,Hr=10,Wt=32,Jr=12,Zr=9,Kr=13,th=91,rh=93,nh=40,ih=41,oh=123,sh=125,ah=59,uh=42,lh=58,ch=64,Xr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,fh=/.[\r\n"'(/\\]/,na=/[\da-f]/i,hh=function(n,o){o===void 0&&(o={});var e=n.css.valueOf(),r=o.ignoreErrors,i,s,a,u,l,c,f,h,v,p,y=e.length,d=0,g=[],w=[];function b(){return d}function S(x){throw n.error("Unclosed "+x,d)}function C(){return w.length===0&&d>=y}function R(x){if(w.length)return w.pop();if(!(d>=y)){var k=x?x.ignoreUnclosed:!1;switch(i=e.charCodeAt(d),i){case Hr:case Wt:case Zr:case Kr:case Jr:{s=d;do s+=1,i=e.charCodeAt(s);while(i===Wt||i===Hr||i===Zr||i===Kr||i===Jr);p=["space",e.slice(d,s)],d=s-1;break}case th:case rh:case oh:case sh:case lh:case ah:case ih:{var P=String.fromCharCode(i);p=[P,P,d];break}case nh:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(d+1),h==="url"&&v!==xi&&v!==ta&&v!==Wt&&v!==Hr&&v!==Zr&&v!==Jr&&v!==Kr){s=d;do{if(c=!1,s=e.indexOf(")",s+1),s===-1)if(r||k){s=d;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===qr;)f-=1,c=!c}while(c);p=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||fh.test(u)?p=["(","(",d]:(p=["brackets",u,d,s],d=s);break}case xi:case ta:{a=i===xi?"'":'"',s=d;do{if(c=!1,s=e.indexOf(a,s+1),s===-1)if(r||k){s=d+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===qr;)f-=1,c=!c}while(c);p=["string",e.slice(d,s+1),d,s],d=s;break}case ch:{Xr.lastIndex=d+1,Xr.test(e),Xr.lastIndex===0?s=e.length-1:s=Xr.lastIndex-2,p=["at-word",e.slice(d,s+1),d,s],d=s;break}case qr:{for(s=d,l=!0;e.charCodeAt(s+1)===qr;)s+=1,l=!l;if(i=e.charCodeAt(s+1),l&&i!==ra&&i!==Wt&&i!==Hr&&i!==Zr&&i!==Kr&&i!==Jr&&(s+=1,na.test(e.charAt(s)))){for(;na.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Wt&&(s+=1)}p=["word",e.slice(d,s+1),d,s],d=s;break}default:{i===ra&&e.charCodeAt(d+1)===uh?(s=e.indexOf("*/",d+2)+1,s===0&&(r||k?s=e.length:S("comment")),p=["comment",e.slice(d,s+1),d,s],d=s):(Qr.lastIndex=d+1,Qr.test(e),Qr.lastIndex===0?s=e.length-1:s=Qr.lastIndex-2,p=["word",e.slice(d,s+1),d,s],g.push(p),d=s);break}}return d++,p}}function A(x){w.push(x)}return{back:A,endOfFile:C,nextToken:R,position:b}},ia=Ye,en=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var o=n.prototype;return o.append=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],i))},o.prepend=function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],i))},n}(ia),Ei=en;en.default=en,ia.registerAtRule(en);var oa=Ye,sa,aa,ht=function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var o=n.prototype;return o.normalize=function(r,i,s){var a=t.prototype.normalize.call(this,r);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(var u=O(a),l;!(l=u()).done;){var c=l.value;c.raws.before=i.raws.before}}return a},o.removeChild=function(r,i){var s=this.index(r);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},o.toResult=function(r){r===void 0&&(r={});var i=new sa(new aa,this,r);return i.stringify()},n}(oa);ht.registerLazyResult=function(t){sa=t},ht.registerProcessor=function(t){aa=t};var Gt=ht;ht.default=ht,oa.registerRoot(ht);var jt={comma:function(n){return jt.split(n,[","],!0)},space:function(n){var o=[" ","\n"," "];return jt.split(n,o)},split:function(n,o,e){for(var r=[],i="",s=!1,a=0,u=!1,l="",c=!1,f=O(n),h;!(h=f()).done;){var v=h.value;c?c=!1:v==="\\"?c=!0:u?v===l&&(u=!1):v==='"'||v==="'"?(u=!0,l=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=v}return(e||i!=="")&&r.push(i.trim()),r}},ua=jt;jt.default=jt;var la=Ye,dh=ua,tn=function(t){ue(n,t);function n(o){var e;return e=t.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return se(n,[{key:"selectors",get:function(){return dh.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,i=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(i)}}]),n}(la),Ai=tn;tn.default=tn,la.registerRule(tn);var ph=Ur,vh=hh,mh=Yr,gh=Ei,yh=Gt,ca=Ai,fa={empty:!0,space:!0};function wh(t){for(var n=t.length-1;n>=0;n--){var o=t[n],e=o[3]||o[2];if(e)return e}}var bh=function(){function t(o){this.input=o,this.root=new yh,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new gh;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var i,s,a,u=!1,l=!1,c=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),i=e[0],i==="("||i==="["?f.push(i==="("?")":"]"):i==="{"&&f.length>0?f.push("}"):i===f[f.length-1]&&f.pop(),f.length===0)if(i===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(i==="{"){l=!0;break}else if(i==="}"){if(c.length>0){for(a=c.length-1,s=c[a];s&&s[0]==="space";)s=c[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),u&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),l&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var i=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(i+=1,i===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,i,s,a,u=O(e.entries()),l;!(l=u()).done;){var c=l.value,f=c[0],h=c[1];if(i=h,s=i[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(i);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=i}return!1},n.comment=function(e){var r=new mh;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var i=e[1].slice(2,-2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var s=i.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=vh(this.input)},n.decl=function(e,r){var i=new ph;this.init(i,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(s[3]||s[2]||wh(e)),i.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var l=[],c;e.length&&(c=e[0][0],!(c!=="space"&&c!=="comment"));)l.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){i.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(i.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),p="",y=f;y>0;y--){var d=v[y][0];if(p.trim().indexOf("!")===0&&d!=="space")break;p=v.pop()[1]+p}p.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=p,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(i.raws.between+=l.map(function(w){return w[1]}).join(""),l=[]),this.raw(i,"value",l.concat(e),r),i.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new ca;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},n.endFile=function(){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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,i=null,s=!1,a=null,u=[],l=e[1].startsWith("--"),c=[],f=e;f;){if(i=f[0],c.push(f),i==="("||i==="[")a||(a=f),u.push(i==="("?")":"]");else if(l&&s&&i==="{")a||(a=f),u.push("}");else if(u.length===0)if(i===";")if(s){this.decl(c,l);return}else break;else if(i==="{"){this.rule(c);return}else if(i==="}"){this.tokenizer.back(c.pop()),r=!0;break}else i===":"&&(s=!0);else i===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!l)for(;c.length&&(f=c[c.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(c.pop());this.decl(c,l)}else this.unknownWord(c)},n.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,i,s){for(var a,u,l=i.length,c="",f=!0,h,v,p=0;p<l;p+=1)a=i[p],u=a[0],u==="space"&&p===l-1&&!s?f=!1:u==="comment"?(v=i[p-1]?i[p-1][0]:"empty",h=i[p+1]?i[p+1][0]:"empty",!fa[v]&&!fa[h]?c.slice(-1)===","?f=!1:c+=a[1]:f=!1):c+=a[1];if(!f){var y=i.reduce(function(d,g){return d+g[1]},"");e.raws[r]={raw:y,value:c}}e[r]=c},n.rule=function(e){e.pop();var r=new ca;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)i=e.pop()[1]+i;return i},n.spacesAndCommentsFromStart=function(e){for(var r,i="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)i+=e.shift()[1];return i},n.spacesFromEnd=function(e){for(var r,i="";e.length&&(r=e[e.length-1][0],r==="space");)i=e.pop()[1]+i;return i},n.stringFrom=function(e,r){for(var i="",s=r;s<e.length;s++)i+=e[s][1];return e.splice(r,e.length-r),i},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t}(),Sh=bh,Ch=Ye,Ih=Sh,Oh=Gr;function rn(t,n){var o=new Oh(t,n),e=new Ih(o);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var Mi=rn;rn.default=rn,Ch.registerParse(rn);var Re=De.isClean,Rh=De.my,xh=zs,Eh=Dr,Ah=Ye,Mh=Ci,kh=Qs,ha=Ri,_h=Mi,Th=Gt,Ph={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Nh={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},$h={Once:!0,postcssPlugin:!0,prepare:!0},dt=0;function Vt(t){return(typeof t=="undefined"?"undefined":N(t))==="object"&&typeof t.then=="function"}function da(t){var n=!1,o=Ph[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[o,o+"-"+n,dt,o+"Exit",o+"Exit-"+n]:n?[o,o+"-"+n,o+"Exit",o+"Exit-"+n]:t.append?[o,dt,o+"Exit"]:[o,o+"Exit"]}function pa(t){var n;return t.type==="document"?n=["Document",dt,"DocumentExit"]:t.type==="root"?n=["Root",dt,"RootExit"]:n=da(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ki(t){return t[Re]=!1,t.nodes&&t.nodes.forEach(function(n){return ki(n)}),t}var _i={},pt=function(){function t(o,e,r){var i=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":N(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ki(e);else if(M(e,t)||M(e,ha))s=ki(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=_h;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Rh]&&Ah.rebuild(s)}this.result=new ha(o,s,r),this.helpers=U({},_i,{postcss:_i,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":N(u))==="object"&&u.prepare?U({},u,u.prepare(i.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var i=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=i.postcssPlugin,e.setMessage();else if(i.postcssVersion&&process.env.NODE_ENV!=="production"){var s=i.postcssPlugin,a=i.postcssVersion,u=this.result.processor.version,l=a.split("."),c=u.split(".");(l[0]!==c[0]||parseInt(l[1])>parseInt(c[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(c,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([c,h])},i=O(this.plugins),s;!(s=i()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":N(a))==="object")for(var u in a){if(!Nh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!$h[u])if(N(a[u])==="object")for(var l in a[u])l==="*"?r(a,u,a[u][l]):r(a,u+"-"+l.toLowerCase(),a[u][l]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return In(function(){var r,i,s,a,u,l,c,f,h,v,p,y;return kt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(i=e.plugins[r],s=e.runOnRoot(i),!Vt(s))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,s];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Re])return[3,14];u[Re]=!0,l=[pa(u)],d.label=8;case 8:if(!(l.length>0))return[3,13];if(c=e.visitTick(l),!Vt(c))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,c];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),h=l[l.length-1].node,e.handleError(f,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return kt(this,function(R){switch(R.label){case 0:g=y.value,w=g[0],b=g[1],e.result.lastPlugin=w,R.label=1;case 1:return R.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(S)]);case 2:return R.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:R.sent(),R.label=5;case 5:return[3,7];case 6:throw C=R.sent(),e.handleError(C);case 7:return[2]}})},p=O(e.listeners.OnceExit),d.label=15;case 15:return(y=p()).done?[3,18]:[5,co(v())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":N(e))==="object"&&e.Once){if(this.result.root.type==="document"){var i=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Vt(i[0])?Promise.all(i):i}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Eh;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var i=new xh(r,this.result.root,this.result.opts),s=i.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=O(this.plugins),r;!(r=e()).done;){var i=r.value,s=this.runOnRoot(i);if(Vt(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Re];)a[Re]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),l;!(l=u()).done;){var c=l.value;this.visitSync(this.listeners.OnceExit,c)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||kh("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(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var i=O(e),s;!(s=i()).done;){var a=s.value,u=a[0],l=a[1];this.result.lastPlugin=u;var c=void 0;try{c=l(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Vt(c))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],i=r.node,s=r.visitors;if(i.type!=="root"&&i.type!=="document"&&!i.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],l=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return l(i.toProxy(),this.helpers)}catch(p){throw this.handleError(p,i)}}if(r.iterator!==0){for(var c=r.iterator,f;f=i.nodes[i.indexes[c]];)if(i.indexes[c]+=1,!f[Re]){f[Re]=!0,e.push(pa(f));return}r.iterator=0,delete i.indexes[c]}for(var h=r.events;r.eventIndex<h.length;){var v=h[r.eventIndex];if(r.eventIndex+=1,v===dt){i.nodes&&i.nodes.length&&(i[Re]=!0,r.iterator=i.getIterator());return}else if(this.listeners[v]){r.visitors=this.listeners[v];return}}e.pop()},n.walkSync=function(e){var r=this;e[Re]=!0;for(var i=da(e),s=O(i),a;!(a=s()).done;){var u=a.value;if(u===dt)e.nodes&&e.each(function(c){c[Re]||r.walkSync(c)});else{var l=this.listeners[u];if(l&&this.visitSync(l,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},se(t,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),t}();pt.registerPostcss=function(t){_i=t};var va=pt;pt.default=pt,Th.registerLazyResult(pt),Mh.registerLazyResult(pt);var Lh=zs,Dh=Dr,Fh=Qs,Bh=Mi,Uh=Ri,Ti=function(){function t(o,e,r){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=r,this._map=void 0;var i,s=Dh;this.result=new Uh(this._processor,i,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Lh(s,i,this._opts,e);if(u.isMap()){var l=u.generate(),c=l[0],f=l[1];c&&(this.result.css=c),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Fh("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(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},se(t,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,r=Bh;try{e=r(this._css,this._opts)}catch(i){this.error=i}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t}(),zh=Ti;Ti.default=Ti;var Wh=zh,Gh=va,jh=Ci,Vh=Gt,Yt=function(){function t(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var n=t.prototype;return n.normalize=function(e){for(var r=[],i=O(e),s;!(s=i()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":N(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":N(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")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.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Wh(this,e,r):new Gh(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t}(),Yh=Yt;Yt.default=Yt,Vh.registerProcessor(Yt),jh.registerProcessor(Yt);var qh=Ur,Hh=Ts,Jh=Yr,Zh=Ei,Kh=Gr,Xh=Gt,Qh=Ai;function qt(t,n){if(Array.isArray(t))return t.map(function(f){return qt(f)});var o=t.inputs,e=At(t,["inputs"]);if(o){n=[];for(var r=O(o),i;!(i=r()).done;){var s=i.value,a=U({},s,{__proto__:Kh.prototype});a.map&&(a.map=U({},a.map,{__proto__:Hh.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return qt(f,n)})),e.source){var u=e.source,l=u.inputId,c=At(u,["inputId"]);e.source=c,l!=null&&(e.source.input=n[l])}if(e.type==="root")return new Xh(e);if(e.type==="decl")return new qh(e);if(e.type==="rule")return new Qh(e);if(e.type==="comment")return new Jh(e);if(e.type==="atrule")return new Zh(e);throw new Error("Unknown node type: "+t.type)}var ed=qt;qt.default=qt;var td=ai,ma=Ur,rd=va,nd=Ye,Pi=Yh,id=Dr,od=ed,ga=Ci,sd=ea,ya=Yr,wa=Ei,ad=Ri,ud=Gr,ld=Mi,cd=ua,ba=Ai,Sa=Gt,fd=Br;function Y(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Pi(n)}Y.plugin=function(n,o){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var l=o.apply(void 0,[].concat(a));return l.postcssPlugin=n,l.postcssVersion=new Pi().version,l}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||(i=r()),i}}),r.process=function(s,a,u){return Y([r(u)]).process(s,a)},r},Y.stringify=id,Y.parse=ld,Y.fromJSON=od,Y.list=cd,Y.comment=function(t){return new ya(t)},Y.atRule=function(t){return new wa(t)},Y.decl=function(t){return new ma(t)},Y.rule=function(t){return new ba(t)},Y.root=function(t){return new Sa(t)},Y.document=function(t){return new ga(t)},Y.CssSyntaxError=td,Y.Declaration=ma,Y.Container=nd,Y.Processor=Pi,Y.Document=ga,Y.Comment=ya,Y.Warning=sd,Y.AtRule=wa,Y.Result=ad,Y.Input=ud,Y.Rule=ba,Y.Root=Sa,Y.Node=fd,rd.registerPostcss(Y);var hd=Y;Y.default=Y;var X=If(hd);X.stringify,X.fromJSON,X.plugin,X.parse,X.list,X.document,X.comment,X.atRule,X.rule,X.decl,X.root,X.CssSyntaxError,X.Declaration,X.Container,X.Processor,X.Document,X.Comment,X.Warning,X.AtRule,X.Result,X.Input,X.Rule,X.Root,X.Node;var dd=function(){function t(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];be(this,"parentElement",null),be(this,"parentNode",null),be(this,"ownerDocument"),be(this,"firstChild",null),be(this,"lastChild",null),be(this,"previousSibling",null),be(this,"nextSibling",null),be(this,"ELEMENT_NODE",1),be(this,"TEXT_NODE",3),be(this,"nodeType"),be(this,"nodeName"),be(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(M(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},se(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t}(),Ca={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ia={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},nn={},pd=function(){return!!globalThis.Zone};function Ni(t){if(nn[t])return nn[t];var n=globalThis[t],o=n.prototype,e=t in Ca?Ca[t]:void 0,r=!!(e&&e.every(function(c){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(o,c))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),i=t in Ia?Ia[t]:void 0,s=!!(i&&i.every(function(c){var f;return typeof o[c]=="function"&&((f=o[c])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!pd())return nn[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var l=u[t].prototype;return document.body.removeChild(a),l?nn[t]=l:o}catch(c){return o}}var $i={};function Fe(t,n,o){var e,r=t+"."+String(o);if($i[r])return $i[r].call(n);var i=Ni(t),s=(e=Object.getOwnPropertyDescriptor(i,o))==null?void 0:e.get;return s?($i[r]=s,s.call(n)):n[o]}var Li={};function Oa(t,n,o){var e=t+"."+String(o);if(Li[e])return Li[e].bind(n);var r=Ni(t),i=r[o];return typeof i!="function"?n[o]:(Li[e]=i,i.bind(n))}function vd(t){return Fe("Node",t,"childNodes")}function md(t){return Fe("Node",t,"parentNode")}function gd(t){return Fe("Node",t,"parentElement")}function yd(t){return Fe("Node",t,"textContent")}function wd(t,n){return Oa("Node",t,"contains")(n)}function bd(t){return Oa("Node",t,"getRootNode")()}function Sd(t){return!t||!("host"in t)?null:Fe("ShadowRoot",t,"host")}function Cd(t){return t.styleSheets}function Id(t){return!t||!("shadowRoot"in t)?null:Fe("Element",t,"shadowRoot")}function Od(t,n){return Fe("Element",t,"querySelector")(n)}function Rd(t,n){return Fe("Element",t,"querySelectorAll")(n)}function Ra(){return Ni("MutationObserver").constructor}function qe(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var L={childNodes:vd,parentNode:md,parentElement:gd,textContent:yd,contains:wd,getRootNode:bd,host:Sd,styleSheets:Cd,shadowRoot:Id,querySelector:Od,querySelectorAll:Rd,mutationObserver:Ra,patch:qe};function ce(t,n,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(t,n,e),function(){return o.removeEventListener(t,n,e)}}var vt="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.",xa={map:{},getId:function(){return console.error(vt),-1},getNode:function(){return console.error(vt),null},removeNodeFromMap:function(){console.error(vt)},has:function(){return console.error(vt),!1},reset:function(){console.error(vt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(xa=new Proxy(xa,{get:function(n,o,e){return o==="map"&&console.error(vt),Reflect.get(n,o,e)}}));function Ht(t,n,o){o===void 0&&(o={});var e=null,r=0;return function(){for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];var u=Date.now();!r&&o.leading===!1&&(r=u);var l=n-(u-r),c=this;l<=0||l>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(c,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){r=o.leading===!1?0:Date.now(),e=null,t.apply(c,s)},l))}}function on(t,n,o,e,r){r===void 0&&(r=window);var i=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),i&&i.set&&i.set.call(this,a)}}),function(){return on(t,n,i||{},!0)}}var sn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(sn=function(){return new Date().getTime()});function Ea(t){var n,o,e,r,i=t.document;return{left:i.scrollingElement?i.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:i.documentElement.scrollLeft||(i==null?void 0:i.body)&&((n=L.parentElement(i.body))==null?void 0:n.scrollLeft)||((o=i==null?void 0:i.body)==null?void 0:o.scrollLeft)||0,top:i.scrollingElement?i.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(i==null?void 0:i.documentElement.scrollTop)||(i==null?void 0:i.body)&&((e=L.parentElement(i.body))==null?void 0:e.scrollTop)||((r=i==null?void 0:i.body)==null?void 0:r.scrollTop)||0}}function Aa(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ma(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ka(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:L.parentElement(t);return n}function fe(t,n,o,e){if(!t)return!1;var r=ka(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(mr(r,n,e))return!0}catch(i){}return!!(o&&(r.matches(o)||e&&r.closest(o)!==null))}function xd(t,n){return n.getId(t)!==-1}function Di(t,n,o){return t.tagName==="TITLE"&&o.headTitleMutations?!0:n.getId(t)===Pt}function _a(t,n){if(_t(t))return!1;var o=n.getId(t);if(!n.has(o))return!0;var e=L.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?_a(e,n):!0}function Fi(t){return!!t.changedTouches}function Ed(t){t===void 0&&(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)}function Ta(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Pa(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Bi(t){return t?M(t,dd)&&"shadowRoot"in t?!!t.shadowRoot:!!L.shadowRoot(t):!1}var Ad=function(){function t(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var i;return r===void 0?i=this.id++:i=r,this.styleIDMap.set(e,i),this.idStyleMap.set(i,e),i},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},t}();function Na(t){var n,o=null;return"getRootNode"in t&&((n=L.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&L.host(L.getRootNode(t))&&(o=L.host(L.getRootNode(t))),o}function Md(t){for(var n=t,o;o=Na(n);)n=o;return n}function kd(t){var n=t.ownerDocument;if(!n)return!1;var o=Md(t);return L.contains(n,o)}function $a(t){var n=t.ownerDocument;return n?L.contains(n,t)||kd(t):!1}var D=function(t){return 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}(D||{}),T=function(t){return 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}(T||{}),de=function(t){return 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}(de||{}),_e=function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t}(_e||{}),mt=function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t}(mt||{}),gt=function(t){return 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}(gt||{}),La=function(t){return 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}(La||{});function Da(t){return"__ln"in t}var _d=function(){function t(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,i=0;i<e;i++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Da(e.previousSibling)){var i=e.previousSibling.__ln.next;r.next=i,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,i&&(i.previous=r)}else if(e.nextSibling&&Da(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t}(),Fa=function(t,n){return t+"@"+n},Td=function(){function t(){var o=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),I(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],r=new Set,i=new _d,s=function(_){for(var $=_,G=Pt;G===Pt;)$=$&&$.nextSibling,G=$&&o.mirror.getId($);return G},a=function(_){var $=L.parentNode(_);if(!(!$||!$a(_))){var G=!1;if(_.nodeType===Node.TEXT_NODE){var pe=$.tagName;if(pe==="TEXTAREA")return;pe==="STYLE"&&o.addedSet.has($)&&(G=!0)}var j=_t($)?o.mirror.getId(Na(_)):o.mirror.getId($),ge=s(_);if(j===-1||ge===-1)return i.addNode(_);var he=ut(_,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(Q){Ta(Q,o.mirror)&&o.iframeManager.addIframe(Q),Pa(Q,o.mirror)&&o.stylesheetManager.trackLinkElement(Q),Bi(_)&&o.shadowDomManager.addShadowRoot(L.shadowRoot(_),o.doc)},onIframeLoad:function(Q,ae){o.iframeManager.attachIframe(Q,ae),o.shadowDomManager.observeAttachShadow(Q)},onStylesheetLoad:function(Q,ae){o.stylesheetManager.attachLinkElement(Q,ae)},cssCaptured:G});he&&(e.push({parentId:j,nextId:ge,node:he}),r.add(he.id))}};o.mapRemoves.length;)o.mirror.removeNodeFromMap(o.mapRemoves.shift());for(var u=O(o.movedSet),l;!(l=u()).done;){var c=l.value;Ba(o.removesSubTreeCache,c,o.mirror)&&!o.movedSet.has(L.parentNode(c))||a(c)}for(var f=O(o.addedSet),h;!(h=f()).done;){var v=h.value;!Ua(o.droppedSet,v)&&!Ba(o.removesSubTreeCache,v,o.mirror)||Ua(o.movedSet,v)?a(v):o.droppedSet.add(v)}for(var p=null;i.length;){var y=null;if(p){var d=o.mirror.getId(L.parentNode(p.value)),g=s(p.value);d!==-1&&g!==-1&&(y=p)}if(!y)for(var w=i.tail;w;){var b=w;if(w=w.previous,b){var S=o.mirror.getId(L.parentNode(b.value)),C=s(b.value);if(C===-1)continue;if(S!==-1){y=b;break}else{var R=b.value,A=L.parentNode(R);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var x=L.host(A),k=o.mirror.getId(x);if(k!==-1){y=b;break}}}}}if(!y){for(;i.head;)i.removeNode(i.head.value);break}p=y.previous,i.removeNode(y.value),a(y.value)}var P={texts:o.texts.map(function(_){var $=_.node,G=L.parentNode($);return G&&G.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(G),{id:o.mirror.getId($),value:_.value}}).filter(function(_){return!r.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),attributes:o.attributes.map(function(_){var $=_.attributes;if(typeof $.style=="string"){var G=JSON.stringify(_.styleDiff),pe=JSON.stringify(_._unchangedStyles);G.length<$.style.length&&(G+pe).split("var(").length===$.style.split("var(").length&&($.style=_.styleDiff)}return{id:o.mirror.getId(_.node),attributes:$}}).filter(function(_){return!r.has(_.id)}).filter(function(_){return o.mirror.has(_.id)}),removes:o.removes,adds:e};!P.texts.length&&!P.attributes.length&&!P.removes.length&&!P.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(P))}}),I(this,"genTextAreaValueMutation",function(e){var r=o.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(r),o.attributeMap.set(e,r));var i=Array.from(L.childNodes(e),function(s){return L.textContent(s)||""}).join("");r.attributes.value=hr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:dr(e),value:i,maskInputFn:o.maskInputFn})}),I(this,"processMutation",function(e){if(!Di(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var r=L.textContent(e.target);!fe(e.target,o.blockClass,o.blockSelector,!1)&&r!==e.oldValue&&o.texts.push({value:Eo(e.target,o.maskTextClass,o.maskTextSelector,!0)&&r?o.maskTextFn?o.maskTextFn(r,ka(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var i=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=dr(i);a=hr({element:i,maskInputOptions:o.maskInputOptions,tagName:i.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(fe(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var l=o.attributeMap.get(e.target);if(i.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!i.contentDocument)s="rr_src";else return;if(l||(l={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(l),o.attributeMap.set(e.target,l)),s==="type"&&i.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&i.setAttribute("data-rr-is-password","true"),!xo(i.tagName,s))if(l.attributes[s]=Ro(o.doc,je(i.tagName),je(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){o.unattachedDoc=o.doc}var c=o.unattachedDoc.createElement("span");e.oldValue&&c.setAttribute("style",e.oldValue);for(var f=O(Array.from(i.style)),h;!(h=f()).done;){var v=h.value,p=i.style.getPropertyValue(v),y=i.style.getPropertyPriority(v);p!==c.style.getPropertyValue(v)||y!==c.style.getPropertyPriority(v)?y===""?l.styleDiff[v]=p:l.styleDiff[v]=[p,y]:l._unchangedStyles[v]=[p,y]}for(var d=O(Array.from(c.style)),g;!(g=d()).done;){var w=g.value;i.style.getPropertyValue(w)===""&&(l.styleDiff[w]=!1)}}else s==="open"&&i.tagName==="DIALOG"&&(i.matches("dialog:modal")?l.attributes.rr_open_mode="modal":l.attributes.rr_open_mode="non-modal");break}case"childList":{if(fe(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return o.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var S=o.mirror.getId(b),C=_t(e.target)?o.mirror.getId(L.host(e.target)):o.mirror.getId(e.target);fe(e.target,o.blockClass,o.blockSelector,!1)||Di(b,o.mirror,o.slimDOMOptions)||!xd(b,o.mirror)||(o.addedSet.has(b)?(Ui(o.addedSet,b),o.droppedSet.add(b)):o.addedSet.has(e.target)&&S===-1||_a(e.target,o.mirror)||(o.movedSet.has(b)&&o.movedMap[Fa(S,C)]?Ui(o.movedSet,b):(o.removes.push({parentId:C,id:S,isShadow:_t(e.target)&&Tt(e.target)?!0:void 0}),Pd(b,o.removesSubTreeCache))),o.mapRemoves.push(b))});break}}}),I(this,"genAdds",function(e,r){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(Di(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var i=null;r&&o.mirror.hasNode(r)&&(i=o.mirror.getId(r)),i&&i!==-1&&(o.movedMap[Fa(o.mirror.getId(e),i)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);fe(e,o.blockClass,o.blockSelector,!1)||(L.childNodes(e).forEach(function(s){return o.genAdds(s)}),Bi(e)&&L.childNodes(L.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}})}var n=t.prototype;return n.init=function(e){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(i){r[i]=e[i]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t}();function Ui(t,n){t.delete(n),L.childNodes(n).forEach(function(o){return Ui(t,o)})}function Pd(t,n){for(var o=[t];o.length;){var e=o.pop();n.has(e)||(n.add(e),L.childNodes(e).forEach(function(r){return o.push(r)}))}}function Ba(t,n,o){return t.size===0?!1:Nd(t,n)}function Nd(t,n,o){var e=L.parentNode(n);return e?t.has(e):!1}function Ua(t,n){return t.size===0?!1:za(t,n)}function za(t,n){var o=L.parentNode(n);return o?t.has(o)?!0:za(t,o):!1}var Jt;function $d(t){Jt=t}function Ld(){Jt=void 0}var B=function(t){if(!Jt)return t;var n=function(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(i){if(Jt&&Jt(i)===!0)return;throw i}};return n},He=[];function Zt(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(o){}return t&&t.target}function Wa(t,n){var o=new Td;He.push(o),o.init(t);var e=new(Ra())(B(o.processMutations.bind(o)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Dd(t){var n=t.mousemoveCb,o=t.sampling,e=t.doc,r=t.mirror;if(o.mousemove===!1)return function(){};var i=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,l=Ht(B(function(h){var v=Date.now()-u;n(a.map(function(p){return p.timeOffset-=v,p}),h),a=[],u=null}),s),c=B(Ht(B(function(h){var v=Zt(h),p=Fi(h)?h.changedTouches[0]:h,y=p.clientX,d=p.clientY;u||(u=sn()),a.push({x:y,y:d,id:r.getId(v),timeOffset:sn()-u}),l(typeof DragEvent!="undefined"&&M(h,DragEvent)?T.Drag:M(h,MouseEvent)?T.MouseMove:T.TouchMove)}),i,{trailing:!1})),f=[ce("mousemove",c,e),ce("touchmove",c,e),ce("drag",c,e)];return B(function(){f.forEach(function(h){return h()})})}function Fd(t){var n=t.mouseInteractionCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],l=null,c=function(f){return function(h){var v=Zt(h);if(!fe(v,r,i,!0)){var p=null,y=f;if("pointerType"in h){switch(h.pointerType){case"mouse":p=_e.Mouse;break;case"touch":p=_e.Touch;break;case"pen":p=_e.Pen;break}p===_e.Touch?de[f]===de.MouseDown?y="TouchStart":de[f]===de.MouseUp&&(y="TouchEnd"):_e.Pen}else Fi(h)&&(p=_e.Touch);p!==null?(l=p,(y.startsWith("Touch")&&p===_e.Touch||y.startsWith("Mouse")&&p===_e.Mouse)&&(p=null)):de[f]===de.Click&&(p=l,l=null);var d=Fi(h)?h.changedTouches[0]:h;if(d){var g=e.getId(v),w=d.clientX,b=d.clientY;B(n)(U({type:de[y],id:g,x:w,y:b},p!==null&&{pointerType:p}))}}}};return Object.keys(de).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var h=je(f),v=c(f);if(window.PointerEvent)switch(de[f]){case de.MouseDown:case de.MouseUp:h=h.replace("mouse","pointer");break;case de.TouchStart:case de.TouchEnd:return}u.push(ce(h,v,o))}),B(function(){u.forEach(function(f){return f()})})}function Ga(t){var n=t.scrollCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.sampling,a=B(Ht(B(function(u){var l=Zt(u);if(!(!l||fe(l,r,i,!0))){var c=e.getId(l);if(l===o&&o.defaultView){var f=Ea(o.defaultView);n({id:c,x:f.left,y:f.top})}else n({id:c,x:l.scrollLeft,y:l.scrollTop})}}),s.scroll||100));return ce("scroll",a,o)}function Bd(t,n){var o=t.viewportResizeCb,e=n.win,r=-1,i=-1,s=B(Ht(B(function(){var a=Aa(),u=Ma();(r!==a||i!==u)&&(o({width:Number(u),height:Number(a)}),r=a,i=u)}),200));return ce("resize",s,e)}var Ud=["INPUT","TEXTAREA","SELECT"],ja=new WeakMap;function zd(t){var n=t.inputCb,o=t.doc,e=t.mirror,r=t.blockClass,i=t.blockSelector,s=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,l=t.maskInputFn,c=t.sampling,f=t.userTriggeredOnInput;function h(S){var C=Zt(S),R=S.isTrusted,A=C&&C.tagName;if(C&&A==="OPTION"&&(C=L.parentElement(C)),!(!C||!A||Ud.indexOf(A)<0||fe(C,r,i,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var x=C.value,k=!1,P=dr(C)||"";P==="radio"||P==="checkbox"?k=C.checked:(u[A.toLowerCase()]||u[P])&&(x=hr({element:C,maskInputOptions:u,tagName:A,type:P,value:x,maskInputFn:l})),v(C,f?{text:x,isChecked:k,userTriggered:R}:{text:x,isChecked:k});var _=C.name;P==="radio"&&_&&k&&o.querySelectorAll('input[type="radio"][name="'+_+'"]').forEach(function($){if($!==C){var G=$.value;v($,f?{text:G,isChecked:!k,userTriggered:!1}:{text:G,isChecked:!k})}})}}function v(S,C){var R=ja.get(S);if(!R||R.text!==C.text||R.isChecked!==C.isChecked){ja.set(S,C);var A=e.getId(S);B(n)(U({},C,{id:A}))}}var p=c.input==="last"?["change"]:["input","change"],y=p.map(function(S){return ce(S,B(h),o)}),d=o.defaultView;if(!d)return function(){y.forEach(function(S){return S()})};var g=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),w=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var b;(b=y).push.apply(b,[].concat(w.map(function(S){return on(S[0],S[1],{set:function(){B(h)({target:this,isTrusted:!1})}},!1,d)})))}return B(function(){y.forEach(function(S){return S()})})}function an(t){var n=[];function o(e,r){if(un("CSSGroupingRule")&&M(e.parentRule,CSSGroupingRule)||un("CSSMediaRule")&&M(e.parentRule,CSSMediaRule)||un("CSSSupportsRule")&&M(e.parentRule,CSSSupportsRule)||un("CSSConditionRule")&&M(e.parentRule,CSSConditionRule)){var i=Array.from(e.parentRule.cssRules),s=i.indexOf(e);r.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return o(t,n)}function Be(t,n,o){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=o.getId(t),{styleId:r,id:e}):{}}function Wd(t,n){var o=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,i=n.win;if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return function(){};var s=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:B(function(h,v,p){var y=p[0],d=p[1],g=Be(v,e,r.styleMirror),w=g.id,b=g.styleId;return(w&&w!==-1||b&&b!==-1)&&o({id:w,styleId:b,adds:[{rule:y,index:d}]}),h.apply(v,p)})}),i.CSSStyleSheet.prototype.addRule=function(h,v,p){p===void 0&&(p=this.cssRules.length);var y=h+" { "+v+" }";return i.CSSStyleSheet.prototype.insertRule.apply(this,[y,p])};var a=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:B(function(h,v,p){var y=p[0],d=Be(v,e,r.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,removes:[{index:y}]}),h.apply(v,p)})}),i.CSSStyleSheet.prototype.removeRule=function(h){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;i.CSSStyleSheet.prototype.replace&&(u=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:B(function(h,v,p){var y=p[0],d=Be(v,e,r.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replace:y}),h.apply(v,p)})}));var l;i.CSSStyleSheet.prototype.replaceSync&&(l=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:B(function(h,v,p){var y=p[0],d=Be(v,e,r.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replaceSync:y}),h.apply(v,p)})}));var c={};ln("CSSGroupingRule")?c.CSSGroupingRule=i.CSSGroupingRule:(ln("CSSMediaRule")&&(c.CSSMediaRule=i.CSSMediaRule),ln("CSSConditionRule")&&(c.CSSConditionRule=i.CSSConditionRule),ln("CSSSupportsRule")&&(c.CSSSupportsRule=i.CSSSupportsRule));var f={};return Object.entries(c).forEach(function(h){var v=h[0],p=h[1];f[v]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(f[v].insertRule,{apply:B(function(y,d,g){var w=g[0],b=g[1],S=Be(d.parentStyleSheet,e,r.styleMirror),C=S.id,R=S.styleId;return(C&&C!==-1||R&&R!==-1)&&o({id:C,styleId:R,adds:[{rule:w,index:[].concat(an(d),[b||0])}]}),y.apply(d,g)})}),p.prototype.deleteRule=new Proxy(f[v].deleteRule,{apply:B(function(y,d,g){var w=g[0],b=Be(d.parentStyleSheet,e,r.styleMirror),S=b.id,C=b.styleId;return(S&&S!==-1||C&&C!==-1)&&o({id:S,styleId:C,removes:[{index:[].concat(an(d),[w])}]}),y.apply(d,g)})})}),B(function(){i.CSSStyleSheet.prototype.insertRule=s,i.CSSStyleSheet.prototype.deleteRule=a,u&&(i.CSSStyleSheet.prototype.replace=u),l&&(i.CSSStyleSheet.prototype.replaceSync=l),Object.entries(c).forEach(function(h){var v=h[0],p=h[1];p.prototype.insertRule=f[v].insertRule,p.prototype.deleteRule=f[v].deleteRule})})}function Va(t,n){var o=t.mirror,e=t.stylesheetManager,r,i,s,a=null;n.nodeName==="#document"?a=o.getId(n):a=o.getId(L.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(i=n.ownerDocument)==null?void 0:i.defaultView)==null?void 0:s.ShadowRoot,l=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!l?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:function(){var f;return(f=l.get)==null?void 0:f.call(this)},set:function(f){var h,v=(h=l.set)==null?void 0:h.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(p){}return v}}),B(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function Gd(t,n){var o=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,i=t.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:B(function(l,c,f){var h,v=f[0],p=f[1],y=f[2];if(r.has(v))return a.apply(c,[v,p,y]);var d=Be((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,i.styleMirror),g=d.id,w=d.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,set:{property:v,value:p,priority:y},index:an(c.parentRule)}),l.apply(c,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:B(function(l,c,f){var h,v=f[0];if(r.has(v))return u.apply(c,[v]);var p=Be((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,i.styleMirror),y=p.id,d=p.styleId;return(y&&y!==-1||d&&d!==-1)&&o({id:y,styleId:d,remove:{property:v},index:an(c.parentRule)}),l.apply(c,f)})}),B(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function jd(t){var n=t.mediaInteractionCb,o=t.blockClass,e=t.blockSelector,r=t.mirror,i=t.sampling,s=t.doc,a=B(function(l){return Ht(B(function(c){var f=Zt(c);if(!(!f||fe(f,o,e,!0))){var h=f.currentTime,v=f.volume,p=f.muted,y=f.playbackRate,d=f.loop;n({type:l,id:r.getId(f),currentTime:h,volume:v,muted:p,playbackRate:y,loop:d})}}),i.media||500)}),u=[ce("play",a(gt.Play),s),ce("pause",a(gt.Pause),s),ce("seeked",a(gt.Seeked),s),ce("volumechange",a(gt.VolumeChange),s),ce("ratechange",a(gt.RateChange),s)];return B(function(){u.forEach(function(l){return l()})})}function Vd(t){var n=t.fontCb,o=t.doc,e=o.defaultView;if(!e)return function(){};var r=[],i=new WeakMap,s=e.FontFace;e.FontFace=function(l,c,f){var h=new s(l,c,f);return i.set(h,{family:l,buffer:typeof c!="string",descriptors:f,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),h};var a=qe(o.fonts,"add",function(u){return function(l){return setTimeout(B(function(){var c=i.get(l);c&&(n(c),i.delete(l))}),0),u.apply(this,[l])}});return r.push(function(){e.FontFace=s}),r.push(a),B(function(){r.forEach(function(u){return u()})})}function Yd(t){var n=t.doc,o=t.mirror,e=t.blockClass,r=t.blockSelector,i=t.selectionCb,s=!0,a=B(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var l=[],c=u.rangeCount||0,f=0;f<c;f++){var h=u.getRangeAt(f),v=h.startContainer,p=h.startOffset,y=h.endContainer,d=h.endOffset,g=fe(v,e,r,!0)||fe(y,e,r,!0);g||l.push({start:o.getId(v),startOffset:p,end:o.getId(y),endOffset:d})}i({ranges:l})}});return a(),ce("selectionchange",a)}function qd(t){var n=t.doc,o=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=qe(e.customElements,"define",function(i){return function(s,a,u){try{o({define:{name:s}})}catch(l){console.warn("Custom element callback failed for "+s)}return i.apply(this,[s,a,u])}});return r}function Hd(t,n){var o=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,i=t.scrollCb,s=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,l=t.styleSheetRuleCb,c=t.styleDeclarationCb,f=t.canvasMutationCb,h=t.fontCb,v=t.selectionCb,p=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mutation){var w;(w=n).mutation.apply(w,[].concat(d))}o.apply(void 0,[].concat(d))},t.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mousemove){var w;(w=n).mousemove.apply(w,[].concat(d))}e.apply(void 0,[].concat(d))},t.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mouseInteraction){var w;(w=n).mouseInteraction.apply(w,[].concat(d))}r.apply(void 0,[].concat(d))},t.scrollCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.scroll){var w;(w=n).scroll.apply(w,[].concat(d))}i.apply(void 0,[].concat(d))},t.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.viewportResize){var w;(w=n).viewportResize.apply(w,[].concat(d))}s.apply(void 0,[].concat(d))},t.inputCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.input){var w;(w=n).input.apply(w,[].concat(d))}a.apply(void 0,[].concat(d))},t.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.mediaInteaction){var w;(w=n).mediaInteaction.apply(w,[].concat(d))}u.apply(void 0,[].concat(d))},t.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.styleSheetRule){var w;(w=n).styleSheetRule.apply(w,[].concat(d))}l.apply(void 0,[].concat(d))},t.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.styleDeclaration){var w;(w=n).styleDeclaration.apply(w,[].concat(d))}c.apply(void 0,[].concat(d))},t.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.canvasMutation){var w;(w=n).canvasMutation.apply(w,[].concat(d))}f.apply(void 0,[].concat(d))},t.fontCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.font){var w;(w=n).font.apply(w,[].concat(d))}h.apply(void 0,[].concat(d))},t.selectionCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.selection){var w;(w=n).selection.apply(w,[].concat(d))}v.apply(void 0,[].concat(d))},t.customElementCb=function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];if(n.customElement){var w;(w=n).customElement.apply(w,[].concat(d))}p.apply(void 0,[].concat(d))}}function Jd(t,n){n===void 0&&(n={});var o=t.doc.defaultView;if(!o)return function(){};Hd(t,n);var e;t.recordDOM&&(e=Wa(t,t.doc));var r=Dd(t),i=Fd(t),s=Ga(t),a=Bd(t,{win:o}),u=zd(t),l=jd(t),c=function(){},f=function(){},h=function(){},v=function(){};t.recordDOM&&(c=Wd(t,{win:o}),f=Va(t,t.doc),h=Gd(t,{win:o}),t.collectFonts&&(v=Vd(t)));for(var p=Yd(t),y=qd(t),d=[],g=O(t.plugins),w;!(w=g()).done;){var b=w.value;d.push(b.observer(b.callback,o,b.options))}return B(function(){He.forEach(function(S){return S.reset()}),e==null||e.disconnect(),r(),i(),s(),a(),u(),l(),c(),f(),h(),v(),p(),y(),d.forEach(function(S){return S()})})}function un(t){return typeof window[t]!="undefined"}function ln(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var Ya=function(){function t(o){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var n=t.prototype;return n.getId=function(e,r,i,s){var a=i||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),l=a.get(r);return l||(l=this.generateIdFn(),a.set(r,l),u.set(l,r)),l},n.getIds=function(e,r){var i=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return i.getId(e,u,s,a)})},n.getRemoteId=function(e,r,i){var s=i||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(e,r){var i=this,s=this.getRemoteIdToIdMap(e);return r.map(function(a){return i.getRemoteId(e,a,s)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t}(),Zd=function(){function t(o){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new Ya(Co)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ya(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var i,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=e.contentWindow)==null||i.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var i=e.source;if(i){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var i=this,s;switch(r.type){case D.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:D.IncrementalSnapshot,data:{source:T.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case D.Meta:case D.Load:case D.DomContentLoaded:return!1;case D.Plugin:return r;case D.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case D.IncrementalSnapshot:switch(r.data.source){case T.Mutation:return r.data.adds.forEach(function(u){i.replaceIds(u,e,["parentId","nextId","previousId"]),i.replaceIdOnNode(u.node,e);var l=i.crossOriginIframeRootIdMap.get(e);l&&i.patchRootIdOnNode(u.node,l)}),r.data.removes.forEach(function(u){i.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){i.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){i.replaceIds(u,e,["id"])}),r;case T.Drag:case T.TouchMove:case T.MouseMove:return r.data.positions.forEach(function(u){i.replaceIds(u,e,["id"])}),r;case T.ViewportResize:return!1;case T.MediaInteraction:case T.MouseInteraction:case T.Scroll:case T.CanvasMutation:case T.Input:return this.replaceIds(r.data,e,["id"]),r;case T.StyleSheetRule:case T.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case T.Font:return r;case T.Selection:return r.data.ranges.forEach(function(u){i.replaceIds(u,e,["start","end"])}),r;case T.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){i.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,i,s){for(var a=O(s),u;!(u=a()).done;){var l=u.value;!Array.isArray(r[l])&&typeof r[l]!="number"||(Array.isArray(r[l])?r[l]=e.getIds(i,r[l]):r[l]=e.getId(i,r[l]))}return r},n.replaceIds=function(e,r,i){return this.replace(this.crossOriginIframeMirror,e,r,i)},n.replaceStyleIds=function(e,r,i){return this.replace(this.crossOriginIframeStyleMirror,e,r,i)},n.replaceIdOnNode=function(e,r){var i=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){i.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(e,r){var i=this;e.type!==La.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){i.patchRootIdOnNode(s,r)})},t}(),Kd=function(){function t(o){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var i=this;if(Tt(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Wa(U({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Ga(U({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&i.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,i.mirror.getId(L.host(e))),i.restoreHandlers.push(Va({mirror:i.mirror,stylesheetManager:i.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var i=this;this.restoreHandlers.push(qe(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),l=L.shadowRoot(this);return l&&$a(this)&&i.addShadowRoot(l,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t}(),yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xd=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),cn=0;cn<yt.length;cn++)Xd[yt.charCodeAt(cn)]=cn;var Qd=function(n){var o=new Uint8Array(n),e,r=o.length,i="";for(e=0;e<r;e+=3)i+=yt[o[e]>>2],i+=yt[(o[e]&3)<<4|o[e+1]>>4],i+=yt[(o[e+1]&15)<<2|o[e+2]>>6],i+=yt[o[e+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i},qa=new Map;function ep(t,n){var o=qa.get(t);return o||(o=new Map,qa.set(t,o)),o.has(n)||o.set(n,[]),o.get(n)}var Ha=function(t,n,o){if(!(!t||!(Za(t,n)||(typeof t=="undefined"?"undefined":N(t))==="object"))){var e=t.constructor.name,r=ep(o,e),i=r.indexOf(t);return i===-1&&(i=r.length,r.push(t)),i}};function fn(t,n,o){if(M(t,Array))return t.map(function(p){return fn(p,n,o)});if(t===null)return t;if(M(t,Float32Array)||M(t,Float64Array)||M(t,Int32Array)||M(t,Uint32Array)||M(t,Uint8Array)||M(t,Uint16Array)||M(t,Int16Array)||M(t,Int8Array)||M(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(M(t,ArrayBuffer)){var r=t.constructor.name,i=Qd(t);return{rr_type:r,base64:i}}else if(M(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[fn(t.buffer,n,o),t.byteOffset,t.byteLength]}}else if(M(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(M(t,HTMLCanvasElement)){var l="HTMLImageElement",c=t.toDataURL();return{rr_type:l,src:c}}else if(M(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[fn(t.data,n,o),t.width,t.height]}}else if(Za(t,n)||(typeof t=="undefined"?"undefined":N(t))==="object"){var h=t.constructor.name,v=Ha(t,n,o);return{rr_type:h,index:v}}return t}var Ja=function(t,n,o){return t.map(function(e){return fn(e,n,o)})},Za=function(t,n){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return M(t,n[r])})};function tp(t,n,o,e){for(var r=function(){var l=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[l]!="function")return"continue";var c=qe(n.CanvasRenderingContext2D.prototype,l,function(h){return function(){for(var v=this,p=arguments.length,y=new Array(p),d=0;d<p;d++)y[d]=arguments[d];return fe(this.canvas,o,e,!0)||setTimeout(function(){var g=Ja(y,n,v);t(v.canvas,{type:mt["2D"],property:l,args:g})},0),h.apply(this,y)}});i.push(c)}catch(h){var f=on(n.CanvasRenderingContext2D.prototype,l,{set:function(p){t(this.canvas,{type:mt["2D"],property:l,args:[p],setter:!0})}});i.push(f)}},i=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=O(s),u;!(u=a()).done;)r();return function(){i.forEach(function(l){return l()})}}function rp(t){return t==="experimental-webgl"?"webgl":t}function Ka(t,n,o,e){var r=[];try{var i=qe(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,l=new Array(u>1?u-1:0),c=1;c<u;c++)l[c-1]=arguments[c];if(!fe(this,n,o,!0)){var f=rp(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(l[0]&&N(l[0])==="object"){var h=l[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],l))}});r.push(i)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function Xa(t,n,o,e,r,i){for(var s=function(){var f=c.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var h=qe(t,f,function(p){return function(){for(var y=arguments.length,d=new Array(y),g=0;g<y;g++)d[g]=arguments[g];var w=p.apply(this,d);if(Ha(w,i,this),"tagName"in this.canvas&&!fe(this.canvas,e,r,!0)){var b=Ja(d,i,this),S={type:n,property:f,args:b};o(this.canvas,S)}return w}});a.push(h)}catch(p){var v=on(t,f,{set:function(d){o(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(t),l=O(u),c;!(c=l()).done;)s();return a}function np(t,n,o,e){var r,i=[];if((r=i).push.apply(r,[].concat(Xa(n.WebGLRenderingContext.prototype,mt.WebGL,t,o,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=i).push.apply(s,[].concat(Xa(n.WebGL2RenderingContext.prototype,mt.WebGL2,t,o,e,n)))}return function(){i.forEach(function(a){return a()})}}var Qa="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",ip=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},eu=typeof window!="undefined"&&window.Blob&&new Blob([ip(Qa)],{type:"text/javascript;charset=utf-8"});function op(t){var n;try{if(n=eu&&(window.URL||window.webkitURL).createObjectURL(eu),!n)throw"";var o=new Worker(n,{name:t==null?void 0:t.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),o}catch(e){return new Worker("data:text/javascript;base64,"+Qa,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var sp=function(){function t(o){var e=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",function(f,h){var v=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(v||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(f)||e.pendingCanvasMutations.set(f,[]),e.pendingCanvasMutations.get(f).push(h)});var r=o.sampling,i=r===void 0?"all":r,s=o.win,a=o.blockClass,u=o.blockSelector,l=o.recordCanvas,c=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,l&&i==="all"&&this.initCanvasMutationObserver(s,a,u),l&&typeof i=="number"&&this.initCanvasFPSObserver(i,s,a,u,{dataURLOptions:c})}var n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,i,s,a){var u=this,l=Ka(r,i,s,!0),c=new Map,f=new op;f.onmessage=function(g){var w=g.data.id;if(c.set(w,!1),"base64"in g.data){var b=g.data,S=b.base64,C=b.type,R=b.width,A=b.height;u.mutationCb({id:w,type:mt["2D"],commands:[{property:"clearRect",args:[0,0,R,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,p,y=function(){var g=[];return r.document.querySelectorAll("canvas").forEach(function(w){fe(w,i,s,!0)||g.push(w)}),g},d=function(g){if(v&&g-v<h){p=requestAnimationFrame(d);return}v=g;var w=u;y().forEach(In(function(b){var S,C,R,A;return kt(this,function(x){switch(x.label){case 0:return C=w.mirror.getId(b),c.get(C)?[2]:b.width===0||b.height===0?[2]:(c.set(C,!0),["webgl","webgl2"].includes(b.__context)&&(R=b.getContext(b.__context),((S=R==null?void 0:R.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&R.clear(R.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return A=x.sent(),f.postMessage({id:C,bitmap:A,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),p=requestAnimationFrame(d)};p=requestAnimationFrame(d),this.resetObservers=function(){l(),cancelAnimationFrame(p)}},n.initCanvasMutationObserver=function(e,r,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Ka(e,r,i,!1),a=tp(this.processMutation.bind(this),e,r,i),u=np(this.processMutation.bind(this),e,r,i);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(i){e.rafStamps.latestId=i,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,i){var s=e.mirror.getId(i);e.flushPendingCanvasMutationFor(i,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var i=this.pendingCanvasMutations.get(e);if(!(!i||r===-1)){var s=i.map(function(u){u.type;var l=At(u,["type"]);return l}),a=i[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t}(),ap=function(){function t(o){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new Ad),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var i,s=function(){var f=c.value,h=void 0;i.styleMirror.has(f)?h=i.styleMirror.getId(f):(h=i.styleMirror.add(f),u.push({styleId:h,rules:Array.from(f.rules||CSSRule,function(v,p){return{rule:yo(v,f.href),index:p}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],l=O(e),c;!(c=l()).done;)i=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(e){},t}(),up=function(){function t(){I(this,"nodeMap",new WeakMap),I(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var i=this.nodeMap.get(e);return i&&Array.from(i).some(function(s){return s!==r})},n.add=function(e,r){var i=this;this.active||(this.active=!0,requestAnimationFrame(function(){i.nodeMap=new WeakMap,i.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t}(),te,hn,zi,dn=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Wi=document.createElement("iframe");document.body.appendChild(Wi),Array.from=((fo=Wi.contentWindow)==null?void 0:fo.Array.from)||Array.from,document.body.removeChild(Wi)}}catch(t){console.debug("Unable to override Array.from",t)}var Se=ol();function Ue(t){t===void 0&&(t={});var n=t.emit,o=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,i=r===void 0?"rr-block":r,s=t.blockSelector,a=s===void 0?null:s,u=t.ignoreClass,l=u===void 0?"rr-ignore":u,c=t.ignoreSelector,f=c===void 0?null:c,h=t.maskTextClass,v=h===void 0?"rr-mask":h,p=t.maskTextSelector,y=p===void 0?null:p,d=t.inlineStylesheet,g=d===void 0?!0:d,w=t.maskAllInputs,b=t.maskInputOptions,S=t.slimDOMOptions,C=t.maskInputFn,R=t.maskTextFn,A=t.hooks,x=t.packFn,k=t.sampling,P=k===void 0?{}:k,_=t.dataURLOptions,$=_===void 0?{}:_,G=t.mousemoveWait,pe=t.recordDOM,j=pe===void 0?!0:pe,ge=t.recordCanvas,he=ge===void 0?!1:ge,Q=t.recordCrossOriginIframes,ae=Q===void 0?!1:Q,ye=t.recordAfter,Ke=ye===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":ye,Ae=t.userTriggeredOnInput,Ot=Ae===void 0?!1:Ae,we=t.collectFonts,Xe=we===void 0?!1:we,W=t.inlineImages,Qe=W===void 0?!1:W,et=t.plugins,Rt=t.keepIframeSrcFn,or=Rt===void 0?function(){return!1}:Rt,sr=t.ignoreCSSAttributes,no=sr===void 0?new Set([]):sr,Sn=t.errorHandler;$d(Sn);var Ge=ae?window.parent===window:!0,tt=!1;if(!Ge)try{window.parent.document&&(tt=!1)}catch(q){tt=!0}if(Ge&&!n)throw new Error("emit function is required");if(!Ge&&!tt)return function(){};G!==void 0&&P.mousemove===void 0&&(P.mousemove=G),Se.reset();var xt=w===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b!==void 0?b:{password:!0},ar=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};Ed();var Et,rt=0,Ne=function(q){for(var ve=O(et||[]),E;!(E=ve()).done;){var ee=E.value;ee.eventProcessor&&(q=ee.eventProcessor(q))}return x&&!tt&&(q=x(q)),q};te=function(q,ve){var E,ee=q;if(ee.timestamp=sn(),(E=He[0])!=null&&E.isFrozen()&&ee.type!==D.FullSnapshot&&!(ee.type===D.IncrementalSnapshot&&ee.data.source===T.Mutation)&&He.forEach(function(tv){return tv.unfreeze()}),Ge)n==null||n(Ne(ee),ve);else if(tt){var Xp={type:"rrweb",event:Ne(ee),origin:window.location.origin,isCheckout:ve};window.parent.postMessage(Xp,"*")}if(ee.type===D.FullSnapshot)Et=ee,rt=0;else if(ee.type===D.IncrementalSnapshot){if(ee.data.source===T.Mutation&&ee.data.isAttachIframe)return;rt++;var Qp=e&&rt>=e,ev=o&&ee.timestamp-Et.timestamp>o;(Qp||ev)&&hn(!0)}};for(var nt=function(q){te({type:D.IncrementalSnapshot,data:U({source:T.Mutation},q)})},Au=function(q){return te({type:D.IncrementalSnapshot,data:U({source:T.Scroll},q)})},Mu=function(q){return te({type:D.IncrementalSnapshot,data:U({source:T.CanvasMutation},q)})},Zp=function(q){return te({type:D.IncrementalSnapshot,data:U({source:T.AdoptedStyleSheet},q)})},it=new ap({mutationCb:nt,adoptedStyleSheetCb:Zp}),ot=new Zd({mirror:Se,mutationCb:nt,stylesheetManager:it,recordCrossOriginIframes:ae,wrappedEmit:te}),Kp=O(et||[]),ku;!(ku=Kp()).done;){var _u=ku.value;_u.getMirror&&_u.getMirror({nodeMirror:Se,crossOriginIframeMirror:ot.crossOriginIframeMirror,crossOriginIframeStyleMirror:ot.crossOriginIframeStyleMirror})}var io=new up;zi=new sp({recordCanvas:he,mutationCb:Mu,win:window,blockClass:i,blockSelector:a,mirror:Se,sampling:P.canvas,dataURLOptions:$});var Cn=new Kd({mutationCb:nt,scrollCb:Au,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskInputOptions:xt,dataURLOptions:$,maskTextFn:R,maskInputFn:C,recordCanvas:he,inlineImages:Qe,sampling:P,slimDOMOptions:ar,iframeManager:ot,stylesheetManager:it,canvasManager:zi,keepIframeSrcFn:or,processedNodeManager:io},mirror:Se});hn=function(q){if(q===void 0&&(q=!1),!!j){te({type:D.Meta,data:{href:window.location.href,width:Ma(),height:Aa()}},q),it.reset(),Cn.init(),He.forEach(function(E){return E.lock()});var ve=Ml(document,{mirror:Se,blockClass:i,blockSelector:a,maskTextClass:v,maskTextSelector:y,inlineStylesheet:g,maskAllInputs:xt,maskTextFn:R,maskInputFn:C,slimDOM:ar,dataURLOptions:$,recordCanvas:he,inlineImages:Qe,onSerialize:function(E){Ta(E,Se)&&ot.addIframe(E),Pa(E,Se)&&it.trackLinkElement(E),Bi(E)&&Cn.addShadowRoot(L.shadowRoot(E),document)},onIframeLoad:function(E,ee){ot.attachIframe(E,ee),Cn.observeAttachShadow(E)},onStylesheetLoad:function(E,ee){it.attachLinkElement(E,ee)},keepIframeSrcFn:or});if(!ve)return console.warn("Failed to snapshot the document");te({type:D.FullSnapshot,data:{node:ve,initialOffset:Ea(window)}},q),He.forEach(function(E){return E.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&it.adoptStyleSheets(document.adoptedStyleSheets,Se.getId(document))}};try{var ur=[],Tu=function(q){var ve;return B(Jd)({mutationCb:nt,mousemoveCb:function(E,ee){return te({type:D.IncrementalSnapshot,data:{source:ee,positions:E}})},mouseInteractionCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.MouseInteraction},E)})},scrollCb:Au,viewportResizeCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.ViewportResize},E)})},inputCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.Input},E)})},mediaInteractionCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.MediaInteraction},E)})},styleSheetRuleCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.StyleSheetRule},E)})},styleDeclarationCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.StyleDeclaration},E)})},canvasMutationCb:Mu,fontCb:function(E){return te({type:D.IncrementalSnapshot,data:U({source:T.Font},E)})},selectionCb:function(E){te({type:D.IncrementalSnapshot,data:U({source:T.Selection},E)})},customElementCb:function(E){te({type:D.IncrementalSnapshot,data:U({source:T.CustomElement},E)})},blockClass:i,ignoreClass:l,ignoreSelector:f,maskTextClass:v,maskTextSelector:y,maskInputOptions:xt,inlineStylesheet:g,sampling:P,recordDOM:j,recordCanvas:he,inlineImages:Qe,userTriggeredOnInput:Ot,collectFonts:Xe,doc:q,maskInputFn:C,maskTextFn:R,keepIframeSrcFn:or,blockSelector:a,slimDOMOptions:ar,dataURLOptions:$,mirror:Se,iframeManager:ot,stylesheetManager:it,shadowDomManager:Cn,processedNodeManager:io,canvasManager:zi,ignoreCSSAttributes:no,plugins:((ve=et==null?void 0:et.filter(function(E){return E.observer}))==null?void 0:ve.map(function(E){return{observer:E.observer,options:E.options,callback:function(ee){return te({type:D.Plugin,data:{plugin:E.name,payload:ee}})}}}))||[]},A)};ot.addLoadListener(function(q){try{ur.push(Tu(q.contentDocument))}catch(ve){console.warn(ve)}});var oo=function(){hn(),ur.push(Tu(document)),dn=!0};return document.readyState==="interactive"||document.readyState==="complete"?oo():(ur.push(ce("DOMContentLoaded",function(){te({type:D.DomContentLoaded,data:{}}),Ke==="DOMContentLoaded"&&oo()})),ur.push(ce("load",function(){te({type:D.Load,data:{}}),Ke==="load"&&oo()},window))),function(){ur.forEach(function(q){try{q()}catch(E){var ve=String(E).toLowerCase();ve.includes("cross-origin")||console.warn(E)}}),io.destroy(),dn=!1,Ld()}}catch(q){console.warn(q)}}Ue.addCustomEvent=function(t,n){if(!dn)throw new Error("please add custom event after start recording");te({type:D.Custom,data:{tag:t,payload:n}})},Ue.freezePage=function(){He.forEach(function(t){return t.freeze()})},Ue.takeFullSnapshot=function(t){if(!dn)throw new Error("please take full snapshot after start recording");hn(t)},Ue.mirror=Se;var tu;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(tu||(tu={})),Ue.addCustomEvent,Ue.freezePage,Ue.takeFullSnapshot;var lp=Object.defineProperty,cp=function(t,n,o){return n in t?lp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o},pn=function(t,n,o){return cp(t,(typeof n=="undefined"?"undefined":N(n))!=="symbol"?n+"":n,o)};function fp(t,n,o){try{if(!(n in t))return function(){};var e=t[n],r=o(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(i){return function(){}}}var wt=function(){function t(o){pn(this,"fileName"),pn(this,"functionName"),pn(this,"lineNumber"),pn(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t}(),hp=/(^|@)\S+:\d+/,ru=/^\s*at .*(\S+:\d+|\(native\))/m,dp=/^(eval@)?(\[native code])?$/,Gi={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(ru)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=o.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var o=n.stack.split("\n").filter(function(e){return!!e.match(ru)},this);return o.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),i=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=i?r.replace(i[0],""):r;var s=r.split(/\s+/).slice(1),a=this.extractLocation(i?i[1]:s.pop()),u=s.join(" ")||void 0,l=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new wt({functionName:u,fileName:l,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var o=n.stack.split("\n").filter(function(e){return!e.match(dp)},this);return o.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new wt({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=e.match(r),s=i&&i[1]?i[1]:void 0,a=this.extractLocation(e.replace(r,""));return new wt({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf("\n")>-1&&n.message.split("\n").length>n.stacktrace.split("\n").length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split("\n"),r=[],i=2,s=e.length;i<s;i+=2){var a=o.exec(e[i]);a&&r.push(new wt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split("\n"),r=[],i=0,s=e.length;i<s;i+=2){var a=o.exec(e[i]);a&&r.push(new wt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var o=n.stack.split("\n").filter(function(e){return!!e.match(hp)&&!e.match(/^Error created at/)},this);return o.map(function(e){var r=e.split("@"),i=this.extractLocation(r.pop()),s=r.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new wt({functionName:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)}};function pp(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var o=t.localName;if(!o)break;o=o.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var i=0;i<e.children.length;i++){var s=e.children[i];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===o&&r.push(s)}r.length>1&&(o+=":eq("+r.indexOf(t)+")"),n=o+(n?">"+n:""),t=e}return n}function ji(t){return Object.prototype.toString.call(t)==="[object Object]"}function nu(t,n){if(n===0)return!0;for(var o=Object.keys(t),e=O(o),r;!(r=e()).done;){var i=r.value;if(ji(t[i])&&nu(t[i],n-1))return!0}return!1}function bt(t,n){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var l=e.indexOf(this);~l?e.splice(l+1):e.push(this),~l?r.splice(l,1/0,a):r.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(i(u))return s(u);if((typeof u=="undefined"?"undefined":N(u))==="bigint")return u.toString()+"n";if(M(u,Event)){var c={};for(var f in u){var h=u[f];Array.isArray(h)?c[f]=pp(h.length?h[0]:null):c[f]=h}return c}else{if(M(u,Node))return M(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(M(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function i(a){return!!(ji(a)&&Object.keys(a).length>o.numOfKeysLimit||typeof a=="function"||ji(a)&&nu(a,o.depthOfLimit))}function s(a){var u=a.toString();return o.stringLengthLimit&&u.length>o.stringLengthLimit&&(u=""+u.slice(0,o.stringLengthLimit)+"..."),u}}var iu={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 vp(t,n,o){var e=o?Object.assign({},iu,o):iu,r=e.logger;if(!r)return function(){};var i;typeof r=="string"?i=n[r]:i=r;var s=0,a=!1,u=[];if(e.level.includes("error")){var l=function(y){var d=y.message,g=y.error,w=Gi.parse(g).map(function(S){return S.toString()}),b=[bt(d,e.stringifyOptions)];t({level:"error",trace:w,payload:b})};n.addEventListener("error",l),u.push(function(){n.removeEventListener("error",l)});var c=function(y){var d,g;M(y.reason,Error)?(d=y.reason,g=[bt("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,g=[bt("Uncaught (in promise)",e.stringifyOptions),bt(y.reason,e.stringifyOptions)]);var w=Gi.parse(d).map(function(b){return b.toString()});t({level:"error",trace:w,payload:g})};n.addEventListener("unhandledrejection",c),u.push(function(){n.removeEventListener("unhandledrejection",c)})}for(var f=O(e.level),h;!(h=f()).done;){var v=h.value;u.push(p(i,v))}return function(){u.forEach(function(y){return y()})};function p(y,d){var g=this;return y[d]?fp(y,d,function(w){var b=g;return function(){for(var S=arguments.length,C=new Array(S),R=0;R<S;R++)C[R]=arguments[R];if(w.apply(b,C),!(d==="assert"&&C[0])&&!a){a=!0;try{var A=Gi.parse(new Error).map(function(P){return P.toString()}).splice(1),x=d==="assert"?C.slice(1):C,k=x.map(function(P){return bt(P,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:d,trace:A,payload:k}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[bt("The number of log records reached the threshold.")]})}catch(P){w.apply(void 0,[].concat(["rrweb logger error:",P],C))}finally{a=!1}}}}):function(){}}}var mp="rrweb/console@1",gp=function(t){return{name:mp,observer:vp,options:t}},ou=z.setImmediate,ze,Vi,Yi,su=Object.prototype.toString,yp=typeof ou!="undefined"?function(n){return ou(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ze=function(n,o,e,r){return Object.defineProperty(n,o,{value:e,writable:!0,configurable:r!==!1})}}catch(t){ze=function(o,e,r){return o[e]=r,o}}Yi=function(){var n,o,e;function r(i,s){this.fn=i,this.self=s,this.next=void 0}return{add:function(s,a){e=new r(s,a),o?o.next=e:n=e,o=e,e=void 0},drain:function(){var s=n;for(n=o=Vi=void 0;s;)s.fn.call(s.self),s=s.next}}}();function vn(t,n){Yi.add(t,n),Vi||(Vi=yp(Yi.drain))}function au(t){var n,o=typeof t;return t!==null&&(o==="object"||o==="function")&&(n=t.then),typeof n=="function"?n:!1}function qi(){for(var t=0;t<this.chain.length;t++)wp(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function wp(t,n,o){var e,r;try{n===!1?o.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(r=au(e))?r.call(e,o.resolve,o.reject):o.resolve(e))}catch(i){o.reject(i)}}function uu(t){var n,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(n=au(t))?vn(function(){var e=new cu(o);try{n.call(t,function(){uu.apply(e,arguments)},function(){Kt.apply(e,arguments)})}catch(r){Kt.call(e,r)}}):(o.msg=t,o.state=1,o.chain.length>0&&vn(qi,o))}catch(e){Kt.call(new cu(o),e)}}}function Kt(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&vn(qi,n))}function lu(t,n,o,e){for(var r=0;r<n.length;r++)(function(s){t.resolve(n[s]).then(function(u){o(s,u)},e)})(r)}function cu(t){this.def=t,this.triggered=!1}function bp(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function We(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new bp(this);this.then=function(e,r){var i={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return i.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");i.resolve=a,i.reject=u}),n.chain.push(i),n.state!==0&&vn(qi,n),i.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){uu.call(n,e)},function(e){Kt.call(n,e)})}catch(o){Kt.call(n,o)}}var fu=ze({},"constructor",We,!1);We.prototype=fu,ze(fu,"__NPO__",0,!1),ze(We,"resolve",function(n){var o=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");r(n)})}),ze(We,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ze(We,"all",function(n){var o=this;return su.call(n)!=="[object Array]"?o.reject(TypeError("Not an array")):n.length===0?o.resolve([]):new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;lu(o,n,function(c,f){a[c]=f,++u===s&&r(a)},i)})}),ze(We,"race",function(n){var o=this;return su.call(n)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(r,i){if(typeof r!="function"||typeof i!="function")throw TypeError("Not a function");lu(o,n,function(a,u){r(u)},i)})});var F;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?F=Promise:F=We;var Hi={LIB_VERSION:"2.72.0"},mn=24*60*60*1e3,Ji=8*1e3,gn=Array.prototype,Sp=Function.prototype,hu=Object.prototype,Je=gn.slice,Xt=hu.toString,yn=hu.hasOwnProperty,Qt=z.console,St=z.navigator,me=z.document,er=z.opera,du=z.screen,Ze=St.userAgent,Zi=Sp.bind,pu=gn.forEach,vu=gn.indexOf,mu=gn.map,Cp=Array.isArray,Ki={},m={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Ce={log:function(){},warn:function(){},error:function(){},critical:function(){if(!m.isUndefined(Qt)&&Qt){var t=["Mixpanel error:"].concat(m.toArray(arguments));try{Qt.error.apply(Qt,t)}catch(n){m.each(t,function(o){Qt.error(o)})}}}},Xi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(Ce,arguments)}},tr=function(t){return{log:Xi(Ce.log,t),error:Xi(Ce.error,t),critical:Xi(Ce.critical,t)}};m.bind=function(t,n){var o,e;if(Zi&&t.bind===Zi)return Zi.apply(t,Je.call(arguments,1));if(!m.isFunction(t))throw new TypeError;return o=Je.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,o.concat(Je.call(arguments)));var r={};r.prototype=t.prototype;var i=new r;r.prototype=null;var s=t.apply(i,o.concat(Je.call(arguments)));return Object(s)===s?s:i},e},m.each=function(t,n,o){if(t!=null){if(pu&&t.forEach===pu)t.forEach(n,o);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(o,t[e],e,t)===Ki)return}else for(var i in t)if(yn.call(t,i)&&n.call(o,t[i],i,t)===Ki)return}},m.extend=function(t){return m.each(Je.call(arguments,1),function(n){for(var o in n)n[o]!==void 0&&(t[o]=n[o])}),t},m.isArray=Cp||function(t){return Xt.call(t)==="[object Array]"},m.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch(n){return!1}},m.isArguments=function(t){return!!(t&&yn.call(t,"callee"))},m.toArray=function(t){return t?t.toArray?t.toArray():m.isArray(t)||m.isArguments(t)?Je.call(t):m.values(t):[]},m.map=function(t,n,o){if(mu&&t.map===mu)return t.map(n,o);var e=[];return m.each(t,function(r){e.push(n.call(o,r))}),e},m.keys=function(t){var n=[];return t===null||m.each(t,function(o,e){n[n.length]=e}),n},m.values=function(t){var n=[];return t===null||m.each(t,function(o){n[n.length]=o}),n},m.include=function(t,n){var o=!1;return t===null?o:vu&&t.indexOf===vu?t.indexOf(n)!=-1:(m.each(t,function(e){if(o||(o=e===n))return Ki}),o)},m.includes=function(t,n){return t.indexOf(n)!==-1},m.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},m.isObject=function(t){return t===Object(t)&&!m.isArray(t)},m.isEmptyObject=function(t){if(m.isObject(t)){for(var n in t)if(yn.call(t,n))return!1;return!0}return!1},m.isUndefined=function(t){return t===void 0},m.isString=function(t){return Xt.call(t)=="[object String]"},m.isDate=function(t){return Xt.call(t)=="[object Date]"},m.isNumber=function(t){return Xt.call(t)=="[object Number]"},m.isElement=function(t){return!!(t&&t.nodeType===1)},m.encodeDates=function(t){return m.each(t,function(n,o){m.isDate(n)?t[o]=m.formatDate(n):m.isObject(n)&&(t[o]=m.encodeDates(n))}),t},m.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},m.formatDate=function(t){function n(o){return o<10?"0"+o:o}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},m.strip_empty_properties=function(t){var n={};return m.each(t,function(o,e){m.isString(o)&&o.length>0&&(n[e]=o)}),n},m.truncate=function(t,n){var o;return typeof t=="string"?o=t.slice(0,n):m.isArray(t)?(o=[],m.each(t,function(e){o.push(m.truncate(e,n))})):m.isObject(t)?(o={},m.each(t,function(e,r){o[r]=m.truncate(e,n)})):o=t,o},m.JSONEncode=function(){return function(t){var n=t,o=function(r){var i=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return i.lastIndex=0,i.test(r)?'"'+r.replace(i,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,i){var s="",a=" ",u=0,l="",c="",f=0,h=s,v=[],p=i[r];switch(p&&typeof p=="object"&&typeof p.toJSON=="function"&&(p=p.toJSON(r)),typeof p){case"string":return o(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(s+=a,v=[],Xt.apply(p)==="[object Array]"){for(f=p.length,u=0;u<f;u+=1)v[u]=e(u,p)||"null";return c=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,c}for(l in p)yn.call(p,l)&&(c=e(l,p),c&&v.push(o(l)+(s?": ":":")+c));return c=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,c}};return e("",{"":n})}}(),m.JSONDecode=function(){var t,n,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(v){var p=new SyntaxError(v);throw p.at=t,p.text=e,p},i=function(v){return v&&v!==n&&r("Expected '"+v+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},s=function(){var v,p="";for(n==="-"&&(p="-",i("-"));n>="0"&&n<="9";)p+=n,i();if(n===".")for(p+=".";i()&&n>="0"&&n<="9";)p+=n;if(n==="e"||n==="E")for(p+=n,i(),(n==="-"||n==="+")&&(p+=n,i());n>="0"&&n<="9";)p+=n,i();if(v=+p,!isFinite(v))r("Bad number");else return v},a=function(){var v,p,y="",d;if(n==='"')for(;i();){if(n==='"')return i(),y;if(n==="\\")if(i(),n==="u"){for(d=0,p=0;p<4&&(v=parseInt(i(),16),!!isFinite(v));p+=1)d=d*16+v;y+=String.fromCharCode(d)}else if(typeof o[n]=="string")y+=o[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)i()},l=function(){switch(n){case"t":return i("t"),i("r"),i("u"),i("e"),!0;case"f":return i("f"),i("a"),i("l"),i("s"),i("e"),!1;case"n":return i("n"),i("u"),i("l"),i("l"),null}r('Unexpected "'+n+'"')},c,f=function(){var v=[];if(n==="["){if(i("["),u(),n==="]")return i("]"),v;for(;n;){if(v.push(c()),u(),n==="]")return i("]"),v;i(","),u()}}r("Bad array")},h=function(){var v,p={};if(n==="{"){if(i("{"),u(),n==="}")return i("}"),p;for(;n;){if(v=a(),u(),i(":"),Object.hasOwnProperty.call(p,v)&&r('Duplicate key "'+v+'"'),p[v]=c(),u(),n==="}")return i("}"),p;i(","),u()}}r("Bad object")};return c=function(){switch(u(),n){case"{":return h();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():l()}},function(v){var p;return e=v,t=0,n=" ",p=c(),u(),n&&r("Syntax error"),p}}(),m.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,r,i,s,a,u,l,c=0,f=0,h="",v=[];if(!t)return t;t=m.utf8Encode(t);do o=t.charCodeAt(c++),e=t.charCodeAt(c++),r=t.charCodeAt(c++),l=o<<16|e<<8|r,i=l>>18&63,s=l>>12&63,a=l>>6&63,u=l&63,v[f++]=n.charAt(i)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(c<t.length);switch(h=v.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},m.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",o,e,r=0,i;for(o=e=0,r=t.length,i=0;i<r;i++){var s=t.charCodeAt(i),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>o&&(n+=t.substring(o,e)),n+=a,o=e=i+1)}return e>o&&(n+=t.substring(o,t.length)),n},m.UUID=function(){try{return z.crypto.randomUUID()}catch(o){for(var t=new Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]="-",m.map(t,function(e){return e.toString(16)}).join("")}};var gu=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];m.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<gu.length;n++)if(t.indexOf(gu[n])!==-1)return!0;return!1},m.HTTPBuildQuery=function(t,n){var o,e,r=[];return m.isUndefined(n)&&(n="&"),m.each(t,function(i,s){o=encodeURIComponent(i.toString()),e=encodeURIComponent(s),r[r.length]=e+"="+o}),r.join(n)},m.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+n+"=([^&#]*)",e=new RegExp(o),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var i=r[1];try{i=decodeURIComponent(i)}catch(s){Ce.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},m.cookie={get:function(t){for(var n=t+"=",o=me.cookie.split(";"),e=0;e<o.length;e++){for(var r=o[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(t){var n;try{n=m.JSONDecode(m.cookie.get(t))||{}}catch(o){}return n},set_seconds:function(t,n,o,e,r,i,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var c=bu(me.location.hostname);a=c?"; domain=."+c:""}if(o){var f=new Date;f.setTime(f.getTime()+o*1e3),u="; expires="+f.toGMTString()}i&&(r=!0,l="; SameSite=None"),r&&(l+="; secure"),me.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+l},set:function(t,n,o,e,r,i,s){var a="",u="",l="";if(s)a="; domain="+s;else if(e){var c=bu(me.location.hostname);a=c?"; domain=."+c:""}if(o){var f=new Date;f.setTime(f.getTime()+o*24*60*60*1e3),u="; expires="+f.toGMTString()}i&&(r=!0,l="; SameSite=None"),r&&(l+="; secure");var h=t+"="+encodeURIComponent(n)+u+"; path=/"+a+l;return me.cookie=h,h},remove:function(t,n,o){m.cookie.set(t,"",-1,n,!1,!1,o)}};var yu=function(t){var n=!0;try{var o="__mplss_"+to(8),e="xyz";t.setItem(o,e),t.getItem(o)!==e&&(n=!1),t.removeItem(o)}catch(r){n=!1}return n},Qi=null,rr=function(t,n){return Qi!==null&&!n?Qi:Qi=yu(t||z.localStorage)},eo=null,Ip=function(t,n){return eo!==null&&!n?eo:eo=yu(t||z.sessionStorage)};function wu(t,n,o){var e=function(r){Ce.error(n+" error: "+r)};return{is_supported:function(r){var i=o(t,r);return i||Ce.error(n+" unsupported"),i},error:e,get:function(r){try{return t.getItem(r)}catch(i){e(i)}return null},parse:function(r){try{return m.JSONDecode(t.getItem(r))||{}}catch(i){}return null},set:function(r,i){try{t.setItem(r,i)}catch(s){e(s)}},remove:function(r){try{t.removeItem(r)}catch(i){e(i)}}}}m.localStorage=wu(z.localStorage,"localStorage",rr),m.sessionStorage=wu(z.sessionStorage,"sessionStorage",Ip),m.register_event=function(){var t=function(e,r,i,s,a){if(!e){Ce.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(r,i,!!a);else{var u="on"+r,l=e[u];e[u]=n(e,i,l)}};function n(e,r,i){var s=function(a){if(a=a||o(z.event),!!a){var u=!0,l,c;return m.isFunction(i)&&(l=i(a)),c=r.call(e,a),(l===!1||c===!1)&&(u=!1),u}};return s}function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation),e}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},t}();var Op=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');m.dom_query=function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function o(r,i){var s=" "+i+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function e(r){if(!me.getElementsByTagName)return[];var i=r.split(" "),s,a,u,l,c,f,h,v,p,y,d=[me];for(f=0;f<i.length;f++){if(s=i[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var g=a[1],w=me.getElementById(g);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];d=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),l=[],c=0,h=0;h<d.length;h++)for(u=="*"?p=t(d[h]):p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)l[c++]=p[v];for(d=[],y=0,h=0;h<l.length;h++)l[h].className&&m.isString(l[h].className)&&o(l[h],b)&&(d[y++]=l[h]);continue}var S=s.match(Op);if(S){u=S[1];var C=S[2],R=S[3],A=S[4];for(u||(u="*"),l=[],c=0,h=0;h<d.length;h++)for(u=="*"?p=t(d[h]):p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)l[c++]=p[v];d=[],y=0;var x;switch(R){case"=":x=function(k){return k.getAttribute(C)==A};break;case"~":x=function(k){return k.getAttribute(C).match(new RegExp("\\b"+A+"\\b"))};break;case"|":x=function(k){return k.getAttribute(C).match(new RegExp("^"+A+"-?"))};break;case"^":x=function(k){return k.getAttribute(C).indexOf(A)===0};break;case"$":x=function(k){return k.getAttribute(C).lastIndexOf(A)==k.getAttribute(C).length-A.length};break;case"*":x=function(k){return k.getAttribute(C).indexOf(A)>-1};break;default:x=function(k){return k.getAttribute(C)}}for(d=[],y=0,h=0;h<l.length;h++)x(l[h])&&(d[y++]=l[h]);continue}for(u=s,l=[],c=0,h=0;h<d.length;h++)for(p=d[h].getElementsByTagName(u),v=0;v<p.length;v++)l[c++]=p[v];d=l}return d}return function(r){return m.isElement(r)?[r]:m.isObject(r)&&!m.isUndefined(r.length)?r:e.call(this,r)}}();var Rp=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],xp=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];m.info={campaignParams:function(t){var n="",o={};return m.each(Rp,function(e){n=m.getQueryParam(me.URL,e),n.length?o[e]=n:t!==void 0&&(o[e]=t)}),o},clickParams:function(){var t="",n={};return m.each(xp,function(o){t=m.getQueryParam(me.URL,o),t.length&&(n[o]=t)}),n},marketingParams:function(){return m.extend(m.info.campaignParams(),m.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=m.info.searchEngine(t),o=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=m.getQueryParam(t,o);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,o){return n=n||"",o||m.includes(t," OPR/")?m.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":m.includes(t,"IEMobile")||m.includes(t,"WPDesktop")?"Internet Explorer Mobile":m.includes(t,"SamsungBrowser/")?"Samsung Internet":m.includes(t,"Edge")||m.includes(t,"Edg/")?"Microsoft Edge":m.includes(t,"FBIOS")?"Facebook Mobile":m.includes(t,"Whale/")?"Whale Browser":m.includes(t,"Chrome")?"Chrome":m.includes(t,"CriOS")?"Chrome iOS":m.includes(t,"UCWEB")||m.includes(t,"UCBrowser")?"UC Browser":m.includes(t,"FxiOS")?"Firefox iOS":m.includes(n,"Apple")?m.includes(t,"Mobile")?"Mobile Safari":"Safari":m.includes(t,"Android")?"Android Mobile":m.includes(t,"Konqueror")?"Konqueror":m.includes(t,"Firefox")?"Firefox":m.includes(t,"MSIE")||m.includes(t,"Trident/")?"Internet Explorer":m.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,o){var e=m.info.browser(t,n,o),r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},i=r[e];if(i===void 0)return null;var s=t.match(i);return s?parseFloat(s[s.length-2]):null},os:function(){var t=Ze;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return z.location.href},properties:function(t){return typeof t!="object"&&(t={}),m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(Ze,St.vendor,er),$referrer:me.referrer,$referring_domain:m.info.referringDomain(me.referrer),$device:m.info.device(Ze)}),{$current_url:m.info.currentUrl(),$browser_version:m.info.browserVersion(Ze,St.vendor,er),$screen_height:du.height,$screen_width:du.width,mp_lib:"web",$lib_version:Hi.LIB_VERSION,$insert_id:to(),time:m.timestamp()/1e3},m.strip_empty_properties(t))},people_properties:function(){return m.extend(m.strip_empty_properties({$os:m.info.os(),$browser:m.info.browser(Ze,St.vendor,er)}),{$browser_version:m.info.browserVersion(Ze,St.vendor,er)})},mpPageViewProperties:function(){return m.strip_empty_properties({current_page_title:me.title,current_domain:z.location.hostname,current_url_path:z.location.pathname,current_url_protocol:z.location.protocol,current_url_search:z.location.search})}};var Ep=function(t,n){var o=null,e=[];return function(r){var i=this;return e.push(r),o||(o=new F(function(s){setTimeout(function(){var a=t.apply(i,[e]);o=null,e=[],s(a)},n)})),o}},to=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},Ap=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Mp=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,bu=function(t){var n=Mp,o=t.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(n=Ap);var r=t.match(n);return r?r[0]:""},kp=function(){var t=z.navigator.onLine;return m.isUndefined(t)||t},ro=function(){},wn=null,bn=null;typeof JSON!="undefined"&&(wn=JSON.stringify,bn=JSON.parse),wn=wn||m.JSONEncode,bn=bn||m.JSONDecode;var _p=function(t,n,o){if(!z.CompressionStream)return!1;var e=m.info.browser(t,n,o),r=m.info.browserVersion(t,n,o);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};m.info=m.info,m.info.browser=m.info.browser,m.info.browserVersion=m.info.browserVersion,m.info.device=m.info.device,m.info.properties=m.info.properties,m.isBlockedUA=m.isBlockedUA,m.isEmptyObject=m.isEmptyObject,m.isObject=m.isObject,m.JSONDecode=m.JSONDecode,m.JSONEncode=m.JSONEncode,m.toArray=m.toArray,m.NPO=We;var Tp="mixpanelBrowserDb",Su="mixpanelRecordingEvents",Cu="mixpanelRecordingRegistry",Pp=1,Np=[Su,Cu],xe=function(t){this.dbPromise=null,this.storeName=t};xe.prototype._openDb=function(){return new F(function(t,n){var o=z.indexedDB.open(Tp,Pp);o.onerror=function(){n(o.error)},o.onsuccess=function(){t(o.result)},o.onupgradeneeded=function(e){var r=e.target.result;Np.forEach(function(i){r.createObjectStore(i)})}})},xe.prototype.init=function(){return z.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof z.IDBDatabase?F.resolve():F.reject(t)})):F.reject("indexedDB is not supported in this browser")},xe.prototype.isInitialized=function(){return!!this.dbPromise},xe.prototype.makeTransaction=function(t,n){var o=this.storeName,e=function(r){return new F(function(i,s){var a=r.transaction(o,t);a.oncomplete=function(){i(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):F.reject(r)}.bind(this))},xe.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(o){o.put(n,t)})},xe.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(o){n=o.get(t)}).then(function(){return n.result})},xe.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},xe.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var $p="__mp_opt_in_out_";function Lp(t,n){if(zp(n))return Ce.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var o=Up(t,n)==="0";return o&&Ce.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function Dp(t){return Wp(t,function(n){return this.get_config(n)})}function Fp(t){return t=t||{},t.persistenceType==="localStorage"?m.localStorage:m.cookie}function Bp(t,n){return n=n||{},(n.persistencePrefix||$p)+t}function Up(t,n){return Fp(n).get(Bp(t,n))}function zp(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||z,o=n.navigator||{},e=!1;return m.each([o.doNotTrack,o.msDoNotTrack,n.doNotTrack],function(r){m.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function Wp(t,n){return function(){var o=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),i=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(o=Lp(e,{ignoreDnt:r,persistenceType:i,persistencePrefix:s,window:a}))}catch(l){Ce.error("Unexpected error when checking tracking opt-out status: "+l)}if(!o)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Gp=tr("lock"),Iu=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||z.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||F};Iu.prototype.withLock=function(t,n){var o=this.promiseImpl;return new o(m.bind(function(e,r){var i=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,l=this.timeoutMS,c=this.storage,f=a+":X",h=a+":Y",v=a+":Z",p=function(b){if(new Date().getTime()-s>l){Gp.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+i+"]"),c.removeItem(v),c.removeItem(h),g();return}setTimeout(function(){try{b()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(b,S){b()?S():p(function(){y(b,S)})},d=function(){var b=c.getItem(h);return b&&b!==i?!1:(c.setItem(h,i),c.getItem(h)===i?!0:(rr(c,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){c.setItem(f,i),y(d,function(){if(c.getItem(f)===i){w();return}p(function(){if(c.getItem(h)!==i){g();return}y(function(){return!c.getItem(v)},w)})})},w=function(){c.setItem(v,"1");var b=function(){c.removeItem(v),c.getItem(h)===i&&c.removeItem(h),c.getItem(f)===i&&c.removeItem(f)};t().then(function(S){b(),e(S)}).catch(function(S){b(),r(S)})};try{if(rr(c,!0))g();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var Ct=function(t){this.storage=t||z.localStorage};Ct.prototype.init=function(){return F.resolve()},Ct.prototype.isInitialized=function(){return!0},Ct.prototype.setItem=function(t,n){return new F(m.bind(function(o,e){try{this.storage.setItem(t,wn(n))}catch(r){e(r)}o()},this))},Ct.prototype.getItem=function(t){return new F(m.bind(function(n,o){var e;try{e=bn(this.storage.getItem(t))}catch(r){o(r)}n(e)},this))},Ct.prototype.removeItem=function(t){return new F(m.bind(function(n,o){try{this.storage.removeItem(t)}catch(e){o(e)}n()},this))};var Ou=tr("batch"),Ee=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Ct,this.lock=new Iu(t,{storage:n.sharedLockStorage||z.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||m.bind(Ou.error,Ou),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=Ep(m.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=m.bind(function(o){return this._enqueuePersisted([o])},this)};Ee.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?F.resolve():this.queueStorage.init().then(m.bind(function(){this.initialized=!0},this)).catch(m.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Ee.prototype.enqueue=function(t,n){var o={id:to(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),F.resolve(!0))},Ee.prototype._enqueuePersisted=function(t){var n=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return this.saveToStorage(o.concat(t))},this)).then(m.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(t)),o},this)).catch(m.bind(function(o){return this.reportError("Error enqueueing items",o,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(m.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},Ee.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){if(o.length){var e={};m.each(n,function(s){e[s.id]=!0});for(var r=0;r<o.length;r++){var i=o[r];if(new Date().getTime()>i.flushAfter&&!e[i.id]&&(i.orphaned=!0,n.push(i),n.length>=t))break}}return n},this)):F.resolve(n)};var Ru=function(t,n){var o=[];return m.each(t,function(e){e.id&&!n[e.id]&&o.push(e)}),o};Ee.prototype.removeItemsByID=function(t){var n={};if(m.each(t,function(e){n[e]=!0}),this.memQueue=Ru(this.memQueue,n),this.usePersistence){var o=m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(e){return e=Ru(e,n),this.saveToStorage(e)},this)).then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(e){for(var r=0;r<e.length;r++){var i=e[r];if(i.id&&n[i.id])throw new Error("Item not removed from storage")}return!0},this)).catch(m.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(o,this.pid).catch(m.bind(function(e){return this.reportError("Error acquiring storage lock",e),rr(this.lock.storage,!0)?!1:o().then(m.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(m.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return F.resolve(!0)};var xu=function(t,n){var o=[];return m.each(t,function(e){var r=e.id;if(r in n){var i=n[r];i!==null&&(e.payload=i,o.push(e))}else o.push(e)}),o};Ee.prototype.updatePayloads=function(t){return this.memQueue=xu(this.memQueue,t),this.usePersistence?this.lock.withLock(m.bind(function(){return this.ensureInit().then(m.bind(function(){return this.readFromStorage()},this)).then(m.bind(function(o){return o=xu(o,t),this.saveToStorage(o)},this)).catch(m.bind(function(o){return this.reportError("Error updating items",t,o),!1},this))},this),this.pid).catch(m.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):F.resolve(!0)},Ee.prototype.readFromStorage=function(){return this.ensureInit().then(m.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(m.bind(function(t){return t&&(m.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(m.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Ee.prototype.saveToStorage=function(t){return this.ensureInit().then(m.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(m.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Ee.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(m.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):F.resolve()};var jp=10*60*1e3,nr=tr("batch"),Ie=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ee(t,{errorReporter:m.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=n.flushOnlyOnInterval||!1,this._flushPromise=null};Ie.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Ie.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ie.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ie.prototype.clear=function(){return this.queue.clear()},Ie.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ie.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ie.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(m.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ie.prototype.sendRequestPromise=function(t,n){return new F(m.bind(function(o){this.sendRequest(t,n,o)},this))},Ie.prototype.flush=function(t){if(this.requestInProgress)return nr.log("Flush: Request already in progress"),F.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(m.bind(function(r){var i=r.length===e,s=[],a={};if(m.each(r,function(f){var h=f.payload;if(this.beforeSendHook&&!f.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=m.extend({},h.properties,{mp_sent_by_lib_version:Hi.LIB_VERSION}));var v=!0,p=f.id;p?(this.itemIdsSentSuccessfully[p]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[p]}),v=!1):this.reportError("[dupe] found item with no ID",{item:f}),v&&s.push(h)}a[f.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),F.resolve();var u=m.bind(function(){return this.queue.removeItemsByID(m.map(r,function(f){return f.id})).then(m.bind(function(f){return m.each(r,m.bind(function(h){var v=h.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!i?(this.resetFlush(),F.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),F.resolve())},this))},this),l=m.bind(function(f){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(m.isObject(f)&&f.error==="timeout"&&new Date().getTime()-o>=n)return this.reportError("Network timeout; retrying"),this.flush();if(m.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!kp()||f.error==="timeout")){var h=this.flushInterval*2;return f.retryAfter&&(h=parseInt(f.retryAfter,10)*1e3||h),h=Math.min(jp,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),F.resolve()}else if(m.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),F.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(p){this.reportError("Error handling API response",p),this.resetFlush()}},this),c={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(c.transport="sendBeacon"),nr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,c).then(l)},this)).catch(m.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Ie.prototype.reportError=function(t,n){if(nr.error.apply(nr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(o){nr.error(o)}};var Eu=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},Vp=250,It=tr("recorder"),Yp=z.CompressionStream,qp={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},Hp=new Set([T.MouseMove,T.MouseInteraction,T.Scroll,T.ViewportResize,T.Input,T.TouchMove,T.MediaInteraction,T.Drag,T.Selection]);function Jp(t){return t.type===D.IncrementalSnapshot&&Hp.has(t.data.source)}var oe=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||ro,this._onMaxLengthReached=t.onMaxLengthReached||ro,this._onBatchSent=t.onBatchSent||ro,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=mn,this.recordMinMs=0;var n=rr(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new xe(Su),this.batcher=new Ie(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:qp,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Vp,sharedLockTimeoutMS:10*1e3})};oe.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var o=this._mixpanel.get_property("$user_id");return o&&(t.$user_id=o),t},oe.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},oe.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},oe.prototype.get_config=function(t){return this.getConfig(t)},oe.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){It.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>mn&&(this.recordMaxMs=mn,It.critical("record_max_ms cannot be greater than "+mn+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=m.info.currentUrl(),this.replayStartUrl=m.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var r=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,r),this.idleExpires=new Date().getTime()+r}.bind(this);n();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}Jp(r)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(r),(this.lastEventTimestamp===null||r.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=r.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[gp({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(r){this.reportError("Unexpected error when starting rrweb recording.",r)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var e=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),e)},oe.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},oe.prototype.isRrwebStopped=function(){return this._stopRecording===null},oe.prototype.flushEventsWithOptOut=function(t,n,o){var e=function(r){r===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,o,e)},oe.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:t}},oe.deserialize=function(t,n){var o=new oe(m.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return o},oe.prototype._sendRequest=function(t,n,o,e){var r=function(s,a){s.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=m.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),i=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");z.fetch(i+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},oe.prototype._flushEvents=Dp(function(t,n,o){var e=t.length;if(e>0){for(var r=this.replayId,i=1/0,s=-1/0,a=!1,u=0;u<e;u++)i=Math.min(i,t[u].timestamp),s=Math.max(s,t[u].timestamp),t[u].type===D.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){o({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=i}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=i);var l=s-this.replayStartTime,c={$current_url:this.batchStartUrl,$lib_version:Hi.LIB_VERSION,batch_start_time:i/1e3,mp_lib:"web",replay_id:r,replay_length_ms:l,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(c,this.getUserIdInfo()),_p(Ze,St.vendor,er)){var h=new Blob([f],{type:"application/json"}).stream(),v=h.pipeThrough(new Yp("gzip"));new Response(v).blob().then(function(p){c.format="gzip",this._sendRequest(r,c,p,o)}.bind(this))}else c.format="body",this._sendRequest(r,c,f,o)}}),oe.prototype.reportError=function(t,n){It.error.apply(It.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(o){It.error(o)}},oe.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},oe.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Ji?(It.critical("record_min_ms cannot be greater than "+Ji+"ms. Capping value."),Ji):t};var Te=function(t){this.idb=new xe(Cu),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};Te.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Te.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},Te.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return F.resolve();var n=t.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,t)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),F.resolve())},Te.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(t){return Eu(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):F.resolve(null)},Te.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Te.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}.bind(this)).catch(this.handleError.bind(this))},Te.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):F.resolve()},Te.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(t){var n=t.filter(function(o){return Eu(o)}).map(function(o){var e=oe.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(o.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return F.all(n)}.bind(this)).catch(this.handleError.bind(this)):F.resolve([])};var ir=tr("recorder"),Pe=function(t,n,o){this.mixpanelInstance=t,this.rrwebRecord=n||Ue,this.sharedLockStorage=o,this.recordingRegistry=new Te({mixpanelInstance:this.mixpanelInstance,errorReporter:ir.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Pe.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){ir.log("Recording already in progress, skipping startRecording.");return}var n=function(){ir.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){ir.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:o,replayId:m.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=oe.deserialize(t.activeSerializedRecording,r):this.activeRecording=new oe(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Pe.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))},Pe.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Pe.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var o=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),o}return F.resolve()},Pe.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),F.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(ir.log("No resumable recording found."),null)}.bind(this))},Pe.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Pe.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Pe.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),z.__mp_recorder=Pe})();
2
2
  //# sourceMappingURL=mixpanel-recorder.min.js.map