mixpanel-browser 2.73.0 → 2.75.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 (55) hide show
  1. package/.eslintrc.json +7 -4
  2. package/.github/workflows/integration-tests.yml +52 -0
  3. package/.github/workflows/unit-tests.yml +40 -0
  4. package/CHANGELOG.md +12 -0
  5. package/README.md +3 -3
  6. package/build.sh +1 -5
  7. package/dist/mixpanel-core.cjs.d.ts +12 -1
  8. package/dist/mixpanel-core.cjs.js +432 -34
  9. package/dist/mixpanel-recorder.js +5364 -684
  10. package/dist/mixpanel-recorder.min.js +1 -1
  11. package/dist/mixpanel-recorder.min.js.map +1 -1
  12. package/dist/mixpanel-targeting.js +2576 -0
  13. package/dist/mixpanel-targeting.min.js +2 -0
  14. package/dist/mixpanel-targeting.min.js.map +1 -0
  15. package/dist/mixpanel-with-async-modules.cjs.d.ts +522 -0
  16. package/dist/mixpanel-with-async-modules.cjs.js +9700 -0
  17. package/dist/mixpanel-with-async-recorder.cjs.d.ts +12 -1
  18. package/dist/mixpanel-with-async-recorder.cjs.js +432 -34
  19. package/dist/mixpanel-with-recorder.d.ts +12 -1
  20. package/dist/mixpanel-with-recorder.js +7889 -2839
  21. package/dist/mixpanel-with-recorder.min.d.ts +12 -1
  22. package/dist/mixpanel-with-recorder.min.js +1 -1
  23. package/dist/mixpanel.amd.d.ts +12 -1
  24. package/dist/mixpanel.amd.js +8446 -2813
  25. package/dist/mixpanel.cjs.d.ts +12 -1
  26. package/dist/mixpanel.cjs.js +8446 -2813
  27. package/dist/mixpanel.globals.js +432 -34
  28. package/dist/mixpanel.min.js +182 -173
  29. package/dist/mixpanel.module.d.ts +12 -1
  30. package/dist/mixpanel.module.js +8446 -2813
  31. package/dist/mixpanel.umd.d.ts +12 -1
  32. package/dist/mixpanel.umd.js +8446 -2813
  33. package/dist/rrweb-bundled.js +4434 -596
  34. package/dist/rrweb-compiled.js +5078 -646
  35. package/package.json +33 -7
  36. package/rollup.config.mjs +286 -224
  37. package/src/autocapture/utils.js +15 -7
  38. package/src/config.js +1 -1
  39. package/src/flags/index.js +269 -8
  40. package/src/globals.js +14 -0
  41. package/src/index.d.ts +12 -1
  42. package/src/loaders/loader-module.js +1 -0
  43. package/src/mixpanel-core.js +101 -8
  44. package/src/recorder/index.js +2 -1
  45. package/src/recorder/masking.js +197 -0
  46. package/src/recorder/rrweb-entrypoint.js +2 -1
  47. package/src/recorder/session-recording.js +43 -4
  48. package/src/recorder/utils.js +5 -1
  49. package/src/targeting/event-matcher.js +97 -0
  50. package/src/targeting/index.js +11 -0
  51. package/src/targeting/loader.js +36 -0
  52. package/src/utils.js +12 -10
  53. package/testServer.js +51 -7
  54. package/.github/workflows/tests.yml +0 -25
  55. /package/src/loaders/{loader-module-with-async-recorder.js → loader-module-with-async-modules.js} +0 -0
@@ -1 +1 @@
1
- (function(){"use strict";var I;if(typeof window=="undefined"){var Os={hostname:""};I={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Os,referrer:""},screen:{width:0,height:0},location:Os,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else I=window;function xs(e,n){(n==null||n>e.length)&&(n=e.length);for(var i=0,t=new Array(n);i<n;i++)t[i]=e[i];return t}function Rs(e,n,i,t,r,o,s){try{var a=e[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(t,r)}function _i(e){return function(){var n=this,i=arguments;return new Promise(function(t,r){var o=e.apply(n,i);function s(u){Rs(o,t,r,s,a,"next",u)}function a(u){Rs(o,t,r,s,a,"throw",u)}s(void 0)})}}function Hr(e,n,i){return As()?Hr=Reflect.construct:Hr=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&lr(c,s.prototype),c},Hr.apply(null,arguments)}function Gl(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function ye(e,n,i){return n&&Gl(e.prototype,n),e}function H(){return H=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},H.apply(this,arguments)}function bi(e){return bi=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},bi(e)}function be(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&lr(e,n)}function M(e,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function Vl(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function cr(e,n){if(e==null)return{};var i={},t=Object.keys(e),r,o;for(o=0;o<t.length;o++)r=t[o],!(n.indexOf(r)>=0)&&(i[r]=e[r]);return i}function lr(e,n){return lr=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t},lr(e,n)}function U(e){"@swc/helpers - typeof";return e&&typeof Symbol!="undefined"&&e.constructor===Symbol?"symbol":typeof e}function jl(e,n){if(e){if(typeof e=="string")return xs(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return xs(e,n)}}function Yr(e){var n=typeof Map=="function"?new Map:void 0;return Yr=function(t){if(t===null||!Vl(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(t))return n.get(t);n.set(t,r)}function r(){return Hr(t,arguments,bi(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),lr(r,t)},Yr(e)}function As(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(As=function(){return!!e})()}function O(e,n){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=jl(e))||n){i&&(e=i);var t=0;return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}}}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 fr(e,n){var i,t,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,t&&(r=c[0]&2?t.return:c[0]?t.throw||((r=t.return)&&r.call(t),0):t.next)&&!(r=r.call(t,c[1])).done)return r;switch(t=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,t=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(e,s)}catch(l){c=[6,l],t=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Ms(e){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&e[n],t=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Hl=Object.defineProperty,Yl=function(e,n,i){return n in e?Hl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},E=function(e,n,i){return Yl(e,(typeof n=="undefined"?"undefined":U(n))!=="symbol"?n+"":n,i)},Ts,Kl=Object.defineProperty,Xl=function(e,n,i){return n in e?Kl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Ps=function(e,n,i){return Xl(e,(typeof n=="undefined"?"undefined":U(n))!=="symbol"?n+"":n,i)},ge=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(ge||{}),Ns={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ls={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Kr={},Jl=function(){return!!globalThis.Zone};function wi(e){if(Kr[e])return Kr[e];var n=globalThis[e],i=n.prototype,t=e in Ns?Ns[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in Ls?Ls[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Jl())return Kr[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Kr[e]=c:i}catch(l){return i}}var Si={};function nt(e,n,i){var t,r=e+"."+String(i);if(Si[r])return Si[r].call(n);var o=wi(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(Si[r]=s,s.call(n)):n[i]}var Ci={};function Ds(e,n,i){var t=e+"."+String(i);if(Ci[t])return Ci[t].bind(n);var r=wi(e),o=r[i];return typeof o!="function"?n[i]:(Ci[t]=o,o.bind(n))}function Zl(e){return nt("Node",e,"childNodes")}function Ql(e){return nt("Node",e,"parentNode")}function ef(e){return nt("Node",e,"parentElement")}function tf(e){return nt("Node",e,"textContent")}function rf(e,n){return Ds("Node",e,"contains")(n)}function nf(e){return Ds("Node",e,"getRootNode")()}function of(e){return!e||!("host"in e)?null:nt("ShadowRoot",e,"host")}function sf(e){return e.styleSheets}function af(e){return!e||!("shadowRoot"in e)?null:nt("Element",e,"shadowRoot")}function uf(e,n){return nt("Element",e,"querySelector")(n)}function cf(e,n){return nt("Element",e,"querySelectorAll")(n)}function lf(){return wi("MutationObserver").constructor}function ff(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var we={childNodes:Zl,parentNode:Ql,parentElement:ef,textContent:tf,contains:rf,getRootNode:nf,host:of,styleSheets:sf,shadowRoot:af,querySelector:uf,querySelectorAll:cf,mutationObserver:lf,patch:ff};function $s(e){return e.nodeType===e.ELEMENT_NODE}function hr(e){var n=e&&"host"in e&&"mode"in e&&we.host(e)||null;return!!(n&&"shadowRoot"in n&&we.shadowRoot(n)===e)}function pr(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function hf(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function pf(e){var n=e.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?i.push("layer"):e.layerName&&i.push("layer("+e.layerName+")"),e.supportsText&&i.push("supports("+e.supportsText+")"),e.media.length&&i.push(e.media.mediaText),i.join(" ")+";"}function Ii(e){try{var n=e.rules||e.cssRules;if(!n)return null;var i=e.href;!i&&e.ownerNode&&e.ownerNode.ownerDocument&&(i=e.ownerNode.ownerDocument.location.href);var t=Array.from(n,function(r){return Fs(r,i)}).join("");return hf(t)}catch(r){return null}}function Fs(e,n){if(vf(e)){var i;try{i=Ii(e.styleSheet)||pf(e)}catch(r){i=e.cssText}return e.styleSheet.href?Zr(i,e.styleSheet.href):i}else{var t=e.cssText;return gf(e)&&e.selectorText.includes(":")&&(t=df(t)),n?Zr(t,n):t}}function df(e){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(n,"$1\\$2")}function vf(e){return"styleSheet"in e}function gf(e){return"selectorText"in e}var Us=function(){function e(){Ps(this,"idNodeMap",new Map),Ps(this,"nodeMetaMap",new WeakMap)}var n=e.prototype;return n.getId=function(t){var r;if(!t)return-1;var o=(r=this.getMeta(t))==null?void 0:r.id;return o!=null?o:-1},n.getNode=function(t){return this.idNodeMap.get(t)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(t){return this.nodeMetaMap.get(t)||null},n.removeNodeFromMap=function(t){var r=this,o=this.getId(t);this.idNodeMap.delete(o),t.childNodes&&t.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(t){return this.idNodeMap.has(t)},n.hasNode=function(t){return this.nodeMetaMap.has(t)},n.add=function(t,r){var o=r.id;this.idNodeMap.set(o,t),this.nodeMetaMap.set(t,r)},n.replace=function(t,r){var o=this.getNode(t);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(t,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function mf(){return new Us}function Xr(e){var n=e.element,i=e.maskInputOptions,t=e.tagName,r=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=r&&_t(r);return(i[t.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function _t(e){return e.toLowerCase()}var Bs="__rrweb_original__";function yf(e){var n=e.getContext("2d");if(!n)return!0;for(var i=50,t=0;t<e.width;t+=i)for(var r=0;r<e.height;r+=i){var o=n.getImageData,s=Bs in o?o[Bs]:o,a=new Uint32Array(s.call(n,t,r,Math.min(i,e.width-t),Math.min(i,e.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Jr(e){var n=e.type;return e.hasAttribute("data-rr-is-password")?"password":n?_t(n):null}function zs(e,n){var i;try{i=new URL(e,n!=null?n:window.location.href)}catch(s){return null}var t=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(t),o;return(o=r==null?void 0:r[1])!=null?o:null}function _f(e){var n="";return e.indexOf("//")>-1?n=e.split("/").slice(0,3).join("/"):n=e.split("/")[0],n=n.split("?")[0],n}var bf=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wf=/^(?:[a-z+]+:)?\/\//i,Sf=/^www\..*/i,Cf=/^(data:)([^,]*),(.*)/i;function Zr(e,n){return(e||"").replace(bf,function(i,t,r,o,s,a){var u=r||s||a,c=t||o||"";if(!u)return i;if(wf.test(u)||Sf.test(u)||Cf.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(_f(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=O(f),g;!(g=p()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function Qr(e,n){return n===void 0&&(n=!1),n?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function If(e,n,i){i===void 0&&(i=!1);var t=Array.from(n.childNodes),r=[],o=0;if(t.length>1&&e&&typeof e=="string"){for(var s=Qr(e,i),a=s.length/e.length,u=1;u<t.length;u++)if(t[u].textContent&&typeof t[u].textContent=="string"){for(var c=Qr(t[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var p=c.substring(0,f),g=s.split(p),v=-1;if(g.length===2)v=g[0].length;else if(g.length>2&&g[0]===""&&t[u-1].textContent!=="")v=s.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=s.split(p),g.length<=1)return r.push(e),r;f=l+1}else f===c.length-1&&(v=s.indexOf(p));if(g.length>=2&&f>l){var y=t[u-1].textContent;if(y&&typeof y=="string"){var d=Qr(y).length;v=s.indexOf(p,d)}v===-1&&(v=g[0].length)}if(v!==-1){for(var m=Math.floor(v/a);m>0&&m<e.length;){if(o+=1,o>50*t.length)return r.push(e),r;var _=Qr(e.substring(0,m),i);if(_.length===v){r.push(e.substring(0,m)),e=e.substring(m),s=s.substring(v);break}else _.length<v?m+=Math.max(1,Math.floor((v-_.length)/a)):m-=Math.max(1,Math.floor((_.length-v)*a))}break}}}}return r.push(e),r}function Ef(e,n){return If(e,n).join("/* rr_split */")}var kf=1,Of=new RegExp("[^a-z0-9-_:]"),dr=-2;function Ws(){return kf++}function xf(e){if(M(e,HTMLFormElement))return"form";var n=_t(e.tagName);return Of.test(n)?"div":n}var Dt,qs,Rf=/^[^ \t\n\r\u000c]+/,Af=/^[, \t\n\r\u000c]+/;function Mf(e,n){if(n.trim()==="")return n;var i=0;function t(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];t(Af),!(i>=n.length);){var o=t(Rf);if(o.slice(-1)===",")o=$t(e,o.substring(0,o.length-1)),r.push(o);else{var s="";o=$t(e,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var Gs=new WeakMap;function $t(e,n){return!n||n.trim()===""?n:Ei(e,n)}function Tf(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ei(e,n){var i=Gs.get(e);if(i||(i=e.createElement("a"),Gs.set(e,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Vs(e,n,i,t){return t&&(i==="src"||i==="href"&&!(n==="use"&&t[0]==="#")||i==="xlink:href"&&t[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?$t(e,t):i==="srcset"?Mf(e,t):i==="style"?Zr(t,Ei(e)):n==="object"&&i==="data"?$t(e,t):t)}function js(e,n,i){return(e==="video"||e==="audio")&&n==="autoplay"}function Pf(e,n,i){try{if(typeof n=="string"){if(e.classList.contains(n))return!0}else for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}if(i)return e.matches(i)}catch(o){}return!1}function en(e,n,i){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return i?en(we.parentNode(e),n,i):!1;for(var t=e.classList.length;t--;){var r=e.classList[t];if(n.test(r))return!0}return i?en(we.parentNode(e),n,i):!1}function Hs(e,n,i,t){var r;if($s(e)){if(r=e,!we.childNodes(r).length)return!1}else{if(we.parentElement(e)===null)return!1;r=we.parentElement(e)}try{if(typeof n=="string"){if(t){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(en(r,n,t))return!0;if(i){if(t){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function Nf(e,n,i){var t=e.contentWindow;if(t){var r=!1,o;try{o=t.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);e.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(t.location.href!==a||e.src===a||e.src==="")return setTimeout(n,0),e.addEventListener("load",n);e.addEventListener("load",n)}}function Lf(e,n,i){var t=!1,r;try{r=e.sheet}catch(s){return}if(!r){var o=setTimeout(function(){t||(n(),t=!0)},i);e.addEventListener("load",function(){clearTimeout(o),t=!0,n()})}}function Df(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,w=n.cssCaptured,S=w===void 0?!1:w,C=$f(i,t);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ge.Document,childNodes:[],compatMode:e.compatMode}:{type:ge.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ge.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return Uf(e,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:C});case e.TEXT_NODE:return Ff(e,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:ge.CDATA,textContent:"",rootId:C};case e.COMMENT_NODE:return{type:ge.Comment,textContent:we.textContent(e)||"",rootId:C};default:return!1}}function $f(e,n){if(n.hasNode(e)){var i=n.getId(e);return i===1?void 0:i}}function Ff(e,n){var i=n.needsMask,t=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=we.parentNode(e),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=we.textContent(e),c&&u&&(u=Zr(u,Ei(n.doc)))),!c&&!l&&u&&i&&(u=t?t(u,we.parentElement(e)):u.replace(/[\S]/g,"*")),{type:ge.Text,textContent:u||"",rootId:r}}function Uf(e,n){for(var i=n.doc,t=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=Pf(e,t,r),_=xf(e),w={},S=e.attributes.length,C=0;C<S;C++){var k=e.attributes[C];js(_,k.name,k.value)||(w[k.name]=Vs(i,_,_t(k.name),k.value))}if(_==="link"&&o){var A=Array.from(i.styleSheets).find(function(Te){return Te.href===e.href}),x=null;A&&(x=Ii(A)),x&&(delete w.rel,delete w.href,w._cssText=x)}if(_==="style"&&e.sheet){var T=Ii(e.sheet);T&&(e.childNodes.length>1&&(T=Ef(T,e)),w._cssText=T)}if(_==="input"||_==="textarea"||_==="select"){var F=e.value,P=e.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&F?w.value=Xr({element:e,type:Jr(e),tagName:_,value:F,maskInputOptions:a,maskInputFn:u}):P&&(w.checked=P)}if(_==="option"&&(e.selected&&!a.select?w.selected=!0:delete w.selected),_==="dialog"&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(e.__context==="2d")yf(e)||(w.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){var W=e.toDataURL(l.type,l.quality),K=i.createElement("canvas");K.width=e.width,K.height=e.height;var Oe=K.toDataURL(l.type,l.quality);W!==Oe&&(w.rr_dataURL=W)}}if(_==="img"&&f){Dt||(Dt=i.createElement("canvas"),qs=Dt.getContext("2d"));var X=e,Ae=X.currentSrc||X.getAttribute("src")||"<unknown-src>",Ee=X.crossOrigin,ae=function(){X.removeEventListener("load",ae);try{Dt.width=X.naturalWidth,Dt.height=X.naturalHeight,qs.drawImage(X,0,0),w.rr_dataURL=Dt.toDataURL(l.type,l.quality)}catch(Te){if(X.crossOrigin!=="anonymous"){X.crossOrigin="anonymous",X.complete&&X.naturalWidth!==0?ae():X.addEventListener("load",ae);return}else console.warn("Cannot inline img src="+Ae+"! Error: "+Te)}X.crossOrigin==="anonymous"&&(Ee?w.crossOrigin=Ee:X.removeAttribute("crossorigin"))};X.complete&&X.naturalWidth!==0?ae():X.addEventListener("load",ae)}if(_==="audio"||_==="video"){var _e=w;_e.rr_mediaState=e.paused?"paused":"played",_e.rr_mediaCurrentTime=e.currentTime,_e.rr_mediaPlaybackRate=e.playbackRate,_e.rr_mediaMuted=e.muted,_e.rr_mediaLoop=e.loop,_e.rr_mediaVolume=e.volume}if(y||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop)),m){var Me=e.getBoundingClientRect(),Ot=Me.width,je=Me.height;w={class:w.class,rr_width:""+Ot+"px",rr_height:""+je+"px"}}_==="iframe"&&!g(w.src)&&(e.contentDocument||(w.rr_src=w.src),delete w.src);var or;try{customElements.get(_)&&(or=!0)}catch(Te){}return{type:ge.Element,tagName:_,attributes:w,childNodes:[],isSVG:Tf(e)||void 0,needBlock:m,rootId:d,isCustom:or}}function ee(e){return e==null?"":e.toLowerCase()}function Bf(e,n){if(n.comment&&e.type===ge.Comment)return!0;if(e.type===ge.Element){if(n.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&zs(e.attributes.href)==="js"))return!0;if(n.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(ee(e.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(e.attributes.name)==="application-name"||ee(e.attributes.rel)==="icon"||ee(e.attributes.rel)==="apple-touch-icon"||ee(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(n.headMetaDescKeywords&&ee(e.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(e.attributes.property).match(/^(og|twitter|fb):/)||ee(e.attributes.name).match(/^(og|twitter):/)||ee(e.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(e.attributes.name)==="robots"||ee(e.attributes.name)==="googlebot"||ee(e.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(e.attributes.name)==="author"||ee(e.attributes.name)==="generator"||ee(e.attributes.name)==="framework"||ee(e.attributes.name)==="publisher"||ee(e.attributes.name)==="progid"||ee(e.attributes.property).match(/^article:/)||ee(e.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(e.attributes.name)==="google-site-verification"||ee(e.attributes.name)==="yandex-verification"||ee(e.attributes.name)==="csrf-token"||ee(e.attributes.name)==="p:domain_verify"||ee(e.attributes.name)==="verify-v1"||ee(e.attributes.name)==="verification"||ee(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ft(e,n){var i=n.doc,t=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,w=n.inlineImages,S=w===void 0?!1:w,C=n.recordCanvas,k=C===void 0?!1:C,A=n.onSerialize,x=n.onIframeLoad,T=n.iframeLoadTimeout,F=T===void 0?5e3:T,P=n.onStylesheetLoad,W=n.stylesheetLoadTimeout,K=W===void 0?5e3:W,Oe=n.keepIframeSrcFn,X=Oe===void 0?function(){return!1}:Oe,Ae=n.newlyAddedElement,Ee=Ae===void 0?!1:Ae,ae=n.cssCaptured,_e=ae===void 0?!1:ae,Me=n.needsMask,Ot=n.preserveWhiteSpace,je=Ot===void 0?!0:Ot;if(!Me){var or=Me===void 0;Me=Hs(e,s,a,or)}var Te=Df(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:k,keepIframeSrcFn:X,newlyAddedElement:Ee,cssCaptured:_e});if(!Te)return console.warn(e,"not serialized"),null;var xt;t.hasNode(e)?xt=t.getId(e):Bf(Te,d)||!je&&Te.type===ge.Text&&!Te.textContent.replace(/^\s+|\s+$/gm,"").length?xt=dr:xt=Ws();var Y=Object.assign(Te,{id:xt});if(t.add(e,Y),xt===dr)return null;A&&A(e);var Rt=!c;if(Y.type===ge.Element){Rt=Rt&&!Y.needBlock,delete Y.needBlock;var At=we.shadowRoot(e);At&&pr(At)&&(Y.isShadowHost=!0)}if((Y.type===ge.Document||Y.type===ge.Element)&&Rt){d.headWhitespace&&Y.type===ge.Element&&Y.tagName==="head"&&(je=!1);var sr={doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:k,preserveWhiteSpace:je,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:F,onStylesheetLoad:P,stylesheetLoadTimeout:K,keepIframeSrcFn:X,cssCaptured:!1};if(!(Y.type===ge.Element&&Y.tagName==="textarea"&&Y.attributes.value!==void 0)){Y.type===ge.Element&&Y.attributes._cssText!==void 0&&typeof Y.attributes._cssText=="string"&&(sr.cssCaptured=!0);for(var qr=O(Array.from(we.childNodes(e))),Gr;!(Gr=qr()).done;){var Is=Gr.value,mi=Ft(Is,sr);mi&&Y.childNodes.push(mi)}}var yt=null;if($s(e)&&(yt=we.shadowRoot(e)))for(var Mt=O(Array.from(we.childNodes(yt))),ar;!(ar=Mt()).done;){var Vr=ar.value,ur=Ft(Vr,sr);ur&&(pr(yt)&&(ur.isShadow=!0),Y.childNodes.push(ur))}}var Tt=we.parentNode(e);return Tt&&hr(Tt)&&pr(Tt)&&(Y.isShadow=!0),Y.type===ge.Element&&Y.tagName==="iframe"&&Nf(e,function(){var rt=e.contentDocument;if(rt&&x){var Pt=Ft(rt,{doc:rt,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:k,preserveWhiteSpace:je,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:F,onStylesheetLoad:P,stylesheetLoadTimeout:K,keepIframeSrcFn:X});Pt&&x(e,Pt)}},F),Y.type===ge.Element&&Y.tagName==="link"&&typeof Y.attributes.rel=="string"&&(Y.attributes.rel==="stylesheet"||Y.attributes.rel==="preload"&&typeof Y.attributes.href=="string"&&zs(Y.attributes.href)==="css")&&Lf(e,function(){if(P){var rt=Ft(e,{doc:i,mirror:t,blockClass:r,blockSelector:o,needsMask:Me,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:k,preserveWhiteSpace:je,onSerialize:A,onIframeLoad:x,iframeLoadTimeout:F,onStylesheetLoad:P,stylesheetLoadTimeout:K,keepIframeSrcFn:X});rt&&P(e,rt)}},K),Y}function zf(e,n){var i=n||{},t=i.mirror,r=t===void 0?new Us:t,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,v=g===void 0?!0:g,y=i.inlineImages,d=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,w=i.maskAllInputs,S=w===void 0?!1:w,C=i.maskTextFn,k=i.maskInputFn,A=i.slimDOM,x=A===void 0?!1:A,T=i.dataURLOptions,F=i.preserveWhiteSpace,P=i.onSerialize,W=i.onIframeLoad,K=i.iframeLoadTimeout,Oe=i.onStylesheetLoad,X=i.stylesheetLoadTimeout,Ae=i.keepIframeSrcFn,Ee=Ae===void 0?function(){return!1}:Ae,ae=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,_e=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 Ft(e,{doc:e,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:ae,maskTextFn:C,maskInputFn:k,slimDOMOptions:_e,dataURLOptions:T,inlineImages:d,recordCanvas:_,preserveWhiteSpace:F,onSerialize:P,onIframeLoad:W,iframeLoadTimeout:K,onStylesheetLoad:Oe,stylesheetLoadTimeout:X,keepIframeSrcFn:Ee,newlyAddedElement:!1})}function Wf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qf(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return M(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var ki={exports:{}},re=String,Ys=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re}};ki.exports=Ys(),ki.exports.createColors=Ys;var Gf=ki.exports,Vf={},jf=Object.freeze(Object.defineProperty({__proto__:null,default:Vf},Symbol.toStringTag,{value:"Module"})),le=qf(jf),Ks=Gf,Xs=le,Oi=function(e){be(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.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},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Ks.isColorSupported),Xs&&r&&(s=Xs(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Ks.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Yr(Error)),xi=Oi;Oi.default=Oi;var it={};it.isClean=Symbol("isClean"),it.my=Symbol("my");var Js={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hf(e){return e[0].toUpperCase()+e.slice(1)}var Ri=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return Js[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+Hf(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Js[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Zs=Ri;Ri.default=Ri;var Yf=Zs;function Ai(e,n){var i=new Yf(n);i.stringify(e)}var tn=Ai;Ai.default=Ai;var rn=it.isClean,Kf=it.my,Xf=xi,Jf=Zs,Zf=tn;function Mi(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":U(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return Mi(s,i)}):(o==="object"&&r!==null&&(r=Mi(r)),i[t]=r)}return i}var Ti=function(){function e(i){i===void 0&&(i={}),this.raws={},this[rn]=!1,this[Kf]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=O(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=Mi(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Xf(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[rn]){this[rn]=!1;for(var t=this;t=t.parent;)t[rn]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new Jf;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=O(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},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 c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":U(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":U(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=Zf),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},ye(e,[{key:"proxyOf",get:function(){return this}}]),e}(),nn=Ti;Ti.default=Ti;var Qf=nn,Pi=function(e){be(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=H({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return ye(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Qf),on=Pi;Pi.default=Pi;var eh="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",th=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=eh[Math.random()*64|0];return n},rh={nanoid:th},Qs=le.SourceMapConsumer,ea=le.SourceMapGenerator,nh=le.existsSync,ih=le.readFileSync,Ni=le.dirname,oh=le.join;function sh(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var Li=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ni(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Qs(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return sh(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":U(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=Ni(t),nh(t))return this.mapFile=t,ih(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(M(r,Qs))return ea.fromSourceMap(r).toString();if(M(r,ea))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 t&&(a=oh(Ni(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),ta=Li;Li.default=Li;var ah=le.SourceMapConsumer,uh=le.SourceMapGenerator,ra=le.fileURLToPath,sn=le.pathToFileURL,Di=le.isAbsolute,$i=le.resolve,ch=rh.nanoid,Fi=le,na=xi,lh=ta,Ui=Symbol("fromOffsetCache"),fh=!!(ah&&uh),ia=!!($i&&Di),an=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":U(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ia||/^\w+:\/\//.test(t.from)||Di(t.from)?this.file=t.from:this.file=$i(t.from)),ia&&fh){var r=new lh(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+ch(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":U(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new na(t,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 na(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(sn&&(a.input.url=sn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[Ui])o=this[Ui];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Ui]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:$i(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Di(u.source)?l=sn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||sn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(ra)f.file=ra(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=H({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},ye(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),un=an;an.default=an,Fi&&Fi.registerInput&&Fi.registerInput(an);var oa=le.SourceMapConsumer,cn=le.SourceMapGenerator,ln=le.dirname,sa=le.relative,aa=le.resolve,ua=le.sep,ca=le.pathToFileURL,hh=un,ph=!!(oa&&cn),dh=!!(ln&&aa&&sa&&ua),vh=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=O(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||ln(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new oa(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.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(),dh&&ph&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=cn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new cn({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 t=this;this.css="",this.map=new cn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.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(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!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(t){return t.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(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?ln(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=ln(aa(o,this.mapOpts.annotation)));var s=sa(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new hh(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=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=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(ca){var o=ca(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;ua==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),la=vh,gh=nn,Bi=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(gh),fn=Bi;Bi.default=Bi;var fa=it.isClean,ha=it.my,pa=on,da=fn,mh=nn,va,zi,Wi,ga;function ma(e){return e.map(function(n){return n.nodes&&(n.nodes=ma(n.nodes)),delete n.source,n})}function ya(e){if(e[fa]=!1,e.proxyOf.nodes)for(var n=O(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;ya(t)}}var He=function(e){be(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=O(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=O(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=O(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=O(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=ma(va(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 c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=O(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"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 pa(r)]}else if(r.selector)r=[new zi(r)];else if(r.name)r=[new Wi(r)];else if(r.text)r=[new da(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[ha]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[fa]&&ya(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=O(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=O(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=O(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?M(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?M(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?M(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ye(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}(mh);He.registerParse=function(e){va=e},He.registerRule=function(e){zi=e},He.registerAtRule=function(e){Wi=e},He.registerRoot=function(e){ga=e};var bt=He;He.default=He,He.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,Wi.prototype):e.type==="rule"?Object.setPrototypeOf(e,zi.prototype):e.type==="decl"?Object.setPrototypeOf(e,pa.prototype):e.type==="comment"?Object.setPrototypeOf(e,da.prototype):e.type==="root"&&Object.setPrototypeOf(e,ga.prototype),e[ha]=!0,e.nodes&&e.nodes.forEach(function(n){He.rebuild(n)})};var yh=bt,_a,ba,vr=function(e){be(n,e);function n(t){var r;return r=e.call(this,H({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new _a(new ba,this,r);return o.stringify()},n}(yh);vr.registerLazyResult=function(e){_a=e},vr.registerProcessor=function(e){ba=e};var qi=vr;vr.default=vr;var wa={},Sa=function(n){wa[n]||(wa[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Gi=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in t)this[o]=t[o]}var n=e.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},e}(),Ca=Gi;Gi.default=Gi;var _h=Ca,Vi=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new _h(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},ye(e,[{key:"content",get:function(){return this.css}}]),e}(),ji=Vi;Vi.default=Vi;var Hi=39,Ia=34,hn=92,Ea=47,pn=10,gr=32,dn=12,vn=9,gn=13,bh=91,wh=93,Sh=40,Ch=41,Ih=123,Eh=125,kh=59,Oh=42,xh=58,Rh=64,mn=/[\t\n\f\r "#'()/;[\\\]{}]/g,yn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ah=/.[\r\n"'(/\\]/,ka=/[\da-f]/i,Mh=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,v,y=t.length,d=0,m=[],_=[];function w(){return d}function S(x){throw n.error("Unclosed "+x,d)}function C(){return _.length===0&&d>=y}function k(x){if(_.length)return _.pop();if(!(d>=y)){var T=x?x.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case pn:case gr:case vn:case gn:case dn:{s=d;do s+=1,o=t.charCodeAt(s);while(o===gr||o===pn||o===vn||o===gn||o===dn);v=["space",t.slice(d,s)],d=s-1;break}case bh:case wh:case Ih:case Eh:case xh:case kh:case Ch:{var F=String.fromCharCode(o);v=[F,F,d];break}case Sh:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(d+1),p==="url"&&g!==Hi&&g!==Ia&&g!==gr&&g!==pn&&g!==vn&&g!==dn&&g!==gn){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||T){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===hn;)f-=1,l=!l}while(l);v=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||Ah.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case Hi:case Ia:{a=o===Hi?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||T){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===hn;)f-=1,l=!l}while(l);v=["string",t.slice(d,s+1),d,s],d=s;break}case Rh:{mn.lastIndex=d+1,mn.test(t),mn.lastIndex===0?s=t.length-1:s=mn.lastIndex-2,v=["at-word",t.slice(d,s+1),d,s],d=s;break}case hn:{for(s=d,c=!0;t.charCodeAt(s+1)===hn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==Ea&&o!==gr&&o!==pn&&o!==vn&&o!==gn&&o!==dn&&(s+=1,ka.test(t.charAt(s)))){for(;ka.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===gr&&(s+=1)}v=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===Ea&&t.charCodeAt(d+1)===Oh?(s=t.indexOf("*/",d+2)+1,s===0&&(r||T?s=t.length:S("comment")),v=["comment",t.slice(d,s+1),d,s],d=s):(yn.lastIndex=d+1,yn.test(t),yn.lastIndex===0?s=t.length-1:s=yn.lastIndex-2,v=["word",t.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function A(x){_.push(x)}return{back:A,endOfFile:C,nextToken:k,position:w}},Oa=bt,_n=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(Oa),Yi=_n;_n.default=_n,Oa.registerAtRule(_n);var xa=bt,Ra,Aa,Ut=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=O(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Ra(new Aa,this,r);return o.stringify()},n}(xa);Ut.registerLazyResult=function(e){Ra=e},Ut.registerProcessor=function(e){Aa=e};var mr=Ut;Ut.default=Ut,xa.registerRoot(Ut);var yr={comma:function(n){return yr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return yr.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=O(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},Ma=yr;yr.default=yr;var Ta=bt,Th=Ma,bn=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return ye(n,[{key:"selectors",get:function(){return Th.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(Ta),Ki=bn;bn.default=bn,Ta.registerRule(bn);var Ph=on,Nh=Mh,Lh=fn,Dh=Yi,$h=mr,Pa=Ki,Na={empty:!0,space:!0};function Fh(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var Uh=function(){function e(i){this.input=i,this.root=new $h,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new Dh;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=O(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new Lh;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Nh(this.input)},n.decl=function(t,r){var o=new Ph;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||Fh(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new Pa;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},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(t){if(this.spaces+=t[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(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===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(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",p=o[v+1]?o[v+1][0]:"empty",!Na[g]&&!Na[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new Pa;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),Bh=Uh,zh=bt,Wh=Bh,qh=un;function wn(e,n){var i=new qh(e,n),t=new Wh(i);try{t.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 t.root}var Xi=wn;wn.default=wn,zh.registerParse(wn);var Ue=it.isClean,Gh=it.my,Vh=la,jh=tn,Hh=bt,Yh=qi,Kh=Sa,La=ji,Xh=Xi,Jh=mr,Zh={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Qh={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},ep={Once:!0,postcssPlugin:!0,prepare:!0},Bt=0;function _r(e){return(typeof e=="undefined"?"undefined":U(e))==="object"&&typeof e.then=="function"}function Da(e){var n=!1,i=Zh[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,Bt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,Bt,i+"Exit"]:[i,i+"Exit"]}function $a(e){var n;return e.type==="document"?n=["Document",Bt,"DocumentExit"]:e.type==="root"?n=["Root",Bt,"RootExit"]:n=Da(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ji(e){return e[Ue]=!1,e.nodes&&e.nodes.forEach(function(n){return Ji(n)}),e}var Zi={},zt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":U(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Ji(t);else if(M(t,e)||M(t,La))s=Ji(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=Xh;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Gh]&&Hh.rebuild(s)}this.result=new La(i,s,r),this.helpers=H({},Zi,{postcss:Zi,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":U(u))==="object"&&u.prepare?H({},u,u.prepare(o.result)):u})}var n=e.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(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[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 t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=O(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":U(a))==="object")for(var u in a){if(!Qh[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ep[u])if(U(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return _i(function(){var r,o,s,a,u,c,l,f,p,g,v,y;return fr(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!_r(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(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[Ue])return[3,14];u[Ue]=!0,c=[$a(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!_r(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return fr(this,function(k){switch(k.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,k.label=1;case 1:return k.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return w(A,t.helpers)}),[4,Promise.all(S)]);case 2:return k.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:k.sent(),k.label=5;case 5:return[3,7];case 6:throw C=k.sent(),t.handleError(C);case 7:return[2]}})},v=O(t.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,Ms(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":U(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return _r(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(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 t=this.result.opts,r=jh;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new Vh(r,this.result.root,this.result.opts),s=o.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 t=O(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(_r(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ue];)a[Ue]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,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(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=O(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(_r(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ue]){f[Ue]=!0,t.push($a(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===Bt){o.nodes&&o.nodes.length&&(o[Ue]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Ue]=!0;for(var o=Da(t),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===Bt)t.nodes&&t.each(function(l){l[Ue]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ye(e,[{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"}}]),e}();zt.registerPostcss=function(e){Zi=e};var Fa=zt;zt.default=zt,Jh.registerLazyResult(zt),Yh.registerLazyResult(zt);var tp=la,rp=tn,np=Sa,ip=Xi,op=ji,Qi=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=rp;this.result=new op(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new tp(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||np("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ye(e,[{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 t,r=ip;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),sp=Qi;Qi.default=Qi;var ap=sp,up=Fa,cp=qi,lp=mr,br=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=O(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":U(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":U(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":U(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(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new ap(this,t,r):new up(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),fp=br;br.default=br,lp.registerProcessor(br),cp.registerProcessor(br);var hp=on,pp=ta,dp=fn,vp=Yi,gp=un,mp=mr,yp=Ki;function wr(e,n){if(Array.isArray(e))return e.map(function(f){return wr(f)});var i=e.inputs,t=cr(e,["inputs"]);if(i){n=[];for(var r=O(i),o;!(o=r()).done;){var s=o.value,a=H({},s,{__proto__:gp.prototype});a.map&&(a.map=H({},a.map,{__proto__:pp.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return wr(f,n)})),t.source){var u=t.source,c=u.inputId,l=cr(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new mp(t);if(t.type==="decl")return new hp(t);if(t.type==="rule")return new yp(t);if(t.type==="comment")return new dp(t);if(t.type==="atrule")return new vp(t);throw new Error("Unknown node type: "+e.type)}var _p=wr;wr.default=wr;var bp=xi,Ua=on,wp=Fa,Sp=bt,eo=fp,Cp=tn,Ip=_p,Ba=qi,Ep=Ca,za=fn,Wa=Yi,kp=ji,Op=un,xp=Xi,Rp=Ma,qa=Ki,Ga=mr,Ap=nn;function J(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new eo(n)}J.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!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 c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new eo().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return J([r(u)]).process(s,a)},r},J.stringify=Cp,J.parse=xp,J.fromJSON=Ip,J.list=Rp,J.comment=function(e){return new za(e)},J.atRule=function(e){return new Wa(e)},J.decl=function(e){return new Ua(e)},J.rule=function(e){return new qa(e)},J.root=function(e){return new Ga(e)},J.document=function(e){return new Ba(e)},J.CssSyntaxError=bp,J.Declaration=Ua,J.Container=Sp,J.Processor=eo,J.Document=Ba,J.Comment=za,J.Warning=Ep,J.AtRule=Wa,J.Result=kp,J.Input=Op,J.Rule=qa,J.Root=Ga,J.Node=Ap,wp.registerPostcss(J);var Mp=J;J.default=J;var oe=Wf(Mp);oe.stringify,oe.fromJSON,oe.plugin,oe.parse,oe.list,oe.document,oe.comment,oe.atRule,oe.rule,oe.decl,oe.root,oe.CssSyntaxError,oe.Declaration,oe.Container,oe.Processor,oe.Document,oe.Comment,oe.Warning,oe.AtRule,oe.Result,oe.Input,oe.Rule,oe.Root,oe.Node;var Tp=Object.defineProperty,Pp=function(e,n,i){return n in e?Tp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Pe=function(e,n,i){return Pp(e,(typeof n=="undefined"?"undefined":U(n))!=="symbol"?n+"":n,i)};function Np(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lp(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var i=function t(){return M(this,t)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),i}var to={exports:{}},ne=String,Va=function(){return{isColorSupported:!1,reset:ne,bold:ne,dim:ne,italic:ne,underline:ne,inverse:ne,hidden:ne,strikethrough:ne,black:ne,red:ne,green:ne,yellow:ne,blue:ne,magenta:ne,cyan:ne,white:ne,gray:ne,bgBlack:ne,bgRed:ne,bgGreen:ne,bgYellow:ne,bgBlue:ne,bgMagenta:ne,bgCyan:ne,bgWhite:ne}};to.exports=Va(),to.exports.createColors=Va;var Dp=to.exports,$p={},Fp=Object.freeze(Object.defineProperty({__proto__:null,default:$p},Symbol.toStringTag,{value:"Module"})),fe=Lp(Fp),ja=Dp,Ha=fe,ro=function(e){be(n,e);function n(t,r,o,s,a,u){var c;return c=e.call(this,t)||this,c.name="CssSyntaxError",c.reason=t,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.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},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=ja.isColorSupported),Ha&&r&&(s=Ha(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=ja.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var w=u+1+_,S=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=p(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+p(S)+m+"\n "+C+f("^")}return" "+p(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n}(Yr(Error)),no=ro;ro.default=ro;var ot={};ot.isClean=Symbol("isClean"),ot.my=Symbol("my");var Ya={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Up(e){return e[0].toUpperCase()+e.slice(1)}var io=function(){function e(i){this.builder=i}var n=e.prototype;return n.atrule=function(t,r){var o="@"+t.name,s=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName!="undefined"?o+=t.raws.afterName:s&&(o+=" "),t.nodes)this.block(t,o+s);else{var a=(t.raws.between||"")+(r?";":"");this.builder(o+s+a,t)}},n.beforeAfter=function(t,r){var o;t.type==="decl"?o=this.raw(t,null,"beforeDecl"):t.type==="comment"?o=this.raw(t,null,"beforeComment"):r==="before"?o=this.raw(t,null,"beforeRule"):o=this.raw(t,null,"beforeClose");for(var s=t.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(t,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(t,r){var o=this.raw(t,"between","beforeOpen");this.builder(r+o+"{",t,"start");var s;t.nodes&&t.nodes.length?(this.body(t),s=this.raw(t,"after")):s=this.raw(t,"after","emptyBody"),s&&this.builder(s),this.builder("}",t,"end")},n.body=function(t){for(var r=t.nodes.length-1;r>0&&t.nodes[r].type==="comment";)r-=1;for(var o=this.raw(t,"semicolon"),s=0;s<t.nodes.length;s++){var a=t.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(t){var r=this.raw(t,"left","commentLeft"),o=this.raw(t,"right","commentRight");this.builder("/*"+r+t.text+o+"*/",t)},n.decl=function(t,r){var o=this.raw(t,"between","colon"),s=t.prop+o+this.rawValue(t,"value");t.important&&(s+=t.raws.important||" !important"),r&&(s+=";"),this.builder(s,t)},n.document=function(t){this.body(t)},n.raw=function(t,r,o){var s;if(o||(o=r),r&&(s=t.raws[r],typeof s!="undefined"))return s;var a=t.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===t||a&&a.type==="document"))return"";if(!a)return Ya[o];var u=t.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(t,o);var c="raw"+Up(o);return this[c]?s=this[c](u,t):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Ya[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(t,r){var o;return t.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(t,r){var o;return t.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(t){var r;return t.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(t){var r;return t.walk(function(o){if(o.nodes&&(o.parent!==t||t.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(t){var r;return t.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(t){if(t.raws.indent)return t.raws.indent;var r;return t.walk(function(o){var s=o.parent;if(s&&s!==t&&s.parent&&s.parent===t&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(t){var r;return t.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(t,r){var o=t[r],s=t.raws[r];return s&&s.value===o?s.raw:o},n.root=function(t){this.body(t),t.raws.after&&this.builder(t.raws.after)},n.rule=function(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")},n.stringify=function(t,r){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,r)},e}(),Ka=io;io.default=io;var Bp=Ka;function oo(e,n){var i=new Bp(n);i.stringify(e)}var Sn=oo;oo.default=oo;var Cn=ot.isClean,zp=ot.my,Wp=no,qp=Ka,Gp=Sn;function so(e,n){var i=new e.constructor;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t!=="proxyCache"){var r=e[t],o=typeof r=="undefined"?"undefined":U(r);t==="parent"&&o==="object"?n&&(i[t]=n):t==="source"?i[t]=r:Array.isArray(r)?i[t]=r.map(function(s){return so(s,i)}):(o==="object"&&r!==null&&(r=so(r)),i[t]=r)}return i}var ao=function(){function e(i){i===void 0&&(i={}),this.raws={},this[Cn]=!1,this[zp]=!0;for(var t in i)if(t==="nodes"){this.nodes=[];for(var r=O(i[t]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[t]=i[t]}var n=e.prototype;return n.addToError=function(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){var r=this.source;t.stack=t.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return t},n.after=function(t){return this.parent.insertAfter(this,t),this},n.assign=function(t){t===void 0&&(t={});for(var r in t)this[r]=t[r];return this},n.before=function(t){return this.parent.insertBefore(this,t),this},n.cleanRaws=function(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between},n.clone=function(t){t===void 0&&(t={});var r=so(this);for(var o in t)r[o]=t[o];return r},n.cloneAfter=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(t){t===void 0&&(t={});var r=this.clone(t);return this.parent.insertBefore(this,r),r},n.error=function(t,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(t,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Wp(t)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Cn]){this[Cn]=!1;for(var t=this;t=t.parent;)t[Cn]=!1}},n.next=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t+1]}},n.positionBy=function(t,r){var o=this.source.start;if(t.index)o=this.positionInside(t.index,r);else if(t.word){r=this.toString();var s=r.indexOf(t.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(t,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<t;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var t=this.parent.index(this);return this.parent.nodes[t-1]}},n.rangeBy=function(t){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(t.word){var s=this.toString(),a=s.indexOf(t.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+t.word.length,s))}else t.start?r={column:t.start.column,line:t.start.line}:t.index&&(r=this.positionInside(t.index)),t.end?o={column:t.end.column,line:t.end.line}:typeof t.endIndex=="number"?o=this.positionInside(t.endIndex):t.index&&(o=this.positionInside(t.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(t,r){var o=new qp;return o.raw(this,t,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=O(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var t=this;t.parent&&t.parent.type!=="document";)t=t.parent;return t},n.toJSON=function(t,r){var o={},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 c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":U(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":U(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(t){t===void 0&&(t=Gp),t.stringify&&(t=t.stringify);var r="";return t(this,function(o){r+=o}),r},n.warn=function(t,r,o){var s={node:this};for(var a in o)s[a]=o[a];return t.warn(r,s)},ye(e,[{key:"proxyOf",get:function(){return this}}]),e}(),In=ao;ao.default=ao;var Vp=In,uo=function(e){be(n,e);function n(i){var t;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=H({},i,{value:String(i.value)})),t=e.call(this,i)||this,t.type="decl",t}return ye(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n}(Vp),En=uo;uo.default=uo;var jp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hp=function(e){e===void 0&&(e=21);for(var n="",i=e;i--;)n+=jp[Math.random()*64|0];return n},Yp={nanoid:Hp},Xa=fe.SourceMapConsumer,Ja=fe.SourceMapGenerator,Kp=fe.existsSync,Xp=fe.readFileSync,co=fe.dirname,Jp=fe.join;function Zp(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var lo=function(){function e(i,t){if(t.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,o=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=co(this.mapFile)),o&&(this.text=o)}}var n=e.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Xa(this.text)),this.consumerCache},n.decodeInline=function(t){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(t)||a.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(r.test(t)||o.test(t))return Zp(t.substr(RegExp.lastMatch.length));var u=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(t){return(typeof t=="undefined"?"undefined":U(t))!=="object"?!1:typeof t.mappings=="string"||typeof t._mappings=="string"||Array.isArray(t.sections)},n.loadAnnotation=function(t){var r=t.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=t.lastIndexOf(r.pop()),s=t.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(t.substring(o,s)))}},n.loadFile=function(t){if(this.root=co(t),Kp(t))return this.mapFile=t,Xp(t,"utf-8").toString().trim()},n.loadMap=function(t,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(t);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(M(r,Xa))return Ja.fromSourceMap(r).toString();if(M(r,Ja))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 t&&(a=Jp(co(t),a)),this.loadFile(a)}}},n.startWith=function(t,r){return t?t.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Za=lo;lo.default=lo;var Qp=fe.SourceMapConsumer,ed=fe.SourceMapGenerator,Qa=fe.fileURLToPath,kn=fe.pathToFileURL,fo=fe.isAbsolute,ho=fe.resolve,td=Yp.nanoid,po=fe,eu=no,rd=Za,vo=Symbol("fromOffsetCache"),nd=!!(Qp&&ed),tu=!!(ho&&fo),On=function(){function e(i,t){if(t===void 0&&(t={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":U(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!tu||/^\w+:\/\//.test(t.from)||fo(t.from)?this.file=t.from:this.file=ho(t.from)),tu&&nd){var r=new rd(this.css,t);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+td(6)+">"),this.map&&(this.map.file=this.from)}var n=e.prototype;return n.error=function(t,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":U(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,o=p.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new eu(t,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 eu(t,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(kn&&(a.input.url=kn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(t){var r,o;if(this[vo])o=this[vo];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[vo]=o}r=o[o.length-1];var l=0;if(t>=r)l=o.length-1;else for(var f=o.length-2,p;l<f;)if(p=l+(f-l>>1),t<o[p])f=p-1;else if(t>=o[p+1])l=p+1;else{l=p;break}return{col:t-o[l]+1,line:l+1}},n.mapResolve=function(t){return/^\w+:\/\//.test(t)?t:ho(this.map.consumer().sourceRoot||this.map.root||".",t)},n.origin=function(t,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:t});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;fo(u.source)?l=kn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||kn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Qa)f.file=Qa(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var t={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(t[s]=this[s])}return this.map&&(t.map=H({},this.map),t.map.consumerCache&&(t.map.consumerCache=void 0)),t},ye(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),xn=On;On.default=On,po&&po.registerInput&&po.registerInput(On);var ru=fe.SourceMapConsumer,Rn=fe.SourceMapGenerator,An=fe.dirname,nu=fe.relative,iu=fe.resolve,ou=fe.sep,su=fe.pathToFileURL,id=xn,od=!!(ru&&Rn),sd=!!(An&&iu&&nu&&ou),ad=function(){function e(i,t,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=e.prototype;return n.addAnnotation=function(){var t;this.isInline()?t="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?t=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?t=this.mapOpts.annotation(this.opts.to,this.root):t=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+t+" */"},n.applyPrevMaps=function(){for(var t=O(this.previous()),r;!(r=t()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||An(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ru(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var t,r=this.root.nodes.length-1;r>=0;r--)t=this.root.nodes[r],t.type==="comment"&&t.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(),sd&&od&&this.isMap())return this.generateMap();var t="";return this.stringify(this.root,function(r){t+=r}),[t]},n.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=Rn.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new Rn({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 t=this;this.css="",this.map=new Rn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(t.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=t.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,t.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=t.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,t.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,t.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(t){return t.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var t=this.mapOpts.annotation;return typeof t!="undefined"&&t!==!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(t){return t.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(t){if(this.mapOpts.absolute||t.charCodeAt(0)===60||/^\w+:\/\//.test(t))return t;var r=this.memoizedPaths.get(t);if(r)return r;var o=this.opts.to?An(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=An(iu(o,this.mapOpts.annotation)));var s=nu(o,t);return this.memoizedPaths.set(t,s),s},n.previous=function(){var t=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;t.previousMaps.includes(s)||t.previousMaps.push(s)}});else{var r=new id(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var t=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=t.usesFileUrls?t.toFileUrl(a):t.toUrl(t.path(a));t.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))},n.toBase64=function(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},n.toFileUrl=function(t){var r=this.memoizedFileURLs.get(t);if(r)return r;if(su){var o=su(t).toString();return this.memoizedFileURLs.set(t,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(t){var r=this.memoizedURLs.get(t);if(r)return r;ou==="\\"&&(t=t.replace(/\\/g,"/"));var o=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,o),o},e}(),au=ad,ud=In,go=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="comment",t}return n}(ud),Mn=go;go.default=go;var uu=ot.isClean,cu=ot.my,lu=En,fu=Mn,cd=In,hu,mo,yo,pu;function du(e){return e.map(function(n){return n.nodes&&(n.nodes=du(n.nodes)),delete n.source,n})}function vu(e){if(e[uu]=!1,e.proxyOf.nodes)for(var n=O(e.proxyOf.nodes),i;!(i=n()).done;){var t=i.value;vu(t)}}var Ye=function(e){be(n,e);function n(){return e.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=O(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=O(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(e.prototype.cleanRaws.call(this,r),this.nodes)for(var o=O(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=O(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],s<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=O(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],s<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=du(hu(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 c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=O(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"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 lu(r)]}else if(r.selector)r=[new mo(r)];else if(r.name)r=[new yo(r)];else if(r.text)r=[new fu(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[cu]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[uu]&&vu(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=O(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=O(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=O(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?M(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?M(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?M(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ye(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}(cd);Ye.registerParse=function(e){hu=e},Ye.registerRule=function(e){mo=e},Ye.registerAtRule=function(e){yo=e},Ye.registerRoot=function(e){pu=e};var wt=Ye;Ye.default=Ye,Ye.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,yo.prototype):e.type==="rule"?Object.setPrototypeOf(e,mo.prototype):e.type==="decl"?Object.setPrototypeOf(e,lu.prototype):e.type==="comment"?Object.setPrototypeOf(e,fu.prototype):e.type==="root"&&Object.setPrototypeOf(e,pu.prototype),e[cu]=!0,e.nodes&&e.nodes.forEach(function(n){Ye.rebuild(n)})};var ld=wt,gu,mu,Sr=function(e){be(n,e);function n(t){var r;return r=e.call(this,H({type:"document"},t))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new gu(new mu,this,r);return o.stringify()},n}(ld);Sr.registerLazyResult=function(e){gu=e},Sr.registerProcessor=function(e){mu=e};var _o=Sr;Sr.default=Sr;var yu={},_u=function(n){yu[n]||(yu[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},bo=function(){function e(i,t){if(t===void 0&&(t={}),this.type="warning",this.text=i,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in t)this[o]=t[o]}var n=e.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},e}(),bu=bo;bo.default=bo;var fd=bu,wo=function(){function e(i,t,r){this.processor=i,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var n=e.prototype;return n.toString=function(){return this.css},n.warn=function(t,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new fd(t,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(t){return t.type==="warning"})},ye(e,[{key:"content",get:function(){return this.css}}]),e}(),So=wo;wo.default=wo;var Co=39,wu=34,Tn=92,Su=47,Pn=10,Cr=32,Nn=12,Ln=9,Dn=13,hd=91,pd=93,dd=40,vd=41,gd=123,md=125,yd=59,_d=42,bd=58,wd=64,$n=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Sd=/.[\r\n"'(/\\]/,Cu=/[\da-f]/i,Cd=function(n,i){i===void 0&&(i={});var t=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,p,g,v,y=t.length,d=0,m=[],_=[];function w(){return d}function S(x){throw n.error("Unclosed "+x,d)}function C(){return _.length===0&&d>=y}function k(x){if(_.length)return _.pop();if(!(d>=y)){var T=x?x.ignoreUnclosed:!1;switch(o=t.charCodeAt(d),o){case Pn:case Cr:case Ln:case Dn:case Nn:{s=d;do s+=1,o=t.charCodeAt(s);while(o===Cr||o===Pn||o===Ln||o===Dn||o===Nn);v=["space",t.slice(d,s)],d=s-1;break}case hd:case pd:case gd:case md:case bd:case yd:case vd:{var F=String.fromCharCode(o);v=[F,F,d];break}case dd:{if(p=m.length?m.pop()[1]:"",g=t.charCodeAt(d+1),p==="url"&&g!==Co&&g!==wu&&g!==Cr&&g!==Pn&&g!==Ln&&g!==Nn&&g!==Dn){s=d;do{if(l=!1,s=t.indexOf(")",s+1),s===-1)if(r||T){s=d;break}else S("bracket");for(f=s;t.charCodeAt(f-1)===Tn;)f-=1,l=!l}while(l);v=["brackets",t.slice(d,s+1),d,s],d=s}else s=t.indexOf(")",d+1),u=t.slice(d,s+1),s===-1||Sd.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case Co:case wu:{a=o===Co?"'":'"',s=d;do{if(l=!1,s=t.indexOf(a,s+1),s===-1)if(r||T){s=d+1;break}else S("string");for(f=s;t.charCodeAt(f-1)===Tn;)f-=1,l=!l}while(l);v=["string",t.slice(d,s+1),d,s],d=s;break}case wd:{$n.lastIndex=d+1,$n.test(t),$n.lastIndex===0?s=t.length-1:s=$n.lastIndex-2,v=["at-word",t.slice(d,s+1),d,s],d=s;break}case Tn:{for(s=d,c=!0;t.charCodeAt(s+1)===Tn;)s+=1,c=!c;if(o=t.charCodeAt(s+1),c&&o!==Su&&o!==Cr&&o!==Pn&&o!==Ln&&o!==Dn&&o!==Nn&&(s+=1,Cu.test(t.charAt(s)))){for(;Cu.test(t.charAt(s+1));)s+=1;t.charCodeAt(s+1)===Cr&&(s+=1)}v=["word",t.slice(d,s+1),d,s],d=s;break}default:{o===Su&&t.charCodeAt(d+1)===_d?(s=t.indexOf("*/",d+2)+1,s===0&&(r||T?s=t.length:S("comment")),v=["comment",t.slice(d,s+1),d,s],d=s):(Fn.lastIndex=d+1,Fn.test(t),Fn.lastIndex===0?s=t.length-1:s=Fn.lastIndex-2,v=["word",t.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function A(x){_.push(x)}return{back:A,endOfFile:C,nextToken:k,position:w}},Iu=wt,Un=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=e.prototype.prepend).call.apply(a,[].concat([this],o))},n}(Iu),Io=Un;Un.default=Un,Iu.registerAtRule(Un);var Eu=wt,ku,Ou,Wt=function(e){be(n,e);function n(t){var r;return r=e.call(this,t)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=e.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=O(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),e.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new ku(new Ou,this,r);return o.stringify()},n}(Eu);Wt.registerLazyResult=function(e){ku=e},Wt.registerProcessor=function(e){Ou=e};var Ir=Wt;Wt.default=Wt,Eu.registerRoot(Wt);var Er={comma:function(n){return Er.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Er.split(n,i)},split:function(n,i,t){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=O(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(t||o!=="")&&r.push(o.trim()),r}},xu=Er;Er.default=Er;var Ru=wt,Id=xu,Bn=function(e){be(n,e);function n(i){var t;return t=e.call(this,i)||this,t.type="rule",t.nodes||(t.nodes=[]),t}return ye(n,[{key:"selectors",get:function(){return Id.comma(this.selector)},set:function(t){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=t.join(o)}}]),n}(Ru),Eo=Bn;Bn.default=Bn,Ru.registerRule(Bn);var Ed=En,kd=Cd,Od=Mn,xd=Io,Rd=Ir,Au=Eo,Mu={empty:!0,space:!0};function Ad(e){for(var n=e.length-1;n>=0;n--){var i=e[n],t=i[3]||i[2];if(t)return t}}var Md=function(){function e(i){this.input=i,this.root=new Rd,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=e.prototype;return n.atrule=function(t){var r=new xd;r.name=t[1].slice(1),r.name===""&&this.unnamedAtrule(r,t),this.init(r,t[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(t=this.tokenizer.nextToken(),o=t[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(t[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(t);break}else l.push(t);else l.push(t);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(t=l[l.length-1],r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(t){var r=this.colon(t);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=t[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(t){for(var r=0,o,s,a,u=O(t.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(o=p,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(t){var r=new Od;this.init(r,t[2]),r.source.end=this.getPosition(t[3]||t[2]),r.source.end.offset++;var o=t[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=kd(this.input)},n.decl=function(t,r){var o=new Ed;this.init(o,t[0][2]);var s=t[t.length-1];for(s[0]===";"&&(this.semicolon=!0,t.pop()),o.source.end=this.getPosition(s[3]||s[2]||Ad(t)),o.source.end.offset++;t[0][0]!=="word";)t.length===1&&this.unknownWord(t),o.raws.before+=t.shift()[1];for(o.source.start=this.getPosition(t[0][2]),o.prop="";t.length;){var a=t[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=t.shift()[1]}o.raws.between="";for(var u;t.length;)if(u=t.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;t.length&&(l=t[0][0],!(l!=="space"&&l!=="comment"));)c.push(t.shift());this.precheckMissedSemicolon(t);for(var f=t.length-1;f>=0;f--){if(u=t[f],u[1].toLowerCase()==="!important"){o.important=!0;var p=this.stringFrom(t,f);p=this.spacesFromEnd(t)+p,p!==" !important"&&(o.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=t.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,t=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=t.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(t),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(t)},n.doubleColon=function(t){throw this.input.error("Double colon",{offset:t[2]},{offset:t[2]+t[1].length})},n.emptyRule=function(t){var r=new Au;this.init(r,t[2]),r.selector="",r.raws.between="",this.current=r},n.end=function(t){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(t[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(t)},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(t){if(this.spaces+=t[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(t){var r=this.input.fromOffset(t);return{column:r.col,line:r.line,offset:t}},n.init=function(t,r){this.current.push(t),t.source={input:this.input,start:this.getPosition(r)},t.raws.before=this.spaces,this.spaces="",t.type!=="comment"&&(this.semicolon=!1)},n.other=function(t){for(var r=!1,o=null,s=!1,a=null,u=[],c=t[1].startsWith("--"),l=[],f=t;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===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(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.parse=function(){for(var t;!this.tokenizer.endOfFile();)switch(t=this.tokenizer.nextToken(),t[0]){case"space":this.spaces+=t[1];break;case";":this.freeSemicolon(t);break;case"}":this.end(t);break;case"comment":this.comment(t);break;case"at-word":this.atrule(t);break;case"{":this.emptyRule(t);break;default:this.other(t);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(t,r,o,s){for(var a,u,c=o.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",p=o[v+1]?o[v+1][0]:"empty",!Mu[g]&&!Mu[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");t.raws[r]={raw:y,value:l}}t[r]=l},n.rule=function(t){t.pop();var r=new Au;this.init(r,t[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(t),this.raw(r,"selector",t),this.current=r},n.spacesAndCommentsFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],!(r!=="space"&&r!=="comment"));)o=t.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(t){for(var r,o="";t.length&&(r=t[0][0],!(r!=="space"&&r!=="comment"));)o+=t.shift()[1];return o},n.spacesFromEnd=function(t){for(var r,o="";t.length&&(r=t[t.length-1][0],r==="space");)o=t.pop()[1]+o;return o},n.stringFrom=function(t,r){for(var o="",s=r;s<t.length;s++)o+=t[s][1];return t.splice(r,t.length-r),o},n.unclosedBlock=function(){var t=this.current.source.start;throw this.input.error("Unclosed block",t.line,t.column)},n.unclosedBracket=function(t){throw this.input.error("Unclosed bracket",{offset:t[2]},{offset:t[2]+1})},n.unexpectedClose=function(t){throw this.input.error("Unexpected }",{offset:t[2]},{offset:t[2]+1})},n.unknownWord=function(t){throw this.input.error("Unknown word",{offset:t[0][2]},{offset:t[0][2]+t[0][1].length})},n.unnamedAtrule=function(t,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},e}(),Td=Md,Pd=wt,Nd=Td,Ld=xn;function zn(e,n){var i=new Ld(e,n),t=new Nd(i);try{t.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 t.root}var ko=zn;zn.default=zn,Pd.registerParse(zn);var Be=ot.isClean,Dd=ot.my,$d=au,Fd=Sn,Ud=wt,Bd=_o,zd=_u,Tu=So,Wd=ko,qd=Ir,Gd={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Vd={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},jd={Once:!0,postcssPlugin:!0,prepare:!0},qt=0;function kr(e){return(typeof e=="undefined"?"undefined":U(e))==="object"&&typeof e.then=="function"}function Pu(e){var n=!1,i=Gd[e.type];return e.type==="decl"?n=e.prop.toLowerCase():e.type==="atrule"&&(n=e.name.toLowerCase()),n&&e.append?[i,i+"-"+n,qt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:e.append?[i,qt,i+"Exit"]:[i,i+"Exit"]}function Nu(e){var n;return e.type==="document"?n=["Document",qt,"DocumentExit"]:e.type==="root"?n=["Root",qt,"RootExit"]:n=Pu(e),{eventIndex:0,events:n,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Oo(e){return e[Be]=!1,e.nodes&&e.nodes.forEach(function(n){return Oo(n)}),e}var xo={},Gt=function(){function e(i,t,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof t=="undefined"?"undefined":U(t))==="object"&&t!==null&&(t.type==="root"||t.type==="document"))s=Oo(t);else if(M(t,e)||M(t,Tu))s=Oo(t.root),t.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{var a=Wd;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(t,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Dd]&&Ud.rebuild(s)}this.result=new Tu(i,s,r),this.helpers=H({},xo,{postcss:xo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":U(u))==="object"&&u.prepare?H({},u,u.prepare(o.result)):u})}var n=e.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(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(t,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(t),this.error=t,t.name==="CssSyntaxError"&&!t.plugin)t.plugin=o.postcssPlugin,t.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[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 t},n.prepareVisitors=function(){var t=this;this.listeners={};for(var r=function(l,f,p){t.listeners[f]||(t.listeners[f]=[]),t.listeners[f].push([l,p])},o=O(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":U(a))==="object")for(var u in a){if(!Vd[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!jd[u])if(U(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var t=this;return _i(function(){var r,o,s,a,u,c,l,f,p,g,v,y;return fr(this,function(d){switch(d.label){case 0:t.plugin=0,r=0,d.label=1;case 1:if(!(r<t.plugins.length))return[3,6];if(o=t.plugins[r],s=t.runOnRoot(o),!kr(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(),t.handleError(a);case 5:return r++,[3,1];case 6:if(t.prepareVisitors(),!t.hasListener)return[3,18];u=t.result.root,d.label=7;case 7:if(u[Be])return[3,14];u[Be]=!0,c=[Nu(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=t.visitTick(c),!kr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,t.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!t.listeners.OnceExit)return[3,18];g=function(){var m,_,w,S,C;return fr(this,function(k){switch(k.label){case 0:m=y.value,_=m[0],w=m[1],t.result.lastPlugin=_,k.label=1;case 1:return k.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(A){return w(A,t.helpers)}),[4,Promise.all(S)]);case 2:return k.sent(),[3,5];case 3:return[4,w(u,t.helpers)];case 4:k.sent(),k.label=5;case 5:return[3,7];case 6:throw C=k.sent(),t.handleError(C);case 7:return[2]}})},v=O(t.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,Ms(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return t.processed=!0,[2,t.stringify()]}})})()},n.runOnRoot=function(t){var r=this;this.result.lastPlugin=t;try{if((typeof t=="undefined"?"undefined":U(t))==="object"&&t.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return t.Once(s,r.helpers)});return kr(o[0])?Promise.all(o):o}return t.Once(this.result.root,this.helpers)}else if(typeof t=="function")return t(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 t=this.result.opts,r=Fd;t.syntax&&(r=t.syntax.stringify),t.stringifier&&(r=t.stringifier),r.stringify&&(r=r.stringify);var o=new $d(r,this.result.root,this.result.opts),s=o.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 t=O(this.plugins),r;!(r=t()).done;){var o=r.value,s=this.runOnRoot(o);if(kr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Be];)a[Be]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||zd("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this.css},n.visitSync=function(t,r){for(var o=O(t),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(kr(l))throw this.getAsyncError()}},n.visitTick=function(t){var r=t[t.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){t.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Be]){f[Be]=!0,t.push(Nu(f));return}r.iterator=0,delete o.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===qt){o.nodes&&o.nodes.length&&(o[Be]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}t.pop()},n.walkSync=function(t){var r=this;t[Be]=!0;for(var o=Pu(t),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===qt)t.nodes&&t.each(function(l){l[Be]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,t.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ye(e,[{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"}}]),e}();Gt.registerPostcss=function(e){xo=e};var Lu=Gt;Gt.default=Gt,qd.registerLazyResult(Gt),Bd.registerLazyResult(Gt);var Hd=au,Yd=Sn,Kd=_u,Xd=ko,Jd=So,Ro=function(){function e(i,t,r){t=t.toString(),this.stringified=!1,this._processor=i,this._css=t,this._opts=r,this._map=void 0;var o,s=Yd;this.result=new Jd(this._processor,o,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Hd(s,o,this._opts,t);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=e.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(t){return this.async().catch(t)},n.finally=function(t){return this.async().then(t,t)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(t,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Kd("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ye(e,[{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 t,r=Xd;try{t=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=t,t}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Zd=Ro;Ro.default=Ro;var Qd=Zd,ev=Lu,tv=_o,rv=Ir,Or=function(){function e(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=e.prototype;return n.normalize=function(t){for(var r=[],o=O(t),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":U(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":U(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":U(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(t,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Qd(this,t,r):new ev(this,t,r)},n.use=function(t){return this.plugins=this.plugins.concat(this.normalize([t])),this},e}(),nv=Or;Or.default=Or,rv.registerProcessor(Or),tv.registerProcessor(Or);var iv=En,ov=Za,sv=Mn,av=Io,uv=xn,cv=Ir,lv=Eo;function xr(e,n){if(Array.isArray(e))return e.map(function(f){return xr(f)});var i=e.inputs,t=cr(e,["inputs"]);if(i){n=[];for(var r=O(i),o;!(o=r()).done;){var s=o.value,a=H({},s,{__proto__:uv.prototype});a.map&&(a.map=H({},a.map,{__proto__:ov.prototype})),n.push(a)}}if(t.nodes&&(t.nodes=e.nodes.map(function(f){return xr(f,n)})),t.source){var u=t.source,c=u.inputId,l=cr(u,["inputId"]);t.source=l,c!=null&&(t.source.input=n[c])}if(t.type==="root")return new cv(t);if(t.type==="decl")return new iv(t);if(t.type==="rule")return new lv(t);if(t.type==="comment")return new sv(t);if(t.type==="atrule")return new av(t);throw new Error("Unknown node type: "+e.type)}var fv=xr;xr.default=xr;var hv=no,Du=En,pv=Lu,dv=wt,Ao=nv,vv=Sn,gv=fv,$u=_o,mv=bu,Fu=Mn,Uu=Io,yv=So,_v=xn,bv=ko,wv=xu,Bu=Eo,zu=Ir,Sv=In;function Z(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ao(n)}Z.plugin=function(n,i){var t=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!t&&(t=!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 c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Ao().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r},Z.stringify=vv,Z.parse=bv,Z.fromJSON=gv,Z.list=wv,Z.comment=function(e){return new Fu(e)},Z.atRule=function(e){return new Uu(e)},Z.decl=function(e){return new Du(e)},Z.rule=function(e){return new Bu(e)},Z.root=function(e){return new zu(e)},Z.document=function(e){return new $u(e)},Z.CssSyntaxError=hv,Z.Declaration=Du,Z.Container=dv,Z.Processor=Ao,Z.Document=$u,Z.Comment=Fu,Z.Warning=mv,Z.AtRule=Uu,Z.Result=yv,Z.Input=_v,Z.Rule=Bu,Z.Root=zu,Z.Node=Sv,pv.registerPostcss(Z);var Cv=Z;Z.default=Z;var se=Np(Cv);se.stringify,se.fromJSON,se.plugin,se.parse,se.list,se.document,se.comment,se.atRule,se.rule,se.decl,se.root,se.CssSyntaxError,se.Declaration,se.Container,se.Processor,se.Document,se.Comment,se.Warning,se.AtRule,se.Result,se.Input,se.Rule,se.Root,se.Node;var Iv=function(){function e(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];Pe(this,"parentElement",null),Pe(this,"parentNode",null),Pe(this,"ownerDocument"),Pe(this,"firstChild",null),Pe(this,"lastChild",null),Pe(this,"previousSibling",null),Pe(this,"nextSibling",null),Pe(this,"ELEMENT_NODE",1),Pe(this,"TEXT_NODE",3),Pe(this,"nodeType"),Pe(this,"nodeName"),Pe(this,"RRNodeType")}var n=e.prototype;return n.contains=function(t){if(M(t,e)){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},n.appendChild=function(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},ye(e,[{key:"childNodes",get:function(){for(var t=[],r=this.firstChild;r;)t.push(r),r=r.nextSibling;return t}}]),e}(),Wu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},qu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Wn={},Ev=function(){return!!globalThis.Zone};function Mo(e){if(Wn[e])return Wn[e];var n=globalThis[e],i=n.prototype,t=e in Wu?Wu[e]:void 0,r=!!(t&&t.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),o=e in qu?qu[e]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Ev())return Wn[e]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[e].prototype;return document.body.removeChild(a),c?Wn[e]=c:i}catch(l){return i}}var To={};function st(e,n,i){var t,r=e+"."+String(i);if(To[r])return To[r].call(n);var o=Mo(e),s=(t=Object.getOwnPropertyDescriptor(o,i))==null?void 0:t.get;return s?(To[r]=s,s.call(n)):n[i]}var Po={};function Gu(e,n,i){var t=e+"."+String(i);if(Po[t])return Po[t].bind(n);var r=Mo(e),o=r[i];return typeof o!="function"?n[i]:(Po[t]=o,o.bind(n))}function kv(e){return st("Node",e,"childNodes")}function Ov(e){return st("Node",e,"parentNode")}function xv(e){return st("Node",e,"parentElement")}function Rv(e){return st("Node",e,"textContent")}function Av(e,n){return Gu("Node",e,"contains")(n)}function Mv(e){return Gu("Node",e,"getRootNode")()}function Tv(e){return!e||!("host"in e)?null:st("ShadowRoot",e,"host")}function Pv(e){return e.styleSheets}function Nv(e){return!e||!("shadowRoot"in e)?null:st("Element",e,"shadowRoot")}function Lv(e,n){return st("Element",e,"querySelector")(n)}function Dv(e,n){return st("Element",e,"querySelectorAll")(n)}function Vu(){return Mo("MutationObserver").constructor}function St(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var q={childNodes:kv,parentNode:Ov,parentElement:xv,textContent:Rv,contains:Av,getRootNode:Mv,host:Tv,styleSheets:Pv,shadowRoot:Nv,querySelector:Lv,querySelectorAll:Dv,mutationObserver:Vu,patch:St};function Se(e,n,i){i===void 0&&(i=document);var t={capture:!0,passive:!0};return i.addEventListener(e,n,t),function(){return i.removeEventListener(e,n,t)}}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.",ju={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&&(ju=new Proxy(ju,{get:function(n,i,t){return i==="map"&&console.error(Vt),Reflect.get(n,i,t)}}));function Rr(e,n,i){i===void 0&&(i={});var t=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(t&&(clearTimeout(t),t=null),r=u,e.apply(l,s)):!t&&i.trailing!==!1&&(t=setTimeout(function(){r=i.leading===!1?0:Date.now(),t=null,e.apply(l,s)},c))}}function qn(e,n,i,t,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(e,n);return r.Object.defineProperty(e,n,t?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return qn(e,n,o||{},!0)}}var Gn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Gn=function(){return new Date().getTime()});function Hu(e){var n,i,t,r,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=q.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((t=q.parentElement(o.body))==null?void 0:t.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function Yu(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ku(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Xu(e){if(!e)return null;var n=e.nodeType===e.ELEMENT_NODE?e:q.parentElement(e);return n}function Ce(e,n,i,t){if(!e)return!1;var r=Xu(e);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||t&&r.closest("."+n)!==null)return!0}else if(en(r,n,t))return!0}catch(o){}return!!(i&&(r.matches(i)||t&&r.closest(i)!==null))}function $v(e,n){return n.getId(e)!==-1}function No(e,n,i){return e.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(e)===dr}function Ju(e,n){if(hr(e))return!1;var i=n.getId(e);if(!n.has(i))return!0;var t=q.parentNode(e);return t&&t.nodeType===e.DOCUMENT_NODE?!1:t?Ju(t,n):!0}function Lo(e){return!!e.changedTouches}function Fv(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Zu(e,n){return!!(e.nodeName==="IFRAME"&&n.getMeta(e))}function Qu(e,n){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&n.getMeta(e))}function Do(e){return e?M(e,Iv)&&"shadowRoot"in e?!!e.shadowRoot:!!q.shadowRoot(e):!1}var Uv=function(){function e(){E(this,"id",1),E(this,"styleIDMap",new WeakMap),E(this,"idStyleMap",new Map)}var n=e.prototype;return n.getId=function(t){var r;return(r=this.styleIDMap.get(t))!=null?r:-1},n.has=function(t){return this.styleIDMap.has(t)},n.add=function(t,r){if(this.has(t))return this.getId(t);var o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(t,o),this.idStyleMap.set(o,t),o},n.getStyle=function(t){return this.idStyleMap.get(t)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},e}();function ec(e){var n,i=null;return"getRootNode"in e&&((n=q.getRootNode(e))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&q.host(q.getRootNode(e))&&(i=q.host(q.getRootNode(e))),i}function Bv(e){for(var n=e,i;i=ec(n);)n=i;return n}function zv(e){var n=e.ownerDocument;if(!n)return!1;var i=Bv(e);return q.contains(n,i)}function tc(e){var n=e.ownerDocument;return n?q.contains(n,e)||zv(e):!1}var G=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(G||{}),N=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(N||{}),ke=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(ke||{}),Ke=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Ke||{}),jt=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(jt||{}),Ht=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Ht||{}),rc=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(rc||{});function nc(e){return"__ln"in e}var Wv=function(){function e(){E(this,"length",0),E(this,"head",null),E(this,"tail",null)}var n=e.prototype;return n.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var r=this.head,o=0;o<t;o++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(t){var r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&nc(t.previousSibling)){var o=t.previousSibling.__ln.next;r.next=o,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(t.nextSibling&&nc(t.nextSibling)&&t.nextSibling.__ln.previous){var s=t.nextSibling.__ln.previous;r.previous=s,r.next=t.nextSibling.__ln,t.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(t){var r=t.__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),t.__ln&&delete t.__ln,this.length--)},e}(),ic=function(e,n){return e+"@"+n},qv=function(){function e(){var i=this;E(this,"frozen",!1),E(this,"locked",!1),E(this,"texts",[]),E(this,"attributes",[]),E(this,"attributeMap",new WeakMap),E(this,"removes",[]),E(this,"mapRemoves",[]),E(this,"movedMap",{}),E(this,"addedSet",new Set),E(this,"movedSet",new Set),E(this,"droppedSet",new Set),E(this,"removesSubTreeCache",new Set),E(this,"mutationCb"),E(this,"blockClass"),E(this,"blockSelector"),E(this,"maskTextClass"),E(this,"maskTextSelector"),E(this,"inlineStylesheet"),E(this,"maskInputOptions"),E(this,"maskTextFn"),E(this,"maskInputFn"),E(this,"keepIframeSrcFn"),E(this,"recordCanvas"),E(this,"inlineImages"),E(this,"slimDOMOptions"),E(this,"dataURLOptions"),E(this,"doc"),E(this,"mirror"),E(this,"iframeManager"),E(this,"stylesheetManager"),E(this,"shadowDomManager"),E(this,"canvasManager"),E(this,"processedNodeManager"),E(this,"unattachedDoc"),E(this,"processMutations",function(t){t.forEach(i.processMutation),i.emit()}),E(this,"emit",function(){if(!(i.frozen||i.locked)){for(var t=[],r=new Set,o=new Wv,s=function(P){for(var W=P,K=dr;K===dr;)W=W&&W.nextSibling,K=W&&i.mirror.getId(W);return K},a=function(P){var W=q.parentNode(P);if(!(!W||!tc(P))){var K=!1;if(P.nodeType===Node.TEXT_NODE){var Oe=W.tagName;if(Oe==="TEXTAREA")return;Oe==="STYLE"&&i.addedSet.has(W)&&(K=!0)}var X=hr(W)?i.mirror.getId(ec(P)):i.mirror.getId(W),Ae=s(P);if(X===-1||Ae===-1)return o.addNode(P);var Ee=Ft(P,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(ae){Zu(ae,i.mirror)&&i.iframeManager.addIframe(ae),Qu(ae,i.mirror)&&i.stylesheetManager.trackLinkElement(ae),Do(P)&&i.shadowDomManager.addShadowRoot(q.shadowRoot(P),i.doc)},onIframeLoad:function(ae,_e){i.iframeManager.attachIframe(ae,_e),i.shadowDomManager.observeAttachShadow(ae)},onStylesheetLoad:function(ae,_e){i.stylesheetManager.attachLinkElement(ae,_e)},cssCaptured:K});Ee&&(t.push({parentId:X,nextId:Ae,node:Ee}),r.add(Ee.id))}};i.mapRemoves.length;)i.mirror.removeNodeFromMap(i.mapRemoves.shift());for(var u=O(i.movedSet),c;!(c=u()).done;){var l=c.value;oc(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(q.parentNode(l))||a(l)}for(var f=O(i.addedSet),p;!(p=f()).done;){var g=p.value;!sc(i.droppedSet,g)&&!oc(i.removesSubTreeCache,g,i.mirror)||sc(i.movedSet,g)?a(g):i.droppedSet.add(g)}for(var v=null;o.length;){var y=null;if(v){var d=i.mirror.getId(q.parentNode(v.value)),m=s(v.value);d!==-1&&m!==-1&&(y=v)}if(!y)for(var _=o.tail;_;){var w=_;if(_=_.previous,w){var S=i.mirror.getId(q.parentNode(w.value)),C=s(w.value);if(C===-1)continue;if(S!==-1){y=w;break}else{var k=w.value,A=q.parentNode(k);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var x=q.host(A),T=i.mirror.getId(x);if(T!==-1){y=w;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}v=y.previous,o.removeNode(y.value),a(y.value)}var F={texts:i.texts.map(function(P){var W=P.node,K=q.parentNode(W);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{id:i.mirror.getId(W),value:P.value}}).filter(function(P){return!r.has(P.id)}).filter(function(P){return i.mirror.has(P.id)}),attributes:i.attributes.map(function(P){var W=P.attributes;if(typeof W.style=="string"){var K=JSON.stringify(P.styleDiff),Oe=JSON.stringify(P._unchangedStyles);K.length<W.style.length&&(K+Oe).split("var(").length===W.style.split("var(").length&&(W.style=P.styleDiff)}return{id:i.mirror.getId(P.node),attributes:W}}).filter(function(P){return!r.has(P.id)}).filter(function(P){return i.mirror.has(P.id)}),removes:i.removes,adds:t};!F.texts.length&&!F.attributes.length&&!F.removes.length&&!F.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(F))}}),E(this,"genTextAreaValueMutation",function(t){var r=i.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(t,r));var o=Array.from(q.childNodes(t),function(s){return q.textContent(s)||""}).join("");r.attributes.value=Xr({element:t,maskInputOptions:i.maskInputOptions,tagName:t.tagName,type:Jr(t),value:o,maskInputFn:i.maskInputFn})}),E(this,"processMutation",function(t){if(!No(t.target,i.mirror,i.slimDOMOptions))switch(t.type){case"characterData":{var r=q.textContent(t.target);!Ce(t.target,i.blockClass,i.blockSelector,!1)&&r!==t.oldValue&&i.texts.push({value:Hs(t.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Xu(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{var o=t.target,s=t.attributeName,a=t.target.getAttribute(s);if(s==="value"){var u=Jr(o);a=Xr({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Ce(t.target,i.blockClass,i.blockSelector,!1)||a===t.oldValue)return;var c=i.attributeMap.get(t.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(t.target,c)),s==="type"&&o.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!js(o.tagName,s))if(c.attributes[s]=Vs(i.doc,_t(o.tagName),_t(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(w){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");t.oldValue&&l.setAttribute("style",t.oldValue);for(var f=O(Array.from(o.style)),p;!(p=f()).done;){var g=p.value,v=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);v!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,y]:c._unchangedStyles[g]=[v,y]}for(var d=O(Array.from(l.style)),m;!(m=d()).done;){var _=m.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Ce(t.target,i.blockClass,i.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(w){return i.genAdds(w,t.target)}),t.removedNodes.forEach(function(w){var S=i.mirror.getId(w),C=hr(t.target)?i.mirror.getId(q.host(t.target)):i.mirror.getId(t.target);Ce(t.target,i.blockClass,i.blockSelector,!1)||No(w,i.mirror,i.slimDOMOptions)||!$v(w,i.mirror)||(i.addedSet.has(w)?($o(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(t.target)&&S===-1||Ju(t.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[ic(S,C)]?$o(i.movedSet,w):(i.removes.push({parentId:C,id:S,isShadow:hr(t.target)&&pr(t.target)?!0:void 0}),Gv(w,i.removesSubTreeCache))),i.mapRemoves.push(w))});break}}}),E(this,"genAdds",function(t,r){if(!i.processedNodeManager.inOtherBuffer(t,i)&&!(i.addedSet.has(t)||i.movedSet.has(t))){if(i.mirror.hasNode(t)){if(No(t,i.mirror,i.slimDOMOptions))return;i.movedSet.add(t);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[ic(i.mirror.getId(t),o)]=!0)}else i.addedSet.add(t),i.droppedSet.delete(t);Ce(t,i.blockClass,i.blockSelector,!1)||(q.childNodes(t).forEach(function(s){return i.genAdds(s)}),Do(t)&&q.childNodes(q.shadowRoot(t)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,t)}))}})}var n=e.prototype;return n.init=function(t){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(o){r[o]=t[o]})},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()},e}();function $o(e,n){e.delete(n),q.childNodes(n).forEach(function(i){return $o(e,i)})}function Gv(e,n){for(var i=[e];i.length;){var t=i.pop();n.has(t)||(n.add(t),q.childNodes(t).forEach(function(r){return i.push(r)}))}}function oc(e,n,i){return e.size===0?!1:Vv(e,n)}function Vv(e,n,i){var t=q.parentNode(n);return t?e.has(t):!1}function sc(e,n){return e.size===0?!1:ac(e,n)}function ac(e,n){var i=q.parentNode(n);return i?e.has(i)?!0:ac(e,i):!1}var Ar;function jv(e){Ar=e}function Hv(){Ar=void 0}var j=function(e){if(!Ar)return e;var n=function(){for(var i=arguments.length,t=new Array(i),r=0;r<i;r++)t[r]=arguments[r];try{return e.apply(void 0,[].concat(t))}catch(o){if(Ar&&Ar(o)===!0)return;throw o}};return n},Ct=[];function Mr(e){try{if("composedPath"in e){var n=e.composedPath();if(n.length)return n[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(i){}return e&&e.target}function uc(e,n){var i=new qv;Ct.push(i),i.init(e);var t=new(Vu())(j(i.processMutations.bind(i)));return t.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),t}function Yv(e){var n=e.mousemoveCb,i=e.sampling,t=e.doc,r=e.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=Rr(j(function(p){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),p),a=[],u=null}),s),l=j(Rr(j(function(p){var g=Mr(p),v=Lo(p)?p.changedTouches[0]:p,y=v.clientX,d=v.clientY;u||(u=Gn()),a.push({x:y,y:d,id:r.getId(g),timeOffset:Gn()-u}),c(typeof DragEvent!="undefined"&&M(p,DragEvent)?N.Drag:M(p,MouseEvent)?N.MouseMove:N.TouchMove)}),o,{trailing:!1})),f=[Se("mousemove",l,t),Se("touchmove",l,t),Se("drag",l,t)];return j(function(){f.forEach(function(p){return p()})})}function Kv(e){var n=e.mouseInteractionCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=Mr(p);if(!Ce(g,r,o,!0)){var v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=Ke.Mouse;break;case"touch":v=Ke.Touch;break;case"pen":v=Ke.Pen;break}v===Ke.Touch?ke[f]===ke.MouseDown?y="TouchStart":ke[f]===ke.MouseUp&&(y="TouchEnd"):Ke.Pen}else Lo(p)&&(v=Ke.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===Ke.Touch||y.startsWith("Mouse")&&v===Ke.Mouse)&&(v=null)):ke[f]===ke.Click&&(v=c,c=null);var d=Lo(p)?p.changedTouches[0]:p;if(d){var m=t.getId(g),_=d.clientX,w=d.clientY;j(n)(H({type:ke[y],id:m,x:_,y:w},v!==null&&{pointerType:v}))}}}};return Object.keys(ke).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=_t(f),g=l(f);if(window.PointerEvent)switch(ke[f]){case ke.MouseDown:case ke.MouseUp:p=p.replace("mouse","pointer");break;case ke.TouchStart:case ke.TouchEnd:return}u.push(Se(p,g,i))}),j(function(){u.forEach(function(f){return f()})})}function cc(e){var n=e.scrollCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.sampling,a=j(Rr(j(function(u){var c=Mr(u);if(!(!c||Ce(c,r,o,!0))){var l=t.getId(c);if(c===i&&i.defaultView){var f=Hu(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return Se("scroll",a,i)}function Xv(e,n){var i=e.viewportResizeCb,t=n.win,r=-1,o=-1,s=j(Rr(j(function(){var a=Yu(),u=Ku();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Se("resize",s,t)}var Jv=["INPUT","TEXTAREA","SELECT"],lc=new WeakMap;function Zv(e){var n=e.inputCb,i=e.doc,t=e.mirror,r=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,f=e.userTriggeredOnInput;function p(S){var C=Mr(S),k=S.isTrusted,A=C&&C.tagName;if(C&&A==="OPTION"&&(C=q.parentElement(C)),!(!C||!A||Jv.indexOf(A)<0||Ce(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var x=C.value,T=!1,F=Jr(C)||"";F==="radio"||F==="checkbox"?T=C.checked:(u[A.toLowerCase()]||u[F])&&(x=Xr({element:C,maskInputOptions:u,tagName:A,type:F,value:x,maskInputFn:c})),g(C,f?{text:x,isChecked:T,userTriggered:k}:{text:x,isChecked:T});var P=C.name;F==="radio"&&P&&T&&i.querySelectorAll('input[type="radio"][name="'+P+'"]').forEach(function(W){if(W!==C){var K=W.value;g(W,f?{text:K,isChecked:!T,userTriggered:!1}:{text:K,isChecked:!T})}})}}function g(S,C){var k=lc.get(S);if(!k||k.text!==C.text||k.isChecked!==C.isChecked){lc.set(S,C);var A=t.getId(S);j(n)(H({},C,{id:A}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(S){return Se(S,j(p),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(S){return S()})};var m=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),_=[[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(m&&m.set){var w;(w=y).push.apply(w,[].concat(_.map(function(S){return qn(S[0],S[1],{set:function(){j(p)({target:this,isTrusted:!1})}},!1,d)})))}return j(function(){y.forEach(function(S){return S()})})}function Vn(e){var n=[];function i(t,r){if(jn("CSSGroupingRule")&&M(t.parentRule,CSSGroupingRule)||jn("CSSMediaRule")&&M(t.parentRule,CSSMediaRule)||jn("CSSSupportsRule")&&M(t.parentRule,CSSSupportsRule)||jn("CSSConditionRule")&&M(t.parentRule,CSSConditionRule)){var o=Array.from(t.parentRule.cssRules),s=o.indexOf(t);r.unshift(s)}else if(t.parentStyleSheet){var a=Array.from(t.parentStyleSheet.cssRules),u=a.indexOf(t);r.unshift(u)}return r}return i(e,n)}function at(e,n,i){var t,r;return e?(e.ownerNode?t=n.getId(e.ownerNode):r=i.getId(e),{styleId:r,id:t}):{}}function Qv(e,n){var i=e.styleSheetRuleCb,t=e.mirror,r=e.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:j(function(p,g,v){var y=v[0],d=v[1],m=at(g,t,r.styleMirror),_=m.id,w=m.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:y,index:d}]}),p.apply(g,v)})}),o.CSSStyleSheet.prototype.addRule=function(p,g,v){v===void 0&&(v=this.cssRules.length);var y=p+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:j(function(p,g,v){var y=v[0],d=at(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,v)})}),o.CSSStyleSheet.prototype.removeRule=function(p){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:j(function(p,g,v){var y=v[0],d=at(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,v)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:j(function(p,g,v){var y=v[0],d=at(g,t,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,v)})}));var l={};Hn("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Hn("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Hn("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Hn("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],v=p[1];f[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(f[g].insertRule,{apply:j(function(y,d,m){var _=m[0],w=m[1],S=at(d.parentStyleSheet,t,r.styleMirror),C=S.id,k=S.styleId;return(C&&C!==-1||k&&k!==-1)&&i({id:C,styleId:k,adds:[{rule:_,index:[].concat(Vn(d),[w||0])}]}),y.apply(d,m)})}),v.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:j(function(y,d,m){var _=m[0],w=at(d.parentStyleSheet,t,r.styleMirror),S=w.id,C=w.styleId;return(S&&S!==-1||C&&C!==-1)&&i({id:S,styleId:C,removes:[{index:[].concat(Vn(d),[_])}]}),y.apply(d,m)})})}),j(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],v=p[1];v.prototype.insertRule=f[g].insertRule,v.prototype.deleteRule=f[g].deleteRule})})}function fc(e,n){var i=e.mirror,t=e.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(q.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{t.adoptStyleSheets(f,a)}catch(v){}return g}}),j(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function eg(e,n){var i=e.styleDeclarationCb,t=e.mirror,r=e.ignoreCSSAttributes,o=e.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:j(function(c,l,f){var p,g=f[0],v=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,v,y]);var d=at((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:v,priority:y},index:Vn(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:j(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var v=at((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,o.styleMirror),y=v.id,d=v.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:g},index:Vn(l.parentRule)}),c.apply(l,f)})}),j(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function tg(e){var n=e.mediaInteractionCb,i=e.blockClass,t=e.blockSelector,r=e.mirror,o=e.sampling,s=e.doc,a=j(function(c){return Rr(j(function(l){var f=Mr(l);if(!(!f||Ce(f,i,t,!0))){var p=f.currentTime,g=f.volume,v=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:v,playbackRate:y,loop:d})}}),o.media||500)}),u=[Se("play",a(Ht.Play),s),Se("pause",a(Ht.Pause),s),Se("seeked",a(Ht.Seeked),s),Se("volumechange",a(Ht.VolumeChange),s),Se("ratechange",a(Ht.RateChange),s)];return j(function(){u.forEach(function(c){return c()})})}function rg(e){var n=e.fontCb,i=e.doc,t=i.defaultView;if(!t)return function(){};var r=[],o=new WeakMap,s=t.FontFace;t.FontFace=function(c,l,f){var p=new s(c,l,f);return o.set(p,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),p};var a=St(i.fonts,"add",function(u){return function(c){return setTimeout(j(function(){var l=o.get(c);l&&(n(l),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){t.FontFace=s}),r.push(a),j(function(){r.forEach(function(u){return u()})})}function ng(e){var n=e.doc,i=e.mirror,t=e.blockClass,r=e.blockSelector,o=e.selectionCb,s=!0,a=j(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,v=p.startOffset,y=p.endContainer,d=p.endOffset,m=Ce(g,t,r,!0)||Ce(y,t,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}o({ranges:c})}});return a(),Se("selectionchange",a)}function ig(e){var n=e.doc,i=e.customElementCb,t=n.defaultView;if(!t||!t.customElements)return function(){};var r=St(t.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch(c){console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function og(e,n){var i=e.mutationCb,t=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,u=e.mediaInteractionCb,c=e.styleSheetRuleCb,l=e.styleDeclarationCb,f=e.canvasMutationCb,p=e.fontCb,g=e.selectionCb,v=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},e.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}t.apply(void 0,[].concat(d))},e.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},e.scrollCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},e.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},e.inputCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},e.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},e.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},e.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},e.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},e.fontCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}p.apply(void 0,[].concat(d))},e.selectionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},e.customElementCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function sg(e,n){n===void 0&&(n={});var i=e.doc.defaultView;if(!i)return function(){};og(e,n);var t;e.recordDOM&&(t=uc(e,e.doc));var r=Yv(e),o=Kv(e),s=cc(e),a=Xv(e,{win:i}),u=Zv(e),c=tg(e),l=function(){},f=function(){},p=function(){},g=function(){};e.recordDOM&&(l=Qv(e,{win:i}),f=fc(e,e.doc),p=eg(e,{win:i}),e.collectFonts&&(g=rg(e)));for(var v=ng(e),y=ig(e),d=[],m=O(e.plugins),_;!(_=m()).done;){var w=_.value;d.push(w.observer(w.callback,i,w.options))}return j(function(){Ct.forEach(function(S){return S.reset()}),t==null||t.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),p(),g(),v(),y(),d.forEach(function(S){return S()})})}function jn(e){return typeof window[e]!="undefined"}function Hn(e){return!!(typeof window[e]!="undefined"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var hc=function(){function e(i){E(this,"iframeIdToRemoteIdMap",new WeakMap),E(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=e.prototype;return n.getId=function(t,r,o,s){var a=o||this.getIdToRemoteIdMap(t),u=s||this.getRemoteIdToIdMap(t),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(t,r){var o=this,s=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(function(u){return o.getId(t,u,s,a)})},n.getRemoteId=function(t,r,o){var s=o||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(t,r){var o=this,s=this.getRemoteIdToIdMap(t);return r.map(function(a){return o.getRemoteId(t,a,s)})},n.reset=function(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)},n.getIdToRemoteIdMap=function(t){var r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r},n.getRemoteIdToIdMap=function(t){var r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r},e}(),ag=function(){function e(i){E(this,"iframes",new WeakMap),E(this,"crossOriginIframeMap",new WeakMap),E(this,"crossOriginIframeMirror",new hc(Ws)),E(this,"crossOriginIframeStyleMirror"),E(this,"crossOriginIframeRootIdMap",new WeakMap),E(this,"mirror"),E(this,"mutationCb"),E(this,"wrappedEmit"),E(this,"loadListener"),E(this,"stylesheetManager"),E(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new hc(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=e.prototype;return n.addIframe=function(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)},n.addLoadListener=function(t){this.loadListener=t},n.attachIframe=function(t,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=t.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))},n.handleMessage=function(t){var r=t;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var o=t.source;if(o){var s=this.crossOriginIframeMap.get(t.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(t,r){var o=this,s;switch(r.type){case G.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:G.IncrementalSnapshot,data:{source:N.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case G.Meta:case G.Load:case G.DomContentLoaded:return!1;case G.Plugin:return r;case G.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case G.IncrementalSnapshot:switch(r.data.source){case N.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,t,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,t);var c=o.crossOriginIframeRootIdMap.get(t);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,t,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,t,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case N.Drag:case N.TouchMove:case N.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,t,["id"])}),r;case N.ViewportResize:return!1;case N.MediaInteraction:case N.MouseInteraction:case N.Scroll:case N.CanvasMutation:case N.Input:return this.replaceIds(r.data,t,["id"]),r;case N.StyleSheetRule:case N.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case N.Font:return r;case N.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,t,["start","end"])}),r;case N.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,t,["styleId"])}),r}}return!1},n.replace=function(t,r,o,s){for(var a=O(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=t.getIds(o,r[c]):r[c]=t.getId(o,r[c]))}return r},n.replaceIds=function(t,r,o){return this.replace(this.crossOriginIframeMirror,t,r,o)},n.replaceStyleIds=function(t,r,o){return this.replace(this.crossOriginIframeStyleMirror,t,r,o)},n.replaceIdOnNode=function(t,r){var o=this;this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(t,r){var o=this;t.type!==rc.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},e}(),ug=function(){function e(i){E(this,"shadowDoms",new WeakSet),E(this,"mutationCb"),E(this,"scrollCb"),E(this,"bypassOptions"),E(this,"mirror"),E(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=e.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(t,r){var o=this;if(pr(t)&&!this.shadowDoms.has(t)){this.shadowDoms.add(t);var s=uc(H({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(cc(H({},this.bypassOptions,{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))),setTimeout(function(){t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,o.mirror.getId(q.host(t))),o.restoreHandlers.push(fc({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},t))},0)}},n.observeAttachShadow=function(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)},n.patchAttachShadow=function(t,r){var o=this;this.restoreHandlers.push(St(t.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=q.shadowRoot(this);return c&&tc(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(t){try{t()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Yt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cg=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Yn=0;Yn<Yt.length;Yn++)cg[Yt.charCodeAt(Yn)]=Yn;var lg=function(n){var i=new Uint8Array(n),t,r=i.length,o="";for(t=0;t<r;t+=3)o+=Yt[i[t]>>2],o+=Yt[(i[t]&3)<<4|i[t+1]>>4],o+=Yt[(i[t+1]&15)<<2|i[t+2]>>6],o+=Yt[i[t+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},pc=new Map;function fg(e,n){var i=pc.get(e);return i||(i=new Map,pc.set(e,i)),i.has(n)||i.set(n,[]),i.get(n)}var dc=function(e,n,i){if(!(!e||!(gc(e,n)||(typeof e=="undefined"?"undefined":U(e))==="object"))){var t=e.constructor.name,r=fg(i,t),o=r.indexOf(e);return o===-1&&(o=r.length,r.push(e)),o}};function Kn(e,n,i){if(M(e,Array))return e.map(function(v){return Kn(v,n,i)});if(e===null)return e;if(M(e,Float32Array)||M(e,Float64Array)||M(e,Int32Array)||M(e,Uint32Array)||M(e,Uint8Array)||M(e,Uint16Array)||M(e,Int16Array)||M(e,Int8Array)||M(e,Uint8ClampedArray)){var t=e.constructor.name;return{rr_type:t,args:[Object.values(e)]}}else if(M(e,ArrayBuffer)){var r=e.constructor.name,o=lg(e);return{rr_type:r,base64:o}}else if(M(e,DataView)){var s=e.constructor.name;return{rr_type:s,args:[Kn(e.buffer,n,i),e.byteOffset,e.byteLength]}}else if(M(e,HTMLImageElement)){var a=e.constructor.name,u=e.src;return{rr_type:a,src:u}}else if(M(e,HTMLCanvasElement)){var c="HTMLImageElement",l=e.toDataURL();return{rr_type:c,src:l}}else if(M(e,ImageData)){var f=e.constructor.name;return{rr_type:f,args:[Kn(e.data,n,i),e.width,e.height]}}else if(gc(e,n)||(typeof e=="undefined"?"undefined":U(e))==="object"){var p=e.constructor.name,g=dc(e,n,i);return{rr_type:p,index:g}}return e}var vc=function(e,n,i){return e.map(function(t){return Kn(t,n,i)})},gc=function(e,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],t=i.filter(function(r){return typeof n[r]=="function"});return!!t.find(function(r){return M(e,n[r])})};function hg(e,n,i,t){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=St(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,v=arguments.length,y=new Array(v),d=0;d<v;d++)y[d]=arguments[d];return Ce(this.canvas,i,t,!0)||setTimeout(function(){var m=vc(y,n,g);e(g.canvas,{type:jt["2D"],property:c,args:m})},0),p.apply(this,y)}});o.push(l)}catch(p){var f=qn(n.CanvasRenderingContext2D.prototype,c,{set:function(v){e(this.canvas,{type:jt["2D"],property:c,args:[v],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=O(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function pg(e){return e==="experimental-webgl"?"webgl":e}function mc(e,n,i,t){var r=[];try{var o=St(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!Ce(this,n,i,!0)){var f=pg(a);if("__context"in this||(this.__context=f),t&&["webgl","webgl2"].includes(f))if(c[0]&&U(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function yc(e,n,i,t,r,o){for(var s=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof e[f]!="function")return"continue";var p=St(e,f,function(v){return function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];var _=v.apply(this,d);if(dc(_,o,this),"tagName"in this.canvas&&!Ce(this.canvas,t,r,!0)){var w=vc(d,o,this),S={type:n,property:f,args:w};i(this.canvas,S)}return _}});a.push(p)}catch(v){var g=qn(e,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(e),c=O(u),l;!(l=c()).done;)s();return a}function dg(e,n,i,t){var r,o=[];if((r=o).push.apply(r,[].concat(yc(n.WebGLRenderingContext.prototype,jt.WebGL,e,i,t,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(yc(n.WebGL2RenderingContext.prototype,jt.WebGL2,e,i,t,n)))}return function(){o.forEach(function(a){return a()})}}var _c="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",vg=function(e){return Uint8Array.from(atob(e),function(n){return n.charCodeAt(0)})},bc=typeof window!="undefined"&&window.Blob&&new Blob([vg(_c)],{type:"text/javascript;charset=utf-8"});function gg(e){var n;try{if(n=bc&&(window.URL||window.webkitURL).createObjectURL(bc),!n)throw"";var i=new Worker(n,{name:e==null?void 0:e.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(t){return new Worker("data:text/javascript;base64,"+_c,{name:e==null?void 0:e.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var mg=function(){function e(i){var t=this;E(this,"pendingCanvasMutations",new Map),E(this,"rafStamps",{latestId:0,invokeId:null}),E(this,"mirror"),E(this,"mutationCb"),E(this,"resetObservers"),E(this,"frozen",!1),E(this,"locked",!1),E(this,"processMutation",function(f,p){var g=t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId;(g||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(f)||t.pendingCanvasMutations.set(f,[]),t.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:l})}var n=e.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(t,r,o,s,a){var u=this,c=mc(r,o,s,!0),l=new Map,f=new gg;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var w=m.data,S=w.base64,C=w.type,k=w.width,A=w.height;u.mutationCb({id:_,type:jt["2D"],commands:[{property:"clearRect",args:[0,0,k,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var p=1e3/t,g=0,v,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Ce(_,o,s,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<p){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(_i(function(w){var S,C,k,A;return fr(this,function(x){switch(x.label){case 0:return C=_.mirror.getId(w),l.get(C)?[2]:w.width===0||w.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(w.__context)&&(k=w.getContext(w.__context),((S=k==null?void 0:k.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&k.clear(k.COLOR_BUFFER_BIT)),[4,createImageBitmap(w)]);case 1:return A=x.sent(),f.postMessage({id:C,bitmap:A,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(t,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=mc(t,r,o,!1),a=hg(this.processMutation.bind(this),t,r,o),u=dg(this.processMutation.bind(this),t,r,o);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var t=this,r=function(o){t.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach(function(r,o){var s=t.mirror.getId(o);t.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(t,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(t);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=cr(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(t)}}},e}(),yg=function(){function e(i){E(this,"trackedLinkElements",new WeakSet),E(this,"mutationCb"),E(this,"adoptedStyleSheetCb"),E(this,"styleMirror",new Uv),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=e.prototype;return n.attachLinkElement=function(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)},n.trackLinkElement=function(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))},n.adoptStyleSheets=function(t,r){var o,s=function(){var f=l.value,p=void 0;o.styleMirror.has(f)?p=o.styleMirror.getId(f):(p=o.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,v){return{rule:Fs(g,f.href),index:v}})})),a.styleIds.push(p)};if(t.length!==0){for(var a={id:r,styleIds:[]},u=[],c=O(t),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.trackStylesheetInLinkElement=function(t){},e}(),_g=function(){function e(){E(this,"nodeMap",new WeakMap),E(this,"active",!1)}var n=e.prototype;return n.inOtherBuffer=function(t,r){var o=this.nodeMap.get(t);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(t,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))},n.destroy=function(){},e}(),ce,Xn,Fo,Jn=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var Uo=document.createElement("iframe");document.body.appendChild(Uo),Array.from=((Ts=Uo.contentWindow)==null?void 0:Ts.Array.from)||Array.from,document.body.removeChild(Uo)}}catch(e){console.debug("Unable to override Array.from",e)}var De=mf();function ut(e){e===void 0&&(e={});var n=e.emit,i=e.checkoutEveryNms,t=e.checkoutEveryNth,r=e.blockClass,o=r===void 0?"rr-block":r,s=e.blockSelector,a=s===void 0?null:s,u=e.ignoreClass,c=u===void 0?"rr-ignore":u,l=e.ignoreSelector,f=l===void 0?null:l,p=e.maskTextClass,g=p===void 0?"rr-mask":p,v=e.maskTextSelector,y=v===void 0?null:v,d=e.inlineStylesheet,m=d===void 0?!0:d,_=e.maskAllInputs,w=e.maskInputOptions,S=e.slimDOMOptions,C=e.maskInputFn,k=e.maskTextFn,A=e.hooks,x=e.packFn,T=e.sampling,F=T===void 0?{}:T,P=e.dataURLOptions,W=P===void 0?{}:P,K=e.mousemoveWait,Oe=e.recordDOM,X=Oe===void 0?!0:Oe,Ae=e.recordCanvas,Ee=Ae===void 0?!1:Ae,ae=e.recordCrossOriginIframes,_e=ae===void 0?!1:ae,Me=e.recordAfter,Ot=Me===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":Me,je=e.userTriggeredOnInput,or=je===void 0?!1:je,Te=e.collectFonts,xt=Te===void 0?!1:Te,Y=e.inlineImages,Rt=Y===void 0?!1:Y,At=e.plugins,sr=e.keepIframeSrcFn,qr=sr===void 0?function(){return!1}:sr,Gr=e.ignoreCSSAttributes,Is=Gr===void 0?new Set([]):Gr,mi=e.errorHandler;jv(mi);var yt=_e?window.parent===window:!0,Mt=!1;if(!yt)try{window.parent.document&&(Mt=!1)}catch(Q){Mt=!0}if(yt&&!n)throw new Error("emit function is required");if(!yt&&!Mt)return function(){};K!==void 0&&F.mousemove===void 0&&(F.mousemove=K),De.reset();var ar=_===!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}:w!==void 0?w:{password:!0},Vr=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||{};Fv();var ur,Tt=0,rt=function(Q){for(var xe=O(At||[]),R;!(R=xe()).done;){var ue=R.value;ue.eventProcessor&&(Q=ue.eventProcessor(Q))}return x&&!Mt&&(Q=x(Q)),Q};ce=function(Q,xe){var R,ue=Q;if(ue.timestamp=Gn(),(R=Ct[0])!=null&&R.isFrozen()&&ue.type!==G.FullSnapshot&&!(ue.type===G.IncrementalSnapshot&&ue.data.source===N.Mutation)&&Ct.forEach(function(Qm){return Qm.unfreeze()}),yt)n==null||n(rt(ue),xe);else if(Mt){var Xm={type:"rrweb",event:rt(ue),origin:window.location.origin,isCheckout:xe};window.parent.postMessage(Xm,"*")}if(ue.type===G.FullSnapshot)ur=ue,Tt=0;else if(ue.type===G.IncrementalSnapshot){if(ue.data.source===N.Mutation&&ue.data.isAttachIframe)return;Tt++;var Jm=t&&Tt>=t,Zm=i&&ue.timestamp-ur.timestamp>i;(Jm||Zm)&&Xn(!0)}};for(var Pt=function(Q){ce({type:G.IncrementalSnapshot,data:H({source:N.Mutation},Q)})},Ul=function(Q){return ce({type:G.IncrementalSnapshot,data:H({source:N.Scroll},Q)})},Bl=function(Q){return ce({type:G.IncrementalSnapshot,data:H({source:N.CanvasMutation},Q)})},Ym=function(Q){return ce({type:G.IncrementalSnapshot,data:H({source:N.AdoptedStyleSheet},Q)})},Nt=new yg({mutationCb:Pt,adoptedStyleSheetCb:Ym}),Lt=new ag({mirror:De,mutationCb:Pt,stylesheetManager:Nt,recordCrossOriginIframes:_e,wrappedEmit:ce}),Km=O(At||[]),zl;!(zl=Km()).done;){var Wl=zl.value;Wl.getMirror&&Wl.getMirror({nodeMirror:De,crossOriginIframeMirror:Lt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Lt.crossOriginIframeStyleMirror})}var Es=new _g;Fo=new mg({recordCanvas:Ee,mutationCb:Bl,win:window,blockClass:o,blockSelector:a,mirror:De,sampling:F.canvas,dataURLOptions:W});var yi=new ug({mutationCb:Pt,scrollCb:Ul,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:ar,dataURLOptions:W,maskTextFn:k,maskInputFn:C,recordCanvas:Ee,inlineImages:Rt,sampling:F,slimDOMOptions:Vr,iframeManager:Lt,stylesheetManager:Nt,canvasManager:Fo,keepIframeSrcFn:qr,processedNodeManager:Es},mirror:De});Xn=function(Q){if(Q===void 0&&(Q=!1),!!X){ce({type:G.Meta,data:{href:window.location.href,width:Ku(),height:Yu()}},Q),Nt.reset(),yi.init(),Ct.forEach(function(R){return R.lock()});var xe=zf(document,{mirror:De,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:ar,maskTextFn:k,maskInputFn:C,slimDOM:Vr,dataURLOptions:W,recordCanvas:Ee,inlineImages:Rt,onSerialize:function(R){Zu(R,De)&&Lt.addIframe(R),Qu(R,De)&&Nt.trackLinkElement(R),Do(R)&&yi.addShadowRoot(q.shadowRoot(R),document)},onIframeLoad:function(R,ue){Lt.attachIframe(R,ue),yi.observeAttachShadow(R)},onStylesheetLoad:function(R,ue){Nt.attachLinkElement(R,ue)},keepIframeSrcFn:qr});if(!xe)return console.warn("Failed to snapshot the document");ce({type:G.FullSnapshot,data:{node:xe,initialOffset:Hu(window)}},Q),Ct.forEach(function(R){return R.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Nt.adoptStyleSheets(document.adoptedStyleSheets,De.getId(document))}};try{var jr=[],ql=function(Q){var xe;return j(sg)({mutationCb:Pt,mousemoveCb:function(R,ue){return ce({type:G.IncrementalSnapshot,data:{source:ue,positions:R}})},mouseInteractionCb:function(R){return ce({type:G.IncrementalSnapshot,data:H({source:N.MouseInteraction},R)})},scrollCb:Ul,viewportResizeCb:function(R){return ce({type:G.IncrementalSnapshot,data:H({source:N.ViewportResize},R)})},inputCb:function(R){return ce({type:G.IncrementalSnapshot,data:H({source:N.Input},R)})},mediaInteractionCb:function(R){return ce({type:G.IncrementalSnapshot,data:H({source:N.MediaInteraction},R)})},styleSheetRuleCb:function(R){return ce({type:G.IncrementalSnapshot,data:H({source:N.StyleSheetRule},R)})},styleDeclarationCb:function(R){return ce({type:G.IncrementalSnapshot,data:H({source:N.StyleDeclaration},R)})},canvasMutationCb:Bl,fontCb:function(R){return ce({type:G.IncrementalSnapshot,data:H({source:N.Font},R)})},selectionCb:function(R){ce({type:G.IncrementalSnapshot,data:H({source:N.Selection},R)})},customElementCb:function(R){ce({type:G.IncrementalSnapshot,data:H({source:N.CustomElement},R)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:ar,inlineStylesheet:m,sampling:F,recordDOM:X,recordCanvas:Ee,inlineImages:Rt,userTriggeredOnInput:or,collectFonts:xt,doc:Q,maskInputFn:C,maskTextFn:k,keepIframeSrcFn:qr,blockSelector:a,slimDOMOptions:Vr,dataURLOptions:W,mirror:De,iframeManager:Lt,stylesheetManager:Nt,shadowDomManager:yi,processedNodeManager:Es,canvasManager:Fo,ignoreCSSAttributes:Is,plugins:((xe=At==null?void 0:At.filter(function(R){return R.observer}))==null?void 0:xe.map(function(R){return{observer:R.observer,options:R.options,callback:function(ue){return ce({type:G.Plugin,data:{plugin:R.name,payload:ue}})}}}))||[]},A)};Lt.addLoadListener(function(Q){try{jr.push(ql(Q.contentDocument))}catch(xe){console.warn(xe)}});var ks=function(){Xn(),jr.push(ql(document)),Jn=!0};return document.readyState==="interactive"||document.readyState==="complete"?ks():(jr.push(Se("DOMContentLoaded",function(){ce({type:G.DomContentLoaded,data:{}}),Ot==="DOMContentLoaded"&&ks()})),jr.push(Se("load",function(){ce({type:G.Load,data:{}}),Ot==="load"&&ks()},window))),function(){jr.forEach(function(Q){try{Q()}catch(R){var xe=String(R).toLowerCase();xe.includes("cross-origin")||console.warn(R)}}),Es.destroy(),Jn=!1,Hv()}}catch(Q){console.warn(Q)}}ut.addCustomEvent=function(e,n){if(!Jn)throw new Error("please add custom event after start recording");ce({type:G.Custom,data:{tag:e,payload:n}})},ut.freezePage=function(){Ct.forEach(function(e){return e.freeze()})},ut.takeFullSnapshot=function(e){if(!Jn)throw new Error("please take full snapshot after start recording");Xn(e)},ut.mirror=De;var wc;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(wc||(wc={})),ut.addCustomEvent,ut.freezePage,ut.takeFullSnapshot;var bg=Object.defineProperty,wg=function(e,n,i){return n in e?bg(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i},Zn=function(e,n,i){return wg(e,(typeof n=="undefined"?"undefined":U(n))!=="symbol"?n+"":n,i)};function Sg(e,n,i){try{if(!(n in e))return function(){};var t=e[n],r=i(t);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:t}})),e[n]=r,function(){e[n]=t}}catch(o){return function(){}}}var Kt=function(){function e(i){Zn(this,"fileName"),Zn(this,"functionName"),Zn(this,"lineNumber"),Zn(this,"columnNumber"),this.fileName=i.fileName||"",this.functionName=i.functionName||"",this.lineNumber=i.lineNumber,this.columnNumber=i.columnNumber}var n=e.prototype;return n.toString=function(){var t=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+t+":"+r+")":this.fileName+":"+t+":"+r},e}(),Cg=/(^|@)\S+:\d+/,Sc=/^\s*at .*(\S+:\d+|\(native\))/m,Ig=/^(eval@)?(\[native code])?$/,Bo={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(Sc)?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 i=/(.+?)(?::(\d+))?(?::(\d+))?$/,t=i.exec(n.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+n);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(n){var i=n.stack.split("\n").filter(function(t){return!!t.match(Sc)},this);return i.map(function(t){t.indexOf("(eval ")>-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),o=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=o?r.replace(o[0],""):r;var s=r.split(/\s+/).slice(1),a=this.extractLocation(o?o[1]:s.pop()),u=s.join(" ")||void 0,c=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Kt({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split("\n").filter(function(t){return!t.match(Ig)},this);return i.map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),t.indexOf("@")===-1&&t.indexOf(":")===-1)return new Kt({functionName:t});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,a=this.extractLocation(t.replace(r,""));return new Kt({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 i=/Line (\d+).*script (?:in )?(\S+)/i,t=n.message.split("\n"),r=[],o=2,s=t.length;o<s;o+=2){var a=i.exec(t[o]);a&&r.push(new Kt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,t=n.stacktrace.split("\n"),r=[],o=0,s=t.length;o<s;o+=2){var a=i.exec(t[o]);a&&r.push(new Kt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split("\n").filter(function(t){return!!t.match(Cg)&&!t.match(/^Error created at/)},this);return i.map(function(t){var r=t.split("@"),o=this.extractLocation(r.pop()),s=r.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Kt({functionName:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function Eg(e){if(!e||!e.outerHTML)return"";for(var n="";e.parentElement;){var i=e.localName;if(!i)break;i=i.toLowerCase();var t=e.parentElement,r=[];if(t.children&&t.children.length>0)for(var o=0;o<t.children.length;o++){var s=t.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===i&&r.push(s)}r.length>1&&(i+=":eq("+r.indexOf(e)+")"),n=i+(n?">"+n:""),e=t}return n}function zo(e){return Object.prototype.toString.call(e)==="[object Object]"}function Cc(e,n){if(n===0)return!0;for(var i=Object.keys(e),t=O(i),r;!(r=t()).done;){var o=r.value;if(zo(e[o])&&Cc(e[o],n-1))return!0}return!1}function Xt(e,n){var i={numOfKeysLimit:50,depthOfLimit:4};Object.assign(i,n);var t=[],r=[];return JSON.stringify(e,function(a,u){if(t.length>0){var c=t.indexOf(this);~c?t.splice(c+1):t.push(this),~c?r.splice(c,1/0,a):r.push(a),~t.indexOf(u)&&(t[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,t.indexOf(u)).join(".")+"]")}else t.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(o(u))return s(u);if((typeof u=="undefined"?"undefined":U(u))==="bigint")return u.toString()+"n";if(M(u,Event)){var l={};for(var f in u){var p=u[f];Array.isArray(p)?l[f]=Eg(p.length?p[0]:null):l[f]=p}return l}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 o(a){return!!(zo(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||zo(a)&&Cc(a,i.depthOfLimit))}function s(a){var u=a.toString();return i.stringLengthLimit&&u.length>i.stringLengthLimit&&(u=""+u.slice(0,i.stringLengthLimit)+"..."),u}}var Ic={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 kg(e,n,i){var t=i?Object.assign({},Ic,i):Ic,r=t.logger;if(!r)return function(){};var o;typeof r=="string"?o=n[r]:o=r;var s=0,a=!1,u=[];if(t.level.includes("error")){var c=function(y){var d=y.message,m=y.error,_=Bo.parse(m).map(function(S){return S.toString()}),w=[Xt(d,t.stringifyOptions)];e({level:"error",trace:_,payload:w})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var l=function(y){var d,m;M(y.reason,Error)?(d=y.reason,m=[Xt("Uncaught (in promise) "+d.name+": "+d.message,t.stringifyOptions)]):(d=new Error,m=[Xt("Uncaught (in promise)",t.stringifyOptions),Xt(y.reason,t.stringifyOptions)]);var _=Bo.parse(d).map(function(w){return w.toString()});e({level:"error",trace:_,payload:m})};n.addEventListener("unhandledrejection",l),u.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var f=O(t.level),p;!(p=f()).done;){var g=p.value;u.push(v(o,g))}return function(){u.forEach(function(y){return y()})};function v(y,d){var m=this;return y[d]?Sg(y,d,function(_){var w=m;return function(){for(var S=arguments.length,C=new Array(S),k=0;k<S;k++)C[k]=arguments[k];if(_.apply(w,C),!(d==="assert"&&C[0])&&!a){a=!0;try{var A=Bo.parse(new Error).map(function(F){return F.toString()}).splice(1),x=d==="assert"?C.slice(1):C,T=x.map(function(F){return Xt(F,t.stringifyOptions)});s++,s<t.lengthThreshold?e({level:d,trace:A,payload:T}):s===t.lengthThreshold&&e({level:"warn",trace:[],payload:[Xt("The number of log records reached the threshold.")]})}catch(F){_.apply(void 0,[].concat(["rrweb logger error:",F],C))}finally{a=!1}}}}):function(){}}}var Og="rrweb/console@1",xg=function(e){return{name:Og,observer:kg,options:e}},Ec=I.setImmediate,ct,Wo,qo,kc=Object.prototype.toString,Rg=typeof Ec!="undefined"?function(n){return Ec(n)}:setTimeout;try{Object.defineProperty({},"x",{}),ct=function(n,i,t,r){return Object.defineProperty(n,i,{value:t,writable:!0,configurable:r!==!1})}}catch(e){ct=function(i,t,r){return i[t]=r,i}}qo=function(){var n,i,t;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){t=new r(s,a),i?i.next=t:n=t,i=t,t=void 0},drain:function(){var s=n;for(n=i=Wo=void 0;s;)s.fn.call(s.self),s=s.next}}}();function Qn(e,n){qo.add(e,n),Wo||(Wo=Rg(qo.drain))}function Oc(e){var n,i=typeof e;return e!==null&&(i==="object"||i==="function")&&(n=e.then),typeof n=="function"?n:!1}function Go(){for(var e=0;e<this.chain.length;e++)Ag(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Ag(e,n,i){var t,r;try{n===!1?i.reject(e.msg):(n===!0?t=e.msg:t=n.call(void 0,e.msg),t===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=Oc(t))?r.call(t,i.resolve,i.reject):i.resolve(t))}catch(o){i.reject(o)}}function xc(e){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=Oc(e))?Qn(function(){var t=new Ac(i);try{n.call(e,function(){xc.apply(t,arguments)},function(){Tr.apply(t,arguments)})}catch(r){Tr.call(t,r)}}):(i.msg=e,i.state=1,i.chain.length>0&&Qn(Go,i))}catch(t){Tr.call(new Ac(i),t)}}}function Tr(e){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=e,n.state=2,n.chain.length>0&&Qn(Go,n))}function Rc(e,n,i,t){for(var r=0;r<n.length;r++)(function(s){e.resolve(n[s]).then(function(u){i(s,u)},t)})(r)}function Ac(e){this.def=e,this.triggered=!1}function Mg(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function lt(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new Mg(this);this.then=function(t,r){var o={success:typeof t=="function"?t:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&Qn(Go,n),o.promise},this.catch=function(t){return this.then(void 0,t)};try{e.call(void 0,function(t){xc.call(n,t)},function(t){Tr.call(n,t)})}catch(i){Tr.call(n,i)}}var Mc=ct({},"constructor",lt,!1);lt.prototype=Mc,ct(Mc,"__NPO__",0,!1),ct(lt,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})}),ct(lt,"reject",function(n){return new this(function(t,r){if(typeof t!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),ct(lt,"all",function(n){var i=this;return kc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;Rc(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),ct(lt,"race",function(n){var i=this;return kc.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");Rc(i,n,function(a,u){r(u)},o)})});var V;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?V=Promise:V=lt;var Ne={DEBUG:!1,LIB_VERSION:"2.73.0"},Pr=24*60*60*1e3,Vo=8*1e3,ei=Array.prototype,Tg=Function.prototype,Tc=Object.prototype,ft=ei.slice,Nr=Tc.toString,ti=Tc.hasOwnProperty,de=I.console,Xe=I.navigator,L=I.document,Lr=I.opera,Pc=I.screen,ze=Xe.userAgent,jo=Tg.bind,Nc=ei.forEach,Lc=ei.indexOf,Dc=ei.map,Pg=Array.isArray,Ho={},h={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},$={log:function(){if(Ne.DEBUG&&!h.isUndefined(de)&&de)try{de.log.apply(de,arguments)}catch(e){h.each(arguments,function(n){de.log(n)})}},warn:function(){if(Ne.DEBUG&&!h.isUndefined(de)&&de){var e=["Mixpanel warning:"].concat(h.toArray(arguments));try{de.warn.apply(de,e)}catch(n){h.each(e,function(i){de.warn(i)})}}},error:function(){if(Ne.DEBUG&&!h.isUndefined(de)&&de){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{de.error.apply(de,e)}catch(n){h.each(e,function(i){de.error(i)})}}},critical:function(){if(!h.isUndefined(de)&&de){var e=["Mixpanel error:"].concat(h.toArray(arguments));try{de.error.apply(de,e)}catch(n){h.each(e,function(i){de.error(i)})}}}},Yo=function(e,n){return function(){return arguments[0]="["+n+"] "+arguments[0],e.apply($,arguments)}},It=function(e){return{log:Yo($.log,e),error:Yo($.error,e),critical:Yo($.critical,e)}},Dr=function(e){return function(){try{return e.apply(this,arguments)}catch(n){$.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Ne.DEBUG&&$.critical(n)}}},$c=function(e){var n=e.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Dr(n[i]))};h.bind=function(e,n){var i,t;if(jo&&e.bind===jo)return jo.apply(e,ft.call(arguments,1));if(!h.isFunction(e))throw new TypeError;return i=ft.call(arguments,2),t=function(){if(!(this instanceof t))return e.apply(n,i.concat(ft.call(arguments)));var r={};r.prototype=e.prototype;var o=new r;r.prototype=null;var s=e.apply(o,i.concat(ft.call(arguments)));return Object(s)===s?s:o},t},h.each=function(e,n,i){if(e!=null){if(Nc&&e.forEach===Nc)e.forEach(n,i);else if(e.length===+e.length){for(var t=0,r=e.length;t<r;t++)if(t in e&&n.call(i,e[t],t,e)===Ho)return}else for(var o in e)if(ti.call(e,o)&&n.call(i,e[o],o,e)===Ho)return}},h.extend=function(e){return h.each(ft.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(e[i]=n[i])}),e},h.isArray=Pg||function(e){return Nr.call(e)==="[object Array]"},h.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(n){return!1}},h.isArguments=function(e){return!!(e&&ti.call(e,"callee"))},h.toArray=function(e){return e?e.toArray?e.toArray():h.isArray(e)||h.isArguments(e)?ft.call(e):h.values(e):[]},h.map=function(e,n,i){if(Dc&&e.map===Dc)return e.map(n,i);var t=[];return h.each(e,function(r){t.push(n.call(i,r))}),t},h.keys=function(e){var n=[];return e===null||h.each(e,function(i,t){n[n.length]=t}),n},h.values=function(e){var n=[];return e===null||h.each(e,function(i){n[n.length]=i}),n},h.include=function(e,n){var i=!1;return e===null?i:Lc&&e.indexOf===Lc?e.indexOf(n)!=-1:(h.each(e,function(t){if(i||(i=t===n))return Ho}),i)},h.includes=function(e,n){return e.indexOf(n)!==-1},h.inherit=function(e,n){return e.prototype=new n,e.prototype.constructor=e,e.superclass=n.prototype,e},h.isObject=function(e){return e===Object(e)&&!h.isArray(e)},h.isEmptyObject=function(e){if(h.isObject(e)){for(var n in e)if(ti.call(e,n))return!1;return!0}return!1},h.isUndefined=function(e){return e===void 0},h.isString=function(e){return Nr.call(e)=="[object String]"},h.isDate=function(e){return Nr.call(e)=="[object Date]"},h.isNumber=function(e){return Nr.call(e)=="[object Number]"},h.isElement=function(e){return!!(e&&e.nodeType===1)},h.encodeDates=function(e){return h.each(e,function(n,i){h.isDate(n)?e[i]=h.formatDate(n):h.isObject(n)&&(e[i]=h.encodeDates(n))}),e},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(e){function n(i){return i<10?"0"+i:i}return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())},h.strip_empty_properties=function(e){var n={};return h.each(e,function(i,t){h.isString(i)&&i.length>0&&(n[t]=i)}),n},h.truncate=function(e,n){var i;return typeof e=="string"?i=e.slice(0,n):h.isArray(e)?(i=[],h.each(e,function(t){i.push(h.truncate(t,n))})):h.isObject(e)?(i={},h.each(e,function(t,r){i[r]=h.truncate(t,n)})):i=e,i},h.JSONEncode=function(){return function(e){var n=e,i=function(r){var o=/[\\"\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 o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},t=function(r,o){var s="",a=" ",u=0,c="",l="",f=0,p=s,g=[],v=o[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(s+=a,g=[],Nr.apply(v)==="[object Array]"){for(f=v.length,u=0;u<f;u+=1)g[u]=t(u,v)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+p+"]":"["+g.join(",")+"]",s=p,l}for(c in v)ti.call(v,c)&&(l=t(c,v),l&&g.push(i(c)+(s?": ":":")+l));return l=g.length===0?"{}":s?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",s=p,l}};return t("",{"":n})}}(),h.JSONDecode=function(){var e,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},t,r=function(g){var v=new SyntaxError(g);throw v.at=e,v.text=t,v},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=t.charAt(e),e+=1,n},s=function(){var g,v="";for(n==="-"&&(v="-",o("-"));n>="0"&&n<="9";)v+=n,o();if(n===".")for(v+=".";o()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,o(),(n==="-"||n==="+")&&(v+=n,o());n>="0"&&n<="9";)v+=n,o();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,y="",d;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(o(),16),!!isFinite(g));v+=1)d=d*16+g;y+=String.fromCharCode(d)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},p=function(){var g,v={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),v;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=l(),u(),n==="}")return o("}"),v;o(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var v;return t=g,e=0,n=" ",v=l(),u(),n&&r("Syntax error"),v}}(),h.base64Encode=function(e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,t,r,o,s,a,u,c,l=0,f=0,p="",g=[];if(!e)return e;e=h.utf8Encode(e);do i=e.charCodeAt(l++),t=e.charCodeAt(l++),r=e.charCodeAt(l++),c=i<<16|t<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<e.length);switch(p=g.join(""),e.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,t,r=0,o;for(i=t=0,r=e.length,o=0;o<r;o++){var s=e.charCodeAt(o),a=null;s<128?t++: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&&(t>i&&(n+=e.substring(i,t)),n+=a,i=t=o+1)}return t>i&&(n+=e.substring(i,e.length)),n},h.UUID=function(){try{return I.crypto.randomUUID()}catch(i){for(var e=new Array(36),n=0;n<36;n++)e[n]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",h.map(e,function(t){return t.toString(16)}).join("")}};var Fc=["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"];h.isBlockedUA=function(e){var n;for(e=e.toLowerCase(),n=0;n<Fc.length;n++)if(e.indexOf(Fc[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(e,n){var i,t,r=[];return h.isUndefined(n)&&(n="&"),h.each(e,function(o,s){i=encodeURIComponent(o.toString()),t=encodeURIComponent(s),r[r.length]=t+"="+i}),r.join(n)},h.getQueryParam=function(e,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",t=new RegExp(i),r=t.exec(e);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){$.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},h.cookie={get:function(e){for(var n=e+"=",i=L.cookie.split(";"),t=0;t<i.length;t++){for(var r=i[t];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(e){var n;try{n=h.JSONDecode(h.cookie.get(e))||{}}catch(i){}return n},set_seconds:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=zc(L.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),L.cookie=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(e,n,i,t,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(t){var l=zc(L.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=e+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return L.cookie=p,p},remove:function(e,n,i){h.cookie.set(e,"",-1,n,!1,!1,i)}};var Uc=function(e){var n=!0;try{var i="__mplss_"+Jo(8),t="xyz";e.setItem(i,t),e.getItem(i)!==t&&(n=!1),e.removeItem(i)}catch(r){n=!1}return n},Ko=null,$r=function(e,n){return Ko!==null&&!n?Ko:Ko=Uc(e||I.localStorage)},Xo=null,Ng=function(e,n){return Xo!==null&&!n?Xo:Xo=Uc(e||I.sessionStorage)};function Bc(e,n,i){var t=function(r){$.error(n+" error: "+r)};return{is_supported:function(r){var o=i(e,r);return o||$.error(n+" unsupported"),o},error:t,get:function(r){try{return e.getItem(r)}catch(o){t(o)}return null},parse:function(r){try{return h.JSONDecode(e.getItem(r))||{}}catch(o){}return null},set:function(r,o){try{e.setItem(r,o)}catch(s){t(s)}},remove:function(r){try{e.removeItem(r)}catch(o){t(o)}}}}h.localStorage=Bc(I.localStorage,"localStorage",$r),h.sessionStorage=Bc(I.sessionStorage,"sessionStorage",Ng),h.register_event=function(){var e=function(t,r,o,s,a){if(!t){$.error("No valid element provided to register_event");return}if(t.addEventListener&&!s)t.addEventListener(r,o,!!a);else{var u="on"+r,c=t[u];t[u]=n(t,o,c)}};function n(t,r,o){var s=function(a){if(a=a||i(I.event),!!a){var u=!0,c,l;return h.isFunction(o)&&(c=o(a)),l=r.call(t,a),(c===!1||l===!1)&&(u=!1),u}};return s}function i(t){return t&&(t.preventDefault=i.preventDefault,t.stopPropagation=i.stopPropagation),t}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},e}();var Lg=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=function(){function e(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function t(r){if(!L.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,p,g,v,y,d=[L];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],_=L.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=e(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];for(d=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],w)&&(d[y++]=c[p]);continue}var S=s.match(Lg);if(S){u=S[1];var C=S[2],k=S[3],A=S[4];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=e(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=[],y=0;var x;switch(k){case"=":x=function(T){return T.getAttribute(C)==A};break;case"~":x=function(T){return T.getAttribute(C).match(new RegExp("\\b"+A+"\\b"))};break;case"|":x=function(T){return T.getAttribute(C).match(new RegExp("^"+A+"-?"))};break;case"^":x=function(T){return T.getAttribute(C).indexOf(A)===0};break;case"$":x=function(T){return T.getAttribute(C).lastIndexOf(A)==T.getAttribute(C).length-A.length};break;case"*":x=function(T){return T.getAttribute(C).indexOf(A)>-1};break;default:x=function(T){return T.getAttribute(C)}}for(d=[],y=0,p=0;p<c.length;p++)x(c[p])&&(d[y++]=c[p]);continue}for(u=s,c=[],l=0,p=0;p<d.length;p++)for(v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=c}return d}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:t.call(this,r)}}();var Dg=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],$g=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(e){var n="",i={};return h.each(Dg,function(t){n=h.getQueryParam(L.URL,t),n.length?i[t]=n:e!==void 0&&(i[t]=e)}),i},clickParams:function(){var e="",n={};return h.each($g,function(i){e=h.getQueryParam(L.URL,i),e.length&&(n[i]=e)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var n=h.info.searchEngine(e),i=n!="yahoo"?"q":"p",t={};if(n!==null){t.$search_engine=n;var r=h.getQueryParam(e,i);r.length&&(t.mp_keyword=r)}return t},browser:function(e,n,i){return n=n||"",i||h.includes(e," OPR/")?h.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":h.includes(e,"IEMobile")||h.includes(e,"WPDesktop")?"Internet Explorer Mobile":h.includes(e,"SamsungBrowser/")?"Samsung Internet":h.includes(e,"Edge")||h.includes(e,"Edg/")?"Microsoft Edge":h.includes(e,"FBIOS")?"Facebook Mobile":h.includes(e,"Whale/")?"Whale Browser":h.includes(e,"Chrome")?"Chrome":h.includes(e,"CriOS")?"Chrome iOS":h.includes(e,"UCWEB")||h.includes(e,"UCBrowser")?"UC Browser":h.includes(e,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(e,"Mobile")?"Mobile Safari":"Safari":h.includes(e,"Android")?"Android Mobile":h.includes(e,"Konqueror")?"Konqueror":h.includes(e,"Firefox")?"Firefox":h.includes(e,"MSIE")||h.includes(e,"Trident/")?"Internet Explorer":h.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,n,i){var t=h.info.browser(e,n,i),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+)?)/},o=r[t];if(o===void 0)return null;var s=e.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var e=ze;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var n=e.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return I.location.href},properties:function(e){return typeof e!="object"&&(e={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Xe.vendor,Lr),$referrer:L.referrer,$referring_domain:h.info.referringDomain(L.referrer),$device:h.info.device(ze)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(ze,Xe.vendor,Lr),$screen_height:Pc.height,$screen_width:Pc.width,mp_lib:"web",$lib_version:Ne.LIB_VERSION,$insert_id:Jo(),time:h.timestamp()/1e3},h.strip_empty_properties(e))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(ze,Xe.vendor,Lr)}),{$browser_version:h.info.browserVersion(ze,Xe.vendor,Lr)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:L.title,current_domain:I.location.hostname,current_url_path:I.location.pathname,current_url_protocol:I.location.protocol,current_url_search:I.location.search})}};var Fg=function(e,n){var i=null,t=[];return function(r){var o=this;return t.push(r),i||(i=new V(function(s){setTimeout(function(){var a=e.apply(o,[t]);i=null,t=[],s(a)},n)})),i}},Jo=function(e){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?n.substring(0,e):n},Ug=function(){var e=h.UUID().replace(/-/g,""),n=h.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+e+"-"+n+"-"+i},Bg=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,zg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,zc=function(e){var n=zg,i=e.split("."),t=i[i.length-1];(t.length>4||t==="com"||t==="org")&&(n=Bg);var r=e.match(n);return r?r[0]:""},Wg=function(){var e=I.navigator.onLine;return h.isUndefined(e)||e},ht=function(){},Jt=null,ri=null;typeof JSON!="undefined"&&(Jt=JSON.stringify,ri=JSON.parse),Jt=Jt||h.JSONEncode,ri=ri||h.JSONDecode;var qg=function(e,n,i){if(!I.CompressionStream)return!1;var t=h.info.browser(e,n,i),r=h.info.browserVersion(e,n,i);return!((t==="Safari"||t==="Mobile Safari")&&r>=16.4&&r<16.6)};h.info=h.info,h.info.browser=h.info.browser,h.info.browserVersion=h.info.browserVersion,h.info.device=h.info.device,h.info.properties=h.info.properties,h.isBlockedUA=h.isBlockedUA,h.isEmptyObject=h.isEmptyObject,h.isObject=h.isObject,h.JSONDecode=h.JSONDecode,h.JSONEncode=h.JSONEncode,h.toArray=h.toArray,h.NPO=lt;var Gg="mixpanelBrowserDb",Wc="mixpanelRecordingEvents",Zo="mixpanelRecordingRegistry",Vg=1,jg=[Wc,Zo],$e=function(e){this.dbPromise=null,this.storeName=e};$e.prototype._openDb=function(){return new V(function(e,n){var i=I.indexedDB.open(Gg,Vg);i.onerror=function(){n(i.error)},i.onsuccess=function(){e(i.result)},i.onupgradeneeded=function(t){var r=t.target.result;jg.forEach(function(o){r.createObjectStore(o)})}})},$e.prototype.init=function(){return I.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof I.IDBDatabase?V.resolve():V.reject(e)})):V.reject("indexedDB is not supported in this browser")},$e.prototype.isInitialized=function(){return!!this.dbPromise},$e.prototype.makeTransaction=function(e,n){var i=this.storeName,t=function(r){return new V(function(o,s){var a=r.transaction(i,e);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(t).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(t)):V.reject(r)}.bind(this))},$e.prototype.setItem=function(e,n){return this.makeTransaction("readwrite",function(i){i.put(n,e)})},$e.prototype.getItem=function(e){var n;return this.makeTransaction("readonly",function(i){n=i.get(e)}).then(function(){return n.result})},$e.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(n){n.delete(e)})},$e.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(n){e=n.getAll()}).then(function(){return e.result})};var Hg="__mp_opt_in_out_";function Yg(e,n){Vc(!0,e,n)}function Kg(e,n){Vc(!1,e,n)}function Xg(e,n){return Gc(e,n)==="1"}function qc(e,n){if(Zg(n))return $.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 i=Gc(e,n)==="0";return i&&$.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function pt(e){return ts(e,function(n){return this.get_config(n)})}function dt(e){return ts(e,function(n){return this._get_config(n)})}function Zt(e){return ts(e,function(n){return this._get_config(n)})}function Jg(e,n){n=n||{},Qo(n).remove(es(e,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Qo(e){return e=e||{},e.persistenceType==="localStorage"?h.localStorage:h.cookie}function es(e,n){return n=n||{},(n.persistencePrefix||Hg)+e}function Gc(e,n){return Qo(n).get(es(e,n))}function Zg(e){if(e&&e.ignoreDnt)return!1;var n=e&&e.window||I,i=n.navigator||{},t=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(t=!0)}),t}function Vc(e,n,i){if(!h.isString(n)||!n.length){$.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}i=i||{},Qo(i).set(es(n,i),e?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&e&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function ts(e,n){return function(){var i=!1;try{var t=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");t&&(i=qc(t,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){$.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return e.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Qg=It("lock"),jc=function(e,n){n=n||{},this.storageKey=e,this.storage=n.storage||I.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||V};jc.prototype.withLock=function(e,n){var i=this.promiseImpl;return new i(h.bind(function(t,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",v=function(w){if(new Date().getTime()-s>c){Qg.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{w()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(w,S){w()?S():v(function(){y(w,S)})},d=function(){var w=l.getItem(p);return w&&w!==o?!1:(l.setItem(p,o),l.getItem(p)===o?!0:($r(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(d,function(){if(l.getItem(f)===o){_();return}v(function(){if(l.getItem(p)!==o){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var w=function(){l.removeItem(g),l.getItem(p)===o&&l.removeItem(p),l.getItem(f)===o&&l.removeItem(f)};e().then(function(S){w(),t(S)}).catch(function(S){w(),r(S)})};try{if($r(l,!0))m();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var Qt=function(e){this.storage=e||I.localStorage};Qt.prototype.init=function(){return V.resolve()},Qt.prototype.isInitialized=function(){return!0},Qt.prototype.setItem=function(e,n){return new V(h.bind(function(i,t){try{this.storage.setItem(e,Jt(n))}catch(r){t(r)}i()},this))},Qt.prototype.getItem=function(e){return new V(h.bind(function(n,i){var t;try{t=ri(this.storage.getItem(e))}catch(r){i(r)}n(t)},this))},Qt.prototype.removeItem=function(e){return new V(h.bind(function(n,i){try{this.storage.removeItem(e)}catch(t){i(t)}n()},this))};var Hc=It("batch"),We=function(e,n){n=n||{},this.storageKey=e,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Qt,this.lock=new jc(e,{storage:n.sharedLockStorage||I.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Hc.error,Hc),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=Fg(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};We.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?V.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},We.prototype.enqueue=function(e,n){var i={id:Jo(),flushAfter:new Date().getTime()+n*2,payload:e};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),V.resolve(!0))},We.prototype._enqueuePersisted=function(e){var n=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return this.saveToStorage(i.concat(e))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(e)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},We.prototype.fillBatch=function(e){var n=this.memQueue.slice(0,e);return this.usePersistence&&n.length<e?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var t={};h.each(n,function(s){t[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!t[o.id]&&(o.orphaned=!0,n.push(o),n.length>=e))break}}return n},this)):V.resolve(n)};var Yc=function(e,n){var i=[];return h.each(e,function(t){t.id&&!n[t.id]&&i.push(t)}),i};We.prototype.removeItemsByID=function(e){var n={};if(h.each(e,function(t){n[t]=!0}),this.memQueue=Yc(this.memQueue,n),this.usePersistence){var i=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){return t=Yc(t,n),this.saveToStorage(t)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(t){for(var r=0;r<t.length;r++){var o=t[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(t){return this.reportError("Error acquiring storage lock",t),$r(this.lock.storage,!0)?!1:i().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return V.resolve(!0)};var Kc=function(e,n){var i=[];return h.each(e,function(t){var r=t.id;if(r in n){var o=n[r];o!==null&&(t.payload=o,i.push(t))}else i.push(t)}),i};We.prototype.updatePayloads=function(e){return this.memQueue=Kc(this.memQueue,e),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return i=Kc(i,e),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",e,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):V.resolve(!0)},We.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(e){return e&&(h.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(h.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},We.prototype.saveToStorage=function(e){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},We.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):V.resolve()};var em=10*60*1e3,Fr=It("batch"),Le=function(e,n){this.errorReporter=n.errorReporter,this.queue=new We(e,{errorReporter:h.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};Le.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Le.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Le.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Le.prototype.clear=function(){return this.queue.clear()},Le.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Le.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Le.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Le.prototype.sendRequestPromise=function(e,n){return new V(h.bind(function(i){this.sendRequest(e,n,i)},this))},Le.prototype.flush=function(e){if(this.requestInProgress)return Fr.log("Flush: Request already in progress"),V.resolve();this.requestInProgress=!0,e=e||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),t=this.batchSize;return this.queue.fillBatch(t).then(h.bind(function(r){var o=r.length===t,s=[],a={};if(h.each(r,function(f){var p=f.payload;if(this.beforeSendHook&&!f.orphaned&&(p=this.beforeSendHook(p)),p){p.event&&p.properties&&(p.properties=h.extend({},p.properties,{mp_sent_by_lib_version:Ne.LIB_VERSION}));var g=!0,v=f.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&s.push(p)}a[f.id]=p},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),V.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),V.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),V.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(h.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!Wg()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(em,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),V.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(t/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),V.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return e.unloading&&(l.transport="sendBeacon"),Fr.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Le.prototype.reportError=function(e,n){if(Fr.error.apply(Fr.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(e)),this.errorReporter(e,n)}catch(i){Fr.error(i)}};var rs=function(e){var n=Date.now();return!e||n>e.maxExpires||n>e.idleExpires},tm=250,er=It("recorder"),rm=I.CompressionStream,nm={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},im=new Set([N.MouseMove,N.MouseInteraction,N.Scroll,N.ViewportResize,N.Input,N.TouchMove,N.MediaInteraction,N.Drag,N.Selection]);function om(e){return e.type===G.IncrementalSnapshot&&im.has(e.data.source)}var me=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||ht,this._onMaxLengthReached=e.onMaxLengthReached||ht,this._onBatchSent=e.onBatchSent||ht,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Pr,this.recordMinMs=0;var n=$r(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new $e(Wc),this.batcher=new Le(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:nm,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:tm,sharedLockTimeoutMS:10*1e3})};me.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(e.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(e.$user_id=i),e},me.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))},me.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},me.prototype.get_config=function(e){return this.getConfig(e)},me.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){er.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Pr&&(this.recordMaxMs=Pr,er.critical("record_max_ms cannot be greater than "+Pr+"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=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),e||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 i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(r){if(this.idleExpires&&this.idleExpires<r.timestamp){this._onIdleTimeout();return}om(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:i,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")?[xg({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 t=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),t)},me.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():e||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},me.prototype.isRrwebStopped=function(){return this._stopRecording===null},me.prototype.flushEventsWithOptOut=function(e,n,i){var t=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,n,i,t)},me.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),e=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:e}},me.deserialize=function(e,n){var i=new me(h.extend({},n,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},me.prototype._sendRequest=function(e,n,i,t){var r=function(s,a){s.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),t({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");I.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){t({error:a})})}).catch(function(s){t({error:s,httpStatusCode:0})})},me.prototype._flushEvents=pt(function(e,n,i){var t=e.length;if(t>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<t;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===G.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}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=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Ne.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);if(Object.assign(l,this.getUserIdInfo()),qg(ze,Xe.vendor,Lr)){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new rm("gzip"));new Response(g).blob().then(function(v){l.format="gzip",this._sendRequest(r,l,v,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),me.prototype.reportError=function(e,n){er.error.apply(er.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,n)}catch(i){er.error(i)}},me.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},me.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>Vo?(er.critical("record_min_ms cannot be greater than "+Vo+"ms. Capping value."),Vo):e};var Je=function(e){this.idb=new $e(Zo),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Je.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Je.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Je.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return V.resolve();var n=e.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),V.resolve())},Je.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return rs(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):V.resolve(null)},Je.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Je.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Je.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):V.resolve()},Je.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var n=e.filter(function(i){return rs(i)}).map(function(i){var t=me.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return t.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return V.all(n)}.bind(this)).catch(this.handleError.bind(this)):V.resolve([])};var Ur=It("recorder"),Ze=function(e,n,i){this.mixpanelInstance=e,this.rrwebRecord=n||ut,this.sharedLockStorage=i,this.recordingRegistry=new Je({mixpanelInstance:this.mixpanelInstance,errorReporter:Ur.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ze.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Ur.log("Recording already in progress, skipping startRecording.");return}var n=function(){Ur.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){Ur.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),t=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:t,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=me.deserialize(e.activeSerializedRecording,r):this.activeRecording=new me(r),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ze.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))},Ze.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ze.prototype._stopCurrentRecording=function(e,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(e);return n&&(this.activeRecording=null),i}return V.resolve()},Ze.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),V.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):e?this.startRecording({shouldStopBatcher:!1}):(Ur.log("No resumable recording found."),null)}.bind(this))},Ze.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ze.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Ze.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),I.__mp_recorder=Ze;var Br="change",Qe="click",ns="hashchange",sm="input",Xc="load",vt="mp_locationchange",Jc="popstate",ni="scrollend",is="scroll",am="select",ii="submit",um="toggle",Zc="visibilitychange",cm=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Qc=["mp-include"],os=["mp-no-track"],el=os.concat(["mp-sensitive"]),lm=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],fm={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},hm={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},pm={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},tl=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],dm=5,te=It("autocapture");function ss(e){for(var n={},i=rl(e).split(" "),t=0;t<i.length;t++){var r=i[t];r&&(n[r]=!0)}return n}function rl(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function vm(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!ol(e));return e}function nl(e,n,i,t,r,o){var s={$classes:rl(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),cs(e,n,r,o)&&h.each(lm.concat(t),function(f){if(e.hasAttribute(f)&&!i[f]){var p=e.getAttribute(f);oi(p)&&(s["$attr-"+f]=p)}});for(var u=1,c=1,l=e;l=vm(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function gm(e,n){var i=n.allowElementCallback,t=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(C){l[C]=!0});var f=null,p=typeof e.target=="undefined"?e.srcElement:e.target;if(sl(p)&&(p=p.parentNode),bm(p,e)&&as(p,e,i,t)&&!us(p,e,o,s)){for(var g=[p],v=p;v.parentNode&&!qe(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(h.each(g,function(C){var k=cs(C,e,i,t);!l.href&&C.tagName.toLowerCase()==="a"&&(d=C.getAttribute("href"),d=k&&oi(d)&&d),us(C,e,o,s)&&(m=!0),y.push(nl(C,e,l,u,i,t))},this),!m){var _=L.documentElement;if(f={$event_type:e.type,$host:I.location.host,$pathname:I.location.pathname,$elements:y,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,I.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,I.innerWidth||0),$pageHeight:L.body.offsetHeight||0,$pageWidth:L.body.offsetWidth||0},h.each(u,function(C){if(!l[C]&&p.hasAttribute(C)){var k=p.getAttribute(C);oi(k)&&(f["$el_attr__"+C]=k)}}),a&&(w=il(p,e,i,t),w&&w.length&&(f.$el_text=w)),e.type===Qe&&(h.each(cm,function(C){C in e&&(f["$"+C]=e[C])}),c&&(f.$captured_for_heatmap=!0),p=mm(e)),a){var w=il(p,e,i,t);w&&w.length&&(f.$el_text=w)}if(p){if(!as(p,e,i,t)||us(p,e,o,s))return null;var S=nl(p,e,l,u,i,t);f.$target=S,f.$el_classes=S.$classes,h.extend(f,h.strip_empty_properties({$el_id:S.$id,$el_tag_name:S.$tag_name}))}}}return f}function il(e,n,i,t){var r="";return cs(e,n,i,t)&&e.childNodes&&e.childNodes.length&&h.each(e.childNodes,function(o){sl(o)&&o.textContent&&(r+=h.trim(o.textContent).split(/(\s+)/).filter(oi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function mm(e){for(var n=e.target,i=e.composedPath(),t=0;t<i.length;t++){var r=i[t];if(qe(r,"a")||qe(r,"button")||qe(r,"input")||qe(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function as(e,n,i,t){if(i)try{if(!i(e,n))return!1}catch(s){return te.critical("Error while checking element in allowElementCallback",s),!1}if(!t.length)return!0;for(var r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(s){te.critical("Error while checking selector: "+o,s)}}return!1}function us(e,n,i,t){var r;if(i)try{if(i(e,n))return!0}catch(a){return te.critical("Error while checking element in blockElementCallback",a),!0}if(t&&t.length)for(r=0;r<t.length;r++){var o=t[r];try{if(e.matches(o))return!0}catch(a){te.critical("Error while checking selector: "+o,a)}}var s=ss(e);for(r=0;r<os.length;r++)if(s[os[r]])return!0;return!1}function ol(e){return e&&e.nodeType===1}function qe(e,n){return e&&e.tagName&&e.tagName.toLowerCase()===n.toLowerCase()}function sl(e){return e&&e.nodeType===3}function ym(){try{var e=L.createElement("div");return!!e.matches}catch(n){return!1}}function _m(){return typeof WeakSet!="undefined"}function bm(e,n){if(!e||qe(e,"html")||!ol(e))return!1;var i=e.tagName.toLowerCase();switch(i){case"form":return n.type===ii;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?n.type===Br:n.type===Qe;case"select":case"textarea":return n.type===Br;default:return n.type===Qe}}function cs(e,n,i,t){var r;if(!as(e,n,i,t))return!1;for(var o=e;o.parentNode&&!qe(o,"body");o=o.parentNode){var s=ss(o);for(r=0;r<el.length;r++)if(s[el[r]])return!1}var a=ss(e);for(r=0;r<Qc.length;r++)if(a[Qc[r]])return!0;if(qe(e,"input")||qe(e,"select")||qe(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var u=e.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}var c=e.name||e.id||"";if(typeof c=="string"){var l=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(l.test(c.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function oi(e){if(e===null||h.isUndefined(e))return!1;if(typeof e=="string"){e=h.trim(e);var n=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(n.test((e||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(e))return!1}return!0}function al(e){var n="onscrollend"in I,i=Dr(e),t=ni;if(!n){var r=null,o=100;i=Dr(function(){clearTimeout(r),r=setTimeout(e,o)}),t=is}return{listener:i,eventType:t}}function wm(e){for(var n=0;n<tl.length;n++)if(e.hasAttribute(tl[n]))return!0;return!1}function Sm(e){var n=e.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return fm[i]}function ls(e){var n=e.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||wm(e)||Sm(e)||n==="a"&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function ul(e){if(!e||!e.tagName)return!0;var n=e.tagName.toLowerCase();if(hm[n])return!0;if(ls(e))return!1;for(var i=e.parentElement,t=0;i&&t<dm;){if(ls(i))return!1;if(i.getRootNode&&i.getRootNode()!==L){var r=i.getRootNode();if(r.host&&ls(r.host))return!1}i=i.parentElement,t++}return!!pm[n]}function cl(e){return"composedPath"in e?e.composedPath():[]}function ll(e){var n=cl(e);return n&&n.length>0?n[0]:e.target||e.srcElement}var Cm=30,Im=1e3,Em=4,km=!1;function fl(){this.clicks=[]}fl.prototype.isRageClick=function(e,n){n=n||{};var i=n.threshold_px||Cm,t=n.timeout_ms||Im,r=n.click_count||Em,o=n.interactive_elements_only||km;if(o){var s=ll(e);if(!s||ul(s))return!1}var a=Date.now(),u=e.pageX,c=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<t&&Math.sqrt(Math.pow(u-l.x,2)+Math.pow(c-l.y,2))<i){if(this.clicks.push({x:u,y:c,timestamp:a}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:u,y:c,timestamp:a}];return!1};function tr(e,n){this.changeCallback=e||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}tr.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return ll(e)},tr.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var n=cl(e),i=0;i<n.length;i++){var t=n[i];t&&t.shadowRoot&&this.observeShadowRoot(t.shadowRoot)}},tr.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var n=this;try{this.observedShadowRoots.add(e);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(e,this.observerConfig),this.shadowObservers.push(i)}catch(t){te.critical("Error while observing shadow root",t)}}},tr.prototype.start=function(){if(!this.observedShadowRoots){if(!_m()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},tr.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(n){te.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var Om=500,xm=[Br,sm,ii,am,um],Rm=[ni],Am=[ns],hl={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Ge(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}Ge.prototype.addClick=function(e){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return n||(n=e.target||e.srcElement),!n||ul(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:n,event:e,timestamp:Date.now()}),!0)},Ge.prototype.trackClick=function(e,n){if(!this.isTracking)return!1;var i=this.addClick(e);return i&&this.triggerProcessing(n),i},Ge.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var n=e.timeout_ms,i=Date.now(),t=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],o=0;o<t.length;o++){var s=t[o];i-s.timestamp>=n?this.hasChangesAfter(s.timestamp)||r.push(s):this.pendingClicks.push(s)}return r},Ge.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Ge.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Ge.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Ge.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=e.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var t=i.getDeadClicks(e),r=0;r<t.length;r++)i.onDeadClickCallback(t[r].event);i.pendingClicks.length>0?i.processRecursively(e):i.processingActive=!1}},n)},Ge.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;xm.forEach(function(i){var t=function(){e.recordChangeEvent()};document.addEventListener(i,t,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:i,handler:t,options:{capture:!0,passive:!0}})}),Am.forEach(function(i){var t=function(){e.recordChangeEvent()};window.addEventListener(i,t),e.eventListeners.push({target:window,event:i,handler:t})}),Rm.forEach(function(i){var t=function(){e.recordChangeEvent()};window.addEventListener(i,t,{passive:!0}),e.eventListeners.push({target:window,event:i,handler:t,options:{passive:!0}})});var n=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",n),e.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,hl)}catch(i){te.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new tr(function(){e.recordChangeEvent()},hl),this.shadowDOMObserver.start()}catch(i){te.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},Ge.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var n=this.eventListeners[e];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){te.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){te.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){te.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var pl="autocapture",Mm="track_pageview",dl="full-url",Tm="url-with-path-and-query-string",Pm="url-with-path",Nm="allow_element_callback",vl="allow_selectors",gl="allow_url_regexes",ml="block_attrs",yl="block_element_callback",_l="block_selectors",bl="block_url_regexes",wl="capture_extra_attrs",Sl="capture_text_content",Cl="scroll_capture_all",Il="scroll_depth_percent_checkpoints",si="click",ai="dead_click",fs="input",El="pageview",ui="rage_click",hs="scroll",ci="page_leave",ps="submit",ve={};ve[vl]=[],ve[gl]=[],ve[ml]=[],ve[yl]=null,ve[_l]=[],ve[bl]=[],ve[wl]=[],ve[Sl]=!1,ve[Cl]=!1,ve[Il]=[25,50,75,100],ve[si]=!0,ve[ai]=!0,ve[fs]=!0,ve[El]=dl,ve[ui]=!0,ve[hs]=!0,ve[ci]=!1,ve[ps]=!0;var zr={$mp_autocapture:!0},kl="$mp_click",Ol="$mp_dead_click",Lm="$mp_input_change",xl="$mp_rage_click",Dm="$mp_scroll",$m="$mp_submit",Fm="$mp_page_leave",he=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};he.prototype.init=function(){if(!ym()){te.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},he.prototype.getFullConfig=function(){var e=this.mp.get_config(pl);return e?h.isObject(e)?h.extend({},ve,e):ve:{}},he.prototype.getConfig=function(e){return this.getFullConfig()[e]},he.prototype.currentUrlBlocked=function(){var e,n=h.info.currentUrl(),i=this.getConfig(gl)||[];if(i.length){var t=!1;for(e=0;e<i.length;e++){var r=i[e];try{if(n.match(r)){t=!0;break}}catch(s){return te.critical("Error while checking block URL regex: "+r,s),!0}}if(!t)return!0}var o=this.getConfig(bl)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(n.match(o[e]))return!0}catch(s){return te.critical("Error while checking block URL regex: "+o[e],s),!0}return!1},he.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(pl)?this.getConfig(El):this.mp.get_config(Mm)},he.prototype.trackDomEvent=function(e,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===kl&&!this.getConfig(si)||n===xl&&!this._getClickTrackingConfig(ui)||n===Ol&&!this._getClickTrackingConfig(ai)),t=gm(e,{allowElementCallback:this.getConfig(Nm),allowSelectors:this.getConfig(vl),blockAttrs:this.getConfig(ml),blockElementCallback:this.getConfig(yl),blockSelectors:this.getConfig(_l),captureExtraAttrs:this.getConfig(wl),captureTextContent:this.getConfig(Sl),capturedForHeatMap:i});t&&(h.extend(t,zr),this.mp.track(n,t))}},he.prototype.initPageListeners=function(){if(I.removeEventListener(Jc,this.listenerPopstate),I.removeEventListener(ns,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(ci)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){I.dispatchEvent(new Event(vt))},this.listenerHashchange=function(){I.dispatchEvent(new Event(vt))},I.addEventListener(Jc,this.listenerPopstate),I.addEventListener(ns,this.listenerHashchange);var e=I.history.pushState;typeof e=="function"&&(I.history.pushState=function(i,t,r){e.call(I.history,i,t,r),I.dispatchEvent(new Event(vt))});var n=I.history.replaceState;typeof n=="function"&&(I.history.replaceState=function(i,t,r){n.call(I.history,i,t,r),I.dispatchEvent(new Event(vt))})}},he.prototype._getClickTrackingConfig=function(e){var n=this.getConfig(e);return n?n===!0?{}:typeof n=="object"?n:{}:null},he.prototype._trackPageLeave=function(e,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(ci)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var t=Math.max(L.documentElement.clientHeight,I.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-t,0)/(i-t)*100),o=Math.round(t/i*100);i<=t&&(r=100,o=100);var s=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:o,$scroll_height:i,$event_type:e.type,$current_url:n||h.info.currentUrl(),$viewportHeight:t,$viewportWidth:Math.max(L.documentElement.clientWidth,I.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},zr);this.mp.track(Fm,s,{transport:"sendBeacon"})}},he.prototype._initScrollDepthTracking=function(){if(I.removeEventListener(is,this.listenerScrollDepth),I.removeEventListener(ni,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){te.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(L.documentElement.clientHeight,I.innerHeight||0);var e=function(){if(!this.currentUrlBlocked()){var i=Math.max(L.documentElement.clientHeight,I.innerHeight||0)+I.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=L.body.scrollHeight}}.bind(this),n=al(e);this.listenerScrollDepth=n.listener,I.addEventListener(n.eventType,this.listenerScrollDepth)}},he.prototype.initClickTracking=function(){I.removeEventListener(Qe,this.listenerClick),!(!this.getConfig(si)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=function(e){!this.getConfig(si)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,kl)}.bind(this),I.addEventListener(Qe,this.listenerClick))},he.prototype.initDeadClickTracking=function(){var e=this._getClickTrackingConfig(ai);if(!e&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Ge(function(n){this.trackDomEvent(n,Ol)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(ai);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var t=i||{};t.timeout_ms||(t.timeout_ms=Om),this._deadClickTracker.trackClick(n,t)}}.bind(this),I.addEventListener(Qe,this.listenerDeadClick))},he.prototype.initInputTracking=function(){I.removeEventListener(Br,this.listenerChange),this.getConfig(fs)&&(te.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(fs)&&this.trackDomEvent(e,Lm)}.bind(this),I.addEventListener(Br,this.listenerChange))},he.prototype.initPageviewTracking=function(){if(I.removeEventListener(vt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var e="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(zr)),n&&(e=h.info.currentUrl()),this.listenerLocationchange=Dr(function(){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),t=!1,r=i.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(o===dl?t=i!==e:o===Tm?t=i.split("#")[0]!==e.split("#")[0]:o===Pm&&(t=r),t){var s=this.mp.track_pageview(zr);s&&(e=i),r&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),I.addEventListener(vt,this.listenerLocationchange)}},he.prototype.initRageClickTracking=function(){I.removeEventListener(Qe,this.listenerRageClick);var e=this._getClickTrackingConfig(ui);!e&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new fl),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(ui);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,xl)}.bind(this),I.addEventListener(Qe,this.listenerRageClick))},he.prototype.initScrollTracking=function(){if(I.removeEventListener(ni,this.listenerScroll),I.removeEventListener(is,this.listenerScroll),!!this.getConfig(hs)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(hs)&&!this.currentUrlBlocked()){var i=this.getConfig(Cl),t=(this.getConfig(Il)||[]).slice().sort(function(l,f){return l-f}),r=I.scrollY,o=h.extend({$scroll_top:r},zr);try{var s=L.body.scrollHeight,a=Math.round(r/(s-I.innerHeight)*100);if(o.$scroll_height=s,o.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<t.length;u++){var c=t[u];a>=c&&this.lastScrollCheckpoint<c&&(o.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(Dm,o)}}.bind(this),n=al(e);this.listenerScroll=n.listener,I.addEventListener(n.eventType,this.listenerScroll)}},he.prototype.initSubmitTracking=function(){I.removeEventListener(ii,this.listenerSubmit),this.getConfig(ps)&&(te.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(ps)&&this.trackDomEvent(e,$m)}.bind(this),I.addEventListener(ii,this.listenerSubmit))},he.prototype.initPageLeaveTracking=function(){if(L.removeEventListener(Zc,this.listenerPageLeaveVisibilitychange),I.removeEventListener(vt,this.listenerPageLeaveLocationchange),I.removeEventListener(Xc,this.listenerPageLoad),!(!this.getConfig(ci)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=h.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=L.body.scrollHeight}.bind(this),I.addEventListener(Xc,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Dr(function(n){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),t=i!==e;t&&(this._trackPageLeave(n,e,this.previousScrollHeight),e=i,this.maxScrollViewDepth=Math.max(L.documentElement.clientHeight,I.innerHeight||0),this.previousScrollHeight=L.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),I.addEventListener(vt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){L.hidden&&this._trackPageLeave(n,e,this.previousScrollHeight)}.bind(this),L.addEventListener(Zc,this.listenerPageLeaveVisibilitychange)}},he.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(I.removeEventListener(Qe,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},$c(he);var Ie=It("flags"),li="flags",fi="context",ds={};ds[fi]={};var z=function(e){this.fetch=I.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};z.prototype.init=function(){if(!this.minApisSupported()){Ie.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},z.prototype.getFullConfig=function(){var e=this.getMpConfig(li);return e?h.isObject(e)?h.extend({},ds,e):ds:{}},z.prototype.getConfig=function(e){return this.getFullConfig()[e]},z.prototype.isSystemEnabled=function(){return!!this.getMpConfig(li)},z.prototype.updateContext=function(e,n){if(!this.isSystemEnabled())return Ie.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(li);h.isObject(i)||(i={});var t=n&&n.replace?{}:this.getConfig(fi);return i[fi]=h.extend({},t,e),this.setMpConfig(li,i),this.fetchFlags()},z.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ie.error("Feature Flags not enabled"),!!this.flags},z.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),i=Ug();Ie.log("Fetching flags for distinct ID: "+e);var t=h.extend({distinct_id:e,device_id:n},this.getConfig(fi)),r=new URLSearchParams;r.set("context",JSON.stringify(t)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",Ne.LIB_VERSION);var o=this.getFullApiRoute()+"?"+r.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(I,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then(function(s){return this.markFetchComplete(),s.json().then(function(a){var u=a.flags;if(!u)throw new Error("No flags in API response");var c=new Map;h.each(u,function(l,f){c.set(f,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester})}),this.flags=c,this._traceparent=i}.bind(this)).catch(function(a){this.markFetchComplete(),Ie.error(a)}.bind(this))}.bind(this)).catch(function(s){this.markFetchComplete(),Ie.error(s)}.bind(this)),this.fetchPromise},z.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ie.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},z.prototype.getVariant=function(e,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n}):new Promise(function(i){Ie.critical("Feature Flags not initialized"),i(n)})},z.prototype.getVariantSync=function(e,n){if(!this.areFlagsReady())return Ie.log("Flags not loaded yet"),n;var i=this.flags.get(e);return i?(this.trackFeatureCheck(e,i),i):(Ie.log('No flag found: "'+e+'"'),n)},z.prototype.getVariantValue=function(e,n){return this.getVariant(e,{value:n}).then(function(i){return i.value}).catch(function(i){return Ie.error(i),n})},z.prototype.getFeatureData=function(e,n){return Ie.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,n)},z.prototype.getVariantValueSync=function(e,n){return this.getVariantSync(e,{value:n}).value},z.prototype.isEnabled=function(e,n){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,n)}.bind(this)).catch(function(i){return Ie.error(i),n})},z.prototype.isEnabledSync=function(e,n){n=n||!1;var i=this.getVariantValueSync(e,n);return i!==!0&&i!==!1&&(Ie.error('Feature flag "'+e+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},z.prototype.trackFeatureCheck=function(e,n){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var i={"Experiment name":e,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};n.experiment_id!=="undefined"&&(i.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(i.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(i.$is_qa_tester=n.is_qa_tester),this.track("$experiment_started",i)}},z.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},$c(z),z.prototype.are_flags_ready=z.prototype.areFlagsReady,z.prototype.get_variant=z.prototype.getVariant,z.prototype.get_variant_sync=z.prototype.getVariantSync,z.prototype.get_variant_value=z.prototype.getVariantValue,z.prototype.get_variant_value_sync=z.prototype.getVariantValueSync,z.prototype.is_enabled=z.prototype.isEnabled,z.prototype.is_enabled_sync=z.prototype.isEnabledSync,z.prototype.update_context=z.prototype.updateContext,z.prototype.get_feature_data=z.prototype.getFeatureData;var et=function(){};et.prototype.create_properties=function(){},et.prototype.event_handler=function(){},et.prototype.after_track_handler=function(){},et.prototype.init=function(e){return this.mp=e,this},et.prototype.track=function(e,n,i,t){var r=this,o=h.dom_query(e);if(o.length===0){$.error("The DOM query ("+e+") returned 0 elements");return}return h.each(o,function(s){h.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(t,c,u,!0),l),r.mp.track(n,c,r.track_callback(t,c,u))})},this),!0},et.prototype.track_callback=function(e,n,i,t){t=t||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(e&&e(t,n)===!1)&&r.after_track_handler(n,i,t))}},et.prototype.create_properties=function(e,n){var i;return typeof e=="function"?i=e(n):i=h.extend({},e),i};var rr=function(){this.override_event="click"};h.inherit(rr,et),rr.prototype.create_properties=function(e,n){var i=rr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},rr.prototype.event_handler=function(e,n,i){i.new_tab=e.which===2||e.metaKey||e.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||e.preventDefault()},rr.prototype.after_track_handler=function(e,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var hi=function(){this.override_event="submit"};h.inherit(hi,et),hi.prototype.event_handler=function(e,n,i){i.element=n,e.preventDefault()},hi.prototype.after_track_handler=function(e,n){setTimeout(function(){n.element.submit()},0)};var gt="$set",nr="$set_once",Fe="$unset",Et="$add",Ve="$append",kt="$union",tt="$remove",Um="$delete",Rl={set_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[gt]=t,i},unset_action:function(e){var n={},i=[];return h.isArray(e)||(e=[e]),h.each(e,function(t){this._is_reserved_property(t)||i.push(t)},this),n[Fe]=i,n},set_once_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[nr]=t,i},union_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=h.isArray(r)?r:[r])},this):t[e]=h.isArray(n)?n:[n],i[kt]=t,i},append_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[Ve]=t,i},remove_action:function(e,n){var i={},t={};return h.isObject(e)?h.each(e,function(r,o){this._is_reserved_property(o)||(t[o]=r)},this):t[e]=n,i[tt]=t,i},delete_action:function(){var e={};return e[Um]="",e}},ie=function(){};h.extend(ie.prototype,Rl),ie.prototype._init=function(e,n,i){this._mixpanel=e,this._group_key=n,this._group_id=i},ie.prototype.set=Zt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ie.prototype.set_once=Zt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),ie.prototype.unset=Zt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),ie.prototype.union=Zt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),ie.prototype.delete=Zt(function(e){var n=this.delete_action();return this._send_request(n,e)}),ie.prototype.remove=Zt(function(e,n,i){var t=this.remove_action(e,n);return this._send_request(t,i)}),ie.prototype._send_request=function(e,n){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var i=h.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ie.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"},ie.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ie.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ie.prototype.remove=ie.prototype.remove,ie.prototype.set=ie.prototype.set,ie.prototype.set_once=ie.prototype.set_once,ie.prototype.union=ie.prototype.union,ie.prototype.unset=ie.prototype.unset,ie.prototype.toString=ie.prototype.toString;var D=function(){};h.extend(D.prototype,Rl),D.prototype._init=function(e){this._mixpanel=e},D.prototype.set=dt(function(e,n,i){var t=this.set_action(e,n);return h.isObject(e)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),t[gt]=h.extend({},h.info.people_properties(),t[gt]),this._send_request(t,i)}),D.prototype.set_once=dt(function(e,n,i){var t=this.set_once_action(e,n);return h.isObject(e)&&(i=n),this._send_request(t,i)}),D.prototype.unset=dt(function(e,n){var i=this.unset_action(e);return this._send_request(i,n)}),D.prototype.increment=dt(function(e,n,i){var t={},r={};return h.isObject(e)?(h.each(e,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){$.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(h.isUndefined(n)&&(n=1),r[e]=n),t[Et]=r,this._send_request(t,i)}),D.prototype.append=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.append_action(e,n);return this._send_request(t,i)}),D.prototype.remove=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.remove_action(e,n);return this._send_request(t,i)}),D.prototype.union=dt(function(e,n,i){h.isObject(e)&&(i=n);var t=this.union_action(e,n);return this._send_request(t,i)}),D.prototype.track_charge=dt(function(){$.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),D.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},D.prototype.delete_user=function(){if(!this._identify_called()){$.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},D.prototype.toString=function(){return this._mixpanel.toString()+".people"},D.prototype._send_request=function(e,n){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),t=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),t&&(e.$user_id=t),r&&(e.$had_persisted_distinct_id=r);var o=h.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(e),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(o,255))},D.prototype._get_config=function(e){return this._mixpanel.get_config(e)},D.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},D.prototype._enqueue=function(e){gt in e?this._mixpanel.persistence._add_to_people_queue(gt,e):nr in e?this._mixpanel.persistence._add_to_people_queue(nr,e):Fe in e?this._mixpanel.persistence._add_to_people_queue(Fe,e):Et in e?this._mixpanel.persistence._add_to_people_queue(Et,e):Ve in e?this._mixpanel.persistence._add_to_people_queue(Ve,e):tt in e?this._mixpanel.persistence._add_to_people_queue(tt,e):kt in e?this._mixpanel.persistence._add_to_people_queue(kt,e):$.error("Invalid call to _enqueue():",e)},D.prototype._flush_one_queue=function(e,n,i,t){var r=this,o=h.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!h.isUndefined(o)&&h.isObject(o)&&!h.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(e,o),r._mixpanel.persistence.save(),t&&(s=t(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(e,o),h.isUndefined(i)||i(a,u)}))},D.prototype._flush=function(e,n,i,t,r,o,s){var a=this;this._flush_one_queue(gt,this.set,e),this._flush_one_queue(nr,this.set_once,t),this._flush_one_queue(Fe,this.unset,o,function(d){return h.keys(d)}),this._flush_one_queue(Et,this.increment,n),this._flush_one_queue(kt,this.union,r);var u=this._mixpanel.persistence.load_queue(Ve);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(Ve,c),h.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(Ve),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(tt);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,v=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(tt,g),h.isUndefined(s)||s(d,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(tt),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,v)},D.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"},D.prototype.set=D.prototype.set,D.prototype.set_once=D.prototype.set_once,D.prototype.unset=D.prototype.unset,D.prototype.increment=D.prototype.increment,D.prototype.append=D.prototype.append,D.prototype.remove=D.prototype.remove,D.prototype.union=D.prototype.union,D.prototype.track_charge=D.prototype.track_charge,D.prototype.clear_charges=D.prototype.clear_charges,D.prototype.delete_user=D.prototype.delete_user,D.prototype.toString=D.prototype.toString;var vs="__mps",gs="__mpso",ms="__mpus",ys="__mpa",_s="__mpap",bs="__mpr",ws="__mpu",Al="$people_distinct_id",pi="__alias",Wr="__timers",Bm=[vs,gs,ms,ys,_s,bs,ws,Al,pi,Wr],B=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var n=e.persistence;n!=="cookie"&&n!=="localStorage"&&($.critical("Unknown persistence type "+n+"; falling back to cookie"),n=e.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};B.prototype.properties=function(){var e={};return this.load(),h.each(this.props,function(n,i){h.include(Bm,i)||(e[i]=n)}),e},B.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=h.extend({},e))}},B.prototype.upgrade=function(){var e,n;this.storage===h.localStorage?(e=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},B.prototype.save=function(){this.disabled||this.storage.set(this.name,Jt(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},B.prototype.load_prop=function(e){return this.load(),this.props[e]},B.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},B.prototype.clear=function(){this.remove(),this.props={}},B.prototype.register_once=function(e,n,i){return h.isObject(e)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(e,function(t,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=t)},this),this.save(),!0):!1},B.prototype.register=function(e,n){return h.isObject(e)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,e),this.save(),!0):!1},B.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},B.prototype.update_search_keyword=function(e){this.register(h.info.searchInfo(e))},B.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:h.info.referringDomain(e)||"$direct"},"")},B.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},B.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},B.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},B.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},B.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},B.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},B.prototype.get_cross_subdomain=function(){return this.cross_subdomain},B.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},B.prototype._add_to_people_queue=function(e,n){var i=this._get_queue_key(e),t=n[e],r=this._get_or_create_queue(gt),o=this._get_or_create_queue(nr),s=this._get_or_create_queue(Fe),a=this._get_or_create_queue(Et),u=this._get_or_create_queue(kt),c=this._get_or_create_queue(tt,[]),l=this._get_or_create_queue(Ve,[]);i===vs?(h.extend(r,t),this._pop_from_people_queue(Et,t),this._pop_from_people_queue(kt,t),this._pop_from_people_queue(Fe,t)):i===gs?(h.each(t,function(f,p){p in o||(o[p]=f)}),this._pop_from_people_queue(Fe,t)):i===ms?h.each(t,function(f){h.each([r,o,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),s[f]=!0}):i===ys?(h.each(t,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(Fe,t)):i===ws?(h.each(t,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(Fe,t)):i===bs?(c.push(t),this._pop_from_people_queue(Ve,t)):i===_s&&(l.push(t),this._pop_from_people_queue(Fe,t)),$.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),$.log(n),this.save()},B.prototype._pop_from_people_queue=function(e,n){var i=this.props[this._get_queue_key(e)];h.isUndefined(i)||h.each(n,function(t,r){e===Ve||e===tt?h.each(i,function(o){o[r]===t&&delete o[r]}):delete i[r]},this)},B.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},B.prototype._get_queue_key=function(e){if(e===gt)return vs;if(e===nr)return gs;if(e===Fe)return ms;if(e===Et)return ys;if(e===Ve)return _s;if(e===tt)return bs;if(e===kt)return ws;$.error("Invalid queue:",e)},B.prototype._get_or_create_queue=function(e,n){var i=this._get_queue_key(e);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},B.prototype.set_event_timer=function(e,n){var i=this.load_prop(Wr)||{};i[e]=n,this.props[Wr]=i,this.save()},B.prototype.remove_event_timer=function(e){var n=this.load_prop(Wr)||{},i=n[e];return h.isUndefined(i)||(delete this.props[Wr][e],this.save()),i};var di,Ml=function(e,n){throw new Error(e+" not available in this build.")},pe,Tl=0,Pl=1,Re="mixpanel",Nl="base64",zm="json",Ss="$device:",ir=I.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ll=!ir&&ze.indexOf("MSIE")===-1&&ze.indexOf("Mozilla")===-1,vi=null;Xe.sendBeacon&&(vi=function(){return Xe.sendBeacon.apply(Xe,arguments)});var Dl={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},$l={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Dl,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Nl,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:ht,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:ht,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:30*60*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Pr,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Fl=!1,b=function(){},gi=function(e,n,i){var t,r=i===Re?pe:pe[i];if(r&&di===Tl)t=r;else{if(r&&!h.isArray(r)){$.error("You have already initialized "+i);return}t=new b}if(t._cached_groups={},t._init(e,n,i),t.people=new D,t.people._init(t),!t.get_config("skip_first_touch_marketing")){var o=h.info.campaignParams(null),s={},a=!1;h.each(o,function(c,l){s["initial_"+l]=c,c&&(a=!0)}),a&&t.people.set_once(s)}Ne.DEBUG=Ne.DEBUG||t.get_config("debug");var u=di===Tl?"module":"snippet";return I.dispatchEvent(new I.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:t,source:u,token:e,name:i,info:h.info}})),!h.isUndefined(r)&&h.isArray(r)&&(t._execute_array.call(t.people,r.people),t._execute_array(r)),t};b.prototype.init=function(e,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Re){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var t=gi(e,n,i);return pe[i]=t,t._loaded(),t},b.prototype._init=function(e,n,i){n=n||{},this.__loaded=!0,this.config={};var t={};if(!("api_payload_format"in n)){var r=n.api_host||$l.api_host;r.match(/\.mixpanel\.com/)&&(t.api_payload_format=zm)}if(this.hooks={},this.set_config(h.extend({},$l,t,n,{name:i,token:e,callback_fn:(i===Re?i:Re+"."+i)+"._jsc"})),this._jsc=ht,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!h.localStorage.is_supported(!0)||!ir)this._batch_requests=!1,$.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(a){$.log("Clearing batch queue "+a.queue_key),h.localStorage.remove(a.queue_key)});else if(this.init_batchers(),vi&&I.addEventListener){var o=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);I.addEventListener("pagehide",function(a){a.persisted&&o()}),I.addEventListener("visibilitychange",function(){L.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new B(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ss+s,$device_id:s},""),this.flags=new z({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new he(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},b.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))$.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+e,i="mp_gen_new_tab_id_"+e;(h.sessionStorage.get(i)||!h.sessionStorage.get(n))&&h.sessionStorage.set(n,"$tab-"+h.UUID()),h.sessionStorage.set(i,"1"),this.tab_id=h.sessionStorage.get(n),I.addEventListener("beforeunload",function(){h.sessionStorage.remove(i)})}catch(t){this.report_error("Error initializing tab id",t)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},b.prototype.get_tab_id=function(){return this.tab_id||null},b.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return $.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new $e(Zo),n=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(i){for(var t=0;t<i.length;t++)if(rs(i[t])||i[t].tabId===n)return!0;return!1}).catch(h.bind(function(i){this.report_error("Error checking recording registry",i)},this))},b.prototype._check_and_start_session_recording=pt(function(e){if(!I.MutationObserver){$.critical("Browser does not support MutationObserver; skipping session recording");return}var n=h.bind(function(t){var r=h.bind(function(){this._recorder=this._recorder||new I.__mp_recorder(this),this._recorder.resumeRecording(t)},this);h.isUndefined(I.__mp_recorder)?Ml(this.get_config("recorder_src"),r):r()},this),i=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||i?n(!0):this._should_load_recorder().then(function(t){t&&n(!1)})}),b.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},b.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},b.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},b.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},b.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},b.prototype.get_session_recording_properties=function(){var e={},n=this._get_session_replay_id();return n&&(e.$mp_replay_id=n),e},b.prototype.get_session_replay_url=function(){var e=null,n=this._get_session_replay_id();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+i}return e},b.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},b.prototype.__get_recorder=function(){return this._recorder},b.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=h.info.campaignParams(null);h.each(e,function(n,i){this.unregister(i)}.bind(this))}},b.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(L.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(L.referrer)},b.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},b.prototype._track_dom=function(e,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Fl)return this.__dom_loaded_queue.push([e,n]),!1;var i=new e().init(this);return i.track.apply(i,n)},b.prototype._prepare_callback=function(e,n){if(h.isUndefined(e))return null;if(ir){var i=function(s){e(s,n)};return i}else{var t=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return t[r]=function(s){delete t[r],e(s,n)},o}},b.prototype._send_request=function(e,n,i,t){var r=!0;if(Ll)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!t&&(h.isFunction(i)||typeof i=="string")&&(t=i,i=null),i=h.extend(o,i||{}),ir||(i.method="GET");var a=i.method==="POST",u=vi&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),ir||(t?n.callback=t:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),e+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=L.createElement("img");f.src=e,L.body.appendChild(f)}else if(u){try{r=vi(e,s)}catch(m){l.report_error(m),r=!1}try{t&&t(r?1:0)}catch(m){l.report_error(m)}}else if(ir)try{var p=new XMLHttpRequest;p.open(i.method,e,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var v=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(t)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(S){if(l.report_error(S),i.ignore_json_errors)m=p.responseText;else return}t(m)}else t(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-v>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),t)if(c){var w=p.responseHeaders||{};t({status:0,httpStatusCode:p.status,error:_,retryAfter:w["Retry-After"]})}else t(0)}},p.send(s)}catch(m){l.report_error(m),r=!1}else{var y=L.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var d=L.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}return r},b.prototype._execute_array=function(e){var n,i=[],t=[],r=[];h.each(e,function(s){s&&(n=s[0],h.isArray(n)?r.push(s):typeof s=="function"?s.call(this):h.isArray(s)&&n==="alias"?i.push(s):h.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):t.push(s))},this);var o=function(s,a){h.each(s,function(u){if(h.isArray(u[0])){var c=a;h.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(t,this),o(r,this)},b.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},b.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},b.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=h.bind(function(i){return new Le(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(t,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(t),r,this._prepare_callback(o,t))},this),beforeSendHook:h.bind(function(t){var r=this._run_hook("before_send_"+i.type,t);return r?r[0]:null},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:e(n.events),people:e(n.people),groups:e(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},b.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(e){e.start()}))},b.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(e){e.stop(),e.clear()})},b.prototype.push=function(e){this._execute_array([e])},b.prototype.disable=function(e){typeof e=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},b.prototype._encode_data_for_request=function(e){var n=Jt(e);return this.get_config("api_payload_format")===Nl&&(n=h.base64Encode(n)),{data:n}},b.prototype._track_or_batch=function(e,n){var i=h.truncate(e.data,255),t=e.endpoint,r=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};n=n||ht;var a=!0,u=h.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+e.type,i),i&&(i=i[0])),i?($.log("MIXPANEL REQUEST:"),$.log(i),this._send_request(t,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},b.prototype.track=pt(function(e,n,i,t){var r;if(!(i&&i.skip_hooks)){if(r=this._run_hook("before_track",e,n),r===null)return;e=r[0],n=r[1]}!t&&typeof i=="function"&&(t=i,i=null),i=i||{};var o=i.transport;o&&(i.transport=o);var s=i.send_immediately;if(typeof t!="function"&&(t=ht),h.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){t(0);return}n=h.extend({},n),n.token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!h.isUndefined(a)){var u=new Date().getTime()-a;n.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+l);var f={event:e,properties:n};return r=this._track_or_batch({type:"events",data:f,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:i},t),r}),b.prototype.set_group=pt(function(e,n,i){h.isArray(n)||(n=[n]);var t={};return t[e]=n,this.register(t),this.people.set(e,n,i)}),b.prototype.add_group=pt(function(e,n,i){var t=this.get_property(e),r={};return t===void 0?(r[e]=[n],this.register(r)):t.indexOf(n)===-1&&(t.push(n),r[e]=t,this.register(r)),this.people.union(e,n,i)}),b.prototype.remove_group=pt(function(e,n,i){var t=this.get_property(e);if(t!==void 0){var r=t.indexOf(n);r>-1&&(t.splice(r,1),this.register({group_key:t})),t.length===0&&this.unregister(e)}return this.people.remove(e,n,i)}),b.prototype.track_with_groups=pt(function(e,n,i,t){var r=h.extend({},n||{});return h.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(e,r,t)}),b.prototype._create_map_key=function(e,n){return e+"_"+JSON.stringify(n)},b.prototype._remove_group_from_cache=function(e,n){delete this._cached_groups[this._create_map_key(e,n)]},b.prototype.get_group=function(e,n){var i=this._create_map_key(e,n),t=this._cached_groups[i];return(t===void 0||t._group_key!==e||t._group_id!==n)&&(t=new ie,t._init(this,e,n),this._cached_groups[i]=t),t},b.prototype.track_pageview=pt(function(e,n){typeof e!="object"&&(e={}),n=n||{};var i=n.event_name||"$mp_web_page_view",t=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},t,e);return this.track(i,r)}),b.prototype.track_links=function(){return this._track_dom.call(this,rr,arguments)},b.prototype.track_forms=function(){return this._track_dom.call(this,hi,arguments)},b.prototype.time_event=function(e){if(h.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Wm={persistent:!0},Cs=function(e){var n;return h.isObject(e)?n=e:h.isUndefined(e)?n={}:n={days:e},h.extend({},Wm,n)};b.prototype.register=function(e,n){var i=this._run_hook("before_register",e,n);if(i!==null){e=i[0],n=i[1];var t=Cs(n);t.persistent?this.persistence.register(e,t.days):h.extend(this.unpersisted_superprops,e)}},b.prototype.register_once=function(e,n,i){var t=this._run_hook("before_register_once",e,n,i);if(t!==null){e=t[0],n=t[1],i=t[2];var r=Cs(i);r.persistent?this.persistence.register_once(e,n,r.days):(typeof n=="undefined"&&(n="None"),h.each(e,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===n)&&(this.unpersisted_superprops[s]=o)},this))}},b.prototype.unregister=function(e,n){var i=this._run_hook("before_unregister",e,n);i!==null&&(e=i[0],n=i[1],n=Cs(n),n.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},b.prototype._register_single=function(e,n){var i={};i[e]=n,this.register(i)},b.prototype.identify=function(e,n,i,t,r,o,s,a){var u=this._run_hook("before_identify",e);if(u===null)return-1;e=u[0];var c=this.get_distinct_id();if(e&&c!==e){if(typeof e=="string"&&e.indexOf(Ss)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==c&&e!==this.get_property(pi)&&(this.unregister(pi),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(n,i,t,r,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},b.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=h.UUID();this.register_once({distinct_id:Ss+e,$device_id:e},""),this._check_and_start_session_recording()},b.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},b.prototype.alias=function(e,n){if(e===this.get_property(Al))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return h.isUndefined(n)&&(n=this.get_distinct_id()),e!==n?(this._register_single(pi,e),this.track("$create_alias",{alias:e,distinct_id:n},{skip_hooks:!0},function(){i.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},b.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},b.prototype.set_config=function(e){if(h.isObject(e)){h.extend(this.config,e);var n=e.batch_size;n&&h.each(this.request_batchers,function(i){i.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),Ne.DEBUG=Ne.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),h.isObject(e.hooks)&&(this.hooks={},h.each(e.hooks,function(i,t){if(h.isFunction(i))this.hooks[t]=[i];else if(h.isArray(i)){this.hooks[t]=[];for(var r=0;r<i.length;r++)h.isFunction(i[r])||$.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(i[r])}else $.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},b.prototype.get_config=function(e){return this.config[e]},b.prototype._run_hook=function(e){var n=ft.call(arguments,1);return h.each(this.hooks[e],function(i){if(n===null)return null;var t=i.apply(this,n);typeof t=="undefined"?(this.report_error(e+" hook did not return a valid value"),n=null):(h.isArray(t)||(t=[t]),n.splice.apply(n,[0,t.length].concat(t)))},this),n},b.prototype.get_property=function(e){return this.persistence.load_prop([e])},b.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},b.prototype.toString=function(){var e=this.get_config("name");return e!==Re&&(e=Re+"."+e),e},b.prototype._event_is_disabled=function(e){return h.isBlockedUA(ze)||this._flags.disable_all_events||h.include(this.__disabled_events,e)},b.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&h.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},b.prototype._gdpr_update_persistence=function(e){var n;if(e&&e.clear_persistence)n=!0;else if(e&&e.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},b.prototype._gdpr_call_func=function(e,n){return n=h.extend({track:h.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},n),h.localStorage.is_supported()||(n.persistence_type="cookie"),e(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},b.prototype.opt_in_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(Yg,e),this._gdpr_update_persistence(e)},b.prototype.opt_out_tracking=function(e){e=h.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Kg,e),this._gdpr_update_persistence(e)},b.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Xg,e)},b.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(qc,e)},b.prototype.clear_opt_in_out_tracking=function(e){e=h.extend({enable_persistence:!0},e),this._gdpr_call_func(Jg,e),this._gdpr_update_persistence(e)},b.prototype.report_error=function(e,n){$.error.apply($.error,arguments);try{!n&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,n)}catch(i){$.error(i)}},b.prototype.add_hook=function(e,n){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(n)},b.prototype.remove_hook=function(e,n){var i;this.hooks[e]&&(i=this.hooks[e].indexOf(n),i!==-1?this.hooks[e].splice(i,1):$.log("remove_hook failed. Matching hook was not found"))},b.prototype.init=b.prototype.init,b.prototype.reset=b.prototype.reset,b.prototype.disable=b.prototype.disable,b.prototype.time_event=b.prototype.time_event,b.prototype.track=b.prototype.track,b.prototype.track_links=b.prototype.track_links,b.prototype.track_forms=b.prototype.track_forms,b.prototype.track_pageview=b.prototype.track_pageview,b.prototype.register=b.prototype.register,b.prototype.register_once=b.prototype.register_once,b.prototype.unregister=b.prototype.unregister,b.prototype.identify=b.prototype.identify,b.prototype.alias=b.prototype.alias,b.prototype.name_tag=b.prototype.name_tag,b.prototype.set_config=b.prototype.set_config,b.prototype.get_config=b.prototype.get_config,b.prototype.get_api_host=b.prototype.get_api_host,b.prototype.get_property=b.prototype.get_property,b.prototype.get_distinct_id=b.prototype.get_distinct_id,b.prototype.toString=b.prototype.toString,b.prototype.opt_out_tracking=b.prototype.opt_out_tracking,b.prototype.opt_in_tracking=b.prototype.opt_in_tracking,b.prototype.has_opted_out_tracking=b.prototype.has_opted_out_tracking,b.prototype.has_opted_in_tracking=b.prototype.has_opted_in_tracking,b.prototype.clear_opt_in_out_tracking=b.prototype.clear_opt_in_out_tracking,b.prototype.get_group=b.prototype.get_group,b.prototype.set_group=b.prototype.set_group,b.prototype.add_group=b.prototype.add_group,b.prototype.remove_group=b.prototype.remove_group,b.prototype.add_hook=b.prototype.add_hook,b.prototype.remove_hook=b.prototype.remove_hook,b.prototype.track_with_groups=b.prototype.track_with_groups,b.prototype.start_batch_senders=b.prototype.start_batch_senders,b.prototype.stop_batch_senders=b.prototype.stop_batch_senders,b.prototype.start_session_recording=b.prototype.start_session_recording,b.prototype.stop_session_recording=b.prototype.stop_session_recording,b.prototype.pause_session_recording=b.prototype.pause_session_recording,b.prototype.resume_session_recording=b.prototype.resume_session_recording,b.prototype.get_session_recording_properties=b.prototype.get_session_recording_properties,b.prototype.get_session_replay_url=b.prototype.get_session_replay_url,b.prototype.get_tab_id=b.prototype.get_tab_id,b.prototype.DEFAULT_API_ROUTES=Dl,b.prototype.__get_recorder=b.prototype.__get_recorder,B.prototype.properties=B.prototype.properties,B.prototype.update_search_keyword=B.prototype.update_search_keyword,B.prototype.update_referrer_info=B.prototype.update_referrer_info,B.prototype.get_cross_subdomain=B.prototype.get_cross_subdomain,B.prototype.clear=B.prototype.clear;var mt={},qm=function(){h.each(mt,function(e,n){n!==Re&&(pe[n]=e)}),pe._=h},Gm=function(){pe.init=function(e,n,i){if(i)return pe[i]||(pe[i]=mt[i]=gi(e,n,i),pe[i]._loaded()),pe[i];var t=pe;mt[Re]?t=mt[Re]:e&&(t=gi(e,n,Re),t._loaded(),mt[Re]=t),pe=t,di===Pl&&(I[Re]=pe),qm()}},Vm=function(){function e(){e.done||(e.done=!0,Fl=!0,Ll=!1,h.each(mt,function(t){t._dom_loaded()}))}function n(){try{L.documentElement.doScroll("left")}catch(t){setTimeout(n,1);return}e()}if(L.addEventListener)L.readyState==="complete"?e():L.addEventListener("DOMContentLoaded",e,!1);else if(L.attachEvent){L.attachEvent("onreadystatechange",e);var i=!1;try{i=I.frameElement===null}catch(t){}L.documentElement.doScroll&&i&&n()}h.register_event(I,"load",e,!0)};function jm(e){if(Ml=e,di=Pl,pe=I[Re],h.isUndefined(pe)){$.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(pe.__loaded||pe.config&&pe.persistence){$.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=pe.__SV||0;if(n<1.1){$.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(pe._i,function(i){i&&h.isArray(i)&&(mt[i[i.length-1]]=gi.apply(this,i))}),Gm(),pe.init(),h.each(mt,function(i){i._loaded()}),Vm()}function Hm(e,n){n()}jm(Hm)})();
1
+ (function(){"use strict";var E;if(typeof window=="undefined"){var tu={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:tu,referrer:""},screen:{width:0,height:0},location:tu,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var Ge="__mp_targeting",lo="__mp_recorder";function ru(t,n){(n==null||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function nu(t,n,i,e,r,o,s){try{var a=t[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(e,r)}function mn(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var o=t.apply(n,i);function s(u){nu(o,e,r,s,a,"next",u)}function a(u){nu(o,e,r,s,a,"throw",u)}s(void 0)})}}function yn(t,n,i){return iu()?yn=Reflect.construct:yn=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&xr(c,s.prototype),c},yn.apply(null,arguments)}function Sp(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ne(t,n,i){return n&&Sp(t.prototype,n),t}function B(){return B=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t},B.apply(this,arguments)}function fo(t){return fo=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},fo(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&&xr(t,n)}function A(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Cp(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Rt(t,n){if(t==null)return{};var i={},e=Object.keys(t),r,o;for(o=0;o<e.length;o++)r=e[o],!(n.indexOf(r)>=0)&&(i[r]=t[r]);return i}function xr(t,n){return xr=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},xr(t,n)}function M(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Ep(t,n){if(t){if(typeof t=="string")return ru(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return ru(t,n)}}function kr(t){var n=typeof Map=="function"?new Map:void 0;return kr=function(e){if(e===null||!Cp(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 yn(e,arguments,fo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),xr(r,e)},kr(t)}function iu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(iu=function(){return!!t})()}function I(t,n){var i=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=Ep(t))||n){i&&(t=i);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 Mt(t,n){var i,e,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,e&&(r=c[0]&2?e.return:c[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,c[1])).done)return r;switch(e=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,e=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(t,s)}catch(l){c=[6,l],e=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function ho(t){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&t[n],e=0;if(i)return i.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 Ip=Object.defineProperty,Op=function(t,n,i){return n in t?Ip(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},O=function(t,n,i){return Op(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)},ou,xp=Object.defineProperty,kp=function(t,n,i){return n in t?xp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},su=function(t,n,i){return kp(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)},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||{}),au={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_n={},Ap=function(){return!!globalThis.Zone};function po(t){if(_n[t])return _n[t];var n=globalThis[t],i=n.prototype,e=t in au?au[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in uu?uu[t]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Ap())return _n[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 c=u[t].prototype;return document.body.removeChild(a),c?_n[t]=c:i}catch(l){return i}}var vo={};function ht(t,n,i){var e,r=t+"."+String(i);if(vo[r])return vo[r].call(n);var o=po(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(vo[r]=s,s.call(n)):n[i]}var go={};function cu(t,n,i){var e=t+"."+String(i);if(go[e])return go[e].bind(n);var r=po(t),o=r[i];return typeof o!="function"?n[i]:(go[e]=o,o.bind(n))}function Rp(t){return ht("Node",t,"childNodes")}function Mp(t){return ht("Node",t,"parentNode")}function Tp(t){return ht("Node",t,"parentElement")}function $p(t){return ht("Node",t,"textContent")}function Pp(t,n){return cu("Node",t,"contains")(n)}function Np(t){return cu("Node",t,"getRootNode")()}function Lp(t){return!t||!("host"in t)?null:ht("ShadowRoot",t,"host")}function Dp(t){return t.styleSheets}function Fp(t){return!t||!("shadowRoot"in t)?null:ht("Element",t,"shadowRoot")}function Up(t,n){return ht("Element",t,"querySelector")(n)}function Bp(t,n){return ht("Element",t,"querySelectorAll")(n)}function zp(){return po("MutationObserver").constructor}function Wp(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(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(o){return function(){}}}var ke={childNodes:Rp,parentNode:Mp,parentElement:Tp,textContent:$p,contains:Pp,getRootNode:Np,host:Lp,styleSheets:Dp,shadowRoot:Fp,querySelector:Up,querySelectorAll:Bp,mutationObserver:zp,patch:Wp};function lu(t){return t.nodeType===t.ELEMENT_NODE}function Ar(t){var n=t&&"host"in t&&"mode"in t&&ke.host(t)||null;return!!(n&&"shadowRoot"in n&&ke.shadowRoot(n)===t)}function Rr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Gp(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 qp(t){var n=t.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?i.push("layer"):t.layerName&&i.push("layer("+t.layerName+")"),t.supportsText&&i.push("supports("+t.supportsText+")"),t.media.length&&i.push(t.media.mediaText),i.join(" ")+";"}function mo(t){try{var n=t.rules||t.cssRules;if(!n)return null;var i=t.href;!i&&t.ownerNode&&t.ownerNode.ownerDocument&&(i=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return fu(r,i)}).join("");return Gp(e)}catch(r){return null}}function fu(t,n){if(jp(t)){var i;try{i=mo(t.styleSheet)||qp(t)}catch(r){i=t.cssText}return t.styleSheet.href?Sn(i,t.styleSheet.href):i}else{var e=t.cssText;return Hp(t)&&t.selectorText.includes(":")&&(e=Vp(e)),n?Sn(e,n):e}}function Vp(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function jp(t){return"styleSheet"in t}function Hp(t){return"selectorText"in t}var hu=(function(){function t(){su(this,"idNodeMap",new Map),su(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var o=(r=this.getMeta(e))==null?void 0:r.id;return o!=null?o:-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,r){var o=this;r===void 0&&(r=!1);var s=this.getId(e);this.idNodeMap.delete(s),r&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return o.removeNodeFromMap(a,r)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var o=r.id;this.idNodeMap.set(o,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var o=this.getNode(e);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function Yp(){return new hu}function wn(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,o=t.value,s=t.maskInputFn,a=o||"",u=r&&Tt(r);return(i[e.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function Tt(t){return t.toLowerCase()}var pu="__rrweb_original__";function Kp(t){var n=t.getContext("2d");if(!n)return!0;for(var i=50,e=0;e<t.width;e+=i)for(var r=0;r<t.height;r+=i){var o=n.getImageData,s=pu in o?o[pu]:o,a=new Uint32Array(s.call(n,e,r,Math.min(i,t.width-e),Math.min(i,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function bn(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Tt(n):null}function du(t,n){var i;try{i=new URL(t,n!=null?n:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),o;return(o=r==null?void 0:r[1])!=null?o:null}function Jp(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var Xp=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Zp=/^(?:[a-z+]+:)?\/\//i,Qp=/^www\..*/i,ed=/^(data:)([^,]*),(.*)/i;function Sn(t,n){return(t||"").replace(Xp,function(i,e,r,o,s,a){var u=r||s||a,c=e||o||"";if(!u)return i;if(Zp.test(u)||Qp.test(u)||ed.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Jp(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var h=I(f),g;!(g=h()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function Cn(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function td(t,n,i){i===void 0&&(i=!1);var e=Array.from(n.childNodes),r=[],o=0;if(e.length>1&&t&&typeof t=="string"){for(var s=Cn(t,i),a=s.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var c=Cn(e[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var h=c.substring(0,f),g=s.split(h),v=-1;if(g.length===2)v=g[0].length;else if(g.length>2&&g[0]===""&&e[u-1].textContent!=="")v=s.indexOf(h,1);else if(g.length===1){if(h=h.substring(0,h.length-1),g=s.split(h),g.length<=1)return r.push(t),r;f=l+1}else f===c.length-1&&(v=s.indexOf(h));if(g.length>=2&&f>l){var y=e[u-1].textContent;if(y&&typeof y=="string"){var d=Cn(y).length;v=s.indexOf(h,d)}v===-1&&(v=g[0].length)}if(v!==-1){for(var m=Math.floor(v/a);m>0&&m<t.length;){if(o+=1,o>50*e.length)return r.push(t),r;var _=Cn(t.substring(0,m),i);if(_.length===v){r.push(t.substring(0,m)),t=t.substring(m),s=s.substring(v);break}else _.length<v?m+=Math.max(1,Math.floor((v-_.length)/a)):m-=Math.max(1,Math.floor((_.length-v)*a))}break}}}}return r.push(t),r}function rd(t,n){return td(t,n).join("/* rr_split */")}var nd=1,id=new RegExp("[^a-z0-9-_:]"),Mr=-2;function vu(){return nd++}function od(t){if(A(t,HTMLFormElement))return"form";var n=Tt(t.tagName);return id.test(n)?"div":n}var Kt,gu,sd=/^[^ \t\n\r\u000c]+/,ad=/^[, \t\n\r\u000c]+/;function ud(t,n){if(n.trim()==="")return n;var i=0;function e(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];e(ad),!(i>=n.length);){var o=e(sd);if(o.slice(-1)===",")o=Jt(t,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Jt(t,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var mu=new WeakMap;function Jt(t,n){return!n||n.trim()===""?n:yo(t,n)}function cd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function yo(t,n){var i=mu.get(t);if(i||(i=t.createElement("a"),mu.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function yu(t,n,i,e){return e&&(i==="src"||i==="href"&&!(n==="use"&&e[0]==="#")||i==="xlink:href"&&e[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?Jt(t,e):i==="srcset"?ud(t,e):i==="style"?Sn(e,yo(t)):n==="object"&&i==="data"?Jt(t,e):e)}function _u(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function ld(t,n,i){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(i)return t.matches(i)}catch(o){}return!1}function En(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?En(ke.parentNode(t),n,i):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return i?En(ke.parentNode(t),n,i):!1}function wu(t,n,i,e){var r;if(lu(t)){if(r=t,!ke.childNodes(r).length)return!1}else{if(ke.parentElement(t)===null)return!1;r=ke.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(En(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function fd(t,n,i){var e=t.contentWindow;if(e){var r=!1,o;try{o=e.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);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 hd(t,n,i){var e=!1,r;try{r=t.sheet}catch(s){return}if(!r){var o=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(o),e=!0,n()})}}function pd(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,h=n.dataURLOptions,g=h===void 0?{}:h,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,b=n.cssCaptured,S=b===void 0?!1:b,C=dd(i,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 gd(t,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:C});case t.TEXT_NODE:return vd(t,{doc:i,needsMask:s,maskTextFn:l,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:ke.textContent(t)||"",rootId:C};default:return!1}}function dd(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function vd(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=ke.parentNode(t),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=ke.textContent(t),c&&u&&(u=Sn(u,yo(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,ke.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ie.Text,textContent:u||"",rootId:r}}function gd(t,n){for(var i=n.doc,e=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,h=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=ld(t,e,r),_=od(t),b={},S=t.attributes.length,C=0;C<S;C++){var x=t.attributes[C];_u(_,x.name,x.value)||(b[x.name]=yu(i,_,Tt(x.name),x.value))}if(_==="link"&&o){var T=Array.from(i.styleSheets).find(function(De){return De.href===t.href}),k=null;T&&(k=mo(T)),k&&(delete b.rel,delete b.href,b._cssText=k)}if(_==="style"&&t.sheet){var $=mo(t.sheet);$&&(t.childNodes.length>1&&($=rd($,t)),b._cssText=$)}if(_==="input"||_==="textarea"||_==="select"){var W=t.value,ge=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&W?b.value=wn({element:t,type:bn(t),tagName:_,value:W,maskInputOptions:a,maskInputFn:u}):ge&&(b.checked=ge)}if(_==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),_==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&h){if(t.__context==="2d")Kp(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var P=t.toDataURL(l.type,l.quality),G=i.createElement("canvas");G.width=t.width,G.height=t.height;var he=G.toDataURL(l.type,l.quality);P!==he&&(b.rr_dataURL=P)}}if(_==="img"&&f){Kt||(Kt=i.createElement("canvas"),gu=Kt.getContext("2d"));var Y=t,Le=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",Pe=Y.crossOrigin,Oe=function(){Y.removeEventListener("load",Oe);try{Kt.width=Y.naturalWidth,Kt.height=Y.naturalHeight,gu.drawImage(Y,0,0),b.rr_dataURL=Kt.toDataURL(l.type,l.quality)}catch(De){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?Oe():Y.addEventListener("load",Oe);return}else console.warn("Cannot inline img src="+Le+"! Error: "+De)}Y.crossOrigin==="anonymous"&&(Pe?b.crossOrigin=Pe:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?Oe():Y.addEventListener("load",Oe)}if(_==="audio"||_==="video"){var pe=b;pe.rr_mediaState=t.paused?"paused":"played",pe.rr_mediaCurrentTime=t.currentTime,pe.rr_mediaPlaybackRate=t.playbackRate,pe.rr_mediaMuted=t.muted,pe.rr_mediaLoop=t.loop,pe.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),m){var xe=t.getBoundingClientRect(),Bt=xe.width,Qe=xe.height;b={class:b.class,rr_width:""+Bt+"px",rr_height:""+Qe+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Sr;try{customElements.get(_)&&(Sr=!0)}catch(De){}return{type:Ie.Element,tagName:_,attributes:b,childNodes:[],isSVG:cd(t)||void 0,needBlock:m,rootId:d,isCustom:Sr}}function ee(t){return t==null?"":t.toLowerCase()}function md(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"&&du(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(ee(t.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(t.attributes.name)==="application-name"||ee(t.attributes.rel)==="icon"||ee(t.attributes.rel)==="apple-touch-icon"||ee(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&ee(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(t.attributes.property).match(/^(og|twitter|fb):/)||ee(t.attributes.name).match(/^(og|twitter):/)||ee(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(t.attributes.name)==="robots"||ee(t.attributes.name)==="googlebot"||ee(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(t.attributes.name)==="author"||ee(t.attributes.name)==="generator"||ee(t.attributes.name)==="framework"||ee(t.attributes.name)==="publisher"||ee(t.attributes.name)==="progid"||ee(t.attributes.property).match(/^article:/)||ee(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(t.attributes.name)==="google-site-verification"||ee(t.attributes.name)==="yandex-verification"||ee(t.attributes.name)==="csrf-token"||ee(t.attributes.name)==="p:domain_verify"||ee(t.attributes.name)==="verify-v1"||ee(t.attributes.name)==="verification"||ee(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Xt(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,h=n.maskInputOptions,g=h===void 0?{}:h,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,b=n.inlineImages,S=b===void 0?!1:b,C=n.recordCanvas,x=C===void 0?!1:C,T=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,W=$===void 0?5e3:$,ge=n.onStylesheetLoad,P=n.stylesheetLoadTimeout,G=P===void 0?5e3:P,he=n.keepIframeSrcFn,Y=he===void 0?function(){return!1}:he,Le=n.newlyAddedElement,Pe=Le===void 0?!1:Le,Oe=n.cssCaptured,pe=Oe===void 0?!1:Oe,xe=n.needsMask,Bt=n.preserveWhiteSpace,Qe=Bt===void 0?!0:Bt;if(!xe){var Sr=xe===void 0;xe=wu(t,s,a,Sr)}var De=pd(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:x,keepIframeSrcFn:Y,newlyAddedElement:Pe,cssCaptured:pe});if(!De)return console.warn(t,"not serialized"),null;var zt;e.hasNode(t)?zt=e.getId(t):md(De,d)||!Qe&&De.type===Ie.Text&&!De.textContent.replace(/^\s+|\s+$/gm,"").length?zt=Mr:zt=vu();var K=Object.assign(De,{id:zt});if(e.add(t,K),zt===Mr)return null;T&&T(t);var Wt=!c;if(K.type===Ie.Element){Wt=Wt&&!K.needBlock,delete K.needBlock;var Gt=ke.shadowRoot(t);Gt&&Rr(Gt)&&(K.isShadowHost=!0)}if((K.type===Ie.Document||K.type===Ie.Element)&&Wt){d.headWhitespace&&K.type===Ie.Element&&K.tagName==="head"&&(Qe=!1);var Cr={doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Qe,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y,cssCaptured:!1};if(!(K.type===Ie.Element&&K.tagName==="textarea"&&K.attributes.value!==void 0)){K.type===Ie.Element&&K.attributes._cssText!==void 0&&typeof K.attributes._cssText=="string"&&(Cr.cssCaptured=!0);for(var dn=I(Array.from(ke.childNodes(t))),vn;!(vn=dn()).done;){var Xa=vn.value,uo=Xt(Xa,Cr);uo&&K.childNodes.push(uo)}}var At=null;if(lu(t)&&(At=ke.shadowRoot(t)))for(var qt=I(Array.from(ke.childNodes(At))),Er;!(Er=qt()).done;){var gn=Er.value,Ir=Xt(gn,Cr);Ir&&(Rr(At)&&(Ir.isShadow=!0),K.childNodes.push(Ir))}}var Vt=ke.parentNode(t);return Vt&&Ar(Vt)&&Rr(Vt)&&(K.isShadow=!0),K.type===Ie.Element&&K.tagName==="iframe"&&fd(t,function(){var lt=t.contentDocument;if(lt&&k){var jt=Xt(lt,{doc:lt,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Qe,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});jt&&k(t,jt)}},W),K.type===Ie.Element&&K.tagName==="link"&&typeof K.attributes.rel=="string"&&(K.attributes.rel==="stylesheet"||K.attributes.rel==="preload"&&typeof K.attributes.href=="string"&&du(K.attributes.href)==="css")&&hd(t,function(){if(ge){var lt=Xt(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Qe,onSerialize:T,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});lt&&ge(t,lt)}},G),K}function yd(t,n){var i=n||{},e=i.mirror,r=e===void 0?new hu:e,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,h=f===void 0?null:f,g=i.inlineStylesheet,v=g===void 0?!0:g,y=i.inlineImages,d=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,b=i.maskAllInputs,S=b===void 0?!1:b,C=i.maskTextFn,x=i.maskInputFn,T=i.slimDOM,k=T===void 0?!1:T,$=i.dataURLOptions,W=i.preserveWhiteSpace,ge=i.onSerialize,P=i.onIframeLoad,G=i.iframeLoadTimeout,he=i.onStylesheetLoad,Y=i.stylesheetLoadTimeout,Le=i.keepIframeSrcFn,Pe=Le===void 0?function(){return!1}:Le,Oe=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,pe=k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k;return Xt(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:v,maskInputOptions:Oe,maskTextFn:C,maskInputFn:x,slimDOMOptions:pe,dataURLOptions:$,inlineImages:d,recordCanvas:_,preserveWhiteSpace:W,onSerialize:ge,onIframeLoad:P,iframeLoadTimeout:G,onStylesheetLoad:he,stylesheetLoadTimeout:Y,keepIframeSrcFn:Pe,newlyAddedElement:!1})}function _d(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wd(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return A(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var _o={exports:{}},ie=String,bu=function(){return{isColorSupported:!1,reset:ie,bold:ie,dim:ie,italic:ie,underline:ie,inverse:ie,hidden:ie,strikethrough:ie,black:ie,red:ie,green:ie,yellow:ie,blue:ie,magenta:ie,cyan:ie,white:ie,gray:ie,bgBlack:ie,bgRed:ie,bgGreen:ie,bgYellow:ie,bgBlue:ie,bgMagenta:ie,bgCyan:ie,bgWhite:ie}};_o.exports=bu(),_o.exports.createColors=bu;var bd=_o.exports,Sd={},Cd=Object.freeze(Object.defineProperty({__proto__:null,default:Sd},Symbol.toStringTag,{value:"Module"})),me=wd(Cd),Su=bd,Cu=me,wo=(function(t){ue(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.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},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Su.isColorSupported),Cu&&r&&(s=Cu(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,h;if(r){var g=Su.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},h=function(m){return y(m)}}else f=h=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,S=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var C=h(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+m+"\n "+C+f("^")}return" "+h(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(kr(Error)),bo=wo;wo.default=wo;var pt={};pt.isClean=Symbol("isClean"),pt.my=Symbol("my");var Eu={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ed(t){return t[0].toUpperCase()+t.slice(1)}var So=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",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 o=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||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+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,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Eu[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+Ed(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Eu[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before!="undefined")return r=o.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(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.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(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before!="undefined"){var a=o.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(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},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})(),Iu=So;So.default=So;var Id=Iu;function Co(t,n){var i=new Id(n);i.stringify(t)}var In=Co;Co.default=Co;var On=pt.isClean,Od=pt.my,xd=bo,kd=Iu,Ad=In;function Eo(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r=="undefined"?"undefined":M(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Eo(s,i)}):(o==="object"&&r!==null&&(r=Eo(r)),i[e]=r)}return i}var Io=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[On]=!1,this[Od]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[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=Eo(this);for(var o in e)r[o]=e[o];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 o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new xd(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[On]){this[On]=!1;for(var e=this;e=e.parent;)e[On]=!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 o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[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},o=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),o=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?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new kd;return o.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),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}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 o={},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 c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Ad),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ne(t,[{key:"proxyOf",get:function(){return this}}]),t})(),xn=Io;Io.default=Io;var Rd=xn,Oo=(function(t){ue(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=B({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ne(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Rd),kn=Oo;Oo.default=Oo;var Md="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Td=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Md[Math.random()*64|0];return n},$d={nanoid:Td},Ou=me.SourceMapConsumer,xu=me.SourceMapGenerator,Pd=me.existsSync,Nd=me.readFileSync,xo=me.dirname,Ld=me.join;function Dd(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var ko=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=xo(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ou(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^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)||o.test(e))return Dd(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":M(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 o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=xo(e),Pd(e))return this.mapFile=e,Nd(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 o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(A(r,Ou))return xu.fromSourceMap(r).toString();if(A(r,xu))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=Ld(xo(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})(),ku=ko;ko.default=ko;var Fd=me.SourceMapConsumer,Ud=me.SourceMapGenerator,Au=me.fileURLToPath,An=me.pathToFileURL,Ao=me.isAbsolute,Ro=me.resolve,Bd=$d.nanoid,Mo=me,Ru=bo,zd=ku,To=Symbol("fromOffsetCache"),Wd=!!(Fd&&Ud),Mu=!!(Ro&&Ao),Rn=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":M(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Mu||/^\w+:\/\//.test(e.from)||Ao(e.from)?this.file=e.from:this.file=Ro(e.from)),Mu&&Wd){var r=new zd(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Bd(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":M(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);r=h.line,o=h.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new Ru(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 Ru(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(An&&(a.input.url=An(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[To])o=this[To];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[To]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Ro(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Ao(u.source)?l=An(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||An(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Au)f.file=Au(l);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,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[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},ne(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Mn=Rn;Rn.default=Rn,Mo&&Mo.registerInput&&Mo.registerInput(Rn);var Tu=me.SourceMapConsumer,Tn=me.SourceMapGenerator,$n=me.dirname,$u=me.relative,Pu=me.resolve,Nu=me.sep,Lu=me.pathToFileURL,Gd=Mn,qd=!!(Tu&&Tn),Vd=!!($n&&Pu&&$u&&Nu),jd=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,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=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||$n(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Tu(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.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(),Vd&&qd&&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=Tn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Tn({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 Tn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,h){if(e.css+=l,f&&h!=="end"&&(a.generated.line=r,a.generated.column=o-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=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.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=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-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 o=this.opts.to?$n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=$n(Pu(o,this.mapOpts.annotation)));var s=$u(o,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(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new Gd(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 o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,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(Lu){var o=Lu(e).toString();return this.memoizedFileURLs.set(e,o),o}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;Nu==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Du=jd,Hd=xn,$o=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Hd),Pn=$o;$o.default=$o;var Fu=pt.isClean,Uu=pt.my,Bu=kn,zu=Pn,Yd=xn,Wu,Po,No,Gu;function qu(t){return t.map(function(n){return n.nodes&&(n.nodes=qu(n.nodes)),delete n.source,n})}function Vu(t){if(t[Fu]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Vu(e)}}var et=(function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(h,g){return f(h.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=qu(Wu(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).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 Bu(r)]}else if(r.selector)r=[new Po(r)];else if(r.name)r=[new No(r)];else if(r.text)r=[new zu(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Uu]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Fu]&&Vu(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ne(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})(Yd);et.registerParse=function(t){Wu=t},et.registerRule=function(t){Po=t},et.registerAtRule=function(t){No=t},et.registerRoot=function(t){Gu=t};var $t=et;et.default=et,et.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,No.prototype):t.type==="rule"?Object.setPrototypeOf(t,Po.prototype):t.type==="decl"?Object.setPrototypeOf(t,Bu.prototype):t.type==="comment"?Object.setPrototypeOf(t,zu.prototype):t.type==="root"&&Object.setPrototypeOf(t,Gu.prototype),t[Uu]=!0,t.nodes&&t.nodes.forEach(function(n){et.rebuild(n)})};var Kd=$t,ju,Hu,Tr=(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 i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new ju(new Hu,this,r);return o.stringify()},n})(Kd);Tr.registerLazyResult=function(t){ju=t},Tr.registerProcessor=function(t){Hu=t};var Lo=Tr;Tr.default=Tr;var Yu={},Ku=function(n){Yu[n]||(Yu[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Do=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,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 o in e)this[o]=e[o]}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})(),Ju=Do;Do.default=Do;var Jd=Ju,Fo=(function(){function t(i,e,r){this.processor=i,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 o=new Jd(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ne(t,[{key:"content",get:function(){return this.css}}]),t})(),Uo=Fo;Fo.default=Fo;var Bo=39,Xu=34,Nn=92,Zu=47,Ln=10,$r=32,Dn=12,Fn=9,Un=13,Xd=91,Zd=93,Qd=40,ev=41,tv=123,rv=125,nv=59,iv=42,ov=58,sv=64,Bn=/[\t\n\f\r "#'()/;[\\\]{}]/g,zn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,av=/.[\r\n"'(/\\]/,Qu=/[\da-f]/i,uv=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function x(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(o=e.charCodeAt(d),o){case Ln:case $r:case Fn:case Un:case Dn:{s=d;do s+=1,o=e.charCodeAt(s);while(o===$r||o===Ln||o===Fn||o===Un||o===Dn);v=["space",e.slice(d,s)],d=s-1;break}case Xd:case Zd:case tv:case rv:case ov:case nv:case ev:{var W=String.fromCharCode(o);v=[W,W,d];break}case Qd:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==Bo&&g!==Xu&&g!==$r&&g!==Ln&&g!==Fn&&g!==Dn&&g!==Un){s=d;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=d;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===Nn;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||av.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case Bo:case Xu:{a=o===Bo?"'":'"',s=d;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=d+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===Nn;)f-=1,l=!l}while(l);v=["string",e.slice(d,s+1),d,s],d=s;break}case sv:{Bn.lastIndex=d+1,Bn.test(e),Bn.lastIndex===0?s=e.length-1:s=Bn.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case Nn:{for(s=d,c=!0;e.charCodeAt(s+1)===Nn;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Zu&&o!==$r&&o!==Ln&&o!==Fn&&o!==Un&&o!==Dn&&(s+=1,Qu.test(e.charAt(s)))){for(;Qu.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===$r&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===Zu&&e.charCodeAt(d+1)===iv?(s=e.indexOf("*/",d+2)+1,s===0&&(r||$?s=e.length:S("comment")),v=["comment",e.slice(d,s+1),d,s],d=s):(zn.lastIndex=d+1,zn.test(e),zn.lastIndex===0?s=e.length-1:s=zn.lastIndex-2,v=["word",e.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function T(k){_.push(k)}return{back:T,endOfFile:C,nextToken:x,position:b}},ec=$t,Wn=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(ec),zo=Wn;Wn.default=Wn,ec.registerAtRule(Wn);var tc=$t,rc,nc,Zt=(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 i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new rc(new nc,this,r);return o.stringify()},n})(tc);Zt.registerLazyResult=function(t){rc=t},Zt.registerProcessor=function(t){nc=t};var Pr=Zt;Zt.default=Zt,tc.registerRoot(Zt);var Nr={comma:function(n){return Nr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Nr.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=I(n),h;!(h=f()).done;){var g=h.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},ic=Nr;Nr.default=Nr;var oc=$t,cv=ic,Gn=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ne(n,[{key:"selectors",get:function(){return cv.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(oc),Wo=Gn;Gn.default=Gn,oc.registerRule(Gn);var lv=kn,fv=uv,hv=Pn,pv=zo,dv=Pr,sc=Wo,ac={empty:!0,space:!0};function vv(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var gv=(function(){function t(i){this.input=i,this.root=new dv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new pv;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.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=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],h=l[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(e){var r=new hv;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=fv(this.input)},n.decl=function(e,r){var o=new lv;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||vv(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.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 sc;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,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===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(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},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,o,s){for(var a,u,c=o.length,l="",f=!0,h,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",h=o[v+1]?o[v+1][0]:"empty",!ac[g]&&!ac[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new sc;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,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},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})(),mv=gv,yv=$t,_v=mv,wv=Mn;function qn(t,n){var i=new wv(t,n),e=new _v(i);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 Go=qn;qn.default=qn,yv.registerParse(qn);var qe=pt.isClean,bv=pt.my,Sv=Du,Cv=In,Ev=$t,Iv=Lo,Ov=Ku,uc=Uo,xv=Go,kv=Pr,Av={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Rv={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},Mv={Once:!0,postcssPlugin:!0,prepare:!0},Qt=0;function Lr(t){return(typeof t=="undefined"?"undefined":M(t))==="object"&&typeof t.then=="function"}function cc(t){var n=!1,i=Av[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Qt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Qt,i+"Exit"]:[i,i+"Exit"]}function lc(t){var n;return t.type==="document"?n=["Document",Qt,"DocumentExit"]:t.type==="root"?n=["Root",Qt,"RootExit"]:n=cc(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function qo(t){return t[qe]=!1,t.nodes&&t.nodes.forEach(function(n){return qo(n)}),t}var Vo={},er=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=qo(e);else if(A(e,t)||A(e,uc))s=qo(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=xv;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[bv]&&Ev.rebuild(s)}this.result=new uc(i,s,r),this.helpers=B({},Vo,{postcss:Vo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?B({},u,u.prepare(o.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 o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[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(l,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!Rv[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Mv[u])if(M(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);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 mn(function(){var r,o,s,a,u,c,l,f,h,g,v,y;return Mt(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(o=e.plugins[r],s=e.runOnRoot(o),!Lr(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[qe])return[3,14];u[qe]=!0,c=[lc(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Lr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),h=c[c.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];g=function(){var m,_,b,S,C;return Mt(this,function(x){switch(x.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(T){return b(T,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,ho(g())];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":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Lr(o[0])?Promise.all(o):o}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=Cv;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new Sv(r,this.result.root,this.result.opts),s=o.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(Lr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[qe];)a[qe]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}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||Ov("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 o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Lr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[qe]){f[qe]=!0,e.push(lc(f));return}r.iterator=0,delete o.indexes[l]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===Qt){o.nodes&&o.nodes.length&&(o[qe]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[qe]=!0;for(var o=cc(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===Qt)e.nodes&&e.each(function(l){l[qe]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ne(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})();er.registerPostcss=function(t){Vo=t};var fc=er;er.default=er,kv.registerLazyResult(er),Iv.registerLazyResult(er);var Tv=Du,$v=In,Pv=Ku,Nv=Go,Lv=Uo,jo=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=$v;this.result=new Lv(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Tv(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),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||Pv("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[]},ne(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=Nv;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Dv=jo;jo.default=jo;var Fv=Dv,Uv=fc,Bv=Lo,zv=Pr,Dr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":M(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 Fv(this,e,r):new Uv(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Wv=Dr;Dr.default=Dr,zv.registerProcessor(Dr),Bv.registerProcessor(Dr);var Gv=kn,qv=ku,Vv=Pn,jv=zo,Hv=Mn,Yv=Pr,Kv=Wo;function Fr(t,n){if(Array.isArray(t))return t.map(function(f){return Fr(f)});var i=t.inputs,e=Rt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=B({},s,{__proto__:Hv.prototype});a.map&&(a.map=B({},a.map,{__proto__:qv.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Fr(f,n)})),e.source){var u=e.source,c=u.inputId,l=Rt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Yv(e);if(e.type==="decl")return new Gv(e);if(e.type==="rule")return new Kv(e);if(e.type==="comment")return new Vv(e);if(e.type==="atrule")return new jv(e);throw new Error("Unknown node type: "+t.type)}var Jv=Fr;Fr.default=Fr;var Xv=bo,hc=kn,Zv=fc,Qv=$t,Ho=Wv,eg=In,tg=Jv,pc=Lo,rg=Ju,dc=Pn,vc=zo,ng=Uo,ig=Mn,og=Go,sg=ic,gc=Wo,mc=Pr,ag=xn;function X(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ho(n)}X.plugin=function(n,i){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 c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Ho().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return X([r(u)]).process(s,a)},r},X.stringify=eg,X.parse=og,X.fromJSON=tg,X.list=sg,X.comment=function(t){return new dc(t)},X.atRule=function(t){return new vc(t)},X.decl=function(t){return new hc(t)},X.rule=function(t){return new gc(t)},X.root=function(t){return new mc(t)},X.document=function(t){return new pc(t)},X.CssSyntaxError=Xv,X.Declaration=hc,X.Container=Qv,X.Processor=Ho,X.Document=pc,X.Comment=dc,X.Warning=rg,X.AtRule=vc,X.Result=ng,X.Input=ig,X.Rule=gc,X.Root=mc,X.Node=ag,Zv.registerPostcss(X);var ug=X;X.default=X;var ce=_d(ug);ce.stringify,ce.fromJSON,ce.plugin,ce.parse,ce.list,ce.document,ce.comment,ce.atRule,ce.rule,ce.decl,ce.root,ce.CssSyntaxError,ce.Declaration,ce.Container,ce.Processor,ce.Document,ce.Comment,ce.Warning,ce.AtRule,ce.Result,ce.Input,ce.Rule,ce.Root,ce.Node;var cg=Object.defineProperty,lg=function(t,n,i){return n in t?cg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Fe=function(t,n,i){return lg(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)};function fg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function hg(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return A(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Yo={exports:{}},oe=String,yc=function(){return{isColorSupported:!1,reset:oe,bold:oe,dim:oe,italic:oe,underline:oe,inverse:oe,hidden:oe,strikethrough:oe,black:oe,red:oe,green:oe,yellow:oe,blue:oe,magenta:oe,cyan:oe,white:oe,gray:oe,bgBlack:oe,bgRed:oe,bgGreen:oe,bgYellow:oe,bgBlue:oe,bgMagenta:oe,bgCyan:oe,bgWhite:oe}};Yo.exports=yc(),Yo.exports.createColors=yc;var pg=Yo.exports,dg={},vg=Object.freeze(Object.defineProperty({__proto__:null,default:dg},Symbol.toStringTag,{value:"Module"})),ye=hg(vg),_c=pg,wc=ye,Ko=(function(t){ue(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.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},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=_c.isColorSupported),wc&&r&&(s=wc(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,h;if(r){var g=_c.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},h=function(m){return y(m)}}else f=h=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,S=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var C=h(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+m+"\n "+C+f("^")}return" "+h(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(kr(Error)),Jo=Ko;Ko.default=Ko;var dt={};dt.isClean=Symbol("isClean"),dt.my=Symbol("my");var bc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function gg(t){return t[0].toUpperCase()+t.slice(1)}var Xo=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",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 o=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||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+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,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return bc[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+gg(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=bc[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before!="undefined")return r=o.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(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.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(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before!="undefined"){var a=o.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(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},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})(),Sc=Xo;Xo.default=Xo;var mg=Sc;function Zo(t,n){var i=new mg(n);i.stringify(t)}var Vn=Zo;Zo.default=Zo;var jn=dt.isClean,yg=dt.my,_g=Jo,wg=Sc,bg=Vn;function Qo(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r=="undefined"?"undefined":M(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Qo(s,i)}):(o==="object"&&r!==null&&(r=Qo(r)),i[e]=r)}return i}var es=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[jn]=!1,this[yg]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[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=Qo(this);for(var o in e)r[o]=e[o];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 o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new _g(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[jn]){this[jn]=!1;for(var e=this;e=e.parent;)e[jn]=!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 o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[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},o=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),o=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?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new wg;return o.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),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}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 o={},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 c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=bg),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ne(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Hn=es;es.default=es;var Sg=Hn,ts=(function(t){ue(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=B({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ne(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Sg),Yn=ts;ts.default=ts;var Cg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Eg=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Cg[Math.random()*64|0];return n},Ig={nanoid:Eg},Cc=ye.SourceMapConsumer,Ec=ye.SourceMapGenerator,Og=ye.existsSync,xg=ye.readFileSync,rs=ye.dirname,kg=ye.join;function Ag(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var ns=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=rs(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Cc(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^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)||o.test(e))return Ag(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":M(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 o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=rs(e),Og(e))return this.mapFile=e,xg(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 o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(A(r,Cc))return Ec.fromSourceMap(r).toString();if(A(r,Ec))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=kg(rs(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})(),Ic=ns;ns.default=ns;var Rg=ye.SourceMapConsumer,Mg=ye.SourceMapGenerator,Oc=ye.fileURLToPath,Kn=ye.pathToFileURL,is=ye.isAbsolute,os=ye.resolve,Tg=Ig.nanoid,ss=ye,xc=Jo,$g=Ic,as=Symbol("fromOffsetCache"),Pg=!!(Rg&&Mg),kc=!!(os&&is),Jn=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":M(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!kc||/^\w+:\/\//.test(e.from)||is(e.from)?this.file=e.from:this.file=os(e.from)),kc&&Pg){var r=new $g(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+Tg(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":M(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);r=h.line,o=h.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new xc(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 xc(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Kn&&(a.input.url=Kn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[as])o=this[as];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[as]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:os(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;is(u.source)?l=Kn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Kn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Oc)f.file=Oc(l);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,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[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},ne(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Xn=Jn;Jn.default=Jn,ss&&ss.registerInput&&ss.registerInput(Jn);var Ac=ye.SourceMapConsumer,Zn=ye.SourceMapGenerator,Qn=ye.dirname,Rc=ye.relative,Mc=ye.resolve,Tc=ye.sep,$c=ye.pathToFileURL,Ng=Xn,Lg=!!(Ac&&Zn),Dg=!!(Qn&&Mc&&Rc&&Tc),Fg=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,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=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Qn(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ac(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.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(),Dg&&Lg&&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=Zn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Zn({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 Zn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,h){if(e.css+=l,f&&h!=="end"&&(a.generated.line=r,a.generated.column=o-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=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.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=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-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 o=this.opts.to?Qn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Qn(Mc(o,this.mapOpts.annotation)));var s=Rc(o,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(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new Ng(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 o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,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($c){var o=$c(e).toString();return this.memoizedFileURLs.set(e,o),o}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;Tc==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Pc=Fg,Ug=Hn,us=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Ug),ei=us;us.default=us;var Nc=dt.isClean,Lc=dt.my,Dc=Yn,Fc=ei,Bg=Hn,Uc,cs,ls,Bc;function zc(t){return t.map(function(n){return n.nodes&&(n.nodes=zc(n.nodes)),delete n.source,n})}function Wc(t){if(t[Nc]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Wc(e)}}var tt=(function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(h,g){return f(h.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=zc(Uc(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).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 Dc(r)]}else if(r.selector)r=[new cs(r)];else if(r.name)r=[new ls(r)];else if(r.text)r=[new Fc(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Lc]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Nc]&&Wc(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ne(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})(Bg);tt.registerParse=function(t){Uc=t},tt.registerRule=function(t){cs=t},tt.registerAtRule=function(t){ls=t},tt.registerRoot=function(t){Bc=t};var Pt=tt;tt.default=tt,tt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,ls.prototype):t.type==="rule"?Object.setPrototypeOf(t,cs.prototype):t.type==="decl"?Object.setPrototypeOf(t,Dc.prototype):t.type==="comment"?Object.setPrototypeOf(t,Fc.prototype):t.type==="root"&&Object.setPrototypeOf(t,Bc.prototype),t[Lc]=!0,t.nodes&&t.nodes.forEach(function(n){tt.rebuild(n)})};var zg=Pt,Gc,qc,Ur=(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 i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new Gc(new qc,this,r);return o.stringify()},n})(zg);Ur.registerLazyResult=function(t){Gc=t},Ur.registerProcessor=function(t){qc=t};var fs=Ur;Ur.default=Ur;var Vc={},jc=function(n){Vc[n]||(Vc[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},hs=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,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 o in e)this[o]=e[o]}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})(),Hc=hs;hs.default=hs;var Wg=Hc,ps=(function(){function t(i,e,r){this.processor=i,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 o=new Wg(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ne(t,[{key:"content",get:function(){return this.css}}]),t})(),ds=ps;ps.default=ps;var vs=39,Yc=34,ti=92,Kc=47,ri=10,Br=32,ni=12,ii=9,oi=13,Gg=91,qg=93,Vg=40,jg=41,Hg=123,Yg=125,Kg=59,Jg=42,Xg=58,Zg=64,si=/[\t\n\f\r "#'()/;[\\\]{}]/g,ai=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qg=/.[\r\n"'(/\\]/,Jc=/[\da-f]/i,em=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function x(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(o=e.charCodeAt(d),o){case ri:case Br:case ii:case oi:case ni:{s=d;do s+=1,o=e.charCodeAt(s);while(o===Br||o===ri||o===ii||o===oi||o===ni);v=["space",e.slice(d,s)],d=s-1;break}case Gg:case qg:case Hg:case Yg:case Xg:case Kg:case jg:{var W=String.fromCharCode(o);v=[W,W,d];break}case Vg:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==vs&&g!==Yc&&g!==Br&&g!==ri&&g!==ii&&g!==ni&&g!==oi){s=d;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=d;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===ti;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||Qg.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case vs:case Yc:{a=o===vs?"'":'"',s=d;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=d+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===ti;)f-=1,l=!l}while(l);v=["string",e.slice(d,s+1),d,s],d=s;break}case Zg:{si.lastIndex=d+1,si.test(e),si.lastIndex===0?s=e.length-1:s=si.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case ti:{for(s=d,c=!0;e.charCodeAt(s+1)===ti;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Kc&&o!==Br&&o!==ri&&o!==ii&&o!==oi&&o!==ni&&(s+=1,Jc.test(e.charAt(s)))){for(;Jc.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Br&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===Kc&&e.charCodeAt(d+1)===Jg?(s=e.indexOf("*/",d+2)+1,s===0&&(r||$?s=e.length:S("comment")),v=["comment",e.slice(d,s+1),d,s],d=s):(ai.lastIndex=d+1,ai.test(e),ai.lastIndex===0?s=e.length-1:s=ai.lastIndex-2,v=["word",e.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function T(k){_.push(k)}return{back:T,endOfFile:C,nextToken:x,position:b}},Xc=Pt,ui=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(Xc),gs=ui;ui.default=ui,Xc.registerAtRule(ui);var Zc=Pt,Qc,el,tr=(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 i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Qc(new el,this,r);return o.stringify()},n})(Zc);tr.registerLazyResult=function(t){Qc=t},tr.registerProcessor=function(t){el=t};var zr=tr;tr.default=tr,Zc.registerRoot(tr);var Wr={comma:function(n){return Wr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Wr.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=I(n),h;!(h=f()).done;){var g=h.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},tl=Wr;Wr.default=Wr;var rl=Pt,tm=tl,ci=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ne(n,[{key:"selectors",get:function(){return tm.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(rl),ms=ci;ci.default=ci,rl.registerRule(ci);var rm=Yn,nm=em,im=ei,om=gs,sm=zr,nl=ms,il={empty:!0,space:!0};function am(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var um=(function(){function t(i){this.input=i,this.root=new sm,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new om;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.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=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],h=l[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(e){var r=new im;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=nm(this.input)},n.decl=function(e,r){var o=new rm;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||am(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.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 nl;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,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===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(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},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,o,s){for(var a,u,c=o.length,l="",f=!0,h,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",h=o[v+1]?o[v+1][0]:"empty",!il[g]&&!il[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new nl;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,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},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})(),cm=um,lm=Pt,fm=cm,hm=Xn;function li(t,n){var i=new hm(t,n),e=new fm(i);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 ys=li;li.default=li,lm.registerParse(li);var Ve=dt.isClean,pm=dt.my,dm=Pc,vm=Vn,gm=Pt,mm=fs,ym=jc,ol=ds,_m=ys,wm=zr,bm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sm={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Cm={Once:!0,postcssPlugin:!0,prepare:!0},rr=0;function Gr(t){return(typeof t=="undefined"?"undefined":M(t))==="object"&&typeof t.then=="function"}function sl(t){var n=!1,i=bm[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,rr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,rr,i+"Exit"]:[i,i+"Exit"]}function al(t){var n;return t.type==="document"?n=["Document",rr,"DocumentExit"]:t.type==="root"?n=["Root",rr,"RootExit"]:n=sl(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function _s(t){return t[Ve]=!1,t.nodes&&t.nodes.forEach(function(n){return _s(n)}),t}var ws={},nr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=_s(e);else if(A(e,t)||A(e,ol))s=_s(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=_m;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[pm]&&gm.rebuild(s)}this.result=new ol(i,s,r),this.helpers=B({},ws,{postcss:ws,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?B({},u,u.prepare(o.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 o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[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(l,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!Sm[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Cm[u])if(M(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);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 mn(function(){var r,o,s,a,u,c,l,f,h,g,v,y;return Mt(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(o=e.plugins[r],s=e.runOnRoot(o),!Gr(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[Ve])return[3,14];u[Ve]=!0,c=[al(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Gr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),h=c[c.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];g=function(){var m,_,b,S,C;return Mt(this,function(x){switch(x.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(T){return b(T,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,ho(g())];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":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Gr(o[0])?Promise.all(o):o}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=vm;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new dm(r,this.result.root,this.result.opts),s=o.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(Gr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ve];)a[Ve]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}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||ym("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 o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Gr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ve]){f[Ve]=!0,e.push(al(f));return}r.iterator=0,delete o.indexes[l]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===rr){o.nodes&&o.nodes.length&&(o[Ve]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ve]=!0;for(var o=sl(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===rr)e.nodes&&e.each(function(l){l[Ve]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ne(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})();nr.registerPostcss=function(t){ws=t};var ul=nr;nr.default=nr,wm.registerLazyResult(nr),mm.registerLazyResult(nr);var Em=Pc,Im=Vn,Om=jc,xm=ys,km=ds,bs=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=Im;this.result=new km(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Em(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),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||Om("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[]},ne(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=xm;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Am=bs;bs.default=bs;var Rm=Am,Mm=ul,Tm=fs,$m=zr,qr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":M(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 Rm(this,e,r):new Mm(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Pm=qr;qr.default=qr,$m.registerProcessor(qr),Tm.registerProcessor(qr);var Nm=Yn,Lm=Ic,Dm=ei,Fm=gs,Um=Xn,Bm=zr,zm=ms;function Vr(t,n){if(Array.isArray(t))return t.map(function(f){return Vr(f)});var i=t.inputs,e=Rt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=B({},s,{__proto__:Um.prototype});a.map&&(a.map=B({},a.map,{__proto__:Lm.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Vr(f,n)})),e.source){var u=e.source,c=u.inputId,l=Rt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Bm(e);if(e.type==="decl")return new Nm(e);if(e.type==="rule")return new zm(e);if(e.type==="comment")return new Dm(e);if(e.type==="atrule")return new Fm(e);throw new Error("Unknown node type: "+t.type)}var Wm=Vr;Vr.default=Vr;var Gm=Jo,cl=Yn,qm=ul,Vm=Pt,Ss=Pm,jm=Vn,Hm=Wm,ll=fs,Ym=Hc,fl=ei,hl=gs,Km=ds,Jm=Xn,Xm=ys,Zm=tl,pl=ms,dl=zr,Qm=Hn;function Z(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ss(n)}Z.plugin=function(n,i){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 c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Ss().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r},Z.stringify=jm,Z.parse=Xm,Z.fromJSON=Hm,Z.list=Zm,Z.comment=function(t){return new fl(t)},Z.atRule=function(t){return new hl(t)},Z.decl=function(t){return new cl(t)},Z.rule=function(t){return new pl(t)},Z.root=function(t){return new dl(t)},Z.document=function(t){return new ll(t)},Z.CssSyntaxError=Gm,Z.Declaration=cl,Z.Container=Vm,Z.Processor=Ss,Z.Document=ll,Z.Comment=fl,Z.Warning=Ym,Z.AtRule=hl,Z.Result=Km,Z.Input=Jm,Z.Rule=pl,Z.Root=dl,Z.Node=Qm,qm.registerPostcss(Z);var ey=Z;Z.default=Z;var le=fg(ey);le.stringify,le.fromJSON,le.plugin,le.parse,le.list,le.document,le.comment,le.atRule,le.rule,le.decl,le.root,le.CssSyntaxError,le.Declaration,le.Container,le.Processor,le.Document,le.Comment,le.Warning,le.AtRule,le.Result,le.Input,le.Rule,le.Root,le.Node;var ty=(function(){function t(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];Fe(this,"parentElement",null),Fe(this,"parentNode",null),Fe(this,"ownerDocument"),Fe(this,"firstChild",null),Fe(this,"lastChild",null),Fe(this,"previousSibling",null),Fe(this,"nextSibling",null),Fe(this,"ELEMENT_NODE",1),Fe(this,"TEXT_NODE",3),Fe(this,"nodeType"),Fe(this,"nodeName"),Fe(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(A(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"},ne(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),vl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},gl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},fi={},ry=function(){return!!globalThis.Zone};function Cs(t){if(fi[t])return fi[t];var n=globalThis[t],i=n.prototype,e=t in vl?vl[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in gl?gl[t]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!ry())return fi[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 c=u[t].prototype;return document.body.removeChild(a),c?fi[t]=c:i}catch(l){return i}}var Es={};function vt(t,n,i){var e,r=t+"."+String(i);if(Es[r])return Es[r].call(n);var o=Cs(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(Es[r]=s,s.call(n)):n[i]}var Is={};function ml(t,n,i){var e=t+"."+String(i);if(Is[e])return Is[e].bind(n);var r=Cs(t),o=r[i];return typeof o!="function"?n[i]:(Is[e]=o,o.bind(n))}function ny(t){return vt("Node",t,"childNodes")}function iy(t){return vt("Node",t,"parentNode")}function oy(t){return vt("Node",t,"parentElement")}function sy(t){return vt("Node",t,"textContent")}function ay(t,n){return ml("Node",t,"contains")(n)}function uy(t){return ml("Node",t,"getRootNode")()}function cy(t){return!t||!("host"in t)?null:vt("ShadowRoot",t,"host")}function ly(t){return t.styleSheets}function fy(t){return!t||!("shadowRoot"in t)?null:vt("Element",t,"shadowRoot")}function hy(t,n){return vt("Element",t,"querySelector")(n)}function py(t,n){return vt("Element",t,"querySelectorAll")(n)}function yl(){return Cs("MutationObserver").constructor}function Nt(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(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(o){return function(){}}}var q={childNodes:ny,parentNode:iy,parentElement:oy,textContent:sy,contains:ay,getRootNode:uy,host:cy,styleSheets:ly,shadowRoot:fy,querySelector:hy,querySelectorAll:py,mutationObserver:yl,patch:Nt};function Ae(t,n,i){i===void 0&&(i=document);var e={capture:!0,passive:!0};return i.addEventListener(t,n,e),function(){return i.removeEventListener(t,n,e)}}var ir="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.",_l={map:{},getId:function(){return console.error(ir),-1},getNode:function(){return console.error(ir),null},removeNodeFromMap:function(){console.error(ir)},has:function(){return console.error(ir),!1},reset:function(){console.error(ir)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(_l=new Proxy(_l,{get:function(n,i,e){return i==="map"&&console.error(ir),Reflect.get(n,i,e)}}));function jr(t,n,i){i===void 0&&(i={});var e=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(l,s)):!e&&i.trailing!==!1&&(e=setTimeout(function(){r=i.leading===!1?0:Date.now(),e=null,t.apply(l,s)},c))}}function hi(t,n,i,e,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return hi(t,n,o||{},!0)}}var pi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(pi=function(){return new Date().getTime()});function wl(t){var n,i,e,r,o=t.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=q.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((e=q.parentElement(o.body))==null?void 0:e.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function bl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Sl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Cl(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:q.parentElement(t);return n}function Re(t,n,i,e){if(!t)return!1;var r=Cl(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(En(r,n,e))return!0}catch(o){}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function dy(t,n){return n.getId(t)!==-1}function Os(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===Mr}function El(t,n){if(Ar(t))return!1;var i=n.getId(t);if(!n.has(i))return!0;var e=q.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?El(e,n):!0}function xs(t){return!!t.changedTouches}function vy(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 Il(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Ol(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function ks(t){return t?A(t,ty)&&"shadowRoot"in t?!!t.shadowRoot:!!q.shadowRoot(t):!1}var gy=(function(){function t(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(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 o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(e,o),this.idStyleMap.set(o,e),o},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++},n.remove=function(e){var r=this.styleIDMap.get(e);return r!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(r),!0):!1},t})();function xl(t){var n,i=null;return"getRootNode"in t&&((n=q.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&q.host(q.getRootNode(t))&&(i=q.host(q.getRootNode(t))),i}function my(t){for(var n=t,i;i=xl(n);)n=i;return n}function yy(t){var n=t.ownerDocument;if(!n)return!1;var i=my(t);return q.contains(n,i)}function kl(t){var n=t.ownerDocument;return n?q.contains(n,t)||yy(t):!1}var V=(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})(V||{}),L=(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})(L||{}),Te=(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})(Te||{}),rt=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(rt||{}),or=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(or||{}),sr=(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})(sr||{}),Al=(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})(Al||{});function Rl(t){return"__ln"in t}var _y=(function(){function t(){O(this,"length",0),O(this,"head",null),O(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,o=0;o<e;o++)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&&Rl(e.previousSibling)){var o=e.previousSibling.__ln.next;r.next=o,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(e.nextSibling&&Rl(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})(),Ml=function(t,n){return t+"@"+n},wy=(function(){function t(){var i=this;O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",function(e){e.forEach(i.processMutation),i.emit()}),O(this,"emit",function(){if(!(i.frozen||i.locked)){for(var e=[],r=new Set,o=new _y,s=function(P){for(var G=P,he=Mr;he===Mr;)G=G&&G.nextSibling,he=G&&i.mirror.getId(G);return he},a=function(P){var G=q.parentNode(P);if(!(!G||!kl(P))){var he=!1;if(P.nodeType===Node.TEXT_NODE){var Y=G.tagName;if(Y==="TEXTAREA")return;Y==="STYLE"&&i.addedSet.has(G)&&(he=!0)}var Le=Ar(G)?i.mirror.getId(xl(P)):i.mirror.getId(G),Pe=s(P);if(Le===-1||Pe===-1)return o.addNode(P);var Oe=Xt(P,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(pe){Il(pe,i.mirror)&&i.iframeManager.addIframe(pe),Ol(pe,i.mirror)&&i.stylesheetManager.trackLinkElement(pe),ks(P)&&i.shadowDomManager.addShadowRoot(q.shadowRoot(P),i.doc)},onIframeLoad:function(pe,xe){i.iframeManager.attachIframe(pe,xe),i.shadowDomManager.observeAttachShadow(pe)},onStylesheetLoad:function(pe,xe){i.stylesheetManager.attachLinkElement(pe,xe)},cssCaptured:he});Oe&&(e.push({parentId:Le,nextId:Pe,node:Oe}),r.add(Oe.id))}};i.mapRemoves.length;){var u=i.mapRemoves.shift();if(u.nodeName==="IFRAME")try{i.iframeManager.removeIframe(u)}catch(P){}else i.stylesheetManager.cleanupStylesheetsForRemovedNode(u);i.mirror.removeNodeFromMap(u)}for(var c=I(i.movedSet),l;!(l=c()).done;){var f=l.value;Tl(i.removesSubTreeCache,f,i.mirror)&&!i.movedSet.has(q.parentNode(f))||a(f)}for(var h=I(i.addedSet),g;!(g=h()).done;){var v=g.value;!$l(i.droppedSet,v)&&!Tl(i.removesSubTreeCache,v,i.mirror)||$l(i.movedSet,v)?a(v):i.droppedSet.add(v)}for(var y=null;o.length;){var d=null;if(y){var m=i.mirror.getId(q.parentNode(y.value)),_=s(y.value);m!==-1&&_!==-1&&(d=y)}if(!d)for(var b=o.tail;b;){var S=b;if(b=b.previous,S){var C=i.mirror.getId(q.parentNode(S.value)),x=s(S.value);if(x===-1)continue;if(C!==-1){d=S;break}else{var T=S.value,k=q.parentNode(T);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var $=q.host(k),W=i.mirror.getId($);if(W!==-1){d=S;break}}}}}if(!d){for(;o.head;)o.removeNode(o.head.value);break}y=d.previous,o.removeNode(d.value),a(d.value)}var ge={texts:i.texts.map(function(P){var G=P.node,he=q.parentNode(G);return he&&he.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(he),{id:i.mirror.getId(G),value:P.value}}).filter(function(P){return!r.has(P.id)}).filter(function(P){return i.mirror.has(P.id)}),attributes:i.attributes.map(function(P){var G=P.attributes;if(typeof G.style=="string"){var he=JSON.stringify(P.styleDiff),Y=JSON.stringify(P._unchangedStyles);he.length<G.style.length&&(he+Y).split("var(").length===G.style.split("var(").length&&(G.style=P.styleDiff)}return{id:i.mirror.getId(P.node),attributes:G}}).filter(function(P){return!r.has(P.id)}).filter(function(P){return i.mirror.has(P.id)}),removes:i.removes,adds:e};!ge.texts.length&&!ge.attributes.length&&!ge.removes.length&&!ge.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(ge))}}),O(this,"genTextAreaValueMutation",function(e){var r=i.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(e,r));var o=Array.from(q.childNodes(e),function(s){return q.textContent(s)||""}).join("");r.attributes.value=wn({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:bn(e),value:o,maskInputFn:i.maskInputFn})}),O(this,"processMutation",function(e){if(!Os(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=q.textContent(e.target);!Re(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:wu(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Cl(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var o=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=bn(o);a=wn({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Re(e.target,i.blockClass,i.blockSelector,!1)||a===e.oldValue)return;var c=i.attributeMap.get(e.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(e.target,c)),s==="type"&&o.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!_u(o.tagName,s))if(c.attributes[s]=yu(i.doc,Tt(o.tagName),Tt(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var f=I(Array.from(o.style)),h;!(h=f()).done;){var g=h.value,v=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);v!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,y]:c._unchangedStyles[g]=[v,y]}for(var d=I(Array.from(l.style)),m;!(m=d()).done;){var _=m.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Re(e.target,i.blockClass,i.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return i.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var S=i.mirror.getId(b),C=Ar(e.target)?i.mirror.getId(q.host(e.target)):i.mirror.getId(e.target);Re(e.target,i.blockClass,i.blockSelector,!1)||Os(b,i.mirror,i.slimDOMOptions)||!dy(b,i.mirror)||(i.addedSet.has(b)?(As(i.addedSet,b),i.droppedSet.add(b)):i.addedSet.has(e.target)&&S===-1||El(e.target,i.mirror)||(i.movedSet.has(b)&&i.movedMap[Ml(S,C)]?As(i.movedSet,b):(i.removes.push({parentId:C,id:S,isShadow:Ar(e.target)&&Rr(e.target)?!0:void 0}),by(b,i.removesSubTreeCache))),i.mapRemoves.push(b))});break}}}),O(this,"genAdds",function(e,r){if(!i.processedNodeManager.inOtherBuffer(e,i)&&!(i.addedSet.has(e)||i.movedSet.has(e))){if(i.mirror.hasNode(e)){if(Os(e,i.mirror,i.slimDOMOptions))return;i.movedSet.add(e);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Ml(i.mirror.getId(e),o)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);Re(e,i.blockClass,i.blockSelector,!1)||(q.childNodes(e).forEach(function(s){return i.genAdds(s)}),ks(e)&&q.childNodes(q.shadowRoot(e)).forEach(function(s){i.processedNodeManager.add(s,i),i.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(o){r[o]=e[o]})},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()},n.getDoc=function(){return this.doc},t})();function As(t,n){t.delete(n),q.childNodes(n).forEach(function(i){return As(t,i)})}function by(t,n){for(var i=[t];i.length;){var e=i.pop();n.has(e)||(n.add(e),q.childNodes(e).forEach(function(r){return i.push(r)}))}}function Tl(t,n,i){return t.size===0?!1:Sy(t,n)}function Sy(t,n,i){var e=q.parentNode(n);return e?t.has(e):!1}function $l(t,n){return t.size===0?!1:Pl(t,n)}function Pl(t,n){var i=q.parentNode(n);return i?t.has(i)?!0:Pl(t,i):!1}var Hr;function Cy(t){Hr=t}function Ey(){Hr=void 0}var H=function(t){if(!Hr)return t;var n=function(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(o){if(Hr&&Hr(o)===!0)return;throw o}};return n},je=[];function Yr(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(i){}return t&&t.target}function Nl(t,n){var i=new wy;je.push(i),i.init(t);var e=new(yl())(H(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Iy(t){for(var n=je.length-1;n>=0;n--){var i=je[n];i.getDoc()===t&&je.splice(n,1)}}function Oy(t){var n=t.mousemoveCb,i=t.sampling,e=t.doc,r=t.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=jr(H(function(h){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),h),a=[],u=null}),s),l=H(jr(H(function(h){var g=Yr(h),v=xs(h)?h.changedTouches[0]:h,y=v.clientX,d=v.clientY;u||(u=pi()),a.push({x:y,y:d,id:r.getId(g),timeOffset:pi()-u}),c(typeof DragEvent!="undefined"&&A(h,DragEvent)?L.Drag:A(h,MouseEvent)?L.MouseMove:L.TouchMove)}),o,{trailing:!1})),f=[Ae("mousemove",l,e),Ae("touchmove",l,e),Ae("drag",l,e)];return H(function(){f.forEach(function(h){return h()})})}function xy(t){var n=t.mouseInteractionCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,l=function(f){return function(h){var g=Yr(h);if(!Re(g,r,o,!0)){var v=null,y=f;if("pointerType"in h){switch(h.pointerType){case"mouse":v=rt.Mouse;break;case"touch":v=rt.Touch;break;case"pen":v=rt.Pen;break}v===rt.Touch?Te[f]===Te.MouseDown?y="TouchStart":Te[f]===Te.MouseUp&&(y="TouchEnd"):rt.Pen}else xs(h)&&(v=rt.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===rt.Touch||y.startsWith("Mouse")&&v===rt.Mouse)&&(v=null)):Te[f]===Te.Click&&(v=c,c=null);var d=xs(h)?h.changedTouches[0]:h;if(d){var m=e.getId(g),_=d.clientX,b=d.clientY;H(n)(B({type:Te[y],id:m,x:_,y:b},v!==null&&{pointerType:v}))}}}};return Object.keys(Te).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var h=Tt(f),g=l(f);if(window.PointerEvent)switch(Te[f]){case Te.MouseDown:case Te.MouseUp:h=h.replace("mouse","pointer");break;case Te.TouchStart:case Te.TouchEnd:return}u.push(Ae(h,g,i))}),H(function(){u.forEach(function(f){return f()})})}function Ll(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling,a=H(jr(H(function(u){var c=Yr(u);if(!(!c||Re(c,r,o,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=wl(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return Ae("scroll",a,i)}function ky(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,o=-1,s=H(jr(H(function(){var a=bl(),u=Sl();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Ae("resize",s,e)}var Ay=["INPUT","TEXTAREA","SELECT"],Dl=new WeakMap;function Ry(t){var n=t.inputCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,c=t.maskInputFn,l=t.sampling,f=t.userTriggeredOnInput;function h(S){var C=Yr(S),x=S.isTrusted,T=C&&C.tagName;if(C&&T==="OPTION"&&(C=q.parentElement(C)),!(!C||!T||Ay.indexOf(T)<0||Re(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var k=C.value,$=!1,W=bn(C)||"";W==="radio"||W==="checkbox"?$=C.checked:(u[T.toLowerCase()]||u[W])&&(k=wn({element:C,maskInputOptions:u,tagName:T,type:W,value:k,maskInputFn:c})),g(C,f?{text:k,isChecked:$,userTriggered:x}:{text:k,isChecked:$});var ge=C.name;W==="radio"&&ge&&$&&i.querySelectorAll('input[type="radio"][name="'+ge+'"]').forEach(function(P){if(P!==C){var G=P.value;g(P,f?{text:G,isChecked:!$,userTriggered:!1}:{text:G,isChecked:!$})}})}}function g(S,C){var x=Dl.get(S);if(!x||x.text!==C.text||x.isChecked!==C.isChecked){Dl.set(S,C);var T=e.getId(S);H(n)(B({},C,{id:T}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(S){return Ae(S,H(h),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(S){return S()})};var m=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),_=[[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(m&&m.set){var b;(b=y).push.apply(b,[].concat(_.map(function(S){return hi(S[0],S[1],{set:function(){H(h)({target:this,isTrusted:!1})}},!1,d)})))}return H(function(){y.forEach(function(S){return S()})})}function di(t){var n=[];function i(e,r){if(vi("CSSGroupingRule")&&A(e.parentRule,CSSGroupingRule)||vi("CSSMediaRule")&&A(e.parentRule,CSSMediaRule)||vi("CSSSupportsRule")&&A(e.parentRule,CSSSupportsRule)||vi("CSSConditionRule")&&A(e.parentRule,CSSConditionRule)){var o=Array.from(e.parentRule.cssRules),s=o.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 i(t,n)}function gt(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function My(t,n){var i=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:H(function(h,g,v){var y=v[0],d=v[1],m=gt(g,e,r.styleMirror),_=m.id,b=m.styleId;return(_&&_!==-1||b&&b!==-1)&&i({id:_,styleId:b,adds:[{rule:y,index:d}]}),h.apply(g,v)})}),o.CSSStyleSheet.prototype.addRule=function(h,g,v){v===void 0&&(v=this.cssRules.length);var y=h+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:H(function(h,g,v){var y=v[0],d=gt(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),h.apply(g,v)})}),o.CSSStyleSheet.prototype.removeRule=function(h){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:H(function(h,g,v){var y=v[0],d=gt(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),h.apply(g,v)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:H(function(h,g,v){var y=v[0],d=gt(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),h.apply(g,v)})}));var l={};gi("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(gi("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),gi("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),gi("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(h){var g=h[0],v=h[1];f[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(f[g].insertRule,{apply:H(function(y,d,m){var _=m[0],b=m[1],S=gt(d.parentStyleSheet,e,r.styleMirror),C=S.id,x=S.styleId;return(C&&C!==-1||x&&x!==-1)&&i({id:C,styleId:x,adds:[{rule:_,index:[].concat(di(d),[b||0])}]}),y.apply(d,m)})}),v.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:H(function(y,d,m){var _=m[0],b=gt(d.parentStyleSheet,e,r.styleMirror),S=b.id,C=b.styleId;return(S&&S!==-1||C&&C!==-1)&&i({id:S,styleId:C,removes:[{index:[].concat(di(d),[_])}]}),y.apply(d,m)})})}),H(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(h){var g=h[0],v=h[1];v.prototype.insertRule=f[g].insertRule,v.prototype.deleteRule=f[g].deleteRule})})}function Fl(t,n){var i=t.mirror,e=t.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(q.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var h,g=(h=c.set)==null?void 0:h.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(v){}return g}}),H(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Ty(t,n){var i=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,o=t.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:H(function(c,l,f){var h,g=f[0],v=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,v,y]);var d=gt((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:v,priority:y},index:di(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:H(function(c,l,f){var h,g=f[0];if(r.has(g))return u.apply(l,[g]);var v=gt((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),y=v.id,d=v.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:g},index:di(l.parentRule)}),c.apply(l,f)})}),H(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function $y(t){var n=t.mediaInteractionCb,i=t.blockClass,e=t.blockSelector,r=t.mirror,o=t.sampling,s=t.doc,a=H(function(c){return jr(H(function(l){var f=Yr(l);if(!(!f||Re(f,i,e,!0))){var h=f.currentTime,g=f.volume,v=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:h,volume:g,muted:v,playbackRate:y,loop:d})}}),o.media||500)}),u=[Ae("play",a(sr.Play),s),Ae("pause",a(sr.Pause),s),Ae("seeked",a(sr.Seeked),s),Ae("volumechange",a(sr.VolumeChange),s),Ae("ratechange",a(sr.RateChange),s)];return H(function(){u.forEach(function(c){return c()})})}function Py(t){var n=t.fontCb,i=t.doc,e=i.defaultView;if(!e)return function(){};var r=[],o=new WeakMap,s=e.FontFace;e.FontFace=function(c,l,f){var h=new s(c,l,f);return o.set(h,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),h};var a=Nt(i.fonts,"add",function(u){return function(c){return setTimeout(H(function(){var l=o.get(c);l&&(n(l),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){e.FontFace=s}),r.push(a),H(function(){r.forEach(function(u){return u()})})}function Ny(t){var n=t.doc,i=t.mirror,e=t.blockClass,r=t.blockSelector,o=t.selectionCb,s=!0,a=H(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var h=u.getRangeAt(f),g=h.startContainer,v=h.startOffset,y=h.endContainer,d=h.endOffset,m=Re(g,e,r,!0)||Re(y,e,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}o({ranges:c})}});return a(),Ae("selectionchange",a)}function Ly(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=Nt(e.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch(c){console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function Dy(t,n){var i=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,o=t.scrollCb,s=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,c=t.styleSheetRuleCb,l=t.styleDeclarationCb,f=t.canvasMutationCb,h=t.fontCb,g=t.selectionCb,v=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},t.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}e.apply(void 0,[].concat(d))},t.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},t.scrollCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},t.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},t.inputCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},t.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},t.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},t.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},t.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},t.fontCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}h.apply(void 0,[].concat(d))},t.selectionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},t.customElementCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function Fy(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};Dy(t,n);var e;t.recordDOM&&(e=Nl(t,t.doc));var r=Oy(t),o=xy(t),s=Ll(t),a=ky(t,{win:i}),u=Ry(t),c=$y(t),l=function(){},f=function(){},h=function(){},g=function(){};t.recordDOM&&(l=My(t,{win:i}),f=Fl(t,t.doc),h=Ty(t,{win:i}),t.collectFonts&&(g=Py(t)));for(var v=Ny(t),y=Ly(t),d=[],m=I(t.plugins),_;!(_=m()).done;){var b=_.value;d.push(b.observer(b.callback,i,b.options))}return H(function(){je.forEach(function(S){return S.reset()}),e==null||e.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),h(),g(),v(),y(),d.forEach(function(S){return S()})})}function vi(t){return typeof window[t]!="undefined"}function gi(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var Ul=(function(){function t(i){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=t.prototype;return n.getId=function(e,r,o,s){var a=o||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(e,r){var o=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return o.getId(e,u,s,a)})},n.getRemoteId=function(e,r,o){var s=o||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(e,r){var o=this,s=this.getRemoteIdToIdMap(e);return r.map(function(a){return o.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})(),Uy=(function(){function t(i){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Ul(vu)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"iframeContentDocumentMap",new WeakMap),O(this,"iframeObserverCleanupMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ul(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.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.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},n.setObserverCleanup=function(e,r){this.iframeObserverCleanupMap.set(e,r)},n.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},n.removeIframe=function(e){var r=this.iframeContentDocumentMap.get(e);r&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(r),this.mirror.removeNodeFromMap(r,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var o=this.iframeObserverCleanupMap.get(e);if(o){try{o()}catch(s){}this.iframeObserverCleanupMap.delete(e)}},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((o=e.contentWindow)==null||o.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 o=e.source;if(o){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 o=this,s;switch(r.type){case V.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:V.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case V.Meta:case V.Load:case V.DomContentLoaded:return!1;case V.Plugin:return r;case V.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case V.IncrementalSnapshot:switch(r.data.source){case L.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,e);var c=o.crossOriginIframeRootIdMap.get(e);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,e,["id"])}),r;case L.Drag:case L.TouchMove:case L.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,e,["id"])}),r;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(r.data,e,["id"]),r;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case L.Font:return r;case L.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,e,["start","end"])}),r;case L.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,o,s){for(var a=I(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=e.getIds(o,r[c]):r[c]=e.getId(o,r[c]))}return r},n.replaceIds=function(e,r,o){return this.replace(this.crossOriginIframeMirror,e,r,o)},n.replaceStyleIds=function(e,r,o){return this.replace(this.crossOriginIframeStyleMirror,e,r,o)},n.replaceIdOnNode=function(e,r){var o=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(e,r){var o=this;e.type!==Al.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},t})(),By=(function(){function t(i){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var o=this;if(Rr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Nl(B({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Ll(B({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,o.mirror.getId(q.host(e))),o.restoreHandlers.push(Fl({mirror:o.mirror,stylesheetManager:o.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 o=this;this.restoreHandlers.push(Nt(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=q.shadowRoot(this);return c&&kl(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zy=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),mi=0;mi<ar.length;mi++)zy[ar.charCodeAt(mi)]=mi;var Wy=function(n){var i=new Uint8Array(n),e,r=i.length,o="";for(e=0;e<r;e+=3)o+=ar[i[e]>>2],o+=ar[(i[e]&3)<<4|i[e+1]>>4],o+=ar[(i[e+1]&15)<<2|i[e+2]>>6],o+=ar[i[e+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},Bl=new Map;function Gy(t,n){var i=Bl.get(t);return i||(i=new Map,Bl.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var zl=function(t,n,i){if(!(!t||!(Gl(t,n)||(typeof t=="undefined"?"undefined":M(t))==="object"))){var e=t.constructor.name,r=Gy(i,e),o=r.indexOf(t);return o===-1&&(o=r.length,r.push(t)),o}};function yi(t,n,i){if(A(t,Array))return t.map(function(v){return yi(v,n,i)});if(t===null)return t;if(A(t,Float32Array)||A(t,Float64Array)||A(t,Int32Array)||A(t,Uint32Array)||A(t,Uint8Array)||A(t,Uint16Array)||A(t,Int16Array)||A(t,Int8Array)||A(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(A(t,ArrayBuffer)){var r=t.constructor.name,o=Wy(t);return{rr_type:r,base64:o}}else if(A(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[yi(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(A(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(A(t,HTMLCanvasElement)){var c="HTMLImageElement",l=t.toDataURL();return{rr_type:c,src:l}}else if(A(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[yi(t.data,n,i),t.width,t.height]}}else if(Gl(t,n)||(typeof t=="undefined"?"undefined":M(t))==="object"){var h=t.constructor.name,g=zl(t,n,i);return{rr_type:h,index:g}}return t}var Wl=function(t,n,i){return t.map(function(e){return yi(e,n,i)})},Gl=function(t,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=i.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return A(t,n[r])})};function qy(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=Nt(n.CanvasRenderingContext2D.prototype,c,function(h){return function(){for(var g=this,v=arguments.length,y=new Array(v),d=0;d<v;d++)y[d]=arguments[d];return Re(this.canvas,i,e,!0)||setTimeout(function(){var m=Wl(y,n,g);t(g.canvas,{type:or["2D"],property:c,args:m})},0),h.apply(this,y)}});o.push(l)}catch(h){var f=hi(n.CanvasRenderingContext2D.prototype,c,{set:function(v){t(this.canvas,{type:or["2D"],property:c,args:[v],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function Vy(t){return t==="experimental-webgl"?"webgl":t}function ql(t,n,i,e){var r=[];try{var o=Nt(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!Re(this,n,i,!0)){var f=Vy(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(c[0]&&M(c[0])==="object"){var h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function Vl(t,n,i,e,r,o){for(var s=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var h=Nt(t,f,function(v){return function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];var _=v.apply(this,d);if(zl(_,o,this),"tagName"in this.canvas&&!Re(this.canvas,e,r,!0)){var b=Wl(d,o,this),S={type:n,property:f,args:b};i(this.canvas,S)}return _}});a.push(h)}catch(v){var g=hi(t,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(t),c=I(u),l;!(l=c()).done;)s();return a}function jy(t,n,i,e){var r,o=[];if((r=o).push.apply(r,[].concat(Vl(n.WebGLRenderingContext.prototype,or.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(Vl(n.WebGL2RenderingContext.prototype,or.WebGL2,t,i,e,n)))}return function(){o.forEach(function(a){return a()})}}var jl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Hy=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},Hl=typeof window!="undefined"&&window.Blob&&new Blob([Hy(jl)],{type:"text/javascript;charset=utf-8"});function Yy(t){var n;try{if(n=Hl&&(window.URL||window.webkitURL).createObjectURL(Hl),!n)throw"";var i=new Worker(n,{name:t==null?void 0:t.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(e){return new Worker("data:text/javascript;base64,"+jl,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Ky=(function(){function t(i){var e=this;O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",function(f,h){var g=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(g||!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=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:l})}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,o,s,a){var u=this,c=ql(r,o,s,!0),l=new Map,f=new Yy;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var b=m.data,S=b.base64,C=b.type,x=b.width,T=b.height;u.mutationCb({id:_,type:or["2D"],commands:[{property:"clearRect",args:[0,0,x,T]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var h=1e3/e,g=0,v,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Re(_,o,s,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<h){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(mn(function(b){var S,C,x,T;return Mt(this,function(k){switch(k.label){case 0:return C=_.mirror.getId(b),l.get(C)?[2]:b.width===0||b.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(b.__context)&&(x=b.getContext(b.__context),((S=x==null?void 0:x.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&x.clear(x.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return T=k.sent(),f.postMessage({id:C,bitmap:T,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[T]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(e,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=ql(e,r,o,!1),a=qy(this.processMutation.bind(this),e,r,o),u=jy(this.processMutation.bind(this),e,r,o);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(o){e.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,o){var s=e.mirror.getId(o);e.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(e);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=Rt(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t})(),Jy=(function(){function t(i){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new gy),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.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 o,s=function(){var f=l.value,h=void 0;o.styleMirror.has(f)?h=o.styleMirror.getId(f):(h=o.styleMirror.add(f),u.push({styleId:h,rules:Array.from(f.rules||CSSRule,function(g,v){return{rule:fu(g,f.href),index:v}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],c=I(e),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.cleanupStylesheetsForRemovedNode=function(e){var r=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var o=e;if(o.adoptedStyleSheets)for(var s=I(o.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var c=e;c.sheet&&this.styleMirror.remove(c.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(f){r.cleanupStylesheetsForRemovedNode(f)})}catch(f){}},n.trackStylesheetInLinkElement=function(e){},t})(),Xy=(function(){function t(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var o=this.nodeMap.get(e);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(e,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t})(),de,_i,Rs,wi=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Ms=document.createElement("iframe");document.body.appendChild(Ms),Array.from=((ou=Ms.contentWindow)==null?void 0:ou.Array.from)||Array.from,document.body.removeChild(Ms)}}catch(t){console.debug("Unable to override Array.from",t)}var Be=Yp();function mt(t){t===void 0&&(t={});var n=t.emit,i=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,o=r===void 0?"rr-block":r,s=t.blockSelector,a=s===void 0?null:s,u=t.ignoreClass,c=u===void 0?"rr-ignore":u,l=t.ignoreSelector,f=l===void 0?null:l,h=t.maskTextClass,g=h===void 0?"rr-mask":h,v=t.maskTextSelector,y=v===void 0?null:v,d=t.inlineStylesheet,m=d===void 0?!0:d,_=t.maskAllInputs,b=t.maskInputOptions,S=t.slimDOMOptions,C=t.maskInputFn,x=t.maskTextFn,T=t.hooks,k=t.packFn,$=t.sampling,W=$===void 0?{}:$,ge=t.dataURLOptions,P=ge===void 0?{}:ge,G=t.mousemoveWait,he=t.recordDOM,Y=he===void 0?!0:he,Le=t.recordCanvas,Pe=Le===void 0?!1:Le,Oe=t.recordCrossOriginIframes,pe=Oe===void 0?!1:Oe,xe=t.recordAfter,Bt=xe===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":xe,Qe=t.userTriggeredOnInput,Sr=Qe===void 0?!1:Qe,De=t.collectFonts,zt=De===void 0?!1:De,K=t.inlineImages,Wt=K===void 0?!1:K,Gt=t.plugins,Cr=t.keepIframeSrcFn,dn=Cr===void 0?function(){return!1}:Cr,vn=t.ignoreCSSAttributes,Xa=vn===void 0?new Set([]):vn,uo=t.errorHandler;Cy(uo);var At=pe?window.parent===window:!0,qt=!1;if(!At)try{window.parent.document&&(qt=!1)}catch(J){qt=!0}if(At&&!n)throw new Error("emit function is required");if(!At&&!qt)return function(){};G!==void 0&&W.mousemove===void 0&&(W.mousemove=G),Be.reset();var Er=_===!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},gn=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||{};vy();var Ir,Vt=0,lt=function(J){for(var Me=I(Gt||[]),R;!(R=Me()).done;){var re=R.value;re.eventProcessor&&(J=re.eventProcessor(J))}return k&&!qt&&(J=k(J)),J};de=function(J,Me){var R,re=J;if(re.timestamp=pi(),(R=je[0])!=null&&R.isFrozen()&&re.type!==V.FullSnapshot&&!(re.type===V.IncrementalSnapshot&&re.data.source===L.Mutation)&&je.forEach(function(GS){return GS.unfreeze()}),At)n==null||n(lt(re),Me);else if(qt){var Or={type:"rrweb",event:lt(re),origin:window.location.origin,isCheckout:Me};window.parent.postMessage(Or,"*")}if(re.type===V.FullSnapshot)Ir=re,Vt=0;else if(re.type===V.IncrementalSnapshot){if(re.data.source===L.Mutation&&re.data.isAttachIframe)return;Vt++;var eu=e&&Vt>=e,WS=i&&re.timestamp-Ir.timestamp>i;(eu||WS)&&_i(!0)}};for(var jt=function(J){de({type:V.IncrementalSnapshot,data:B({source:L.Mutation},J)})},mp=function(J){return de({type:V.IncrementalSnapshot,data:B({source:L.Scroll},J)})},yp=function(J){return de({type:V.IncrementalSnapshot,data:B({source:L.CanvasMutation},J)})},BS=function(J){return de({type:V.IncrementalSnapshot,data:B({source:L.AdoptedStyleSheet},J)})},Ht=new Jy({mutationCb:jt,adoptedStyleSheetCb:BS}),ft=new Uy({mirror:Be,mutationCb:jt,stylesheetManager:Ht,recordCrossOriginIframes:pe,wrappedEmit:de}),zS=I(Gt||[]),_p;!(_p=zS()).done;){var wp=_p.value;wp.getMirror&&wp.getMirror({nodeMirror:Be,crossOriginIframeMirror:ft.crossOriginIframeMirror,crossOriginIframeStyleMirror:ft.crossOriginIframeStyleMirror})}var Za=new Xy;Rs=new Ky({recordCanvas:Pe,mutationCb:yp,win:window,blockClass:o,blockSelector:a,mirror:Be,sampling:W.canvas,dataURLOptions:P});var co=new By({mutationCb:jt,scrollCb:mp,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:Er,dataURLOptions:P,maskTextFn:x,maskInputFn:C,recordCanvas:Pe,inlineImages:Wt,sampling:W,slimDOMOptions:gn,iframeManager:ft,stylesheetManager:Ht,canvasManager:Rs,keepIframeSrcFn:dn,processedNodeManager:Za},mirror:Be});_i=function(J){if(J===void 0&&(J=!1),!!Y){de({type:V.Meta,data:{href:window.location.href,width:Sl(),height:bl()}},J),Ht.reset(),co.init(),je.forEach(function(R){return R.lock()});var Me=yd(document,{mirror:Be,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:Er,maskTextFn:x,maskInputFn:C,slimDOM:gn,dataURLOptions:P,recordCanvas:Pe,inlineImages:Wt,onSerialize:function(R){Il(R,Be)&&ft.addIframe(R),Ol(R,Be)&&Ht.trackLinkElement(R),ks(R)&&co.addShadowRoot(q.shadowRoot(R),document)},onIframeLoad:function(R,re){ft.attachIframe(R,re),co.observeAttachShadow(R)},onStylesheetLoad:function(R,re){Ht.attachLinkElement(R,re)},keepIframeSrcFn:dn});if(!Me)return console.warn("Failed to snapshot the document");de({type:V.FullSnapshot,data:{node:Me,initialOffset:wl(window)}},J),je.forEach(function(R){return R.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ht.adoptStyleSheets(document.adoptedStyleSheets,Be.getId(document))}};try{var Yt=[],bp=function(J){var Me;return H(Fy)({mutationCb:jt,mousemoveCb:function(R,re){return de({type:V.IncrementalSnapshot,data:{source:re,positions:R}})},mouseInteractionCb:function(R){return de({type:V.IncrementalSnapshot,data:B({source:L.MouseInteraction},R)})},scrollCb:mp,viewportResizeCb:function(R){return de({type:V.IncrementalSnapshot,data:B({source:L.ViewportResize},R)})},inputCb:function(R){return de({type:V.IncrementalSnapshot,data:B({source:L.Input},R)})},mediaInteractionCb:function(R){return de({type:V.IncrementalSnapshot,data:B({source:L.MediaInteraction},R)})},styleSheetRuleCb:function(R){return de({type:V.IncrementalSnapshot,data:B({source:L.StyleSheetRule},R)})},styleDeclarationCb:function(R){return de({type:V.IncrementalSnapshot,data:B({source:L.StyleDeclaration},R)})},canvasMutationCb:yp,fontCb:function(R){return de({type:V.IncrementalSnapshot,data:B({source:L.Font},R)})},selectionCb:function(R){de({type:V.IncrementalSnapshot,data:B({source:L.Selection},R)})},customElementCb:function(R){de({type:V.IncrementalSnapshot,data:B({source:L.CustomElement},R)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:Er,inlineStylesheet:m,sampling:W,recordDOM:Y,recordCanvas:Pe,inlineImages:Wt,userTriggeredOnInput:Sr,collectFonts:zt,doc:J,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:dn,blockSelector:a,slimDOMOptions:gn,dataURLOptions:P,mirror:Be,iframeManager:ft,stylesheetManager:Ht,shadowDomManager:co,processedNodeManager:Za,canvasManager:Rs,ignoreCSSAttributes:Xa,plugins:((Me=Gt==null?void 0:Gt.filter(function(R){return R.observer}))==null?void 0:Me.map(function(R){return{observer:R.observer,options:R.options,callback:function(re){return de({type:V.Plugin,data:{plugin:R.name,payload:re}})}}}))||[]},T)};ft.addLoadListener(function(J){try{var Me=J.contentDocument,R=bp(Me);Yt.push(R);var re=ft.getObserverCleanup(J);ft.setObserverCleanup(J,function(){if(re)try{re()}catch(eu){}try{R();var Or=Yt.indexOf(R);Or!==-1&&Yt.splice(Or,1),Iy(Me)}catch(eu){}})}catch(Or){console.warn(Or)}});var Qa=function(){_i(),Yt.push(bp(document)),wi=!0};return document.readyState==="interactive"||document.readyState==="complete"?Qa():(Yt.push(Ae("DOMContentLoaded",function(){de({type:V.DomContentLoaded,data:{}}),Bt==="DOMContentLoaded"&&Qa()})),Yt.push(Ae("load",function(){de({type:V.Load,data:{}}),Bt==="load"&&Qa()},window))),function(){Yt.forEach(function(J){try{J()}catch(R){var Me=String(R).toLowerCase();Me.includes("cross-origin")||console.warn(R)}}),Za.destroy(),wi=!1,Ey()}}catch(J){console.warn(J)}}mt.addCustomEvent=function(t,n){if(!wi)throw new Error("please add custom event after start recording");de({type:V.Custom,data:{tag:t,payload:n}})},mt.freezePage=function(){je.forEach(function(t){return t.freeze()})},mt.takeFullSnapshot=function(t){if(!wi)throw new Error("please take full snapshot after start recording");_i(t)},mt.mirror=Be;var Yl;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Yl||(Yl={})),mt.addCustomEvent,mt.freezePage,mt.takeFullSnapshot;var Kl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Jl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bi={},Zy=function(){return!!globalThis.Zone};function Ts(t){if(bi[t])return bi[t];var n=globalThis[t],i=n.prototype,e=t in Kl?Kl[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in Jl?Jl[t]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Zy())return bi[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 c=u[t].prototype;return document.body.removeChild(a),c?bi[t]=c:i}catch(l){return i}}var $s={};function yt(t,n,i){var e,r=t+"."+String(i);if($s[r])return $s[r].call(n);var o=Ts(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?($s[r]=s,s.call(n)):n[i]}var Ps={};function Xl(t,n,i){var e=t+"."+String(i);if(Ps[e])return Ps[e].bind(n);var r=Ts(t),o=r[i];return typeof o!="function"?n[i]:(Ps[e]=o,o.bind(n))}function Qy(t){return yt("Node",t,"childNodes")}function e_(t){return yt("Node",t,"parentNode")}function t_(t){return yt("Node",t,"parentElement")}function r_(t){return yt("Node",t,"textContent")}function n_(t,n){return Xl("Node",t,"contains")(n)}function i_(t){return Xl("Node",t,"getRootNode")()}function o_(t){return!t||!("host"in t)?null:yt("ShadowRoot",t,"host")}function s_(t){return t.styleSheets}function a_(t){return!t||!("shadowRoot"in t)?null:yt("Element",t,"shadowRoot")}function u_(t,n){return yt("Element",t,"querySelector")(n)}function c_(t,n){return yt("Element",t,"querySelectorAll")(n)}function l_(){return Ts("MutationObserver").constructor}function f_(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(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(o){return function(){}}}var Zl={childNodes:Qy,parentNode:e_,parentElement:t_,textContent:r_,contains:n_,getRootNode:i_,host:o_,styleSheets:s_,shadowRoot:a_,querySelector:u_,querySelectorAll:c_,mutationObserver:l_,patch:f_};function Ns(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Ns(Zl.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return Ns(Zl.parentNode(t),n)}function h_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function p_(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return A(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Ls={exports:{}},se=String,Ql=function(){return{isColorSupported:!1,reset:se,bold:se,dim:se,italic:se,underline:se,inverse:se,hidden:se,strikethrough:se,black:se,red:se,green:se,yellow:se,blue:se,magenta:se,cyan:se,white:se,gray:se,bgBlack:se,bgRed:se,bgGreen:se,bgYellow:se,bgBlue:se,bgMagenta:se,bgCyan:se,bgWhite:se}};Ls.exports=Ql(),Ls.exports.createColors=Ql;var d_=Ls.exports,v_={},g_=Object.freeze(Object.defineProperty({__proto__:null,default:v_},Symbol.toStringTag,{value:"Module"})),_e=p_(g_),ef=d_,tf=_e,Ds=(function(t){ue(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.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},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=ef.isColorSupported),tf&&r&&(s=tf(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,h;if(r){var g=ef.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},h=function(m){return y(m)}}else f=h=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,S=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var C=h(S.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(S)+m+"\n "+C+f("^")}return" "+h(S)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(kr(Error)),Fs=Ds;Ds.default=Ds;var _t={};_t.isClean=Symbol("isClean"),_t.my=Symbol("my");var rf={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function m_(t){return t[0].toUpperCase()+t.slice(1)}var Us=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",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 o=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||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+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,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return rf[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+m_(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=rf[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before!="undefined")return r=o.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(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.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(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before!="undefined"){var a=o.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(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},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})(),nf=Us;Us.default=Us;var y_=nf;function Bs(t,n){var i=new y_(n);i.stringify(t)}var Si=Bs;Bs.default=Bs;var Ci=_t.isClean,__=_t.my,w_=Fs,b_=nf,S_=Si;function zs(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r=="undefined"?"undefined":M(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return zs(s,i)}):(o==="object"&&r!==null&&(r=zs(r)),i[e]=r)}return i}var Ws=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Ci]=!1,this[__]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[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=zs(this);for(var o in e)r[o]=e[o];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 o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new w_(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Ci]){this[Ci]=!1;for(var e=this;e=e.parent;)e[Ci]=!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 o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[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},o=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),o=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?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new b_;return o.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),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}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 o={},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 c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=S_),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ne(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ei=Ws;Ws.default=Ws;var C_=Ei,Gs=(function(t){ue(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=B({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ne(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(C_),Ii=Gs;Gs.default=Gs;var E_="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",I_=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=E_[Math.random()*64|0];return n},O_={nanoid:I_},of=_e.SourceMapConsumer,sf=_e.SourceMapGenerator,x_=_e.existsSync,k_=_e.readFileSync,qs=_e.dirname,A_=_e.join;function R_(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Vs=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=qs(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new of(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^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)||o.test(e))return R_(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":M(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 o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=qs(e),x_(e))return this.mapFile=e,k_(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 o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(A(r,of))return sf.fromSourceMap(r).toString();if(A(r,sf))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=A_(qs(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})(),af=Vs;Vs.default=Vs;var M_=_e.SourceMapConsumer,T_=_e.SourceMapGenerator,uf=_e.fileURLToPath,Oi=_e.pathToFileURL,js=_e.isAbsolute,Hs=_e.resolve,$_=O_.nanoid,Ys=_e,cf=Fs,P_=af,Ks=Symbol("fromOffsetCache"),N_=!!(M_&&T_),lf=!!(Hs&&js),xi=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":M(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!lf||/^\w+:\/\//.test(e.from)||js(e.from)?this.file=e.from:this.file=Hs(e.from)),lf&&N_){var r=new P_(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+$_(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":M(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);r=h.line,o=h.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var v=this.fromOffset(r);r=v.line,o=v.col}var y=this.origin(r,o,u,c);return y?a=new cf(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 cf(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Oi&&(a.input.url=Oi(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[Ks])o=this[Ks];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Ks]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Hs(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;js(u.source)?l=Oi(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Oi(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(uf)f.file=uf(l);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,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[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},ne(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),ki=xi;xi.default=xi,Ys&&Ys.registerInput&&Ys.registerInput(xi);var ff=_e.SourceMapConsumer,Ai=_e.SourceMapGenerator,Ri=_e.dirname,hf=_e.relative,pf=_e.resolve,df=_e.sep,vf=_e.pathToFileURL,L_=ki,D_=!!(ff&&Ai),F_=!!(Ri&&pf&&hf&&df),U_=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,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=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Ri(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ff(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.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(),F_&&D_&&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=Ai.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ai({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 Ai({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,h){if(e.css+=l,f&&h!=="end"&&(a.generated.line=r,a.generated.column=o-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=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.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=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-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 o=this.opts.to?Ri(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Ri(pf(o,this.mapOpts.annotation)));var s=hf(o,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(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new L_(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 o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,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(vf){var o=vf(e).toString();return this.memoizedFileURLs.set(e,o),o}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;df==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),gf=U_,B_=Ei,Js=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(B_),Mi=Js;Js.default=Js;var mf=_t.isClean,yf=_t.my,_f=Ii,wf=Mi,z_=Ei,bf,Xs,Zs,Sf;function Cf(t){return t.map(function(n){return n.nodes&&(n.nodes=Cf(n.nodes)),delete n.source,n})}function Ef(t){if(t[mf]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Ef(e)}}var nt=(function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(h,g){return f(h.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=Cf(bf(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).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 _f(r)]}else if(r.selector)r=[new Xs(r)];else if(r.name)r=[new Zs(r)];else if(r.text)r=[new wf(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[yf]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[mf]&&Ef(v),typeof v.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=s.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ne(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})(z_);nt.registerParse=function(t){bf=t},nt.registerRule=function(t){Xs=t},nt.registerAtRule=function(t){Zs=t},nt.registerRoot=function(t){Sf=t};var Lt=nt;nt.default=nt,nt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Zs.prototype):t.type==="rule"?Object.setPrototypeOf(t,Xs.prototype):t.type==="decl"?Object.setPrototypeOf(t,_f.prototype):t.type==="comment"?Object.setPrototypeOf(t,wf.prototype):t.type==="root"&&Object.setPrototypeOf(t,Sf.prototype),t[yf]=!0,t.nodes&&t.nodes.forEach(function(n){nt.rebuild(n)})};var W_=Lt,If,Of,Kr=(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 i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new If(new Of,this,r);return o.stringify()},n})(W_);Kr.registerLazyResult=function(t){If=t},Kr.registerProcessor=function(t){Of=t};var Qs=Kr;Kr.default=Kr;var xf={},kf=function(n){xf[n]||(xf[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},ea=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,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 o in e)this[o]=e[o]}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})(),Af=ea;ea.default=ea;var G_=Af,ta=(function(){function t(i,e,r){this.processor=i,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 o=new G_(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ne(t,[{key:"content",get:function(){return this.css}}]),t})(),ra=ta;ta.default=ta;var na=39,Rf=34,Ti=92,Mf=47,$i=10,Jr=32,Pi=12,Ni=9,Li=13,q_=91,V_=93,j_=40,H_=41,Y_=123,K_=125,J_=59,X_=42,Z_=58,Q_=64,Di=/[\t\n\f\r "#'()/;[\\\]{}]/g,Fi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ew=/.[\r\n"'(/\\]/,Tf=/[\da-f]/i,tw=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function S(k){throw n.error("Unclosed "+k,d)}function C(){return _.length===0&&d>=y}function x(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(o=e.charCodeAt(d),o){case $i:case Jr:case Ni:case Li:case Pi:{s=d;do s+=1,o=e.charCodeAt(s);while(o===Jr||o===$i||o===Ni||o===Li||o===Pi);v=["space",e.slice(d,s)],d=s-1;break}case q_:case V_:case Y_:case K_:case Z_:case J_:case H_:{var W=String.fromCharCode(o);v=[W,W,d];break}case j_:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==na&&g!==Rf&&g!==Jr&&g!==$i&&g!==Ni&&g!==Pi&&g!==Li){s=d;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=d;break}else S("bracket");for(f=s;e.charCodeAt(f-1)===Ti;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,s+1),d,s],d=s}else s=e.indexOf(")",d+1),u=e.slice(d,s+1),s===-1||ew.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case na:case Rf:{a=o===na?"'":'"',s=d;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=d+1;break}else S("string");for(f=s;e.charCodeAt(f-1)===Ti;)f-=1,l=!l}while(l);v=["string",e.slice(d,s+1),d,s],d=s;break}case Q_:{Di.lastIndex=d+1,Di.test(e),Di.lastIndex===0?s=e.length-1:s=Di.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case Ti:{for(s=d,c=!0;e.charCodeAt(s+1)===Ti;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Mf&&o!==Jr&&o!==$i&&o!==Ni&&o!==Li&&o!==Pi&&(s+=1,Tf.test(e.charAt(s)))){for(;Tf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Jr&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===Mf&&e.charCodeAt(d+1)===X_?(s=e.indexOf("*/",d+2)+1,s===0&&(r||$?s=e.length:S("comment")),v=["comment",e.slice(d,s+1),d,s],d=s):(Fi.lastIndex=d+1,Fi.test(e),Fi.lastIndex===0?s=e.length-1:s=Fi.lastIndex-2,v=["word",e.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function T(k){_.push(k)}return{back:T,endOfFile:C,nextToken:x,position:b}},$f=Lt,Ui=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})($f),ia=Ui;Ui.default=Ui,$f.registerAtRule(Ui);var Pf=Lt,Nf,Lf,ur=(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 i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Nf(new Lf,this,r);return o.stringify()},n})(Pf);ur.registerLazyResult=function(t){Nf=t},ur.registerProcessor=function(t){Lf=t};var Xr=ur;ur.default=ur,Pf.registerRoot(ur);var Zr={comma:function(n){return Zr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Zr.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=I(n),h;!(h=f()).done;){var g=h.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},Df=Zr;Zr.default=Zr;var Ff=Lt,rw=Df,Bi=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ne(n,[{key:"selectors",get:function(){return rw.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(Ff),oa=Bi;Bi.default=Bi,Ff.registerRule(Bi);var nw=Ii,iw=tw,ow=Mi,sw=ia,aw=Xr,Uf=oa,Bf={empty:!0,space:!0};function uw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var cw=(function(){function t(i){this.input=i,this.root=new aw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new sw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.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=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],h=l[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(e){var r=new ow;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=iw(this.input)},n.decl=function(e,r){var o=new nw;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||uw(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.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 Uf;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,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===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(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},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,o,s){for(var a,u,c=o.length,l="",f=!0,h,g,v=0;v<c;v+=1)a=o[v],u=a[0],u==="space"&&v===c-1&&!s?f=!1:u==="comment"?(g=o[v-1]?o[v-1][0]:"empty",h=o[v+1]?o[v+1][0]:"empty",!Bf[g]&&!Bf[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new Uf;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,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},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})(),lw=cw,fw=Lt,hw=lw,pw=ki;function zi(t,n){var i=new pw(t,n),e=new hw(i);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 sa=zi;zi.default=zi,fw.registerParse(zi);var He=_t.isClean,dw=_t.my,vw=gf,gw=Si,mw=Lt,yw=Qs,_w=kf,zf=ra,ww=sa,bw=Xr,Sw={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cw={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},Ew={Once:!0,postcssPlugin:!0,prepare:!0},cr=0;function Qr(t){return(typeof t=="undefined"?"undefined":M(t))==="object"&&typeof t.then=="function"}function Wf(t){var n=!1,i=Sw[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,cr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,cr,i+"Exit"]:[i,i+"Exit"]}function Gf(t){var n;return t.type==="document"?n=["Document",cr,"DocumentExit"]:t.type==="root"?n=["Root",cr,"RootExit"]:n=Wf(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function aa(t){return t[He]=!1,t.nodes&&t.nodes.forEach(function(n){return aa(n)}),t}var ua={},lr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=aa(e);else if(A(e,t)||A(e,zf))s=aa(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=ww;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[dw]&&mw.rebuild(s)}this.result=new zf(i,s,r),this.helpers=B({},ua,{postcss:ua,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?B({},u,u.prepare(o.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 o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[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(l,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!Cw[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ew[u])if(M(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);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 mn(function(){var r,o,s,a,u,c,l,f,h,g,v,y;return Mt(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(o=e.plugins[r],s=e.runOnRoot(o),!Qr(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[He])return[3,14];u[He]=!0,c=[Gf(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Qr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),h=c[c.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];g=function(){var m,_,b,S,C;return Mt(this,function(x){switch(x.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(T){return b(T,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,ho(g())];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":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Qr(o[0])?Promise.all(o):o}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=gw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new vw(r,this.result.root,this.result.opts),s=o.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(Qr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[He];)a[He]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}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||_w("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 o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Qr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[He]){f[He]=!0,e.push(Gf(f));return}r.iterator=0,delete o.indexes[l]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===cr){o.nodes&&o.nodes.length&&(o[He]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[He]=!0;for(var o=Wf(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===cr)e.nodes&&e.each(function(l){l[He]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ne(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})();lr.registerPostcss=function(t){ua=t};var qf=lr;lr.default=lr,bw.registerLazyResult(lr),yw.registerLazyResult(lr);var Iw=gf,Ow=Si,xw=kf,kw=sa,Aw=ra,ca=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=Ow;this.result=new Aw(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Iw(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),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||xw("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[]},ne(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=kw;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Rw=ca;ca.default=ca;var Mw=Rw,Tw=qf,$w=Qs,Pw=Xr,en=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":M(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 Mw(this,e,r):new Tw(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Nw=en;en.default=en,Pw.registerProcessor(en),$w.registerProcessor(en);var Lw=Ii,Dw=af,Fw=Mi,Uw=ia,Bw=ki,zw=Xr,Ww=oa;function tn(t,n){if(Array.isArray(t))return t.map(function(f){return tn(f)});var i=t.inputs,e=Rt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=B({},s,{__proto__:Bw.prototype});a.map&&(a.map=B({},a.map,{__proto__:Dw.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return tn(f,n)})),e.source){var u=e.source,c=u.inputId,l=Rt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new zw(e);if(e.type==="decl")return new Lw(e);if(e.type==="rule")return new Ww(e);if(e.type==="comment")return new Fw(e);if(e.type==="atrule")return new Uw(e);throw new Error("Unknown node type: "+t.type)}var Gw=tn;tn.default=tn;var qw=Fs,Vf=Ii,Vw=qf,jw=Lt,la=Nw,Hw=Si,Yw=Gw,jf=Qs,Kw=Af,Hf=Mi,Yf=ia,Jw=ra,Xw=ki,Zw=sa,Qw=Df,Kf=oa,Jf=Xr,eb=Ei;function Q(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new la(n)}Q.plugin=function(n,i){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 c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new la().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Q([r(u)]).process(s,a)},r},Q.stringify=Hw,Q.parse=Zw,Q.fromJSON=Yw,Q.list=Qw,Q.comment=function(t){return new Hf(t)},Q.atRule=function(t){return new Yf(t)},Q.decl=function(t){return new Vf(t)},Q.rule=function(t){return new Kf(t)},Q.root=function(t){return new Jf(t)},Q.document=function(t){return new jf(t)},Q.CssSyntaxError=qw,Q.Declaration=Vf,Q.Container=jw,Q.Processor=la,Q.Document=jf,Q.Comment=Hf,Q.Warning=Kw,Q.AtRule=Yf,Q.Result=Jw,Q.Input=Xw,Q.Rule=Kf,Q.Root=Jf,Q.Node=eb,Vw.registerPostcss(Q);var tb=Q;Q.default=Q;var fe=h_(tb);fe.stringify,fe.fromJSON,fe.plugin,fe.parse,fe.list,fe.document,fe.comment,fe.atRule,fe.rule,fe.decl,fe.root,fe.CssSyntaxError,fe.Declaration,fe.Container,fe.Processor,fe.Document,fe.Comment,fe.Warning,fe.AtRule,fe.Result,fe.Input,fe.Rule,fe.Root,fe.Node;var rb=Object.defineProperty,nb=function(t,n,i){return n in t?rb(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Wi=function(t,n,i){return nb(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)};function ib(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(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(o){return function(){}}}var fr=(function(){function t(i){Wi(this,"fileName"),Wi(this,"functionName"),Wi(this,"lineNumber"),Wi(this,"columnNumber"),this.fileName=i.fileName||"",this.functionName=i.functionName||"",this.lineNumber=i.lineNumber,this.columnNumber=i.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})(),ob=/(^|@)\S+:\d+/,Xf=/^\s*at .*(\S+:\d+|\(native\))/m,sb=/^(eval@)?(\[native code])?$/,fa={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(Xf)?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 i=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=i.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 i=n.stack.split("\n").filter(function(e){return!!e.match(Xf)},this);return i.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,"("),o=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=o?r.replace(o[0],""):r;var s=r.split(/\s+/).slice(1),a=this.extractLocation(o?o[1]:s.pop()),u=s.join(" ")||void 0,c=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new fr({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split("\n").filter(function(e){return!e.match(sb)},this);return i.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 fr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,a=this.extractLocation(e.replace(r,""));return new fr({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 i=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split("\n"),r=[],o=2,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new fr({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split("\n"),r=[],o=0,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new fr({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(ob)&&!e.match(/^Error created at/)},this);return i.map(function(e){var r=e.split("@"),o=this.extractLocation(r.pop()),s=r.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new fr({functionName:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function ab(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var i=t.localName;if(!i)break;i=i.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var o=0;o<e.children.length;o++){var s=e.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===i&&r.push(s)}r.length>1&&(i+=":eq("+r.indexOf(t)+")"),n=i+(n?">"+n:""),t=e}return n}function ha(t){return Object.prototype.toString.call(t)==="[object Object]"}function Zf(t,n){if(n===0)return!0;for(var i=Object.keys(t),e=I(i),r;!(r=e()).done;){var o=r.value;if(ha(t[o])&&Zf(t[o],n-1))return!0}return!1}function hr(t,n){var i={numOfKeysLimit:50,depthOfLimit:4};Object.assign(i,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var c=e.indexOf(this);~c?e.splice(c+1):e.push(this),~c?r.splice(c,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(o(u))return s(u);if((typeof u=="undefined"?"undefined":M(u))==="bigint")return u.toString()+"n";if(A(u,Event)){var l={};for(var f in u){var h=u[f];Array.isArray(h)?l[f]=ab(h.length?h[0]:null):l[f]=h}return l}else{if(A(u,Node))return A(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(A(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function o(a){return!!(ha(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||ha(a)&&Zf(a,i.depthOfLimit))}function s(a){var u=a.toString();return i.stringLengthLimit&&u.length>i.stringLengthLimit&&(u=""+u.slice(0,i.stringLengthLimit)+"..."),u}}var Qf={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 ub(t,n,i){var e=i?Object.assign({},Qf,i):Qf,r=e.logger;if(!r)return function(){};var o;typeof r=="string"?o=n[r]:o=r;var s=0,a=!1,u=[];if(e.level.includes("error")){var c=function(y){var d=y.message,m=y.error,_=fa.parse(m).map(function(S){return S.toString()}),b=[hr(d,e.stringifyOptions)];t({level:"error",trace:_,payload:b})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var l=function(y){var d,m;A(y.reason,Error)?(d=y.reason,m=[hr("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,m=[hr("Uncaught (in promise)",e.stringifyOptions),hr(y.reason,e.stringifyOptions)]);var _=fa.parse(d).map(function(b){return b.toString()});t({level:"error",trace:_,payload:m})};n.addEventListener("unhandledrejection",l),u.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var f=I(e.level),h;!(h=f()).done;){var g=h.value;u.push(v(o,g))}return function(){u.forEach(function(y){return y()})};function v(y,d){var m=this;return y[d]?ib(y,d,function(_){var b=m;return function(){for(var S=arguments.length,C=new Array(S),x=0;x<S;x++)C[x]=arguments[x];if(_.apply(b,C),!(d==="assert"&&C[0])&&!a){a=!0;try{var T=fa.parse(new Error).map(function(W){return W.toString()}).splice(1),k=d==="assert"?C.slice(1):C,$=k.map(function(W){return hr(W,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:d,trace:T,payload:$}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[hr("The number of log records reached the threshold.")]})}catch(W){_.apply(void 0,[].concat(["rrweb logger error:",W],C))}finally{a=!1}}}}):function(){}}}var cb="rrweb/console@1",lb=function(t){return{name:cb,observer:ub,options:t}},eh=E.setImmediate,wt,pa,da,th=Object.prototype.toString,fb=typeof eh!="undefined"?function(n){return eh(n)}:setTimeout;try{Object.defineProperty({},"x",{}),wt=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch(t){wt=function(i,e,r){return i[e]=r,i}}da=(function(){var n,i,e;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){e=new r(s,a),i?i.next=e:n=e,i=e,e=void 0},drain:function(){var s=n;for(n=i=pa=void 0;s;)s.fn.call(s.self),s=s.next}}})();function Gi(t,n){da.add(t,n),pa||(pa=fb(da.drain))}function rh(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function va(){for(var t=0;t<this.chain.length;t++)hb(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function hb(t,n,i){var e,r;try{n===!1?i.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=rh(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(o){i.reject(o)}}function nh(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=rh(t))?Gi(function(){var e=new oh(i);try{n.call(t,function(){nh.apply(e,arguments)},function(){rn.apply(e,arguments)})}catch(r){rn.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&Gi(va,i))}catch(e){rn.call(new oh(i),e)}}}function rn(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&Gi(va,n))}function ih(t,n,i,e){for(var r=0;r<n.length;r++)(function(s){t.resolve(n[s]).then(function(u){i(s,u)},e)})(r)}function oh(t){this.def=t,this.triggered=!1}function pb(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function bt(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 pb(this);this.then=function(e,r){var o={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&Gi(va,n),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){nh.call(n,e)},function(e){rn.call(n,e)})}catch(i){rn.call(n,i)}}var sh=wt({},"constructor",bt,!1);bt.prototype=sh,wt(sh,"__NPO__",0,!1),wt(bt,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})}),wt(bt,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),wt(bt,"all",function(n){var i=this;return th.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;ih(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),wt(bt,"race",function(n){var i=this;return th.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");ih(i,n,function(a,u){r(u)},o)})});var j;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?j=Promise:j=bt;var $e={DEBUG:!1,LIB_VERSION:"2.75.0"},nn=1440*60*1e3,ga=8*1e3,qi=Array.prototype,db=Function.prototype,ah=Object.prototype,St=qi.slice,on=ah.toString,Vi=ah.hasOwnProperty,Se=E.console,it=E.navigator,D=E.document,sn=E.opera,uh=E.screen,Ye=it.userAgent,ma=db.bind,ch=qi.forEach,lh=qi.indexOf,fh=qi.map,vb=Array.isArray,ya={},p={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},F={log:function(){if($e.DEBUG&&!p.isUndefined(Se)&&Se)try{Se.log.apply(Se,arguments)}catch(t){p.each(arguments,function(n){Se.log(n)})}},warn:function(){if($e.DEBUG&&!p.isUndefined(Se)&&Se){var t=["Mixpanel warning:"].concat(p.toArray(arguments));try{Se.warn.apply(Se,t)}catch(n){p.each(t,function(i){Se.warn(i)})}}},error:function(){if($e.DEBUG&&!p.isUndefined(Se)&&Se){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Se.error.apply(Se,t)}catch(n){p.each(t,function(i){Se.error(i)})}}},critical:function(){if(!p.isUndefined(Se)&&Se){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Se.error.apply(Se,t)}catch(n){p.each(t,function(i){Se.error(i)})}}}},_a=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(F,arguments)}},Dt=function(t){return{log:_a(F.log,t),error:_a(F.error,t),critical:_a(F.critical,t)}},an=function(t){return function(){try{return t.apply(this,arguments)}catch(n){F.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),$e.DEBUG&&F.critical(n)}}},hh=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=an(n[i]))};p.bind=function(t,n){var i,e;if(ma&&t.bind===ma)return ma.apply(t,St.call(arguments,1));if(!p.isFunction(t))throw new TypeError;return i=St.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(St.call(arguments)));var r={};r.prototype=t.prototype;var o=new r;r.prototype=null;var s=t.apply(o,i.concat(St.call(arguments)));return Object(s)===s?s:o},e},p.each=function(t,n,i){if(t!=null){if(ch&&t.forEach===ch)t.forEach(n,i);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(i,t[e],e,t)===ya)return}else for(var o in t)if(Vi.call(t,o)&&n.call(i,t[o],o,t)===ya)return}},p.extend=function(t){return p.each(St.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t},p.isArray=vb||function(t){return on.call(t)==="[object Array]"},p.isFunction=function(t){return typeof t=="function"},p.isArguments=function(t){return!!(t&&Vi.call(t,"callee"))},p.toArray=function(t){return t?t.toArray?t.toArray():p.isArray(t)||p.isArguments(t)?St.call(t):p.values(t):[]},p.map=function(t,n,i){if(fh&&t.map===fh)return t.map(n,i);var e=[];return p.each(t,function(r){e.push(n.call(i,r))}),e},p.keys=function(t){var n=[];return t===null||p.each(t,function(i,e){n[n.length]=e}),n},p.values=function(t){var n=[];return t===null||p.each(t,function(i){n[n.length]=i}),n},p.include=function(t,n){var i=!1;return t===null?i:lh&&t.indexOf===lh?t.indexOf(n)!=-1:(p.each(t,function(e){if(i||(i=e===n))return ya}),i)},p.includes=function(t,n){return t.indexOf(n)!==-1},p.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},p.isObject=function(t){return t===Object(t)&&!p.isArray(t)},p.isEmptyObject=function(t){if(p.isObject(t)){for(var n in t)if(Vi.call(t,n))return!1;return!0}return!1},p.isUndefined=function(t){return t===void 0},p.isString=function(t){return on.call(t)=="[object String]"},p.isDate=function(t){return on.call(t)=="[object Date]"},p.isNumber=function(t){return on.call(t)=="[object Number]"},p.isElement=function(t){return!!(t&&t.nodeType===1)},p.encodeDates=function(t){return p.each(t,function(n,i){p.isDate(n)?t[i]=p.formatDate(n):p.isObject(n)&&(t[i]=p.encodeDates(n))}),t},p.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},p.formatDate=function(t){function n(i){return i<10?"0"+i:i}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},p.strip_empty_properties=function(t){var n={};return p.each(t,function(i,e){p.isString(i)&&i.length>0&&(n[e]=i)}),n},p.truncate=function(t,n){var i;return typeof t=="string"?i=t.slice(0,n):p.isArray(t)?(i=[],p.each(t,function(e){i.push(p.truncate(e,n))})):p.isObject(t)?(i={},p.each(t,function(e,r){i[r]=p.truncate(e,n)})):i=t,i},p.JSONEncode=(function(){return function(t){var n=t,i=function(r){var o=/[\\"\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 o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,o){var s="",a=" ",u=0,c="",l="",f=0,h=s,g=[],v=o[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(s+=a,g=[],on.apply(v)==="[object Array]"){for(f=v.length,u=0;u<f;u+=1)g[u]=e(u,v)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+h+"]":"["+g.join(",")+"]",s=h,l}for(c in v)Vi.call(v,c)&&(l=e(c,v),l&&g.push(i(c)+(s?": ":":")+l));return l=g.length===0?"{}":s?"{"+g.join(",")+h+"}":"{"+g.join(",")+"}",s=h,l}};return e("",{"":n})}})(),p.JSONDecode=(function(){var t,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(g){var v=new SyntaxError(g);throw v.at=t,v.text=e,v},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},s=function(){var g,v="";for(n==="-"&&(v="-",o("-"));n>="0"&&n<="9";)v+=n,o();if(n===".")for(v+=".";o()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,o(),(n==="-"||n==="+")&&(v+=n,o());n>="0"&&n<="9";)v+=n,o();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,y="",d;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(o(),16),!!isFinite(g));v+=1)d=d*16+g;y+=String.fromCharCode(d)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},h=function(){var g,v={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),v;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=l(),u(),n==="}")return o("}"),v;o(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return h();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var v;return e=g,t=0,n=" ",v=l(),u(),n&&r("Syntax error"),v}})(),p.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,e,r,o,s,a,u,c,l=0,f=0,h="",g=[];if(!t)return t;t=p.utf8Encode(t);do i=t.charCodeAt(l++),e=t.charCodeAt(l++),r=t.charCodeAt(l++),c=i<<16|e<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<t.length);switch(h=g.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},p.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,e,r=0,o;for(i=e=0,r=t.length,o=0;o<r;o++){var s=t.charCodeAt(o),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>i&&(n+=t.substring(i,e)),n+=a,i=e=o+1)}return e>i&&(n+=t.substring(i,t.length)),n},p.UUID=function(){try{return E.crypto.randomUUID()}catch(i){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]="-",p.map(t,function(e){return e.toString(16)}).join("")}};var ph=["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"];p.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<ph.length;n++)if(t.indexOf(ph[n])!==-1)return!0;return!1},p.HTTPBuildQuery=function(t,n){var i,e,r=[];return p.isUndefined(n)&&(n="&"),p.each(t,function(o,s){i=encodeURIComponent(o.toString()),e=encodeURIComponent(s),r[r.length]=e+"="+i}),r.join(n)},p.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",e=new RegExp(i),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){F.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},p.cookie={get:function(t){for(var n=t+"=",i=D.cookie.split(";"),e=0;e<i.length;e++){for(var r=i[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=p.JSONDecode(p.cookie.get(t))||{}}catch(i){}return n},set_seconds:function(t,n,i,e,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(e){var l=_h(D.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),D.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(t,n,i,e,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(e){var l=_h(D.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var h=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return D.cookie=h,h},remove:function(t,n,i){p.cookie.set(t,"",-1,n,!1,!1,i)}};var dh=function(t){var n=!0;try{var i="__mplss_"+Sa(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch(r){n=!1}return n},wa=null,un=function(t,n){return wa!==null&&!n?wa:wa=dh(t||E.localStorage)},ba=null,gb=function(t,n){return ba!==null&&!n?ba:ba=dh(t||E.sessionStorage)};function vh(t,n,i){var e=function(r){F.error(n+" error: "+r)};return{is_supported:function(r){var o=i(t,r);return o||F.error(n+" unsupported"),o},error:e,get:function(r){try{return t.getItem(r)}catch(o){e(o)}return null},parse:function(r){try{return p.JSONDecode(t.getItem(r))||{}}catch(o){}return null},set:function(r,o){try{t.setItem(r,o)}catch(s){e(s)}},remove:function(r){try{t.removeItem(r)}catch(o){e(o)}}}}var gh=null,mh=null;try{gh=E.localStorage,mh=E.sessionStorage}catch(t){}p.localStorage=vh(gh,"localStorage",un),p.sessionStorage=vh(mh,"sessionStorage",gb),p.register_event=(function(){var t=function(e,r,o,s,a){if(!e){F.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(r,o,!!a);else{var u="on"+r,c=e[u];e[u]=n(e,o,c)}};function n(e,r,o){var s=function(a){if(a=a||i(E.event),!!a){var u=!0,c,l;return p.isFunction(o)&&(c=o(a)),l=r.call(e,a),(c===!1||l===!1)&&(u=!1),u}};return s}function i(e){return e&&(e.preventDefault=i.preventDefault,e.stopPropagation=i.stopPropagation),e}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},t})();var mb=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');p.dom_query=(function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function e(r){if(!D.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,h,g,v,y,d=[D];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],_=D.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),c=[],l=0,h=0;h<d.length;h++)for(u=="*"?v=t(d[h]):v=d[h].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];for(d=[],y=0,h=0;h<c.length;h++)c[h].className&&p.isString(c[h].className)&&i(c[h],b)&&(d[y++]=c[h]);continue}var S=s.match(mb);if(S){u=S[1];var C=S[2],x=S[3],T=S[4];for(u||(u="*"),c=[],l=0,h=0;h<d.length;h++)for(u=="*"?v=t(d[h]):v=d[h].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=[],y=0;var k;switch(x){case"=":k=function($){return $.getAttribute(C)==T};break;case"~":k=function($){return $.getAttribute(C).match(new RegExp("\\b"+T+"\\b"))};break;case"|":k=function($){return $.getAttribute(C).match(new RegExp("^"+T+"-?"))};break;case"^":k=function($){return $.getAttribute(C).indexOf(T)===0};break;case"$":k=function($){return $.getAttribute(C).lastIndexOf(T)==$.getAttribute(C).length-T.length};break;case"*":k=function($){return $.getAttribute(C).indexOf(T)>-1};break;default:k=function($){return $.getAttribute(C)}}for(d=[],y=0,h=0;h<c.length;h++)k(c[h])&&(d[y++]=c[h]);continue}for(u=s,c=[],l=0,h=0;h<d.length;h++)for(v=d[h].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=c}return d}return function(r){return p.isElement(r)?[r]:p.isObject(r)&&!p.isUndefined(r.length)?r:e.call(this,r)}})();var yb=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],_b=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];p.info={campaignParams:function(t){var n="",i={};return p.each(yb,function(e){n=p.getQueryParam(D.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return p.each(_b,function(i){t=p.getQueryParam(D.URL,i),t.length&&(n[i]=t)}),n},marketingParams:function(){return p.extend(p.info.campaignParams(),p.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=p.info.searchEngine(t),i=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=p.getQueryParam(t,i);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,i){return n=n||"",i||p.includes(t," OPR/")?p.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":p.includes(t,"IEMobile")||p.includes(t,"WPDesktop")?"Internet Explorer Mobile":p.includes(t,"SamsungBrowser/")?"Samsung Internet":p.includes(t,"Edge")||p.includes(t,"Edg/")?"Microsoft Edge":p.includes(t,"FBIOS")?"Facebook Mobile":p.includes(t,"Whale/")?"Whale Browser":p.includes(t,"Chrome")?"Chrome":p.includes(t,"CriOS")?"Chrome iOS":p.includes(t,"UCWEB")||p.includes(t,"UCBrowser")?"UC Browser":p.includes(t,"FxiOS")?"Firefox iOS":p.includes(n,"Apple")?p.includes(t,"Mobile")?"Mobile Safari":"Safari":p.includes(t,"Android")?"Android Mobile":p.includes(t,"Konqueror")?"Konqueror":p.includes(t,"Firefox")?"Firefox":p.includes(t,"MSIE")||p.includes(t,"Trident/")?"Internet Explorer":p.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,i){var e=p.info.browser(t,n,i),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+)?)/},o=r[e];if(o===void 0)return null;var s=t.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var t=Ye;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 E.location.href},properties:function(t){return typeof t!="object"&&(t={}),p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(Ye,it.vendor,sn),$referrer:D.referrer,$referring_domain:p.info.referringDomain(D.referrer),$device:p.info.device(Ye)}),{$current_url:p.info.currentUrl(),$browser_version:p.info.browserVersion(Ye,it.vendor,sn),$screen_height:uh.height,$screen_width:uh.width,mp_lib:"web",$lib_version:$e.LIB_VERSION,$insert_id:Sa(),time:p.timestamp()/1e3},p.strip_empty_properties(t))},people_properties:function(){return p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(Ye,it.vendor,sn)}),{$browser_version:p.info.browserVersion(Ye,it.vendor,sn)})},mpPageViewProperties:function(){return p.strip_empty_properties({current_page_title:D.title,current_domain:E.location.hostname,current_url_path:E.location.pathname,current_url_protocol:E.location.protocol,current_url_search:E.location.search})}};var wb=function(t,n){var i=null,e=[];return function(r){var o=this;return e.push(r),i||(i=new j(function(s){setTimeout(function(){var a=t.apply(o,[e]);i=null,e=[],s(a)},n)})),i}},Sa=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},yh=function(){var t=p.UUID().replace(/-/g,""),n=p.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},bb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Sb=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,_h=function(t){var n=Sb,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=bb);var r=t.match(n);return r?r[0]:""},Cb=function(){var t=E.navigator.onLine;return p.isUndefined(t)||t},Ct=function(){},pr=null,ji=null;typeof JSON!="undefined"&&(pr=JSON.stringify,ji=JSON.parse),pr=pr||p.JSONEncode,ji=ji||p.JSONDecode;var Eb=function(t,n,i){if(!E.CompressionStream)return!1;var e=p.info.browser(t,n,i),r=p.info.browserVersion(t,n,i);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};p.info=p.info,p.info.browser=p.info.browser,p.info.browserVersion=p.info.browserVersion,p.info.device=p.info.device,p.info.properties=p.info.properties,p.isBlockedUA=p.isBlockedUA,p.isEmptyObject=p.isEmptyObject,p.isObject=p.isObject,p.JSONDecode=p.JSONDecode,p.JSONEncode=p.JSONEncode,p.toArray=p.toArray,p.NPO=bt;var Ib="mixpanelBrowserDb",wh="mixpanelRecordingEvents",Ca="mixpanelRecordingRegistry",Ob=1,xb=[wh,Ca],ze=function(t){this.dbPromise=null,this.storeName=t};ze.prototype._openDb=function(){return new j(function(t,n){var i=E.indexedDB.open(Ib,Ob);i.onerror=function(){n(i.error)},i.onsuccess=function(){t(i.result)},i.onupgradeneeded=function(e){var r=e.target.result;xb.forEach(function(o){r.createObjectStore(o)})}})},ze.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof E.IDBDatabase?j.resolve():j.reject(t)})):j.reject("indexedDB is not supported in this browser")},ze.prototype.isInitialized=function(){return!!this.dbPromise},ze.prototype.makeTransaction=function(t,n){var i=this.storeName,e=function(r){return new j(function(o,s){var a=r.transaction(i,t);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):j.reject(r)}.bind(this))},ze.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(i){i.put(n,t)})},ze.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(i){n=i.get(t)}).then(function(){return n.result})},ze.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},ze.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var kb="__mp_opt_in_out_";function Ab(t,n){Ch(!0,t,n)}function Rb(t,n){Ch(!1,t,n)}function Mb(t,n){return Sh(t,n)==="1"}function bh(t,n){if($b(n))return F.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 i=Sh(t,n)==="0";return i&&F.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function Et(t){return Oa(t,function(n){return this.get_config(n)})}function It(t){return Oa(t,function(n){return this._get_config(n)})}function dr(t){return Oa(t,function(n){return this._get_config(n)})}function Tb(t,n){n=n||{},Ea(n).remove(Ia(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Ea(t){return t=t||{},t.persistenceType==="localStorage"?p.localStorage:p.cookie}function Ia(t,n){return n=n||{},(n.persistencePrefix||kb)+t}function Sh(t,n){return Ea(n).get(Ia(t,n))}function $b(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||E,i=n.navigator||{},e=!1;return p.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){p.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function Ch(t,n,i){if(!p.isString(n)||!n.length){F.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},Ea(i).set(Ia(n,i),t?1:0,p.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&t&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Oa(t,n){return function(){var i=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(i=bh(e,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){F.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Pb=Dt("lock"),Eh=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||E.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||j};Eh.prototype.withLock=function(t,n){var i=this.promiseImpl;return new i(p.bind(function(e,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",h=a+":Y",g=a+":Z",v=function(b){if(new Date().getTime()-s>c){Pb.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(h),m();return}setTimeout(function(){try{b()}catch(S){r(S)}},u*(Math.random()+.1))},y=function(b,S){b()?S():v(function(){y(b,S)})},d=function(){var b=l.getItem(h);return b&&b!==o?!1:(l.setItem(h,o),l.getItem(h)===o?!0:(un(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(d,function(){if(l.getItem(f)===o){_();return}v(function(){if(l.getItem(h)!==o){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var b=function(){l.removeItem(g),l.getItem(h)===o&&l.removeItem(h),l.getItem(f)===o&&l.removeItem(f)};t().then(function(S){b(),e(S)}).catch(function(S){b(),r(S)})};try{if(un(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var vr=function(t){this.storage=t||E.localStorage};vr.prototype.init=function(){return j.resolve()},vr.prototype.isInitialized=function(){return!0},vr.prototype.setItem=function(t,n){return new j(p.bind(function(i,e){try{this.storage.setItem(t,pr(n))}catch(r){e(r)}i()},this))},vr.prototype.getItem=function(t){return new j(p.bind(function(n,i){var e;try{e=ji(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))},vr.prototype.removeItem=function(t){return new j(p.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var Ih=Dt("batch"),Ke=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new vr,this.lock=new Eh(t,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||p.bind(Ih.error,Ih),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=wb(p.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=p.bind(function(i){return this._enqueuePersisted([i])},this)};Ke.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?j.resolve():this.queueStorage.init().then(p.bind(function(){this.initialized=!0},this)).catch(p.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Ke.prototype.enqueue=function(t,n){var i={id:Sa(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),j.resolve(!0))},Ke.prototype._enqueuePersisted=function(t){var n=p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){return this.saveToStorage(i.concat(t))},this)).then(p.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(t)),i},this)).catch(p.bind(function(i){return this.reportError("Error enqueueing items",i,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(p.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},Ke.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){if(i.length){var e={};p.each(n,function(s){e[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!e[o.id]&&(o.orphaned=!0,n.push(o),n.length>=t))break}}return n},this)):j.resolve(n)};var Oh=function(t,n){var i=[];return p.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};Ke.prototype.removeItemsByID=function(t){var n={};if(p.each(t,function(e){n[e]=!0}),this.memQueue=Oh(this.memQueue,n),this.usePersistence){var i=p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){return e=Oh(e,n),this.saveToStorage(e)},this)).then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){for(var r=0;r<e.length;r++){var o=e[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(p.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(p.bind(function(e){return this.reportError("Error acquiring storage lock",e),un(this.lock.storage,!0)?!1:i().then(p.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(p.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return j.resolve(!0)};var xh=function(t,n){var i=[];return p.each(t,function(e){var r=e.id;if(r in n){var o=n[r];o!==null&&(e.payload=o,i.push(e))}else i.push(e)}),i};Ke.prototype.updatePayloads=function(t){return this.memQueue=xh(this.memQueue,t),this.usePersistence?this.lock.withLock(p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){return i=xh(i,t),this.saveToStorage(i)},this)).catch(p.bind(function(i){return this.reportError("Error updating items",t,i),!1},this))},this),this.pid).catch(p.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):j.resolve(!0)},Ke.prototype.readFromStorage=function(){return this.ensureInit().then(p.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(p.bind(function(t){return t&&(p.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(p.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Ke.prototype.saveToStorage=function(t){return this.ensureInit().then(p.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(p.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Ke.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(p.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):j.resolve()};var Nb=600*1e3,cn=Dt("batch"),Ue=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ke(t,{errorReporter:p.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};Ue.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Ue.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ue.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ue.prototype.clear=function(){return this.queue.clear()},Ue.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ue.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ue.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(p.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ue.prototype.sendRequestPromise=function(t,n){return new j(p.bind(function(i){this.sendRequest(t,n,i)},this))},Ue.prototype.flush=function(t){if(this.requestInProgress)return cn.log("Flush: Request already in progress"),j.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(p.bind(function(r){var o=r.length===e,s=[],a={};if(p.each(r,function(f){var h=f.payload;if(this.beforeSendHook&&!f.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=p.extend({},h.properties,{mp_sent_by_lib_version:$e.LIB_VERSION}));var g=!0,v=f.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&s.push(h)}a[f.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),j.resolve();var u=p.bind(function(){return this.queue.removeItemsByID(p.map(r,function(f){return f.id})).then(p.bind(function(f){return p.each(r,p.bind(function(h){var g=h.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),j.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),j.resolve())},this))},this),c=p.bind(function(f){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(p.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(p.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!Cb()||f.error==="timeout")){var h=this.flushInterval*2;return f.retryAfter&&(h=parseInt(f.retryAfter,10)*1e3||h),h=Math.min(Nb,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),j.resolve()}else if(p.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),j.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(l.transport="sendBeacon"),cn.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(p.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Ue.prototype.reportError=function(t,n){if(cn.error.apply(cn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){cn.error(i)}};var xa=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},Lb=250,ln="change",ot="click",ka="hashchange",Db="input",kh="load",Ot="mp_locationchange",Ah="popstate",Hi="scrollend",Aa="scroll",Fb="select",Yi="submit",Ub="toggle",Rh="visibilitychange",Bb=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Mh=["mp-include"],Ra=["mp-no-track"],Th=Ra.concat(["mp-sensitive"]),zb=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Wb={button:!0,checkbox:!0,combobox:!0,grid:!0,link:!0,listbox:!0,menu:!0,menubar:!0,menuitem:!0,menuitemcheckbox:!0,menuitemradio:!0,navigation:!0,option:!0,radio:!0,radiogroup:!0,searchbox:!0,slider:!0,spinbutton:!0,switch:!0,tab:!0,tablist:!0,textbox:!0,tree:!0,treegrid:!0,treeitem:!0},Gb={base:!0,head:!0,html:!0,link:!0,meta:!0,script:!0,style:!0,title:!0,br:!0,hr:!0,wbr:!0,noscript:!0,picture:!0,source:!0,template:!0,track:!0},qb={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},$h=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Vb=5,te=Dt("autocapture");function Ma(t){for(var n={},i=Ph(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function Ph(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function jb(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!Dh(t));return t}function Nh(t,n,i,e,r,o){var s={$classes:Ph(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(s.$id=a),Pa(t,n,r,o)&&p.each(zb.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var h=t.getAttribute(f);Ki(h)&&(s["$attr-"+f]=h)}});for(var u=1,c=1,l=t;l=jb(l);)u++,l.tagName===t.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Hb(t,n){var i=n.allowElementCallback,e=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};p.each(r,function(C){l[C]=!0});var f=null,h=typeof t.target=="undefined"?t.srcElement:t.target;if(Fh(h)&&(h=h.parentNode),Xb(h,t)&&Ta(h,t,i,e)&&!$a(h,t,o,s)){for(var g=[h],v=h;v.parentNode&&!Je(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(p.each(g,function(C){var x=Pa(C,t,i,e);!l.href&&C.tagName.toLowerCase()==="a"&&(d=C.getAttribute("href"),d=x&&Ki(d)&&d),$a(C,t,o,s)&&(m=!0),y.push(Nh(C,t,l,u,i,e))},this),!m){var _=D.documentElement;if(f={$event_type:t.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:D.body.offsetHeight||0,$pageWidth:D.body.offsetWidth||0},p.each(u,function(C){if(!l[C]&&h.hasAttribute(C)){var x=h.getAttribute(C);Ki(x)&&(f["$el_attr__"+C]=x)}}),a&&(b=Lh(h,t,i,e),b&&b.length&&(f.$el_text=b)),t.type===ot&&(p.each(Bb,function(C){C in t&&(f["$"+C]=t[C])}),c&&(f.$captured_for_heatmap=!0),h=Yb(t)),a){var b=Lh(h,t,i,e);b&&b.length&&(f.$el_text=b)}if(h){if(!Ta(h,t,i,e)||$a(h,t,o,s))return null;var S=Nh(h,t,l,u,i,e);f.$target=S,f.$el_classes=S.$classes,p.extend(f,p.strip_empty_properties({$el_id:S.$id,$el_tag_name:S.$tag_name}))}}}return f}function Lh(t,n,i,e){var r="";return Pa(t,n,i,e)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,function(o){Fh(o)&&o.textContent&&(r+=p.trim(o.textContent).split(/(\s+)/).filter(Ki).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),p.trim(r)}function Yb(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Je(r,"a")||Je(r,"button")||Je(r,"input")||Je(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Ta(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(s){return te.critical("Error while checking element in allowElementCallback",s),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var o=e[r];try{if(t.matches(o))return!0}catch(s){te.critical("Error while checking selector: "+o,s)}}return!1}function $a(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return te.critical("Error while checking element in blockElementCallback",a),!0}if(e&&e.length)for(r=0;r<e.length;r++){var o=e[r];try{if(t.matches(o))return!0}catch(a){te.critical("Error while checking selector: "+o,a)}}var s=Ma(t);for(r=0;r<Ra.length;r++)if(s[Ra[r]])return!0;return!1}function Dh(t){return t&&t.nodeType===1}function Je(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function Fh(t){return t&&t.nodeType===3}function Kb(){try{var t=D.createElement("div");return!!t.matches}catch(n){return!1}}function Jb(){return typeof WeakSet!="undefined"}function Xb(t,n){if(!t||Je(t,"html")||!Dh(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===Yi;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===ln:n.type===ot;case"select":case"textarea":return n.type===ln;default:return n.type===ot}}function Uh(t){var n=(t.name||t.id||"").toString().toLowerCase();if(typeof n=="string"){var i=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(i.test(n.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function Pa(t,n,i,e){var r;if(!Ta(t,n,i,e))return!1;for(var o=t;o.parentNode&&!Je(o,"body");o=o.parentNode){var s=Ma(o);for(r=0;r<Th.length;r++)if(s[Th[r]])return!1}var a=Ma(t);for(r=0;r<Mh.length;r++)if(a[Mh[r]])return!0;if(Je(t,"input")||Je(t,"select")||Je(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var u=t.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}return!Uh(t)}function Ki(t){if(t===null||p.isUndefined(t))return!1;if(typeof t=="string"){t=p.trim(t);var n=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(n.test((t||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(t))return!1}return!0}function Bh(t){var n="onscrollend"in E,i=an(t),e=Hi;if(!n){var r=null,o=100;i=an(function(){clearTimeout(r),r=setTimeout(t,o)}),e=Aa}return{listener:i,eventType:e}}function Zb(t){for(var n=0;n<$h.length;n++)if(t.hasAttribute($h[n]))return!0;return!1}function Qb(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return Wb[i]}function Na(t){var n=t.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||t.isContentEditable||t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend||Zb(t)||Qb(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function zh(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(Gb[n])return!0;if(Na(t))return!1;for(var i=t.parentElement,e=0;i&&e<Vb;){if(Na(i))return!1;if(i.getRootNode&&i.getRootNode()!==D){var r=i.getRootNode();if(r.host&&Na(r.host))return!1}i=i.parentElement,e++}return!!qb[n]}function Wh(t){return"composedPath"in t?t.composedPath():[]}function Gh(t){var n=Wh(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var qh=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",eS="data-rr-is-password",tS=["password","email","tel","hidden"];function Ji(t){return t?Array.isArray(t)?t:[t]:[]}function rS(t){var n={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},i=t.get_config("record_mask_input_selector"),e=t.get_config("record_unmask_input_selector"),r=t.get_config("record_mask_all_inputs");n.input.maskingSelector=Ji(i).join(","),n.input.unmaskingSelector=Ji(e).join(","),r!==void 0&&(n.input.maskAll=r);var o=t.get_config("record_mask_text_selector"),s=t.get_config("record_unmask_text_selector"),a=t.get_config("record_mask_all_text"),u=t.get_config("record_mask_text_class"),c=Ji(o);if(u)if(u instanceof RegExp)n.text._legacyClassRegex=u;else{var l="."+u;c.indexOf(l)===-1&&c.push(l)}return n.text.maskingSelector=c.join(","),n.text.unmaskingSelector=Ji(s).join(","),a===void 0&&o!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function gr(t,n){return n?!!t.closest(n):!1}function nS(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(tS.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(eS)||Uh(t)?!0:n.input.maskAll?!gr(t,n.input.unmaskingSelector):!!(gr(t,n.input.maskingSelector)||gr(t,qh))}function iS(t,n){return t?n.text._legacyClassRegex&&Ns(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!gr(t,n.text.unmaskingSelector):!!(gr(t,n.text.maskingSelector)||gr(t,qh)):!1}var mr=Dt("recorder"),oS=E.CompressionStream,sS={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},aS=new Set([L.MouseMove,L.MouseInteraction,L.Scroll,L.ViewportResize,L.Input,L.TouchMove,L.MediaInteraction,L.Drag,L.Selection]);function uS(t){return t.type===V.IncrementalSnapshot&&aS.has(t.data.source)}var Ce=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||Ct,this._onMaxLengthReached=t.onMaxLengthReached||Ct,this._onBatchSent=t.onBatchSent||Ct,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=nn,this.recordMinMs=0;var n=un(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ze(wh),this.batcher=new Ue(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:sS,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Lb,sharedLockTimeoutMS:10*1e3})};Ce.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 i=this._mixpanel.get_property("$user_id");return i&&(t.$user_id=i),t},Ce.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))},Ce.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},Ce.prototype.get_config=function(t){return this.getConfig(t)},Ce.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){mr.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>nn&&(this.recordMaxMs=nn,mr.critical("record_max_ms cannot be greater than "+nn+"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=p.info.currentUrl(),this.replayStartUrl=p.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var o=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,o),this.idleExpires=new Date().getTime()+o}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);var e=rS(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(o){if(this.idleExpires&&this.idleExpires<o.timestamp){this._onIdleTimeout();return}uS(o)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(o),(this.lastEventTimestamp===null||o.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=o.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(nS,e),maskTextFn:this._getMaskFn(iS,e),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[lb({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}})]:[]})}catch(o){this.reportError("Unexpected error when starting rrweb recording.",o)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var r=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),r)},Ce.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}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},Ce.prototype.isRrwebStopped=function(){return this._stopRecording===null},Ce.prototype.flushEventsWithOptOut=function(t,n,i){var e=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,i,e)},Ce.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}},Ce.deserialize=function(t,n){var i=new Ce(p.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 i},Ce.prototype._sendRequest=function(t,n,i,e){var r=function(s,a){s.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=p.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");E.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).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})})},Ce.prototype._flushEvents=Et(function(t,n,i){var e=t.length;if(e>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<e;u++)o=Math.min(o,t[u].timestamp),s=Math.max(s,t[u].timestamp),t[u].type===V.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}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=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:$e.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(l,this.getUserIdInfo()),Eb(Ye,it.vendor,sn)){var h=new Blob([f],{type:"application/json"}).stream(),g=h.pipeThrough(new oS("gzip"));new Response(g).blob().then(function(v){l.format="gzip",this._sendRequest(r,l,v,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),Ce.prototype.reportError=function(t,n){mr.error.apply(mr.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(i){mr.error(i)}},Ce.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Ce.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>ga?(mr.critical("record_min_ms cannot be greater than "+ga+"ms. Capping value."),ga):t},Ce.prototype._getMaskFn=function(t,n){return function(i,e){if(!i.trim().length)return"";var r=!0;try{r=t(e,n)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(r){var o=Math.min(i.length,1e4);return"*".repeat(o)}else return i}.bind(this)};var st=function(t){this.idb=new ze(Ca),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};st.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},st.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},st.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return j.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."),j.resolve())},st.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 xa(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):j.resolve(null)},st.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},st.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))},st.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):j.resolve()},st.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(i){return xa(i)}).map(function(i){var e=Ce.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return j.all(n)}.bind(this)).catch(this.handleError.bind(this)):j.resolve([])};var fn=Dt("recorder"),at=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||mt,this.sharedLockStorage=i,this.recordingRegistry=new st({mixpanelInstance:this.mixpanelInstance,errorReporter:fn.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};at.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){fn.log("Recording already in progress, skipping startRecording.");return}var n=function(){fn.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){fn.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:i,replayId:p.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=Ce.deserialize(t.activeSerializedRecording,r):this.activeRecording=new Ce(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},at.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))},at.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},at.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return j.resolve()},at.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),j.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(fn.log("No resumable recording found."),null)}.bind(this))},at.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},at.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(at.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E[lo]=at;var cS=30,lS=1e3,fS=4,hS=!1;function Vh(){this.clicks=[]}Vh.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||cS,e=n.timeout_ms||lS,r=n.click_count||fS,o=n.interactive_elements_only||hS;if(o){var s=Gh(t);if(!s||zh(s))return!1}var a=Date.now(),u=t.pageX,c=t.pageY,l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<e&&Math.sqrt(Math.pow(u-l.x,2)+Math.pow(c-l.y,2))<i){if(this.clicks.push({x:u,y:c,timestamp:a}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:u,y:c,timestamp:a}];return!1};function yr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}yr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return Gh(t)},yr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=Wh(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}},yr.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var n=this;try{this.observedShadowRoots.add(t);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(t,this.observerConfig),this.shadowObservers.push(i)}catch(e){te.critical("Error while observing shadow root",e)}}},yr.prototype.start=function(){if(!this.observedShadowRoots){if(!Jb()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},yr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){te.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var pS=500,dS=[ln,Db,Yi,Fb,Ub],vS=[Hi],gS=[ka],jh={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Xe(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}Xe.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||zh(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},Xe.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i},Xe.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,i=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],o=0;o<e.length;o++){var s=e[o];i-s.timestamp>=n?this.hasChangesAfter(s.timestamp)||r.push(s):this.pendingClicks.push(s)}return r},Xe.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},Xe.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Xe.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},Xe.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=t.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var e=i.getDeadClicks(t),r=0;r<e.length;r++)i.onDeadClickCallback(e[r].event);i.pendingClicks.length>0?i.processRecursively(t):i.processingActive=!1}},n)},Xe.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;dS.forEach(function(i){var e=function(){t.recordChangeEvent()};document.addEventListener(i,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:i,handler:e,options:{capture:!0,passive:!0}})}),gS.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),vS.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e,{passive:!0}),t.eventListeners.push({target:window,event:i,handler:e,options:{passive:!0}})});var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){t.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,jh)}catch(i){te.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new yr(function(){t.recordChangeEvent()},jh),this.shadowDOMObserver.start()}catch(i){te.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},Xe.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var t=0;t<this.eventListeners.length;t++){var n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){te.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){te.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){te.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var Hh="autocapture",mS="track_pageview",Yh="full-url",yS="url-with-path-and-query-string",_S="url-with-path",wS="allow_element_callback",Kh="allow_selectors",Jh="allow_url_regexes",Xh="block_attrs",Zh="block_element_callback",Qh="block_selectors",ep="block_url_regexes",tp="capture_extra_attrs",rp="capture_text_content",np="scroll_capture_all",ip="scroll_depth_percent_checkpoints",Xi="click",Zi="dead_click",La="input",op="pageview",Qi="rage_click",Da="scroll",eo="page_leave",Fa="submit",Ee={};Ee[Kh]=[],Ee[Jh]=[],Ee[Xh]=[],Ee[Zh]=null,Ee[Qh]=[],Ee[ep]=[],Ee[tp]=[],Ee[rp]=!1,Ee[np]=!1,Ee[ip]=[25,50,75,100],Ee[Xi]=!0,Ee[Zi]=!0,Ee[La]=!0,Ee[op]=Yh,Ee[Qi]=!0,Ee[Da]=!0,Ee[eo]=!1,Ee[Fa]=!0;var hn={$mp_autocapture:!0},sp="$mp_click",ap="$mp_dead_click",bS="$mp_input_change",up="$mp_rage_click",SS="$mp_scroll",CS="$mp_submit",ES="$mp_page_leave",we=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};we.prototype.init=function(){if(!Kb()){te.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},we.prototype.getFullConfig=function(){var t=this.mp.get_config(Hh);return t?p.isObject(t)?p.extend({},Ee,t):Ee:{}},we.prototype.getConfig=function(t){return this.getFullConfig()[t]},we.prototype.currentUrlBlocked=function(){var t,n=p.info.currentUrl(),i=this.getConfig(Jh)||[];if(i.length){var e=!1;for(t=0;t<i.length;t++){var r=i[t];try{if(n.match(r)){e=!0;break}}catch(s){return te.critical("Error while checking block URL regex: "+r,s),!0}}if(!e)return!0}var o=this.getConfig(ep)||[];if(!o||!o.length)return!1;for(t=0;t<o.length;t++)try{if(n.match(o[t]))return!0}catch(s){return te.critical("Error while checking block URL regex: "+o[t],s),!0}return!1},we.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Hh)?this.getConfig(op):this.mp.get_config(mS)},we.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===sp&&!this.getConfig(Xi)||n===up&&!this._getClickTrackingConfig(Qi)||n===ap&&!this._getClickTrackingConfig(Zi)),e=Hb(t,{allowElementCallback:this.getConfig(wS),allowSelectors:this.getConfig(Kh),blockAttrs:this.getConfig(Xh),blockElementCallback:this.getConfig(Zh),blockSelectors:this.getConfig(Qh),captureExtraAttrs:this.getConfig(tp),captureTextContent:this.getConfig(rp),capturedForHeatMap:i});e&&(p.extend(e,hn),this.mp.track(n,e))}},we.prototype.initPageListeners=function(){if(E.removeEventListener(Ah,this.listenerPopstate),E.removeEventListener(ka,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(eo)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){E.dispatchEvent(new Event(Ot))},this.listenerHashchange=function(){E.dispatchEvent(new Event(Ot))},E.addEventListener(Ah,this.listenerPopstate),E.addEventListener(ka,this.listenerHashchange);var t=E.history.pushState;typeof t=="function"&&(E.history.pushState=function(i,e,r){t.call(E.history,i,e,r),E.dispatchEvent(new Event(Ot))});var n=E.history.replaceState;typeof n=="function"&&(E.history.replaceState=function(i,e,r){n.call(E.history,i,e,r),E.dispatchEvent(new Event(Ot))})}},we.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},we.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(eo)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(D.documentElement.clientHeight,E.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(i-e)*100),o=Math.round(e/i*100);i<=e&&(r=100,o=100);var s=p.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:o,$scroll_height:i,$event_type:t.type,$current_url:n||p.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(D.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},hn);this.mp.track(ES,s,{transport:"sendBeacon"})}},we.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(Aa,this.listenerScrollDepth),E.removeEventListener(Hi,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){te.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(D.documentElement.clientHeight,E.innerHeight||0);var t=function(){if(!this.currentUrlBlocked()){var i=Math.max(D.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=D.body.scrollHeight}}.bind(this),n=Bh(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}},we.prototype.initClickTracking=function(){E.removeEventListener(ot,this.listenerClick),!(!this.getConfig(Xi)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(Xi)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,sp)}.bind(this),E.addEventListener(ot,this.listenerClick))},we.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(Zi);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Xe(function(n){this.trackDomEvent(n,ap)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(Zi);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=pS),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(ot,this.listenerDeadClick))},we.prototype.initInputTracking=function(){E.removeEventListener(ln,this.listenerChange),this.getConfig(La)&&(te.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(La)&&this.trackDomEvent(t,bS)}.bind(this),E.addEventListener(ln,this.listenerChange))},we.prototype.initPageviewTracking=function(){if(E.removeEventListener(Ot,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var t="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(hn)),n&&(t=p.info.currentUrl()),this.listenerLocationchange=an(function(){if(!this.currentUrlBlocked()){var i=p.info.currentUrl(),e=!1,r=i.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(o===Yh?e=i!==t:o===yS?e=i.split("#")[0]!==t.split("#")[0]:o===_S&&(e=r),e){var s=this.mp.track_pageview(hn);s&&(t=i),r&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),E.addEventListener(Ot,this.listenerLocationchange)}},we.prototype.initRageClickTracking=function(){E.removeEventListener(ot,this.listenerRageClick);var t=this._getClickTrackingConfig(Qi);!t&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Vh),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(Qi);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,up)}.bind(this),E.addEventListener(ot,this.listenerRageClick))},we.prototype.initScrollTracking=function(){if(E.removeEventListener(Hi,this.listenerScroll),E.removeEventListener(Aa,this.listenerScroll),!!this.getConfig(Da)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(Da)&&!this.currentUrlBlocked()){var i=this.getConfig(np),e=(this.getConfig(ip)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,o=p.extend({$scroll_top:r},hn);try{var s=D.body.scrollHeight,a=Math.round(r/(s-E.innerHeight)*100);if(o.$scroll_height=s,o.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<e.length;u++){var c=e[u];a>=c&&this.lastScrollCheckpoint<c&&(o.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(SS,o)}}.bind(this),n=Bh(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}},we.prototype.initSubmitTracking=function(){E.removeEventListener(Yi,this.listenerSubmit),this.getConfig(Fa)&&(te.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(Fa)&&this.trackDomEvent(t,CS)}.bind(this),E.addEventListener(Yi,this.listenerSubmit))},we.prototype.initPageLeaveTracking=function(){if(D.removeEventListener(Rh,this.listenerPageLeaveVisibilitychange),E.removeEventListener(Ot,this.listenerPageLeaveLocationchange),E.removeEventListener(kh,this.listenerPageLoad),!(!this.getConfig(eo)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=p.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=D.body.scrollHeight}.bind(this),E.addEventListener(kh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=an(function(n){if(!this.currentUrlBlocked()){var i=p.info.currentUrl(),e=i!==t;e&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=i,this.maxScrollViewDepth=Math.max(D.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=D.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),E.addEventListener(Ot,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){D.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}.bind(this),D.addEventListener(Rh,this.listenerPageLeaveVisibilitychange)}},we.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(ot,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},hh(we);var IS=function(t,n){return E[Ge]&&typeof E[Ge].then=="function"||(E[Ge]=new Promise(function(i){t(n,i)}).then(function(){var i=E[Ge];if(i&&typeof i.then=="function")return i;throw new Error("targeting failed to load")}).catch(function(i){throw delete E[Ge],i})),E[Ge]},ve=Dt("flags"),to="flags",ro="context",Ua={};Ua[ro]={};var OS=function(t,n){return t+":"+n},xS=function(t){return t.split(":")[0]},N=function(t){this.fetch=E.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc,this.loadExtraBundle=t.loadExtraBundle||function(){},this.targetingSrc=t.targetingSrc||""};N.prototype.init=function(){if(!this.minApisSupported()){ve.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}},N.prototype.getFullConfig=function(){var t=this.getMpConfig(to);return t?p.isObject(t)?p.extend({},Ua,t):Ua:{}},N.prototype.getConfig=function(t){return this.getFullConfig()[t]},N.prototype.isSystemEnabled=function(){return!!this.getMpConfig(to)},N.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return ve.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(to);p.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(ro);return i[ro]=p.extend({},e,t),this.setMpConfig(to,i),this.fetchFlags()},N.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ve.error("Feature Flags not enabled"),!!this.flags},N.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),i=yh();ve.log("Fetching flags for distinct ID: "+t);var e=p.extend({distinct_id:t,device_id:n},this.getConfig(ro)),r=new URLSearchParams;r.set("context",JSON.stringify(e)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",$e.LIB_VERSION);var o=this.getFullApiRoute()+"?"+r.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(E,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then(function(s){return this.markFetchComplete(),s.json().then(function(a){var u=a.flags;if(!u)throw new Error("No flags in API response");var c=new Map,l={};p.each(u,function(h,g){var v=!1,y=g+":";if(p.each(this.activatedFirstTimeEvents,function(m,_){_.startsWith(y)&&(v=!0)}),v){var d=this.flags&&this.flags.get(g);d&&c.set(g,d)}else c.set(g,{key:h.variant_key,value:h.variant_value,experiment_id:h.experiment_id,is_experiment_active:h.is_experiment_active,is_qa_tester:h.is_qa_tester})},this);var f=a.pending_first_time_events;f&&f.length>0&&p.each(f,function(h){var g=h.flag_key,v=OS(g,h.first_time_event_hash);this.activatedFirstTimeEvents[v]||(l[v]={flag_key:g,flag_id:h.flag_id,project_id:h.project_id,first_time_event_hash:h.first_time_event_hash,event_name:h.event_name,property_filters:h.property_filters,pending_variant:h.pending_variant})},this),this.activatedFirstTimeEvents&&p.each(this.activatedFirstTimeEvents,function(h,g){var v=xS(g);h&&!c.has(v)&&this.flags&&this.flags.has(v)&&c.set(v,this.flags.get(v))},this),this.flags=c,this.pendingFirstTimeEvents=l,this._traceparent=i,this._loadTargetingIfNeeded()}.bind(this)).catch(function(a){this.markFetchComplete(),ve.error(a)}.bind(this))}.bind(this)).catch(function(s){this.markFetchComplete(),ve.error(s)}.bind(this)),this.fetchPromise},N.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){ve.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},N.prototype._loadTargetingIfNeeded=function(){var t=!1;p.each(this.pendingFirstTimeEvents,function(n){n.property_filters&&!p.isEmptyObject(n.property_filters)&&(t=!0)}),t&&this.getTargeting().then(function(){ve.log("targeting loaded for property filter evaluation")})},N.prototype.getTargeting=function(){return IS(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(t){ve.error("Failed to load targeting: "+t)}.bind(this))},N.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||p.isEmptyObject(this.pendingFirstTimeEvents)||(E[Ge]&&p.isFunction(E[Ge].then)?E[Ge].then(function(i){this._processFirstTimeEventCheck(t,n,i)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))},N.prototype._processFirstTimeEventCheck=function(t,n,i){p.each(this.pendingFirstTimeEvents,function(e,r){if(!this.activatedFirstTimeEvents[r]){var o=e.flag_key,s;if(!i&&e.property_filters&&!p.isEmptyObject(e.property_filters)){ve.warn('Skipping event check for "'+o+'" - property filters require targeting library');return}if(!i)s={matches:t===e.event_name,error:null};else{var a={event_name:e.event_name,property_filters:e.property_filters};s=i.eventMatchesCriteria(t,n,a)}if(s.error){ve.error('Error checking first-time event for flag "'+o+'": '+s.error);return}if(s.matches){ve.log('First-time event matched for flag "'+o+'": '+t);var u={key:e.pending_variant.variant_key,value:e.pending_variant.variant_value,experiment_id:e.pending_variant.experiment_id,is_experiment_active:e.pending_variant.is_experiment_active};this.flags.set(o,u),this.activatedFirstTimeEvents[r]=!0,this.recordFirstTimeEvent(e.flag_id,e.project_id,e.first_time_event_hash)}}},this)},N.prototype.getFirstTimeEventApiRoute=function(t){return this.getFullApiRoute()+"/"+t+"/first-time-events"},N.prototype.recordFirstTimeEvent=function(t,n,i){var e=this.getMpProperty("distinct_id"),r=yh(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",$e.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(t)+"?"+o.toString(),a={distinct_id:e,project_id:n,first_time_event_hash:i};ve.log("Recording first-time event for flag: "+t),this.fetch.call(E,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r},body:JSON.stringify(a)}).catch(function(u){ve.error("Failed to record first-time event for flag "+t+": "+u)})},N.prototype.getVariant=function(t,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(t,n)}.bind(this)).catch(function(i){return ve.error(i),n}):new Promise(function(i){ve.critical("Feature Flags not initialized"),i(n)})},N.prototype.getVariantSync=function(t,n){if(!this.areFlagsReady())return ve.log("Flags not loaded yet"),n;var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(ve.log('No flag found: "'+t+'"'),n)},N.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return ve.error(i),n})},N.prototype.getFeatureData=function(t,n){return ve.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(t,n)},N.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},N.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then(function(){return this.isEnabledSync(t,n)}.bind(this)).catch(function(i){return ve.error(i),n})},N.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(ve.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},N.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var i={"Experiment name":t,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};n.experiment_id!=="undefined"&&(i.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(i.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(i.$is_qa_tester=n.is_qa_tester),this.track("$experiment_started",i)}},N.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},hh(N),N.prototype.are_flags_ready=N.prototype.areFlagsReady,N.prototype.get_variant=N.prototype.getVariant,N.prototype.get_variant_sync=N.prototype.getVariantSync,N.prototype.get_variant_value=N.prototype.getVariantValue,N.prototype.get_variant_value_sync=N.prototype.getVariantValueSync,N.prototype.is_enabled=N.prototype.isEnabled,N.prototype.is_enabled_sync=N.prototype.isEnabledSync,N.prototype.update_context=N.prototype.updateContext,N.prototype.get_feature_data=N.prototype.getFeatureData,N.prototype.getTargeting=N.prototype.getTargeting;var ut=function(){};ut.prototype.create_properties=function(){},ut.prototype.event_handler=function(){},ut.prototype.after_track_handler=function(){},ut.prototype.init=function(t){return this.mp=t,this},ut.prototype.track=function(t,n,i,e){var r=this,o=p.dom_query(t);if(o.length===0){F.error("The DOM query ("+t+") returned 0 elements");return}return p.each(o,function(s){p.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(e,c,u,!0),l),r.mp.track(n,c,r.track_callback(e,c,u))})},this),!0},ut.prototype.track_callback=function(t,n,i,e){e=e||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(t&&t(e,n)===!1)&&r.after_track_handler(n,i,e))}},ut.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=p.extend({},t),i};var _r=function(){this.override_event="click"};p.inherit(_r,ut),_r.prototype.create_properties=function(t,n){var i=_r.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},_r.prototype.event_handler=function(t,n,i){i.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||t.preventDefault()},_r.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var no=function(){this.override_event="submit"};p.inherit(no,ut),no.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()},no.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var xt="$set",wr="$set_once",We="$unset",Ft="$add",Ze="$append",Ut="$union",ct="$remove",kS="$delete",cp={set_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[xt]=e,i},unset_action:function(t){var n={},i=[];return p.isArray(t)||(t=[t]),p.each(t,function(e){this._is_reserved_property(e)||i.push(e)},this),n[We]=i,n},set_once_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[wr]=e,i},union_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=p.isArray(r)?r:[r])},this):e[t]=p.isArray(n)?n:[n],i[Ut]=e,i},append_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[Ze]=e,i},remove_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[ct]=e,i},delete_action:function(){var t={};return t[kS]="",t}},ae=function(){};p.extend(ae.prototype,cp),ae.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i},ae.prototype.set=dr(function(t,n,i){var e=this.set_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)}),ae.prototype.set_once=dr(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)}),ae.prototype.unset=dr(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),ae.prototype.union=dr(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),ae.prototype.delete=dr(function(t){var n=this.delete_action();return this._send_request(n,t)}),ae.prototype.remove=dr(function(t,n,i){var e=this.remove_action(t,n);return this._send_request(e,i)}),ae.prototype._send_request=function(t,n){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var i=p.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ae.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"},ae.prototype._get_config=function(t){return this._mixpanel.get_config(t)},ae.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ae.prototype.remove=ae.prototype.remove,ae.prototype.set=ae.prototype.set,ae.prototype.set_once=ae.prototype.set_once,ae.prototype.union=ae.prototype.union,ae.prototype.unset=ae.prototype.unset,ae.prototype.toString=ae.prototype.toString;var U=function(){};p.extend(U.prototype,cp),U.prototype._init=function(t){this._mixpanel=t},U.prototype.set=It(function(t,n,i){var e=this.set_action(t,n);return p.isObject(t)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[xt]=p.extend({},p.info.people_properties(),e[xt]),this._send_request(e,i)}),U.prototype.set_once=It(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)}),U.prototype.unset=It(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),U.prototype.increment=It(function(t,n,i){var e={},r={};return p.isObject(t)?(p.each(t,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){F.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(p.isUndefined(n)&&(n=1),r[t]=n),e[Ft]=r,this._send_request(e,i)}),U.prototype.append=It(function(t,n,i){p.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)}),U.prototype.remove=It(function(t,n,i){p.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)}),U.prototype.union=It(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),U.prototype.track_charge=It(function(){F.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),U.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},U.prototype.delete_user=function(){if(!this._identify_called()){F.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)},U.prototype.toString=function(){return this._mixpanel.toString()+".people"},U.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(t.$device_id=i),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var o=p.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(t),p.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),p.truncate(o,255))},U.prototype._get_config=function(t){return this._mixpanel.get_config(t)},U.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},U.prototype._enqueue=function(t){xt in t?this._mixpanel.persistence._add_to_people_queue(xt,t):wr in t?this._mixpanel.persistence._add_to_people_queue(wr,t):We in t?this._mixpanel.persistence._add_to_people_queue(We,t):Ft in t?this._mixpanel.persistence._add_to_people_queue(Ft,t):Ze in t?this._mixpanel.persistence._add_to_people_queue(Ze,t):ct in t?this._mixpanel.persistence._add_to_people_queue(ct,t):Ut in t?this._mixpanel.persistence._add_to_people_queue(Ut,t):F.error("Invalid call to _enqueue():",t)},U.prototype._flush_one_queue=function(t,n,i,e){var r=this,o=p.extend({},this._mixpanel.persistence.load_queue(t)),s=o;!p.isUndefined(o)&&p.isObject(o)&&!p.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(t,o),r._mixpanel.persistence.save(),e&&(s=e(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(t,o),p.isUndefined(i)||i(a,u)}))},U.prototype._flush=function(t,n,i,e,r,o,s){var a=this;this._flush_one_queue(xt,this.set,t),this._flush_one_queue(wr,this.set_once,e),this._flush_one_queue(We,this.unset,o,function(d){return p.keys(d)}),this._flush_one_queue(Ft,this.increment,n),this._flush_one_queue(Ut,this.union,r);var u=this._mixpanel.persistence.load_queue(Ze);if(!p.isUndefined(u)&&p.isArray(u)&&u.length)for(var c,l=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(Ze,c),p.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(Ze),c=u.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(c)||a.append(c,l);var h=this._mixpanel.persistence.load_queue(ct);if(!p.isUndefined(h)&&p.isArray(h)&&h.length)for(var g,v=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(ct,g),p.isUndefined(s)||s(d,m)},y=h.length-1;y>=0;y--)h=this._mixpanel.persistence.load_queue(ct),g=h.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(g)||a.remove(g,v)},U.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},U.prototype.set=U.prototype.set,U.prototype.set_once=U.prototype.set_once,U.prototype.unset=U.prototype.unset,U.prototype.increment=U.prototype.increment,U.prototype.append=U.prototype.append,U.prototype.remove=U.prototype.remove,U.prototype.union=U.prototype.union,U.prototype.track_charge=U.prototype.track_charge,U.prototype.clear_charges=U.prototype.clear_charges,U.prototype.delete_user=U.prototype.delete_user,U.prototype.toString=U.prototype.toString;var Ba="__mps",za="__mpso",Wa="__mpus",Ga="__mpa",qa="__mpap",Va="__mpr",ja="__mpu",lp="$people_distinct_id",io="__alias",pn="__timers",AS=[Ba,za,Wa,Ga,qa,Va,ja,lp,io,pn],z=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(F.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&p.localStorage.is_supported()?this.storage=p.localStorage:this.storage=p.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};z.prototype.properties=function(){var t={};return this.load(),p.each(this.props,function(n,i){p.include(AS,i)||(t[i]=n)}),t},z.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=p.extend({},t))}},z.prototype.upgrade=function(){var t,n;this.storage===p.localStorage?(t=p.cookie.parse(this.name),p.cookie.remove(this.name),p.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===p.cookie&&(n=p.localStorage.parse(this.name),p.localStorage.remove(this.name),n&&this.register_once(n))},z.prototype.save=function(){this.disabled||this.storage.set(this.name,pr(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},z.prototype.load_prop=function(t){return this.load(),this.props[t]},z.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},z.prototype.clear=function(){this.remove(),this.props={}},z.prototype.register_once=function(t,n,i){return p.isObject(t)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),p.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=e)},this),this.save(),!0):!1},z.prototype.register=function(t,n){return p.isObject(t)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),p.extend(this.props,t),this.save(),!0):!1},z.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},z.prototype.update_search_keyword=function(t){this.register(p.info.searchInfo(t))},z.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:p.info.referringDomain(t)||"$direct"},"")},z.prototype.get_referrer_info=function(){return p.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},z.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},z.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},z.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},z.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},z.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},z.prototype.get_cross_subdomain=function(){return this.cross_subdomain},z.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},z.prototype._add_to_people_queue=function(t,n){var i=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(xt),o=this._get_or_create_queue(wr),s=this._get_or_create_queue(We),a=this._get_or_create_queue(Ft),u=this._get_or_create_queue(Ut),c=this._get_or_create_queue(ct,[]),l=this._get_or_create_queue(Ze,[]);i===Ba?(p.extend(r,e),this._pop_from_people_queue(Ft,e),this._pop_from_people_queue(Ut,e),this._pop_from_people_queue(We,e)):i===za?(p.each(e,function(f,h){h in o||(o[h]=f)}),this._pop_from_people_queue(We,e)):i===Wa?p.each(e,function(f){p.each([r,o,a,u],function(h){f in h&&delete h[f]}),p.each(l,function(h){f in h&&delete h[f]}),s[f]=!0}):i===Ga?(p.each(e,function(f,h){h in r?r[h]+=f:(h in a||(a[h]=0),a[h]+=f)},this),this._pop_from_people_queue(We,e)):i===ja?(p.each(e,function(f,h){p.isArray(f)&&(h in u||(u[h]=[]),p.each(f,function(g){p.include(u[h],g)||u[h].push(g)}))}),this._pop_from_people_queue(We,e)):i===Va?(c.push(e),this._pop_from_people_queue(Ze,e)):i===qa&&(l.push(e),this._pop_from_people_queue(We,e)),F.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),F.log(n),this.save()},z.prototype._pop_from_people_queue=function(t,n){var i=this.props[this._get_queue_key(t)];p.isUndefined(i)||p.each(n,function(e,r){t===Ze||t===ct?p.each(i,function(o){o[r]===e&&delete o[r]}):delete i[r]},this)},z.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},z.prototype._get_queue_key=function(t){if(t===xt)return Ba;if(t===wr)return za;if(t===We)return Wa;if(t===Ft)return Ga;if(t===Ze)return qa;if(t===ct)return Va;if(t===Ut)return ja;F.error("Invalid queue:",t)},z.prototype._get_or_create_queue=function(t,n){var i=this._get_queue_key(t);return n=p.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},z.prototype.set_event_timer=function(t,n){var i=this.load_prop(pn)||{};i[t]=n,this.props[pn]=i,this.save()},z.prototype.remove_event_timer=function(t){var n=this.load_prop(pn)||{},i=n[t];return p.isUndefined(i)||(delete this.props[pn][t],this.save()),i};var oo,Ha=function(t,n){throw new Error(t+" not available in this build.")},be,fp=0,hp=1,Ne="mixpanel",pp="base64",RS="json",Ya="$device:",MS="strict",TS="fallback",$S="disabled",br=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,dp=!br&&Ye.indexOf("MSIE")===-1&&Ye.indexOf("Mozilla")===-1,so=null;it.sendBeacon&&(so=function(){return it.sendBeacon.apply(it,arguments)});var vp={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Ka={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:vp,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:pp,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ct,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ct,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:1800*1e3,record_mask_inputs:!0,record_max_ms:nn,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js",targeting_src:"https://cdn.mxpnl.com/libs/mixpanel-targeting.min.js",remote_settings_mode:$S},gp=!1,w=function(){},ao=function(t,n,i){var e,r=i===Ne?be:be[i];if(r&&oo===fp)e=r;else{if(r&&!p.isArray(r)){F.error("You have already initialized "+i);return}e=new w}if(e._cached_groups={},e._init(t,n,i),e.people=new U,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var o=p.info.campaignParams(null),s={},a=!1;p.each(o,function(c,l){s["initial_"+l]=c,c&&(a=!0)}),a&&e.people.set_once(s)}$e.DEBUG=$e.DEBUG||e.get_config("debug");var u=oo===fp?"module":"snippet";return E.dispatchEvent(new E.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:u,token:t,name:i,info:p.info}})),!p.isUndefined(r)&&p.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};w.prototype.init=function(t,n,i){if(p.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Ne){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=ao(t,n,i);return be[i]=e,e._loaded(),e},w.prototype._init=function(t,n,i){n=n||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in n)){var r=n.api_host||Ka.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=RS)}if(this.hooks={},this.set_config(p.extend({},Ka,e,n,{name:i,token:t,callback_fn:(i===Ne?i:Ne+"."+i)+"._jsc"})),this._jsc=Ct,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!p.localStorage.is_supported(!0)||!br)this._batch_requests=!1,F.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),p.each(this.get_batcher_configs(),function(u){F.log("Clearing batch queue "+u.queue_key),p.localStorage.remove(u.queue_key)});else if(this.init_batchers(),so&&E.addEventListener){var o=p.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(u){u.persisted&&o()}),E.addEventListener("visibilitychange",function(){D.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new z(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=p.UUID();this.get_distinct_id()||this.register_once({distinct_id:Ya+s,$device_id:s},""),this.flags=new N({getFullApiRoute:p.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:p.bind(this.get_config,this),setConfigFunc:p.bind(this.set_config,this),getPropertyFunc:p.bind(this.get_property,this),trackingFunc:p.bind(this.track,this),loadExtraBundle:Ha,targetingSrc:this.get_config("targeting_src")}),this.flags.init(),this.flags=this.flags,this.autocapture=new we(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");a===MS||a===TS?this._fetch_remote_settings(a).then(p.bind(function(){this._check_and_start_session_recording()},this)):this._check_and_start_session_recording()},w.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))F.log("Tab ID initialization skipped due to disable_persistence config");else if(p.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+t,i="mp_gen_new_tab_id_"+t;(p.sessionStorage.get(i)||!p.sessionStorage.get(n))&&p.sessionStorage.set(n,"$tab-"+p.UUID()),p.sessionStorage.set(i,"1"),this.tab_id=p.sessionStorage.get(n),E.addEventListener("beforeunload",function(){p.sessionStorage.remove(i)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},w.prototype.get_tab_id=function(){return this.tab_id||null},w.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return F.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var t=new ze(Ca),n=this.get_tab_id();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(xa(i[e])||i[e].tabId===n)return!0;return!1}).catch(p.bind(function(i){this.report_error("Error checking recording registry",i)},this))},w.prototype._check_and_start_session_recording=Et(function(t){if(!E.MutationObserver){F.critical("Browser does not support MutationObserver; skipping session recording");return}var n=p.bind(function(e){var r=p.bind(function(){this._recorder=this._recorder||new E[lo](this),this._recorder.resumeRecording(e)},this);p.isUndefined(E[lo])?Ha(this.get_config("recorder_src"),r):r()},this),i=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");t||i?n(!0):this._should_load_recorder().then(function(e){e&&n(!1)})}),w.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},w.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},w.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},w.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},w.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},w.prototype.get_session_recording_properties=function(){var t={},n=this._get_session_replay_id();return n&&(t.$mp_replay_id=n),t},w.prototype.get_session_replay_url=function(){var t=null,n=this._get_session_replay_id();if(n){var i=p.HTTPBuildQuery({replay_id:n,distinct_id:this.get_distinct_id(),token:this.get_config("token")});t="https://mixpanel.com/projects/replay-redirect?"+i}return t},w.prototype._get_session_replay_id=function(){var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},w.prototype.__get_recorder=function(){return this._recorder},w.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var t=p.info.campaignParams(null);p.each(t,function(n,i){this.unregister(i)}.bind(this))}},w.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(D.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(p.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(D.referrer)},w.prototype._dom_loaded=function(){p.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||p.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue},w.prototype._track_dom=function(t,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!gp)return this.__dom_loaded_queue.push([t,n]),!1;var i=new t().init(this);return i.track.apply(i,n)},w.prototype._prepare_callback=function(t,n){if(p.isUndefined(t))return null;if(br){var i=function(s){t(s,n)};return i}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(s){delete e[r],t(s,n)},o}},w.prototype._send_request=function(t,n,i,e){var r=!0;if(dp)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!e&&(p.isFunction(i)||typeof i=="string")&&(e=i,i=null),i=p.extend(o,i||{}),br||(i.method="GET");var a=i.method==="POST",u=so&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),br||(e?n.callback=e:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),p.extend(n,this.get_config("api_extra_query_params")),t+="?"+p.HTTPBuildQuery(n);var l=this;if("img"in n){var f=D.createElement("img");f.src=t,D.body.appendChild(f)}else if(u){try{r=so(t,s)}catch(m){l.report_error(m),r=!1}try{e&&e(r?1:0)}catch(m){l.report_error(m)}}else if(br)try{var h=new XMLHttpRequest;h.open(i.method,t,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),p.each(g,function(m,_){h.setRequestHeader(_,m)}),i.timeout_ms&&typeof h.timeout!="undefined"){h.timeout=i.timeout_ms;var v=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(h.readyState===4)if(h.status===200){if(e)if(c){var m;try{m=p.JSONDecode(h.responseText)}catch(S){if(l.report_error(S),i.ignore_json_errors)m=h.responseText;else return}e(m)}else e(Number(h.responseText))}else{var _;if(h.timeout&&!h.status&&new Date().getTime()-v>=h.timeout?_="timeout":_="Bad HTTP status: "+h.status+" "+h.statusText,l.report_error(_),e)if(c){var b=h.responseHeaders||{};e({status:0,httpStatusCode:h.status,error:_,retryAfter:b["Retry-After"]})}else e(0)}},h.send(s)}catch(m){l.report_error(m),r=!1}else{var y=D.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=t;var d=D.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}return r},w.prototype._fetch_remote_settings=function(t){var n=function(){t==="strict"&&s.set_config({record_sessions_percent:0})};if(!E.AbortController)return F.critical("Remote settings unavailable: missing minimum required APIs"),n(),Promise.resolve();var i=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,e={$lib_version:$e.LIB_VERSION,mp_lib:"web",sdk_config:"1"},r=p.HTTPBuildQuery(e),o=i+"?"+r,s=this,a=new AbortController,u=setTimeout(function(){a.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(s.get_config("token")+":")},signal:a.signal};return E.fetch(o,c).then(function(l){if(clearTimeout(u),!l.ok){F.critical("Network response was not ok"),n();return}return l.json()}).then(function(l){if(l&&l.sdk_config&&l.sdk_config.config){var f=l.sdk_config.config,h={};p.each(f,function(g,v){Ka.hasOwnProperty(v)&&(h[v]=g)}),p.isEmptyObject(h)?(F.critical("No valid config keys found in remote settings."),n()):s.set_config(h)}else n()}).catch(function(l){clearTimeout(u),F.critical("Failed to fetch remote settings",l),n()})},w.prototype._execute_array=function(t){var n,i=[],e=[],r=[];p.each(t,function(s){s&&(n=s[0],p.isArray(n)?r.push(s):typeof s=="function"?s.call(this):p.isArray(s)&&n==="alias"?i.push(s):p.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):e.push(s))},this);var o=function(s,a){p.each(s,function(u){if(p.isArray(u[0])){var c=a;p.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(e,this),o(r,this)},w.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},w.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs},w.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=p.bind(function(i){return new Ue(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:p.bind(function(e,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(e),r,this._prepare_callback(o,e))},this),beforeSendHook:p.bind(function(e){var r=this._run_hook("before_send_"+i.type,e);return r?r[0]:null},this),stopAllBatchingFunc:p.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},w.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,p.each(this.request_batchers,function(t){t.start()}))},w.prototype.stop_batch_senders=function(){this._batch_requests=!1,p.each(this.request_batchers,function(t){t.stop(),t.clear()})},w.prototype.push=function(t){this._execute_array([t])},w.prototype.disable=function(t){typeof t=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},w.prototype._encode_data_for_request=function(t){var n=pr(t);return this.get_config("api_payload_format")===pp&&(n=p.base64Encode(n)),{data:n}},w.prototype._track_or_batch=function(t,n){var i=p.truncate(t.data,255),e=t.endpoint,r=t.batcher,o=t.should_send_immediately,s=t.send_request_options||{};n=n||Ct;var a=!0,u=p.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+t.type,i),i&&(i=i[0])),i?(F.log("MIXPANEL REQUEST:"),F.log(i),this._send_request(e,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},w.prototype.track=Et(function(t,n,i,e){var r;if(!(i&&i.skip_hooks)){if(r=this._run_hook("before_track",t,n),r===null)return;t=r[0],n=r[1]}!e&&typeof i=="function"&&(e=i,i=null),i=i||{};var o=i.transport;o&&(i.transport=o);var s=i.send_immediately;if(typeof e!="function"&&(e=Ct),p.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}n=p.extend({},n),n.token=this.get_config("token");var a=this.persistence.remove_event_timer(t);if(!p.isUndefined(a)){var u=new Date().getTime()-a;n.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?p.info.marketingParams():{};n=p.extend({},p.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var l=this.get_config("property_blacklist");p.isArray(l)?p.each(l,function(h){delete n[h]}):this.report_error("Invalid value for property_blacklist config: "+l);var f={event:t,properties:n};return r=this._track_or_batch({type:"events",data:f,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:i},e),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(t,n),r}),w.prototype.set_group=Et(function(t,n,i){p.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,i)}),w.prototype.add_group=Et(function(t,n,i){var e=this.get_property(t),r={};return e===void 0?(r[t]=[n],this.register(r)):e.indexOf(n)===-1&&(e.push(n),r[t]=e,this.register(r)),this.people.union(t,n,i)}),w.prototype.remove_group=Et(function(t,n,i){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(n);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,n,i)}),w.prototype.track_with_groups=Et(function(t,n,i,e){var r=p.extend({},n||{});return p.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(t,r,e)}),w.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)},w.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]},w.prototype.get_group=function(t,n){var i=this._create_map_key(t,n),e=this._cached_groups[i];return(e===void 0||e._group_key!==t||e._group_id!==n)&&(e=new ae,e._init(this,t,n),this._cached_groups[i]=e),e},w.prototype.track_pageview=Et(function(t,n){typeof t!="object"&&(t={}),n=n||{};var i=n.event_name||"$mp_web_page_view",e=p.extend(p.info.mpPageViewProperties(),p.info.campaignParams(),p.info.clickParams()),r=p.extend({},e,t);return this.track(i,r)}),w.prototype.track_links=function(){return this._track_dom.call(this,_r,arguments)},w.prototype.track_forms=function(){return this._track_dom.call(this,no,arguments)},w.prototype.time_event=function(t){if(p.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var PS={persistent:!0},Ja=function(t){var n;return p.isObject(t)?n=t:p.isUndefined(t)?n={}:n={days:t},p.extend({},PS,n)};w.prototype.register=function(t,n){var i=this._run_hook("before_register",t,n);if(i!==null){t=i[0],n=i[1];var e=Ja(n);e.persistent?this.persistence.register(t,e.days):p.extend(this.unpersisted_superprops,t)}},w.prototype.register_once=function(t,n,i){var e=this._run_hook("before_register_once",t,n,i);if(e!==null){t=e[0],n=e[1],i=e[2];var r=Ja(i);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n=="undefined"&&(n="None"),p.each(t,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===n)&&(this.unpersisted_superprops[s]=o)},this))}},w.prototype.unregister=function(t,n){var i=this._run_hook("before_unregister",t,n);i!==null&&(t=i[0],n=i[1],n=Ja(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},w.prototype._register_single=function(t,n){var i={};i[t]=n,this.register(i)},w.prototype.identify=function(t,n,i,e,r,o,s,a){var u=this._run_hook("before_identify",t);if(u===null)return-1;t=u[0];var c=this.get_distinct_id();if(t&&c!==t){if(typeof t=="string"&&t.indexOf(Ya)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}t!==c&&t!==this.get_property(io)&&(this.unregister(io),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,i,e,r,o,s,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags()},w.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=p.UUID();this.register_once({distinct_id:Ya+t,$device_id:t},""),this._check_and_start_session_recording()},w.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},w.prototype.alias=function(t,n){if(t===this.get_property(lp))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return p.isUndefined(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(io,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){i.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},w.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},w.prototype.set_config=function(t){if(p.isObject(t)){p.extend(this.config,t);var n=t.batch_size;n&&p.each(this.request_batchers,function(i){i.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),$e.DEBUG=$e.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),p.isObject(t.hooks)&&(this.hooks={},p.each(t.hooks,function(i,e){if(p.isFunction(i))this.hooks[e]=[i];else if(p.isArray(i)){this.hooks[e]=[];for(var r=0;r<i.length;r++)p.isFunction(i[r])||F.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else F.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},w.prototype.get_config=function(t){return this.config[t]},w.prototype._run_hook=function(t){var n=St.call(arguments,1);return p.each(this.hooks[t],function(i){if(n===null)return null;var e=i.apply(this,n);typeof e=="undefined"?(this.report_error(t+" hook did not return a valid value"),n=null):(p.isArray(e)||(e=[e]),n.splice.apply(n,[0,e.length].concat(e)))},this),n},w.prototype.get_property=function(t){return this.persistence.load_prop([t])},w.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},w.prototype.toString=function(){var t=this.get_config("name");return t!==Ne&&(t=Ne+"."+t),t},w.prototype._event_is_disabled=function(t){return p.isBlockedUA(Ye)||this._flags.disable_all_events||p.include(this.__disabled_events,t)},w.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&p.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||p.cookie.get("mp_optout"))&&(p.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},w.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else if(t&&t.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},w.prototype._gdpr_call_func=function(t,n){return n=p.extend({track:p.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},n),p.localStorage.is_supported()||(n.persistence_type="cookie"),t(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},w.prototype.opt_in_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(Ab,t),this._gdpr_update_persistence(t)},w.prototype.opt_out_tracking=function(t){t=p.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(Rb,t),this._gdpr_update_persistence(t)},w.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(Mb,t)},w.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(bh,t)},w.prototype.clear_opt_in_out_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(Tb,t),this._gdpr_update_persistence(t)},w.prototype.report_error=function(t,n){F.error.apply(F.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){F.error(i)}},w.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)},w.prototype.remove_hook=function(t,n){var i;this.hooks[t]&&(i=this.hooks[t].indexOf(n),i!==-1?this.hooks[t].splice(i,1):F.log("remove_hook failed. Matching hook was not found"))},w.prototype.init=w.prototype.init,w.prototype.reset=w.prototype.reset,w.prototype.disable=w.prototype.disable,w.prototype.time_event=w.prototype.time_event,w.prototype.track=w.prototype.track,w.prototype.track_links=w.prototype.track_links,w.prototype.track_forms=w.prototype.track_forms,w.prototype.track_pageview=w.prototype.track_pageview,w.prototype.register=w.prototype.register,w.prototype.register_once=w.prototype.register_once,w.prototype.unregister=w.prototype.unregister,w.prototype.identify=w.prototype.identify,w.prototype.alias=w.prototype.alias,w.prototype.name_tag=w.prototype.name_tag,w.prototype.set_config=w.prototype.set_config,w.prototype.get_config=w.prototype.get_config,w.prototype.get_api_host=w.prototype.get_api_host,w.prototype.get_property=w.prototype.get_property,w.prototype.get_distinct_id=w.prototype.get_distinct_id,w.prototype.toString=w.prototype.toString,w.prototype.opt_out_tracking=w.prototype.opt_out_tracking,w.prototype.opt_in_tracking=w.prototype.opt_in_tracking,w.prototype.has_opted_out_tracking=w.prototype.has_opted_out_tracking,w.prototype.has_opted_in_tracking=w.prototype.has_opted_in_tracking,w.prototype.clear_opt_in_out_tracking=w.prototype.clear_opt_in_out_tracking,w.prototype.get_group=w.prototype.get_group,w.prototype.set_group=w.prototype.set_group,w.prototype.add_group=w.prototype.add_group,w.prototype.remove_group=w.prototype.remove_group,w.prototype.add_hook=w.prototype.add_hook,w.prototype.remove_hook=w.prototype.remove_hook,w.prototype.track_with_groups=w.prototype.track_with_groups,w.prototype.start_batch_senders=w.prototype.start_batch_senders,w.prototype.stop_batch_senders=w.prototype.stop_batch_senders,w.prototype.start_session_recording=w.prototype.start_session_recording,w.prototype.stop_session_recording=w.prototype.stop_session_recording,w.prototype.pause_session_recording=w.prototype.pause_session_recording,w.prototype.resume_session_recording=w.prototype.resume_session_recording,w.prototype.get_session_recording_properties=w.prototype.get_session_recording_properties,w.prototype.get_session_replay_url=w.prototype.get_session_replay_url,w.prototype.get_tab_id=w.prototype.get_tab_id,w.prototype.DEFAULT_API_ROUTES=vp,w.prototype.__get_recorder=w.prototype.__get_recorder,z.prototype.properties=z.prototype.properties,z.prototype.update_search_keyword=z.prototype.update_search_keyword,z.prototype.update_referrer_info=z.prototype.update_referrer_info,z.prototype.get_cross_subdomain=z.prototype.get_cross_subdomain,z.prototype.clear=z.prototype.clear;var kt={},NS=function(){p.each(kt,function(t,n){n!==Ne&&(be[n]=t)}),be._=p},LS=function(){be.init=function(t,n,i){if(i)return be[i]||(be[i]=kt[i]=ao(t,n,i),be[i]._loaded()),be[i];var e=be;kt[Ne]?e=kt[Ne]:t&&(e=ao(t,n,Ne),e._loaded(),kt[Ne]=e),be=e,oo===hp&&(E[Ne]=be),NS()}},DS=function(){function t(){t.done||(t.done=!0,gp=!0,dp=!1,p.each(kt,function(e){e._dom_loaded()}))}function n(){try{D.documentElement.doScroll("left")}catch(e){setTimeout(n,1);return}t()}if(D.addEventListener)D.readyState==="complete"?t():D.addEventListener("DOMContentLoaded",t,!1);else if(D.attachEvent){D.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch(e){}D.documentElement.doScroll&&i&&n()}p.register_event(E,"load",t,!0)};function FS(t){if(Ha=t,oo=hp,be=E[Ne],p.isUndefined(be)){F.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(be.__loaded||be.config&&be.persistence){F.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=be.__SV||0;if(n<1.1){F.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}p.each(be._i,function(i){i&&p.isArray(i)&&(kt[i[i.length-1]]=ao.apply(this,i))}),LS(),be.init(),p.each(kt,function(i){i._loaded()}),DS()}function US(t,n){n()}FS(US)})();