mixpanel-browser 2.74.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.
- package/.github/workflows/unit-tests.yml +1 -1
- package/CHANGELOG.md +5 -0
- package/README.md +2 -2
- package/dist/mixpanel-core.cjs.js +318 -20
- package/dist/mixpanel-recorder.js +127 -15
- package/dist/mixpanel-recorder.min.js +1 -1
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-targeting.js +2576 -0
- package/dist/mixpanel-targeting.min.js +2 -0
- package/dist/mixpanel-targeting.min.js.map +1 -0
- package/dist/mixpanel-with-async-modules.cjs.d.ts +522 -0
- package/dist/mixpanel-with-async-modules.cjs.js +9700 -0
- package/dist/mixpanel-with-async-recorder.cjs.js +318 -20
- package/dist/mixpanel-with-recorder.js +435 -26
- package/dist/mixpanel-with-recorder.min.js +1 -1
- package/dist/mixpanel.amd.js +1020 -28
- package/dist/mixpanel.cjs.js +1020 -28
- package/dist/mixpanel.globals.js +318 -20
- package/dist/mixpanel.min.js +179 -172
- package/dist/mixpanel.module.js +1020 -28
- package/dist/mixpanel.umd.js +1020 -28
- package/dist/rrweb-bundled.js +119 -5
- package/dist/rrweb-compiled.js +116 -5
- package/package.json +4 -3
- package/rollup.config.mjs +34 -2
- package/src/config.js +1 -1
- package/src/flags/index.js +269 -8
- package/src/globals.js +14 -0
- package/src/loaders/loader-module.js +1 -0
- package/src/mixpanel-core.js +12 -3
- package/src/recorder/index.js +2 -1
- package/src/targeting/event-matcher.js +97 -0
- package/src/targeting/index.js +11 -0
- package/src/targeting/loader.js +36 -0
- package/src/utils.js +1 -8
- package/.claude/settings.local.json +0 -12
- /package/src/loaders/{loader-module-with-async-recorder.js → loader-module-with-async-modules.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var E;if(typeof window=="undefined"){var Ja={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Ja,referrer:""},screen:{width:0,height:0},location:Ja,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;function Xa(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 Za(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 vn(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var o=t.apply(n,i);function s(u){Za(o,e,r,s,a,"next",u)}function a(u){Za(o,e,r,s,a,"throw",u)}s(void 0)})}}function gn(t,n,i){return Qa()?gn=Reflect.construct:gn=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&Er(c,s.prototype),c},gn.apply(null,arguments)}function mp(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&&mp(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 uo(t){return uo=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},uo(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&&Er(t,n)}function A(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function yp(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function xt(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 Er(t,n){return Er=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Er(t,n)}function R(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function _p(t,n){if(t){if(typeof t=="string")return Xa(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 Xa(t,n)}}function Ir(t){var n=typeof Map=="function"?new Map:void 0;return Ir=function(e){if(e===null||!yp(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 gn(e,arguments,uo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Er(r,e)},Ir(t)}function Qa(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(Qa=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=_p(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 kt(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 co(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 wp=Object.defineProperty,bp=function(t,n,i){return n in t?wp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},O=function(t,n,i){return bp(t,(typeof n=="undefined"?"undefined":R(n))!=="symbol"?n+"":n,i)},eu,Sp=Object.defineProperty,Cp=function(t,n,i){return n in t?Sp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},tu=function(t,n,i){return Cp(t,(typeof n=="undefined"?"undefined":R(n))!=="symbol"?n+"":n,i)},Ce=(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})(Ce||{}),ru={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},nu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},mn={},Ep=function(){return!!globalThis.Zone};function lo(t){if(mn[t])return mn[t];var n=globalThis[t],i=n.prototype,e=t in ru?ru[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 nu?nu[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&&!Ep())return mn[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?mn[t]=c:i}catch(l){return i}}var fo={};function ct(t,n,i){var e,r=t+"."+String(i);if(fo[r])return fo[r].call(n);var o=lo(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(fo[r]=s,s.call(n)):n[i]}var ho={};function iu(t,n,i){var e=t+"."+String(i);if(ho[e])return ho[e].bind(n);var r=lo(t),o=r[i];return typeof o!="function"?n[i]:(ho[e]=o,o.bind(n))}function Ip(t){return ct("Node",t,"childNodes")}function Op(t){return ct("Node",t,"parentNode")}function xp(t){return ct("Node",t,"parentElement")}function kp(t){return ct("Node",t,"textContent")}function Ap(t,n){return iu("Node",t,"contains")(n)}function Rp(t){return iu("Node",t,"getRootNode")()}function Mp(t){return!t||!("host"in t)?null:ct("ShadowRoot",t,"host")}function $p(t){return t.styleSheets}function Tp(t){return!t||!("shadowRoot"in t)?null:ct("Element",t,"shadowRoot")}function Pp(t,n){return ct("Element",t,"querySelector")(n)}function Np(t,n){return ct("Element",t,"querySelectorAll")(n)}function Lp(){return lo("MutationObserver").constructor}function Dp(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 Ie={childNodes:Ip,parentNode:Op,parentElement:xp,textContent:kp,contains:Ap,getRootNode:Rp,host:Mp,styleSheets:$p,shadowRoot:Tp,querySelector:Pp,querySelectorAll:Np,mutationObserver:Lp,patch:Dp};function ou(t){return t.nodeType===t.ELEMENT_NODE}function Or(t){var n=t&&"host"in t&&"mode"in t&&Ie.host(t)||null;return!!(n&&"shadowRoot"in n&&Ie.shadowRoot(n)===t)}function xr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Fp(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 Up(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 po(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 su(r,i)}).join("");return Fp(e)}catch(r){return null}}function su(t,n){if(zp(t)){var i;try{i=po(t.styleSheet)||Up(t)}catch(r){i=t.cssText}return t.styleSheet.href?wn(i,t.styleSheet.href):i}else{var e=t.cssText;return Wp(t)&&t.selectorText.includes(":")&&(e=Bp(e)),n?wn(e,n):e}}function Bp(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function zp(t){return"styleSheet"in t}function Wp(t){return"selectorText"in t}var au=(function(){function t(){tu(this,"idNodeMap",new Map),tu(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){var r=this,o=this.getId(e);this.idNodeMap.delete(o),e.childNodes&&e.childNodes.forEach(function(s){return r.removeNodeFromMap(s)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var 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 Gp(){return new au}function yn(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,o=t.value,s=t.maskInputFn,a=o||"",u=r&&At(r);return(i[e.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function At(t){return t.toLowerCase()}var uu="__rrweb_original__";function qp(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=uu in o?o[uu]: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 _n(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?At(n):null}function cu(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 Vp(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var jp=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Hp=/^(?:[a-z+]+:)?\/\//i,Yp=/^www\..*/i,Kp=/^(data:)([^,]*),(.*)/i;function wn(t,n){return(t||"").replace(jp,function(i,e,r,o,s,a){var u=r||s||a,c=e||o||"";if(!u)return i;if(Hp.test(u)||Yp.test(u)||Kp.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Vp(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 bn(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Jp(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=bn(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=bn(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=bn(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 _=bn(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 Xp(t,n){return Jp(t,n).join("/* rr_split */")}var Zp=1,Qp=new RegExp("[^a-z0-9-_:]"),kr=-2;function lu(){return Zp++}function ed(t){if(A(t,HTMLFormElement))return"form";var n=At(t.tagName);return Qp.test(n)?"div":n}var Ht,fu,td=/^[^ \t\n\r\u000c]+/,rd=/^[, \t\n\r\u000c]+/;function nd(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(rd),!(i>=n.length);){var o=e(td);if(o.slice(-1)===",")o=Yt(t,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Yt(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 hu=new WeakMap;function Yt(t,n){return!n||n.trim()===""?n:vo(t,n)}function id(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function vo(t,n){var i=hu.get(t);if(i||(i=t.createElement("a"),hu.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function pu(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")?Yt(t,e):i==="srcset"?nd(t,e):i==="style"?wn(e,vo(t)):n==="object"&&i==="data"?Yt(t,e):e)}function du(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function od(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 Sn(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?Sn(Ie.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?Sn(Ie.parentNode(t),n,i):!1}function vu(t,n,i,e){var r;if(ou(t)){if(r=t,!Ie.childNodes(r).length)return!1}else{if(Ie.parentElement(t)===null)return!1;r=Ie.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(Sn(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 sd(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 ad(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 ud(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=cd(i,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Ce.Document,childNodes:[],compatMode:t.compatMode}:{type:Ce.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Ce.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return fd(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 ld(t,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case t.CDATA_SECTION_NODE:return{type:Ce.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:Ce.Comment,textContent:Ie.textContent(t)||"",rootId:C};default:return!1}}function cd(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function ld(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=Ie.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=Ie.textContent(t),c&&u&&(u=wn(u,vo(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,Ie.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ce.Text,textContent:u||"",rootId:r}}function fd(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=od(t,e,r),_=ed(t),b={},S=t.attributes.length,C=0;C<S;C++){var x=t.attributes[C];du(_,x.name,x.value)||(b[x.name]=pu(i,_,At(x.name),x.value))}if(_==="link"&&o){var M=Array.from(i.styleSheets).find(function(De){return De.href===t.href}),k=null;M&&(k=po(M)),k&&(delete b.rel,delete b.href,b._cssText=k)}if(_==="style"&&t.sheet){var $=po(t.sheet);$&&(t.childNodes.length>1&&($=Xp($,t)),b._cssText=$)}if(_==="input"||_==="textarea"||_==="select"){var U=t.value,P=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&U?b.value=yn({element:t,type:_n(t),tagName:_,value:U,maskInputOptions:a,maskInputFn:u}):P&&(b.checked=P)}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")qp(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var G=t.toDataURL(l.type,l.quality),K=i.createElement("canvas");K.width=t.width,K.height=t.height;var Me=K.toDataURL(l.type,l.quality);G!==Me&&(b.rr_dataURL=G)}}if(_==="img"&&f){Ht||(Ht=i.createElement("canvas"),fu=Ht.getContext("2d"));var J=t,Ne=J.currentSrc||J.getAttribute("src")||"<unknown-src>",Ae=J.crossOrigin,he=function(){J.removeEventListener("load",he);try{Ht.width=J.naturalWidth,Ht.height=J.naturalHeight,fu.drawImage(J,0,0),b.rr_dataURL=Ht.toDataURL(l.type,l.quality)}catch(De){if(J.crossOrigin!=="anonymous"){J.crossOrigin="anonymous",J.complete&&J.naturalWidth!==0?he():J.addEventListener("load",he);return}else console.warn("Cannot inline img src="+Ne+"! Error: "+De)}J.crossOrigin==="anonymous"&&(Ae?b.crossOrigin=Ae:J.removeAttribute("crossorigin"))};J.complete&&J.naturalWidth!==0?he():J.addEventListener("load",he)}if(_==="audio"||_==="video"){var Ee=b;Ee.rr_mediaState=t.paused?"paused":"played",Ee.rr_mediaCurrentTime=t.currentTime,Ee.rr_mediaPlaybackRate=t.playbackRate,Ee.rr_mediaMuted=t.muted,Ee.rr_mediaLoop=t.loop,Ee.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),m){var Le=t.getBoundingClientRect(),Ft=Le.width,Xe=Le.height;b={class:b.class,rr_width:""+Ft+"px",rr_height:""+Xe+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var wr;try{customElements.get(_)&&(wr=!0)}catch(De){}return{type:Ce.Element,tagName:_,attributes:b,childNodes:[],isSVG:id(t)||void 0,needBlock:m,rootId:d,isCustom:wr}}function te(t){return t==null?"":t.toLowerCase()}function hd(t,n){if(n.comment&&t.type===Ce.Comment)return!0;if(t.type===Ce.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"&&cu(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(te(t.attributes.name).match(/^msapplication-tile(image|color)$/)||te(t.attributes.name)==="application-name"||te(t.attributes.rel)==="icon"||te(t.attributes.rel)==="apple-touch-icon"||te(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&te(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(te(t.attributes.property).match(/^(og|twitter|fb):/)||te(t.attributes.name).match(/^(og|twitter):/)||te(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(te(t.attributes.name)==="robots"||te(t.attributes.name)==="googlebot"||te(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(te(t.attributes.name)==="author"||te(t.attributes.name)==="generator"||te(t.attributes.name)==="framework"||te(t.attributes.name)==="publisher"||te(t.attributes.name)==="progid"||te(t.attributes.property).match(/^article:/)||te(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(te(t.attributes.name)==="google-site-verification"||te(t.attributes.name)==="yandex-verification"||te(t.attributes.name)==="csrf-token"||te(t.attributes.name)==="p:domain_verify"||te(t.attributes.name)==="verify-v1"||te(t.attributes.name)==="verification"||te(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Kt(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,M=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,U=$===void 0?5e3:$,P=n.onStylesheetLoad,G=n.stylesheetLoadTimeout,K=G===void 0?5e3:G,Me=n.keepIframeSrcFn,J=Me===void 0?function(){return!1}:Me,Ne=n.newlyAddedElement,Ae=Ne===void 0?!1:Ne,he=n.cssCaptured,Ee=he===void 0?!1:he,Le=n.needsMask,Ft=n.preserveWhiteSpace,Xe=Ft===void 0?!0:Ft;if(!Le){var wr=Le===void 0;Le=vu(t,s,a,wr)}var De=ud(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:Le,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:S,recordCanvas:x,keepIframeSrcFn:J,newlyAddedElement:Ae,cssCaptured:Ee});if(!De)return console.warn(t,"not serialized"),null;var Ut;e.hasNode(t)?Ut=e.getId(t):hd(De,d)||!Xe&&De.type===Ce.Text&&!De.textContent.replace(/^\s+|\s+$/gm,"").length?Ut=kr:Ut=lu();var Y=Object.assign(De,{id:Ut});if(e.add(t,Y),Ut===kr)return null;M&&M(t);var Bt=!c;if(Y.type===Ce.Element){Bt=Bt&&!Y.needBlock,delete Y.needBlock;var zt=Ie.shadowRoot(t);zt&&xr(zt)&&(Y.isShadowHost=!0)}if((Y.type===Ce.Document||Y.type===Ce.Element)&&Bt){d.headWhitespace&&Y.type===Ce.Element&&Y.tagName==="head"&&(Xe=!1);var br={doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:Le,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Xe,onSerialize:M,onIframeLoad:k,iframeLoadTimeout:U,onStylesheetLoad:P,stylesheetLoadTimeout:K,keepIframeSrcFn:J,cssCaptured:!1};if(!(Y.type===Ce.Element&&Y.tagName==="textarea"&&Y.attributes.value!==void 0)){Y.type===Ce.Element&&Y.attributes._cssText!==void 0&&typeof Y.attributes._cssText=="string"&&(br.cssCaptured=!0);for(var fn=I(Array.from(Ie.childNodes(t))),hn;!(hn=fn()).done;){var Ha=hn.value,so=Kt(Ha,br);so&&Y.childNodes.push(so)}}var Ot=null;if(ou(t)&&(Ot=Ie.shadowRoot(t)))for(var Wt=I(Array.from(Ie.childNodes(Ot))),Sr;!(Sr=Wt()).done;){var pn=Sr.value,Cr=Kt(pn,br);Cr&&(xr(Ot)&&(Cr.isShadow=!0),Y.childNodes.push(Cr))}}var Gt=Ie.parentNode(t);return Gt&&Or(Gt)&&xr(Gt)&&(Y.isShadow=!0),Y.type===Ce.Element&&Y.tagName==="iframe"&&sd(t,function(){var ut=t.contentDocument;if(ut&&k){var qt=Kt(ut,{doc:ut,mirror:e,blockClass:r,blockSelector:o,needsMask:Le,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Xe,onSerialize:M,onIframeLoad:k,iframeLoadTimeout:U,onStylesheetLoad:P,stylesheetLoadTimeout:K,keepIframeSrcFn:J});qt&&k(t,qt)}},U),Y.type===Ce.Element&&Y.tagName==="link"&&typeof Y.attributes.rel=="string"&&(Y.attributes.rel==="stylesheet"||Y.attributes.rel==="preload"&&typeof Y.attributes.href=="string"&&cu(Y.attributes.href)==="css")&&ad(t,function(){if(P){var ut=Kt(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:Le,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Xe,onSerialize:M,onIframeLoad:k,iframeLoadTimeout:U,onStylesheetLoad:P,stylesheetLoadTimeout:K,keepIframeSrcFn:J});ut&&P(t,ut)}},K),Y}function pd(t,n){var i=n||{},e=i.mirror,r=e===void 0?new au: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,M=i.slimDOM,k=M===void 0?!1:M,$=i.dataURLOptions,U=i.preserveWhiteSpace,P=i.onSerialize,G=i.onIframeLoad,K=i.iframeLoadTimeout,Me=i.onStylesheetLoad,J=i.stylesheetLoadTimeout,Ne=i.keepIframeSrcFn,Ae=Ne===void 0?function(){return!1}:Ne,he=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,Ee=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 Kt(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:v,maskInputOptions:he,maskTextFn:C,maskInputFn:x,slimDOMOptions:Ee,dataURLOptions:$,inlineImages:d,recordCanvas:_,preserveWhiteSpace:U,onSerialize:P,onIframeLoad:G,iframeLoadTimeout:K,onStylesheetLoad:Me,stylesheetLoadTimeout:J,keepIframeSrcFn:Ae,newlyAddedElement:!1})}function dd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function vd(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 go={exports:{}},ie=String,gu=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}};go.exports=gu(),go.exports.createColors=gu;var gd=go.exports,md={},yd=Object.freeze(Object.defineProperty({__proto__:null,default:md},Symbol.toStringTag,{value:"Module"})),ve=vd(yd),mu=gd,yu=ve,mo=(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=mu.isColorSupported),yu&&r&&(s=yu(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=mu.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})(Ir(Error)),yo=mo;mo.default=mo;var lt={};lt.isClean=Symbol("isClean"),lt.my=Symbol("my");var _u={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function _d(t){return t[0].toUpperCase()+t.slice(1)}var _o=(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 _u[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"+_d(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=_u[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})(),wu=_o;_o.default=_o;var wd=wu;function wo(t,n){var i=new wd(n);i.stringify(t)}var Cn=wo;wo.default=wo;var En=lt.isClean,bd=lt.my,Sd=yo,Cd=wu,Ed=Cn;function bo(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":R(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return bo(s,i)}):(o==="object"&&r!==null&&(r=bo(r)),i[e]=r)}return i}var So=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[En]=!1,this[bd]=!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=bo(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 Sd(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[En]){this[En]=!1;for(var e=this;e=e.parent;)e[En]=!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 Cd;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":R(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":R(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=Ed),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})(),In=So;So.default=So;var Id=In,Co=(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})(Id),On=Co;Co.default=Co;var Od="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",xd=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Od[Math.random()*64|0];return n},kd={nanoid:xd},bu=ve.SourceMapConsumer,Su=ve.SourceMapGenerator,Ad=ve.existsSync,Rd=ve.readFileSync,Eo=ve.dirname,Md=ve.join;function $d(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Io=(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=Eo(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new bu(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 $d(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":R(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=Eo(e),Ad(e))return this.mapFile=e,Rd(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,bu))return Su.fromSourceMap(r).toString();if(A(r,Su))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=Md(Eo(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})(),Cu=Io;Io.default=Io;var Td=ve.SourceMapConsumer,Pd=ve.SourceMapGenerator,Eu=ve.fileURLToPath,xn=ve.pathToFileURL,Oo=ve.isAbsolute,xo=ve.resolve,Nd=kd.nanoid,ko=ve,Iu=yo,Ld=Cu,Ao=Symbol("fromOffsetCache"),Dd=!!(Td&&Pd),Ou=!!(xo&&Oo),kn=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":R(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&&(!Ou||/^\w+:\/\//.test(e.from)||Oo(e.from)?this.file=e.from:this.file=xo(e.from)),Ou&&Dd){var r=new Ld(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 "+Nd(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":R(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 Iu(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 Iu(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&&(xn&&(a.input.url=xn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[Ao])o=this[Ao];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[Ao]=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:xo(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;Oo(u.source)?l=xn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||xn(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(Eu)f.file=Eu(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})(),An=kn;kn.default=kn,ko&&ko.registerInput&&ko.registerInput(kn);var xu=ve.SourceMapConsumer,Rn=ve.SourceMapGenerator,Mn=ve.dirname,ku=ve.relative,Au=ve.resolve,Ru=ve.sep,Mu=ve.pathToFileURL,Fd=An,Ud=!!(xu&&Rn),Bd=!!(Mn&&Au&&ku&&Ru),zd=(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||Mn(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new xu(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(),Bd&&Ud&&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=Rn.fromSourceMap(e,{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 e=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,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?Mn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Mn(Au(o,this.mapOpts.annotation)));var s=ku(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 Fd(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(Mu){var o=Mu(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;Ru==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),$u=zd,Wd=In,Ro=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Wd),$n=Ro;Ro.default=Ro;var Tu=lt.isClean,Pu=lt.my,Nu=On,Lu=$n,Gd=In,Du,Mo,$o,Fu;function Uu(t){return t.map(function(n){return n.nodes&&(n.nodes=Uu(n.nodes)),delete n.source,n})}function Bu(t){if(t[Tu]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Bu(e)}}var Ze=(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=Uu(Du(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 Nu(r)]}else if(r.selector)r=[new Mo(r)];else if(r.name)r=[new $o(r)];else if(r.text)r=[new Lu(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Pu]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Tu]&&Bu(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})(Gd);Ze.registerParse=function(t){Du=t},Ze.registerRule=function(t){Mo=t},Ze.registerAtRule=function(t){$o=t},Ze.registerRoot=function(t){Fu=t};var Rt=Ze;Ze.default=Ze,Ze.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,$o.prototype):t.type==="rule"?Object.setPrototypeOf(t,Mo.prototype):t.type==="decl"?Object.setPrototypeOf(t,Nu.prototype):t.type==="comment"?Object.setPrototypeOf(t,Lu.prototype):t.type==="root"&&Object.setPrototypeOf(t,Fu.prototype),t[Pu]=!0,t.nodes&&t.nodes.forEach(function(n){Ze.rebuild(n)})};var qd=Rt,zu,Wu,Ar=(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 zu(new Wu,this,r);return o.stringify()},n})(qd);Ar.registerLazyResult=function(t){zu=t},Ar.registerProcessor=function(t){Wu=t};var To=Ar;Ar.default=Ar;var Gu={},qu=function(n){Gu[n]||(Gu[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Po=(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})(),Vu=Po;Po.default=Po;var Vd=Vu,No=(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 Vd(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})(),Lo=No;No.default=No;var Do=39,ju=34,Tn=92,Hu=47,Pn=10,Rr=32,Nn=12,Ln=9,Dn=13,jd=91,Hd=93,Yd=40,Kd=41,Jd=123,Xd=125,Zd=59,Qd=42,ev=58,tv=64,Fn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Un=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rv=/.[\r\n"'(/\\]/,Yu=/[\da-f]/i,nv=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 Pn:case Rr:case Ln:case Dn:case Nn:{s=d;do s+=1,o=e.charCodeAt(s);while(o===Rr||o===Pn||o===Ln||o===Dn||o===Nn);v=["space",e.slice(d,s)],d=s-1;break}case jd:case Hd:case Jd:case Xd:case ev:case Zd:case Kd:{var U=String.fromCharCode(o);v=[U,U,d];break}case Yd:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==Do&&g!==ju&&g!==Rr&&g!==Pn&&g!==Ln&&g!==Nn&&g!==Dn){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)===Tn;)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||rv.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case Do:case ju:{a=o===Do?"'":'"',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)===Tn;)f-=1,l=!l}while(l);v=["string",e.slice(d,s+1),d,s],d=s;break}case tv:{Fn.lastIndex=d+1,Fn.test(e),Fn.lastIndex===0?s=e.length-1:s=Fn.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case Tn:{for(s=d,c=!0;e.charCodeAt(s+1)===Tn;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Hu&&o!==Rr&&o!==Pn&&o!==Ln&&o!==Dn&&o!==Nn&&(s+=1,Yu.test(e.charAt(s)))){for(;Yu.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Rr&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===Hu&&e.charCodeAt(d+1)===Qd?(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):(Un.lastIndex=d+1,Un.test(e),Un.lastIndex===0?s=e.length-1:s=Un.lastIndex-2,v=["word",e.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function M(k){_.push(k)}return{back:M,endOfFile:C,nextToken:x,position:b}},Ku=Rt,Bn=(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})(Ku),Fo=Bn;Bn.default=Bn,Ku.registerAtRule(Bn);var Ju=Rt,Xu,Zu,Jt=(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 Xu(new Zu,this,r);return o.stringify()},n})(Ju);Jt.registerLazyResult=function(t){Xu=t},Jt.registerProcessor=function(t){Zu=t};var Mr=Jt;Jt.default=Jt,Ju.registerRoot(Jt);var $r={comma:function(n){return $r.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return $r.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}},Qu=$r;$r.default=$r;var ec=Rt,iv=Qu,zn=(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 iv.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})(ec),Uo=zn;zn.default=zn,ec.registerRule(zn);var ov=On,sv=nv,av=$n,uv=Fo,cv=Mr,tc=Uo,rc={empty:!0,space:!0};function lv(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var fv=(function(){function t(i){this.input=i,this.root=new cv,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 uv;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 av;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=sv(this.input)},n.decl=function(e,r){var o=new ov;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]||lv(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 tc;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",!rc[g]&&!rc[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 tc;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})(),hv=fv,pv=Rt,dv=hv,vv=An;function Wn(t,n){var i=new vv(t,n),e=new dv(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 Bo=Wn;Wn.default=Wn,pv.registerParse(Wn);var Ge=lt.isClean,gv=lt.my,mv=$u,yv=Cn,_v=Rt,wv=To,bv=qu,nc=Lo,Sv=Bo,Cv=Mr,Ev={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Iv={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},Ov={Once:!0,postcssPlugin:!0,prepare:!0},Xt=0;function Tr(t){return(typeof t=="undefined"?"undefined":R(t))==="object"&&typeof t.then=="function"}function ic(t){var n=!1,i=Ev[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Xt,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Xt,i+"Exit"]:[i,i+"Exit"]}function oc(t){var n;return t.type==="document"?n=["Document",Xt,"DocumentExit"]:t.type==="root"?n=["Root",Xt,"RootExit"]:n=ic(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function zo(t){return t[Ge]=!1,t.nodes&&t.nodes.forEach(function(n){return zo(n)}),t}var Wo={},Zt=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":R(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=zo(e);else if(A(e,t)||A(e,nc))s=zo(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=Sv;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[gv]&&_v.rebuild(s)}this.result=new nc(i,s,r),this.helpers=B({},Wo,{postcss:Wo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":R(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":R(a))==="object")for(var u in a){if(!Iv[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ov[u])if(R(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 vn(function(){var r,o,s,a,u,c,l,f,h,g,v,y;return kt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!Tr(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[Ge])return[3,14];u[Ge]=!0,c=[oc(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Tr(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 kt(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(M){return b(M,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,co(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":R(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 Tr(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=yv;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new mv(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(Tr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ge];)a[Ge]=!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||bv("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(Tr(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[Ge]){f[Ge]=!0,e.push(oc(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===Xt){o.nodes&&o.nodes.length&&(o[Ge]=!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[Ge]=!0;for(var o=ic(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===Xt)e.nodes&&e.each(function(l){l[Ge]||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})();Zt.registerPostcss=function(t){Wo=t};var sc=Zt;Zt.default=Zt,Cv.registerLazyResult(Zt),wv.registerLazyResult(Zt);var xv=$u,kv=Cn,Av=qu,Rv=Bo,Mv=Lo,Go=(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=kv;this.result=new Mv(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 xv(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||Av("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=Rv;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})(),$v=Go;Go.default=Go;var Tv=$v,Pv=sc,Nv=To,Lv=Mr,Pr=(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":R(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":R(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":R(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 Tv(this,e,r):new Pv(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Dv=Pr;Pr.default=Pr,Lv.registerProcessor(Pr),Nv.registerProcessor(Pr);var Fv=On,Uv=Cu,Bv=$n,zv=Fo,Wv=An,Gv=Mr,qv=Uo;function Nr(t,n){if(Array.isArray(t))return t.map(function(f){return Nr(f)});var i=t.inputs,e=xt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=B({},s,{__proto__:Wv.prototype});a.map&&(a.map=B({},a.map,{__proto__:Uv.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Nr(f,n)})),e.source){var u=e.source,c=u.inputId,l=xt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Gv(e);if(e.type==="decl")return new Fv(e);if(e.type==="rule")return new qv(e);if(e.type==="comment")return new Bv(e);if(e.type==="atrule")return new zv(e);throw new Error("Unknown node type: "+t.type)}var Vv=Nr;Nr.default=Nr;var jv=yo,ac=On,Hv=sc,Yv=Rt,qo=Dv,Kv=Cn,Jv=Vv,uc=To,Xv=Vu,cc=$n,lc=Fo,Zv=Lo,Qv=An,eg=Bo,tg=Qu,fc=Uo,hc=Mr,rg=In;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 qo(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 qo().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=Kv,X.parse=eg,X.fromJSON=Jv,X.list=tg,X.comment=function(t){return new cc(t)},X.atRule=function(t){return new lc(t)},X.decl=function(t){return new ac(t)},X.rule=function(t){return new fc(t)},X.root=function(t){return new hc(t)},X.document=function(t){return new uc(t)},X.CssSyntaxError=jv,X.Declaration=ac,X.Container=Yv,X.Processor=qo,X.Document=uc,X.Comment=cc,X.Warning=Xv,X.AtRule=lc,X.Result=Zv,X.Input=Qv,X.Rule=fc,X.Root=hc,X.Node=rg,Hv.registerPostcss(X);var ng=X;X.default=X;var ce=dd(ng);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 ig=Object.defineProperty,og=function(t,n,i){return n in t?ig(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Fe=function(t,n,i){return og(t,(typeof n=="undefined"?"undefined":R(n))!=="symbol"?n+"":n,i)};function sg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ag(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 Vo={exports:{}},oe=String,pc=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}};Vo.exports=pc(),Vo.exports.createColors=pc;var ug=Vo.exports,cg={},lg=Object.freeze(Object.defineProperty({__proto__:null,default:cg},Symbol.toStringTag,{value:"Module"})),ge=ag(lg),dc=ug,vc=ge,jo=(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=dc.isColorSupported),vc&&r&&(s=vc(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=dc.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})(Ir(Error)),Ho=jo;jo.default=jo;var ft={};ft.isClean=Symbol("isClean"),ft.my=Symbol("my");var gc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function fg(t){return t[0].toUpperCase()+t.slice(1)}var Yo=(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 gc[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"+fg(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=gc[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})(),mc=Yo;Yo.default=Yo;var hg=mc;function Ko(t,n){var i=new hg(n);i.stringify(t)}var Gn=Ko;Ko.default=Ko;var qn=ft.isClean,pg=ft.my,dg=Ho,vg=mc,gg=Gn;function Jo(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":R(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Jo(s,i)}):(o==="object"&&r!==null&&(r=Jo(r)),i[e]=r)}return i}var Xo=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[qn]=!1,this[pg]=!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=Jo(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 dg(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[qn]){this[qn]=!1;for(var e=this;e=e.parent;)e[qn]=!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 vg;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":R(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":R(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=gg),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})(),Vn=Xo;Xo.default=Xo;var mg=Vn,Zo=(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})(mg),jn=Zo;Zo.default=Zo;var yg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_g=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=yg[Math.random()*64|0];return n},wg={nanoid:_g},yc=ge.SourceMapConsumer,_c=ge.SourceMapGenerator,bg=ge.existsSync,Sg=ge.readFileSync,Qo=ge.dirname,Cg=ge.join;function Eg(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var es=(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=Qo(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new yc(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 Eg(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":R(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=Qo(e),bg(e))return this.mapFile=e,Sg(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,yc))return _c.fromSourceMap(r).toString();if(A(r,_c))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=Cg(Qo(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})(),wc=es;es.default=es;var Ig=ge.SourceMapConsumer,Og=ge.SourceMapGenerator,bc=ge.fileURLToPath,Hn=ge.pathToFileURL,ts=ge.isAbsolute,rs=ge.resolve,xg=wg.nanoid,ns=ge,Sc=Ho,kg=wc,is=Symbol("fromOffsetCache"),Ag=!!(Ig&&Og),Cc=!!(rs&&ts),Yn=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":R(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&&(!Cc||/^\w+:\/\//.test(e.from)||ts(e.from)?this.file=e.from:this.file=rs(e.from)),Cc&&Ag){var r=new kg(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 "+xg(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":R(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 Sc(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 Sc(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&&(Hn&&(a.input.url=Hn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[is])o=this[is];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[is]=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:rs(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;ts(u.source)?l=Hn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Hn(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(bc)f.file=bc(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})(),Kn=Yn;Yn.default=Yn,ns&&ns.registerInput&&ns.registerInput(Yn);var Ec=ge.SourceMapConsumer,Jn=ge.SourceMapGenerator,Xn=ge.dirname,Ic=ge.relative,Oc=ge.resolve,xc=ge.sep,kc=ge.pathToFileURL,Rg=Kn,Mg=!!(Ec&&Jn),$g=!!(Xn&&Oc&&Ic&&xc),Tg=(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||Xn(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ec(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(),$g&&Mg&&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=Jn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Jn({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 Jn({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?Xn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Xn(Oc(o,this.mapOpts.annotation)));var s=Ic(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 Rg(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(kc){var o=kc(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;xc==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Ac=Tg,Pg=Vn,os=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Pg),Zn=os;os.default=os;var Rc=ft.isClean,Mc=ft.my,$c=jn,Tc=Zn,Ng=Vn,Pc,ss,as,Nc;function Lc(t){return t.map(function(n){return n.nodes&&(n.nodes=Lc(n.nodes)),delete n.source,n})}function Dc(t){if(t[Rc]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Dc(e)}}var Qe=(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=Lc(Pc(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 $c(r)]}else if(r.selector)r=[new ss(r)];else if(r.name)r=[new as(r)];else if(r.text)r=[new Tc(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Mc]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Rc]&&Dc(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})(Ng);Qe.registerParse=function(t){Pc=t},Qe.registerRule=function(t){ss=t},Qe.registerAtRule=function(t){as=t},Qe.registerRoot=function(t){Nc=t};var Mt=Qe;Qe.default=Qe,Qe.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,as.prototype):t.type==="rule"?Object.setPrototypeOf(t,ss.prototype):t.type==="decl"?Object.setPrototypeOf(t,$c.prototype):t.type==="comment"?Object.setPrototypeOf(t,Tc.prototype):t.type==="root"&&Object.setPrototypeOf(t,Nc.prototype),t[Mc]=!0,t.nodes&&t.nodes.forEach(function(n){Qe.rebuild(n)})};var Lg=Mt,Fc,Uc,Lr=(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 Fc(new Uc,this,r);return o.stringify()},n})(Lg);Lr.registerLazyResult=function(t){Fc=t},Lr.registerProcessor=function(t){Uc=t};var us=Lr;Lr.default=Lr;var Bc={},zc=function(n){Bc[n]||(Bc[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},cs=(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})(),Wc=cs;cs.default=cs;var Dg=Wc,ls=(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 Dg(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})(),fs=ls;ls.default=ls;var hs=39,Gc=34,Qn=92,qc=47,ei=10,Dr=32,ti=12,ri=9,ni=13,Fg=91,Ug=93,Bg=40,zg=41,Wg=123,Gg=125,qg=59,Vg=42,jg=58,Hg=64,ii=/[\t\n\f\r "#'()/;[\\\]{}]/g,oi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Yg=/.[\r\n"'(/\\]/,Vc=/[\da-f]/i,Kg=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 ei:case Dr:case ri:case ni:case ti:{s=d;do s+=1,o=e.charCodeAt(s);while(o===Dr||o===ei||o===ri||o===ni||o===ti);v=["space",e.slice(d,s)],d=s-1;break}case Fg:case Ug:case Wg:case Gg:case jg:case qg:case zg:{var U=String.fromCharCode(o);v=[U,U,d];break}case Bg:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==hs&&g!==Gc&&g!==Dr&&g!==ei&&g!==ri&&g!==ti&&g!==ni){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)===Qn;)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||Yg.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case hs:case Gc:{a=o===hs?"'":'"',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)===Qn;)f-=1,l=!l}while(l);v=["string",e.slice(d,s+1),d,s],d=s;break}case Hg:{ii.lastIndex=d+1,ii.test(e),ii.lastIndex===0?s=e.length-1:s=ii.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case Qn:{for(s=d,c=!0;e.charCodeAt(s+1)===Qn;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==qc&&o!==Dr&&o!==ei&&o!==ri&&o!==ni&&o!==ti&&(s+=1,Vc.test(e.charAt(s)))){for(;Vc.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Dr&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===qc&&e.charCodeAt(d+1)===Vg?(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):(oi.lastIndex=d+1,oi.test(e),oi.lastIndex===0?s=e.length-1:s=oi.lastIndex-2,v=["word",e.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function M(k){_.push(k)}return{back:M,endOfFile:C,nextToken:x,position:b}},jc=Mt,si=(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})(jc),ps=si;si.default=si,jc.registerAtRule(si);var Hc=Mt,Yc,Kc,Qt=(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 Yc(new Kc,this,r);return o.stringify()},n})(Hc);Qt.registerLazyResult=function(t){Yc=t},Qt.registerProcessor=function(t){Kc=t};var Fr=Qt;Qt.default=Qt,Hc.registerRoot(Qt);var Ur={comma:function(n){return Ur.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Ur.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}},Jc=Ur;Ur.default=Ur;var Xc=Mt,Jg=Jc,ai=(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 Jg.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})(Xc),ds=ai;ai.default=ai,Xc.registerRule(ai);var Xg=jn,Zg=Kg,Qg=Zn,em=ps,tm=Fr,Zc=ds,Qc={empty:!0,space:!0};function rm(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var nm=(function(){function t(i){this.input=i,this.root=new tm,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 em;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 Qg;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=Zg(this.input)},n.decl=function(e,r){var o=new Xg;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]||rm(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 Zc;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",!Qc[g]&&!Qc[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 Zc;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})(),im=nm,om=Mt,sm=im,am=Kn;function ui(t,n){var i=new am(t,n),e=new sm(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 vs=ui;ui.default=ui,om.registerParse(ui);var qe=ft.isClean,um=ft.my,cm=Ac,lm=Gn,fm=Mt,hm=us,pm=zc,el=fs,dm=vs,vm=Fr,gm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mm={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},ym={Once:!0,postcssPlugin:!0,prepare:!0},er=0;function Br(t){return(typeof t=="undefined"?"undefined":R(t))==="object"&&typeof t.then=="function"}function tl(t){var n=!1,i=gm[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,er,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,er,i+"Exit"]:[i,i+"Exit"]}function rl(t){var n;return t.type==="document"?n=["Document",er,"DocumentExit"]:t.type==="root"?n=["Root",er,"RootExit"]:n=tl(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function gs(t){return t[qe]=!1,t.nodes&&t.nodes.forEach(function(n){return gs(n)}),t}var ms={},tr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":R(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=gs(e);else if(A(e,t)||A(e,el))s=gs(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=dm;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[um]&&fm.rebuild(s)}this.result=new el(i,s,r),this.helpers=B({},ms,{postcss:ms,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":R(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":R(a))==="object")for(var u in a){if(!mm[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ym[u])if(R(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 vn(function(){var r,o,s,a,u,c,l,f,h,g,v,y;return kt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!Br(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=[rl(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Br(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 kt(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(M){return b(M,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,co(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":R(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 Br(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=lm;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new cm(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(Br(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||pm("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(Br(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(rl(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===er){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=tl(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===er)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})();tr.registerPostcss=function(t){ms=t};var nl=tr;tr.default=tr,vm.registerLazyResult(tr),hm.registerLazyResult(tr);var _m=Ac,wm=Gn,bm=zc,Sm=vs,Cm=fs,ys=(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=wm;this.result=new Cm(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 _m(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||bm("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=Sm;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})(),Em=ys;ys.default=ys;var Im=Em,Om=nl,xm=us,km=Fr,zr=(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":R(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":R(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":R(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 Im(this,e,r):new Om(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Am=zr;zr.default=zr,km.registerProcessor(zr),xm.registerProcessor(zr);var Rm=jn,Mm=wc,$m=Zn,Tm=ps,Pm=Kn,Nm=Fr,Lm=ds;function Wr(t,n){if(Array.isArray(t))return t.map(function(f){return Wr(f)});var i=t.inputs,e=xt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=B({},s,{__proto__:Pm.prototype});a.map&&(a.map=B({},a.map,{__proto__:Mm.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Wr(f,n)})),e.source){var u=e.source,c=u.inputId,l=xt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Nm(e);if(e.type==="decl")return new Rm(e);if(e.type==="rule")return new Lm(e);if(e.type==="comment")return new $m(e);if(e.type==="atrule")return new Tm(e);throw new Error("Unknown node type: "+t.type)}var Dm=Wr;Wr.default=Wr;var Fm=Ho,il=jn,Um=nl,Bm=Mt,_s=Am,zm=Gn,Wm=Dm,ol=us,Gm=Wc,sl=Zn,al=ps,qm=fs,Vm=Kn,jm=vs,Hm=Jc,ul=ds,cl=Fr,Ym=Vn;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 _s(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 _s().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=zm,Z.parse=jm,Z.fromJSON=Wm,Z.list=Hm,Z.comment=function(t){return new sl(t)},Z.atRule=function(t){return new al(t)},Z.decl=function(t){return new il(t)},Z.rule=function(t){return new ul(t)},Z.root=function(t){return new cl(t)},Z.document=function(t){return new ol(t)},Z.CssSyntaxError=Fm,Z.Declaration=il,Z.Container=Bm,Z.Processor=_s,Z.Document=ol,Z.Comment=sl,Z.Warning=Gm,Z.AtRule=al,Z.Result=qm,Z.Input=Vm,Z.Rule=ul,Z.Root=cl,Z.Node=Ym,Um.registerPostcss(Z);var Km=Z;Z.default=Z;var le=sg(Km);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 Jm=(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})(),ll={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ci={},Xm=function(){return!!globalThis.Zone};function ws(t){if(ci[t])return ci[t];var n=globalThis[t],i=n.prototype,e=t in ll?ll[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 fl?fl[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&&!Xm())return ci[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?ci[t]=c:i}catch(l){return i}}var bs={};function ht(t,n,i){var e,r=t+"."+String(i);if(bs[r])return bs[r].call(n);var o=ws(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(bs[r]=s,s.call(n)):n[i]}var Ss={};function hl(t,n,i){var e=t+"."+String(i);if(Ss[e])return Ss[e].bind(n);var r=ws(t),o=r[i];return typeof o!="function"?n[i]:(Ss[e]=o,o.bind(n))}function Zm(t){return ht("Node",t,"childNodes")}function Qm(t){return ht("Node",t,"parentNode")}function ey(t){return ht("Node",t,"parentElement")}function ty(t){return ht("Node",t,"textContent")}function ry(t,n){return hl("Node",t,"contains")(n)}function ny(t){return hl("Node",t,"getRootNode")()}function iy(t){return!t||!("host"in t)?null:ht("ShadowRoot",t,"host")}function oy(t){return t.styleSheets}function sy(t){return!t||!("shadowRoot"in t)?null:ht("Element",t,"shadowRoot")}function ay(t,n){return ht("Element",t,"querySelector")(n)}function uy(t,n){return ht("Element",t,"querySelectorAll")(n)}function pl(){return ws("MutationObserver").constructor}function $t(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:Zm,parentNode:Qm,parentElement:ey,textContent:ty,contains:ry,getRootNode:ny,host:iy,styleSheets:oy,shadowRoot:sy,querySelector:ay,querySelectorAll:uy,mutationObserver:pl,patch:$t};function Oe(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 rr="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.",dl={map:{},getId:function(){return console.error(rr),-1},getNode:function(){return console.error(rr),null},removeNodeFromMap:function(){console.error(rr)},has:function(){return console.error(rr),!1},reset:function(){console.error(rr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(dl=new Proxy(dl,{get:function(n,i,e){return i==="map"&&console.error(rr),Reflect.get(n,i,e)}}));function Gr(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 li(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 li(t,n,o||{},!0)}}var fi=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(fi=function(){return new Date().getTime()});function vl(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 gl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ml(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yl(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:q.parentElement(t);return n}function xe(t,n,i,e){if(!t)return!1;var r=yl(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(Sn(r,n,e))return!0}catch(o){}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function cy(t,n){return n.getId(t)!==-1}function Cs(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===kr}function _l(t,n){if(Or(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?_l(e,n):!0}function Es(t){return!!t.changedTouches}function ly(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 wl(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function bl(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Is(t){return t?A(t,Jm)&&"shadowRoot"in t?!!t.shadowRoot:!!q.shadowRoot(t):!1}var fy=(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++},t})();function Sl(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 hy(t){for(var n=t,i;i=Sl(n);)n=i;return n}function py(t){var n=t.ownerDocument;if(!n)return!1;var i=hy(t);return q.contains(n,i)}function Cl(t){var n=t.ownerDocument;return n?q.contains(n,t)||py(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||{}),N=(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})(N||{}),Re=(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})(Re||{}),et=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(et||{}),nr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(nr||{}),ir=(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})(ir||{}),El=(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})(El||{});function Il(t){return"__ln"in t}var dy=(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&&Il(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&&Il(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})(),Ol=function(t,n){return t+"@"+n},vy=(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 dy,s=function(P){for(var G=P,K=kr;K===kr;)G=G&&G.nextSibling,K=G&&i.mirror.getId(G);return K},a=function(P){var G=q.parentNode(P);if(!(!G||!Cl(P))){var K=!1;if(P.nodeType===Node.TEXT_NODE){var Me=G.tagName;if(Me==="TEXTAREA")return;Me==="STYLE"&&i.addedSet.has(G)&&(K=!0)}var J=Or(G)?i.mirror.getId(Sl(P)):i.mirror.getId(G),Ne=s(P);if(J===-1||Ne===-1)return o.addNode(P);var Ae=Kt(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(he){wl(he,i.mirror)&&i.iframeManager.addIframe(he),bl(he,i.mirror)&&i.stylesheetManager.trackLinkElement(he),Is(P)&&i.shadowDomManager.addShadowRoot(q.shadowRoot(P),i.doc)},onIframeLoad:function(he,Ee){i.iframeManager.attachIframe(he,Ee),i.shadowDomManager.observeAttachShadow(he)},onStylesheetLoad:function(he,Ee){i.stylesheetManager.attachLinkElement(he,Ee)},cssCaptured:K});Ae&&(e.push({parentId:J,nextId:Ne,node:Ae}),r.add(Ae.id))}};i.mapRemoves.length;)i.mirror.removeNodeFromMap(i.mapRemoves.shift());for(var u=I(i.movedSet),c;!(c=u()).done;){var l=c.value;xl(i.removesSubTreeCache,l,i.mirror)&&!i.movedSet.has(q.parentNode(l))||a(l)}for(var f=I(i.addedSet),h;!(h=f()).done;){var g=h.value;!kl(i.droppedSet,g)&&!xl(i.removesSubTreeCache,g,i.mirror)||kl(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 b=_;if(_=_.previous,b){var S=i.mirror.getId(q.parentNode(b.value)),C=s(b.value);if(C===-1)continue;if(S!==-1){y=b;break}else{var x=b.value,M=q.parentNode(x);if(M&&M.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=q.host(M),$=i.mirror.getId(k);if($!==-1){y=b;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}v=y.previous,o.removeNode(y.value),a(y.value)}var U={texts:i.texts.map(function(P){var G=P.node,K=q.parentNode(G);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{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 K=JSON.stringify(P.styleDiff),Me=JSON.stringify(P._unchangedStyles);K.length<G.style.length&&(K+Me).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};!U.texts.length&&!U.attributes.length&&!U.removes.length&&!U.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(U))}}),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=yn({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:_n(e),value:o,maskInputFn:i.maskInputFn})}),O(this,"processMutation",function(e){if(!Cs(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=q.textContent(e.target);!xe(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:vu(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,yl(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=_n(o);a=yn({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(xe(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"),!du(o.tagName,s))if(c.attributes[s]=pu(i.doc,At(o.tagName),At(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(xe(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=Or(e.target)?i.mirror.getId(q.host(e.target)):i.mirror.getId(e.target);xe(e.target,i.blockClass,i.blockSelector,!1)||Cs(b,i.mirror,i.slimDOMOptions)||!cy(b,i.mirror)||(i.addedSet.has(b)?(Os(i.addedSet,b),i.droppedSet.add(b)):i.addedSet.has(e.target)&&S===-1||_l(e.target,i.mirror)||(i.movedSet.has(b)&&i.movedMap[Ol(S,C)]?Os(i.movedSet,b):(i.removes.push({parentId:C,id:S,isShadow:Or(e.target)&&xr(e.target)?!0:void 0}),gy(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(Cs(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[Ol(i.mirror.getId(e),o)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);xe(e,i.blockClass,i.blockSelector,!1)||(q.childNodes(e).forEach(function(s){return i.genAdds(s)}),Is(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()},t})();function Os(t,n){t.delete(n),q.childNodes(n).forEach(function(i){return Os(t,i)})}function gy(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 xl(t,n,i){return t.size===0?!1:my(t,n)}function my(t,n,i){var e=q.parentNode(n);return e?t.has(e):!1}function kl(t,n){return t.size===0?!1:Al(t,n)}function Al(t,n){var i=q.parentNode(n);return i?t.has(i)?!0:Al(t,i):!1}var qr;function yy(t){qr=t}function _y(){qr=void 0}var H=function(t){if(!qr)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(qr&&qr(o)===!0)return;throw o}};return n},Tt=[];function Vr(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 Rl(t,n){var i=new vy;Tt.push(i),i.init(t);var e=new(pl())(H(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function wy(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=Gr(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(Gr(H(function(h){var g=Vr(h),v=Es(h)?h.changedTouches[0]:h,y=v.clientX,d=v.clientY;u||(u=fi()),a.push({x:y,y:d,id:r.getId(g),timeOffset:fi()-u}),c(typeof DragEvent!="undefined"&&A(h,DragEvent)?N.Drag:A(h,MouseEvent)?N.MouseMove:N.TouchMove)}),o,{trailing:!1})),f=[Oe("mousemove",l,e),Oe("touchmove",l,e),Oe("drag",l,e)];return H(function(){f.forEach(function(h){return h()})})}function by(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=Vr(h);if(!xe(g,r,o,!0)){var v=null,y=f;if("pointerType"in h){switch(h.pointerType){case"mouse":v=et.Mouse;break;case"touch":v=et.Touch;break;case"pen":v=et.Pen;break}v===et.Touch?Re[f]===Re.MouseDown?y="TouchStart":Re[f]===Re.MouseUp&&(y="TouchEnd"):et.Pen}else Es(h)&&(v=et.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===et.Touch||y.startsWith("Mouse")&&v===et.Mouse)&&(v=null)):Re[f]===Re.Click&&(v=c,c=null);var d=Es(h)?h.changedTouches[0]:h;if(d){var m=e.getId(g),_=d.clientX,b=d.clientY;H(n)(B({type:Re[y],id:m,x:_,y:b},v!==null&&{pointerType:v}))}}}};return Object.keys(Re).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var h=At(f),g=l(f);if(window.PointerEvent)switch(Re[f]){case Re.MouseDown:case Re.MouseUp:h=h.replace("mouse","pointer");break;case Re.TouchStart:case Re.TouchEnd:return}u.push(Oe(h,g,i))}),H(function(){u.forEach(function(f){return f()})})}function Ml(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling,a=H(Gr(H(function(u){var c=Vr(u);if(!(!c||xe(c,r,o,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=vl(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 Oe("scroll",a,i)}function Sy(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,o=-1,s=H(Gr(H(function(){var a=gl(),u=ml();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Oe("resize",s,e)}var Cy=["INPUT","TEXTAREA","SELECT"],$l=new WeakMap;function Ey(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=Vr(S),x=S.isTrusted,M=C&&C.tagName;if(C&&M==="OPTION"&&(C=q.parentElement(C)),!(!C||!M||Cy.indexOf(M)<0||xe(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var k=C.value,$=!1,U=_n(C)||"";U==="radio"||U==="checkbox"?$=C.checked:(u[M.toLowerCase()]||u[U])&&(k=yn({element:C,maskInputOptions:u,tagName:M,type:U,value:k,maskInputFn:c})),g(C,f?{text:k,isChecked:$,userTriggered:x}:{text:k,isChecked:$});var P=C.name;U==="radio"&&P&&$&&i.querySelectorAll('input[type="radio"][name="'+P+'"]').forEach(function(G){if(G!==C){var K=G.value;g(G,f?{text:K,isChecked:!$,userTriggered:!1}:{text:K,isChecked:!$})}})}}function g(S,C){var x=$l.get(S);if(!x||x.text!==C.text||x.isChecked!==C.isChecked){$l.set(S,C);var M=e.getId(S);H(n)(B({},C,{id:M}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(S){return Oe(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 li(S[0],S[1],{set:function(){H(h)({target:this,isTrusted:!1})}},!1,d)})))}return H(function(){y.forEach(function(S){return S()})})}function hi(t){var n=[];function i(e,r){if(pi("CSSGroupingRule")&&A(e.parentRule,CSSGroupingRule)||pi("CSSMediaRule")&&A(e.parentRule,CSSMediaRule)||pi("CSSSupportsRule")&&A(e.parentRule,CSSSupportsRule)||pi("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 pt(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function Iy(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=pt(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=pt(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=pt(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=pt(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={};di("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(di("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),di("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),di("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=pt(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(hi(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=pt(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(hi(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 Tl(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 Oy(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=pt((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:hi(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=pt((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:hi(l.parentRule)}),c.apply(l,f)})}),H(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function xy(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 Gr(H(function(l){var f=Vr(l);if(!(!f||xe(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=[Oe("play",a(ir.Play),s),Oe("pause",a(ir.Pause),s),Oe("seeked",a(ir.Seeked),s),Oe("volumechange",a(ir.VolumeChange),s),Oe("ratechange",a(ir.RateChange),s)];return H(function(){u.forEach(function(c){return c()})})}function ky(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=$t(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 Ay(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=xe(g,e,r,!0)||xe(y,e,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}o({ranges:c})}});return a(),Oe("selectionchange",a)}function Ry(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=$t(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 My(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 $y(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};My(t,n);var e;t.recordDOM&&(e=Rl(t,t.doc));var r=wy(t),o=by(t),s=Ml(t),a=Sy(t,{win:i}),u=Ey(t),c=xy(t),l=function(){},f=function(){},h=function(){},g=function(){};t.recordDOM&&(l=Iy(t,{win:i}),f=Tl(t,t.doc),h=Oy(t,{win:i}),t.collectFonts&&(g=ky(t)));for(var v=Ay(t),y=Ry(t),d=[],m=I(t.plugins),_;!(_=m()).done;){var b=_.value;d.push(b.observer(b.callback,i,b.options))}return H(function(){Tt.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 pi(t){return typeof window[t]!="undefined"}function di(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var Pl=(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})(),Ty=(function(){function t(i){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Pl(lu)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",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 Pl(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.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}),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:N.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 N.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 N.Drag:case N.TouchMove:case N.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,e,["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,e,["id"]),r;case N.StyleSheetRule:case N.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case N.Font:return r;case N.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,e,["start","end"])}),r;case N.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!==El.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},t})(),Py=(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(xr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Rl(B({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Ml(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(Tl({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($t(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=q.shadowRoot(this);return c&&Cl(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})(),or="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ny=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),vi=0;vi<or.length;vi++)Ny[or.charCodeAt(vi)]=vi;var Ly=function(n){var i=new Uint8Array(n),e,r=i.length,o="";for(e=0;e<r;e+=3)o+=or[i[e]>>2],o+=or[(i[e]&3)<<4|i[e+1]>>4],o+=or[(i[e+1]&15)<<2|i[e+2]>>6],o+=or[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},Nl=new Map;function Dy(t,n){var i=Nl.get(t);return i||(i=new Map,Nl.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var Ll=function(t,n,i){if(!(!t||!(Fl(t,n)||(typeof t=="undefined"?"undefined":R(t))==="object"))){var e=t.constructor.name,r=Dy(i,e),o=r.indexOf(t);return o===-1&&(o=r.length,r.push(t)),o}};function gi(t,n,i){if(A(t,Array))return t.map(function(v){return gi(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=Ly(t);return{rr_type:r,base64:o}}else if(A(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[gi(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:[gi(t.data,n,i),t.width,t.height]}}else if(Fl(t,n)||(typeof t=="undefined"?"undefined":R(t))==="object"){var h=t.constructor.name,g=Ll(t,n,i);return{rr_type:h,index:g}}return t}var Dl=function(t,n,i){return t.map(function(e){return gi(e,n,i)})},Fl=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 Fy(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=$t(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 xe(this.canvas,i,e,!0)||setTimeout(function(){var m=Dl(y,n,g);t(g.canvas,{type:nr["2D"],property:c,args:m})},0),h.apply(this,y)}});o.push(l)}catch(h){var f=li(n.CanvasRenderingContext2D.prototype,c,{set:function(v){t(this.canvas,{type:nr["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 Uy(t){return t==="experimental-webgl"?"webgl":t}function Ul(t,n,i,e){var r=[];try{var o=$t(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(!xe(this,n,i,!0)){var f=Uy(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(c[0]&&R(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 Bl(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=$t(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(Ll(_,o,this),"tagName"in this.canvas&&!xe(this.canvas,e,r,!0)){var b=Dl(d,o,this),S={type:n,property:f,args:b};i(this.canvas,S)}return _}});a.push(h)}catch(v){var g=li(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 By(t,n,i,e){var r,o=[];if((r=o).push.apply(r,[].concat(Bl(n.WebGLRenderingContext.prototype,nr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(Bl(n.WebGL2RenderingContext.prototype,nr.WebGL2,t,i,e,n)))}return function(){o.forEach(function(a){return a()})}}var zl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",zy=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},Wl=typeof window!="undefined"&&window.Blob&&new Blob([zy(zl)],{type:"text/javascript;charset=utf-8"});function Wy(t){var n;try{if(n=Wl&&(window.URL||window.webkitURL).createObjectURL(Wl),!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,"+zl,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Gy=(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=Ul(r,o,s,!0),l=new Map,f=new Wy;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,M=b.height;u.mutationCb({id:_,type:nr["2D"],commands:[{property:"clearRect",args:[0,0,x,M]},{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(_){xe(_,o,s,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<h){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(vn(function(b){var S,C,x,M;return kt(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 M=k.sent(),f.postMessage({id:C,bitmap:M,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[M]),[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=Ul(e,r,o,!1),a=Fy(this.processMutation.bind(this),e,r,o),u=By(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=xt(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t})(),qy=(function(){function t(i){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new fy),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:su(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.trackStylesheetInLinkElement=function(e){},t})(),Vy=(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,mi,xs,yi=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var ks=document.createElement("iframe");document.body.appendChild(ks),Array.from=((eu=ks.contentWindow)==null?void 0:eu.Array.from)||Array.from,document.body.removeChild(ks)}}catch(t){console.debug("Unable to override Array.from",t)}var Be=Gp();function dt(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,M=t.hooks,k=t.packFn,$=t.sampling,U=$===void 0?{}:$,P=t.dataURLOptions,G=P===void 0?{}:P,K=t.mousemoveWait,Me=t.recordDOM,J=Me===void 0?!0:Me,Ne=t.recordCanvas,Ae=Ne===void 0?!1:Ne,he=t.recordCrossOriginIframes,Ee=he===void 0?!1:he,Le=t.recordAfter,Ft=Le===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Le,Xe=t.userTriggeredOnInput,wr=Xe===void 0?!1:Xe,De=t.collectFonts,Ut=De===void 0?!1:De,Y=t.inlineImages,Bt=Y===void 0?!1:Y,zt=t.plugins,br=t.keepIframeSrcFn,fn=br===void 0?function(){return!1}:br,hn=t.ignoreCSSAttributes,Ha=hn===void 0?new Set([]):hn,so=t.errorHandler;yy(so);var Ot=Ee?window.parent===window:!0,Wt=!1;if(!Ot)try{window.parent.document&&(Wt=!1)}catch(ee){Wt=!0}if(Ot&&!n)throw new Error("emit function is required");if(!Ot&&!Wt)return function(){};K!==void 0&&U.mousemove===void 0&&(U.mousemove=K),Be.reset();var Sr=_===!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},pn=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||{};ly();var Cr,Gt=0,ut=function(ee){for(var $e=I(zt||[]),T;!(T=$e()).done;){var pe=T.value;pe.eventProcessor&&(ee=pe.eventProcessor(ee))}return k&&!Wt&&(ee=k(ee)),ee};de=function(ee,$e){var T,pe=ee;if(pe.timestamp=fi(),(T=Tt[0])!=null&&T.isFrozen()&&pe.type!==V.FullSnapshot&&!(pe.type===V.IncrementalSnapshot&&pe.data.source===N.Mutation)&&Tt.forEach(function(DS){return DS.unfreeze()}),Ot)n==null||n(ut(pe),$e);else if(Wt){var PS={type:"rrweb",event:ut(pe),origin:window.location.origin,isCheckout:$e};window.parent.postMessage(PS,"*")}if(pe.type===V.FullSnapshot)Cr=pe,Gt=0;else if(pe.type===V.IncrementalSnapshot){if(pe.data.source===N.Mutation&&pe.data.isAttachIframe)return;Gt++;var NS=e&&Gt>=e,LS=i&&pe.timestamp-Cr.timestamp>i;(NS||LS)&&mi(!0)}};for(var qt=function(ee){de({type:V.IncrementalSnapshot,data:B({source:N.Mutation},ee)})},hp=function(ee){return de({type:V.IncrementalSnapshot,data:B({source:N.Scroll},ee)})},pp=function(ee){return de({type:V.IncrementalSnapshot,data:B({source:N.CanvasMutation},ee)})},$S=function(ee){return de({type:V.IncrementalSnapshot,data:B({source:N.AdoptedStyleSheet},ee)})},Vt=new qy({mutationCb:qt,adoptedStyleSheetCb:$S}),jt=new Ty({mirror:Be,mutationCb:qt,stylesheetManager:Vt,recordCrossOriginIframes:Ee,wrappedEmit:de}),TS=I(zt||[]),dp;!(dp=TS()).done;){var vp=dp.value;vp.getMirror&&vp.getMirror({nodeMirror:Be,crossOriginIframeMirror:jt.crossOriginIframeMirror,crossOriginIframeStyleMirror:jt.crossOriginIframeStyleMirror})}var Ya=new Vy;xs=new Gy({recordCanvas:Ae,mutationCb:pp,win:window,blockClass:o,blockSelector:a,mirror:Be,sampling:U.canvas,dataURLOptions:G});var ao=new Py({mutationCb:qt,scrollCb:hp,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:Sr,dataURLOptions:G,maskTextFn:x,maskInputFn:C,recordCanvas:Ae,inlineImages:Bt,sampling:U,slimDOMOptions:pn,iframeManager:jt,stylesheetManager:Vt,canvasManager:xs,keepIframeSrcFn:fn,processedNodeManager:Ya},mirror:Be});mi=function(ee){if(ee===void 0&&(ee=!1),!!J){de({type:V.Meta,data:{href:window.location.href,width:ml(),height:gl()}},ee),Vt.reset(),ao.init(),Tt.forEach(function(T){return T.lock()});var $e=pd(document,{mirror:Be,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:Sr,maskTextFn:x,maskInputFn:C,slimDOM:pn,dataURLOptions:G,recordCanvas:Ae,inlineImages:Bt,onSerialize:function(T){wl(T,Be)&&jt.addIframe(T),bl(T,Be)&&Vt.trackLinkElement(T),Is(T)&&ao.addShadowRoot(q.shadowRoot(T),document)},onIframeLoad:function(T,pe){jt.attachIframe(T,pe),ao.observeAttachShadow(T)},onStylesheetLoad:function(T,pe){Vt.attachLinkElement(T,pe)},keepIframeSrcFn:fn});if(!$e)return console.warn("Failed to snapshot the document");de({type:V.FullSnapshot,data:{node:$e,initialOffset:vl(window)}},ee),Tt.forEach(function(T){return T.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Vt.adoptStyleSheets(document.adoptedStyleSheets,Be.getId(document))}};try{var dn=[],gp=function(ee){var $e;return H($y)({mutationCb:qt,mousemoveCb:function(T,pe){return de({type:V.IncrementalSnapshot,data:{source:pe,positions:T}})},mouseInteractionCb:function(T){return de({type:V.IncrementalSnapshot,data:B({source:N.MouseInteraction},T)})},scrollCb:hp,viewportResizeCb:function(T){return de({type:V.IncrementalSnapshot,data:B({source:N.ViewportResize},T)})},inputCb:function(T){return de({type:V.IncrementalSnapshot,data:B({source:N.Input},T)})},mediaInteractionCb:function(T){return de({type:V.IncrementalSnapshot,data:B({source:N.MediaInteraction},T)})},styleSheetRuleCb:function(T){return de({type:V.IncrementalSnapshot,data:B({source:N.StyleSheetRule},T)})},styleDeclarationCb:function(T){return de({type:V.IncrementalSnapshot,data:B({source:N.StyleDeclaration},T)})},canvasMutationCb:pp,fontCb:function(T){return de({type:V.IncrementalSnapshot,data:B({source:N.Font},T)})},selectionCb:function(T){de({type:V.IncrementalSnapshot,data:B({source:N.Selection},T)})},customElementCb:function(T){de({type:V.IncrementalSnapshot,data:B({source:N.CustomElement},T)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:Sr,inlineStylesheet:m,sampling:U,recordDOM:J,recordCanvas:Ae,inlineImages:Bt,userTriggeredOnInput:wr,collectFonts:Ut,doc:ee,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:fn,blockSelector:a,slimDOMOptions:pn,dataURLOptions:G,mirror:Be,iframeManager:jt,stylesheetManager:Vt,shadowDomManager:ao,processedNodeManager:Ya,canvasManager:xs,ignoreCSSAttributes:Ha,plugins:(($e=zt==null?void 0:zt.filter(function(T){return T.observer}))==null?void 0:$e.map(function(T){return{observer:T.observer,options:T.options,callback:function(pe){return de({type:V.Plugin,data:{plugin:T.name,payload:pe}})}}}))||[]},M)};jt.addLoadListener(function(ee){try{dn.push(gp(ee.contentDocument))}catch($e){console.warn($e)}});var Ka=function(){mi(),dn.push(gp(document)),yi=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ka():(dn.push(Oe("DOMContentLoaded",function(){de({type:V.DomContentLoaded,data:{}}),Ft==="DOMContentLoaded"&&Ka()})),dn.push(Oe("load",function(){de({type:V.Load,data:{}}),Ft==="load"&&Ka()},window))),function(){dn.forEach(function(ee){try{ee()}catch(T){var $e=String(T).toLowerCase();$e.includes("cross-origin")||console.warn(T)}}),Ya.destroy(),yi=!1,_y()}}catch(ee){console.warn(ee)}}dt.addCustomEvent=function(t,n){if(!yi)throw new Error("please add custom event after start recording");de({type:V.Custom,data:{tag:t,payload:n}})},dt.freezePage=function(){Tt.forEach(function(t){return t.freeze()})},dt.takeFullSnapshot=function(t){if(!yi)throw new Error("please take full snapshot after start recording");mi(t)},dt.mirror=Be;var Gl;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Gl||(Gl={})),dt.addCustomEvent,dt.freezePage,dt.takeFullSnapshot;var ql={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Vl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_i={},jy=function(){return!!globalThis.Zone};function As(t){if(_i[t])return _i[t];var n=globalThis[t],i=n.prototype,e=t in ql?ql[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 Vl?Vl[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&&!jy())return _i[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?_i[t]=c:i}catch(l){return i}}var Rs={};function vt(t,n,i){var e,r=t+"."+String(i);if(Rs[r])return Rs[r].call(n);var o=As(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(Rs[r]=s,s.call(n)):n[i]}var Ms={};function jl(t,n,i){var e=t+"."+String(i);if(Ms[e])return Ms[e].bind(n);var r=As(t),o=r[i];return typeof o!="function"?n[i]:(Ms[e]=o,o.bind(n))}function Hy(t){return vt("Node",t,"childNodes")}function Yy(t){return vt("Node",t,"parentNode")}function Ky(t){return vt("Node",t,"parentElement")}function Jy(t){return vt("Node",t,"textContent")}function Xy(t,n){return jl("Node",t,"contains")(n)}function Zy(t){return jl("Node",t,"getRootNode")()}function Qy(t){return!t||!("host"in t)?null:vt("ShadowRoot",t,"host")}function e_(t){return t.styleSheets}function t_(t){return!t||!("shadowRoot"in t)?null:vt("Element",t,"shadowRoot")}function r_(t,n){return vt("Element",t,"querySelector")(n)}function n_(t,n){return vt("Element",t,"querySelectorAll")(n)}function i_(){return As("MutationObserver").constructor}function o_(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 Hl={childNodes:Hy,parentNode:Yy,parentElement:Ky,textContent:Jy,contains:Xy,getRootNode:Zy,host:Qy,styleSheets:e_,shadowRoot:t_,querySelector:r_,querySelectorAll:n_,mutationObserver:i_,patch:o_};function $s(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return $s(Hl.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return $s(Hl.parentNode(t),n)}function s_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a_(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 Ts={exports:{}},se=String,Yl=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}};Ts.exports=Yl(),Ts.exports.createColors=Yl;var u_=Ts.exports,c_={},l_=Object.freeze(Object.defineProperty({__proto__:null,default:c_},Symbol.toStringTag,{value:"Module"})),me=a_(l_),Kl=u_,Jl=me,Ps=(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=Kl.isColorSupported),Jl&&r&&(s=Jl(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=Kl.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})(Ir(Error)),Ns=Ps;Ps.default=Ps;var gt={};gt.isClean=Symbol("isClean"),gt.my=Symbol("my");var Xl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function f_(t){return t[0].toUpperCase()+t.slice(1)}var Ls=(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 Xl[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"+f_(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=Xl[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})(),Zl=Ls;Ls.default=Ls;var h_=Zl;function Ds(t,n){var i=new h_(n);i.stringify(t)}var wi=Ds;Ds.default=Ds;var bi=gt.isClean,p_=gt.my,d_=Ns,v_=Zl,g_=wi;function Fs(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":R(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Fs(s,i)}):(o==="object"&&r!==null&&(r=Fs(r)),i[e]=r)}return i}var Us=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[bi]=!1,this[p_]=!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=Fs(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 d_(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[bi]){this[bi]=!1;for(var e=this;e=e.parent;)e[bi]=!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 v_;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":R(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":R(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=g_),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})(),Si=Us;Us.default=Us;var m_=Si,Bs=(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})(m_),Ci=Bs;Bs.default=Bs;var y_="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",__=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=y_[Math.random()*64|0];return n},w_={nanoid:__},Ql=me.SourceMapConsumer,ef=me.SourceMapGenerator,b_=me.existsSync,S_=me.readFileSync,zs=me.dirname,C_=me.join;function E_(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Ws=(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=zs(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Ql(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 E_(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":R(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=zs(e),b_(e))return this.mapFile=e,S_(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,Ql))return ef.fromSourceMap(r).toString();if(A(r,ef))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=C_(zs(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})(),tf=Ws;Ws.default=Ws;var I_=me.SourceMapConsumer,O_=me.SourceMapGenerator,rf=me.fileURLToPath,Ei=me.pathToFileURL,Gs=me.isAbsolute,qs=me.resolve,x_=w_.nanoid,Vs=me,nf=Ns,k_=tf,js=Symbol("fromOffsetCache"),A_=!!(I_&&O_),of=!!(qs&&Gs),Ii=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":R(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&&(!of||/^\w+:\/\//.test(e.from)||Gs(e.from)?this.file=e.from:this.file=qs(e.from)),of&&A_){var r=new k_(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 "+x_(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":R(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 nf(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 nf(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&&(Ei&&(a.input.url=Ei(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[js])o=this[js];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[js]=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:qs(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;Gs(u.source)?l=Ei(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Ei(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(rf)f.file=rf(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})(),Oi=Ii;Ii.default=Ii,Vs&&Vs.registerInput&&Vs.registerInput(Ii);var sf=me.SourceMapConsumer,xi=me.SourceMapGenerator,ki=me.dirname,af=me.relative,uf=me.resolve,cf=me.sep,lf=me.pathToFileURL,R_=Oi,M_=!!(sf&&xi),$_=!!(ki&&uf&&af&&cf),T_=(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||ki(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new sf(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(),$_&&M_&&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=xi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new xi({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 xi({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?ki(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=ki(uf(o,this.mapOpts.annotation)));var s=af(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 R_(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(lf){var o=lf(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;cf==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),ff=T_,P_=Si,Hs=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(P_),Ai=Hs;Hs.default=Hs;var hf=gt.isClean,pf=gt.my,df=Ci,vf=Ai,N_=Si,gf,Ys,Ks,mf;function yf(t){return t.map(function(n){return n.nodes&&(n.nodes=yf(n.nodes)),delete n.source,n})}function _f(t){if(t[hf]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;_f(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=yf(gf(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 df(r)]}else if(r.selector)r=[new Ys(r)];else if(r.name)r=[new Ks(r)];else if(r.text)r=[new vf(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[pf]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[hf]&&_f(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})(N_);tt.registerParse=function(t){gf=t},tt.registerRule=function(t){Ys=t},tt.registerAtRule=function(t){Ks=t},tt.registerRoot=function(t){mf=t};var Pt=tt;tt.default=tt,tt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ks.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ys.prototype):t.type==="decl"?Object.setPrototypeOf(t,df.prototype):t.type==="comment"?Object.setPrototypeOf(t,vf.prototype):t.type==="root"&&Object.setPrototypeOf(t,mf.prototype),t[pf]=!0,t.nodes&&t.nodes.forEach(function(n){tt.rebuild(n)})};var L_=Pt,wf,bf,jr=(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 wf(new bf,this,r);return o.stringify()},n})(L_);jr.registerLazyResult=function(t){wf=t},jr.registerProcessor=function(t){bf=t};var Js=jr;jr.default=jr;var Sf={},Cf=function(n){Sf[n]||(Sf[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Xs=(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})(),Ef=Xs;Xs.default=Xs;var D_=Ef,Zs=(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 D_(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})(),Qs=Zs;Zs.default=Zs;var ea=39,If=34,Ri=92,Of=47,Mi=10,Hr=32,$i=12,Ti=9,Pi=13,F_=91,U_=93,B_=40,z_=41,W_=123,G_=125,q_=59,V_=42,j_=58,H_=64,Ni=/[\t\n\f\r "#'()/;[\\\]{}]/g,Li=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Y_=/.[\r\n"'(/\\]/,xf=/[\da-f]/i,K_=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 Mi:case Hr:case Ti:case Pi:case $i:{s=d;do s+=1,o=e.charCodeAt(s);while(o===Hr||o===Mi||o===Ti||o===Pi||o===$i);v=["space",e.slice(d,s)],d=s-1;break}case F_:case U_:case W_:case G_:case j_:case q_:case z_:{var U=String.fromCharCode(o);v=[U,U,d];break}case B_:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),h==="url"&&g!==ea&&g!==If&&g!==Hr&&g!==Mi&&g!==Ti&&g!==$i&&g!==Pi){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)===Ri;)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||Y_.test(u)?v=["(","(",d]:(v=["brackets",u,d,s],d=s);break}case ea:case If:{a=o===ea?"'":'"',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)===Ri;)f-=1,l=!l}while(l);v=["string",e.slice(d,s+1),d,s],d=s;break}case H_:{Ni.lastIndex=d+1,Ni.test(e),Ni.lastIndex===0?s=e.length-1:s=Ni.lastIndex-2,v=["at-word",e.slice(d,s+1),d,s],d=s;break}case Ri:{for(s=d,c=!0;e.charCodeAt(s+1)===Ri;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Of&&o!==Hr&&o!==Mi&&o!==Ti&&o!==Pi&&o!==$i&&(s+=1,xf.test(e.charAt(s)))){for(;xf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Hr&&(s+=1)}v=["word",e.slice(d,s+1),d,s],d=s;break}default:{o===Of&&e.charCodeAt(d+1)===V_?(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):(Li.lastIndex=d+1,Li.test(e),Li.lastIndex===0?s=e.length-1:s=Li.lastIndex-2,v=["word",e.slice(d,s+1),d,s],m.push(v),d=s);break}}return d++,v}}function M(k){_.push(k)}return{back:M,endOfFile:C,nextToken:x,position:b}},kf=Pt,Di=(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})(kf),ta=Di;Di.default=Di,kf.registerAtRule(Di);var Af=Pt,Rf,Mf,sr=(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 Rf(new Mf,this,r);return o.stringify()},n})(Af);sr.registerLazyResult=function(t){Rf=t},sr.registerProcessor=function(t){Mf=t};var Yr=sr;sr.default=sr,Af.registerRoot(sr);var Kr={comma:function(n){return Kr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Kr.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}},$f=Kr;Kr.default=Kr;var Tf=Pt,J_=$f,Fi=(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 J_.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})(Tf),ra=Fi;Fi.default=Fi,Tf.registerRule(Fi);var X_=Ci,Z_=K_,Q_=Ai,ew=ta,tw=Yr,Pf=ra,Nf={empty:!0,space:!0};function rw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var nw=(function(){function t(i){this.input=i,this.root=new tw,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 ew;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 Q_;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=Z_(this.input)},n.decl=function(e,r){var o=new X_;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]||rw(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 Pf;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",!Nf[g]&&!Nf[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 Pf;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})(),iw=nw,ow=Pt,sw=iw,aw=Oi;function Ui(t,n){var i=new aw(t,n),e=new sw(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 na=Ui;Ui.default=Ui,ow.registerParse(Ui);var Ve=gt.isClean,uw=gt.my,cw=ff,lw=wi,fw=Pt,hw=Js,pw=Cf,Lf=Qs,dw=na,vw=Yr,gw={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},mw={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},yw={Once:!0,postcssPlugin:!0,prepare:!0},ar=0;function Jr(t){return(typeof t=="undefined"?"undefined":R(t))==="object"&&typeof t.then=="function"}function Df(t){var n=!1,i=gw[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,ar,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,ar,i+"Exit"]:[i,i+"Exit"]}function Ff(t){var n;return t.type==="document"?n=["Document",ar,"DocumentExit"]:t.type==="root"?n=["Root",ar,"RootExit"]:n=Df(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ia(t){return t[Ve]=!1,t.nodes&&t.nodes.forEach(function(n){return ia(n)}),t}var oa={},ur=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":R(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ia(e);else if(A(e,t)||A(e,Lf))s=ia(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=dw;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[uw]&&fw.rebuild(s)}this.result=new Lf(i,s,r),this.helpers=B({},oa,{postcss:oa,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":R(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":R(a))==="object")for(var u in a){if(!mw[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!yw[u])if(R(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 vn(function(){var r,o,s,a,u,c,l,f,h,g,v,y;return kt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!Jr(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=[Ff(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Jr(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 kt(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(M){return b(M,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,co(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":R(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 Jr(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=lw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new cw(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(Jr(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||pw("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(Jr(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(Ff(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===ar){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=Df(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===ar)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})();ur.registerPostcss=function(t){oa=t};var Uf=ur;ur.default=ur,vw.registerLazyResult(ur),hw.registerLazyResult(ur);var _w=ff,ww=wi,bw=Cf,Sw=na,Cw=Qs,sa=(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=ww;this.result=new Cw(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 _w(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||bw("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=Sw;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})(),Ew=sa;sa.default=sa;var Iw=Ew,Ow=Uf,xw=Js,kw=Yr,Xr=(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":R(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":R(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":R(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 Iw(this,e,r):new Ow(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Aw=Xr;Xr.default=Xr,kw.registerProcessor(Xr),xw.registerProcessor(Xr);var Rw=Ci,Mw=tf,$w=Ai,Tw=ta,Pw=Oi,Nw=Yr,Lw=ra;function Zr(t,n){if(Array.isArray(t))return t.map(function(f){return Zr(f)});var i=t.inputs,e=xt(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=B({},s,{__proto__:Pw.prototype});a.map&&(a.map=B({},a.map,{__proto__:Mw.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Zr(f,n)})),e.source){var u=e.source,c=u.inputId,l=xt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Nw(e);if(e.type==="decl")return new Rw(e);if(e.type==="rule")return new Lw(e);if(e.type==="comment")return new $w(e);if(e.type==="atrule")return new Tw(e);throw new Error("Unknown node type: "+t.type)}var Dw=Zr;Zr.default=Zr;var Fw=Ns,Bf=Ci,Uw=Uf,Bw=Pt,aa=Aw,zw=wi,Ww=Dw,zf=Js,Gw=Ef,Wf=Ai,Gf=ta,qw=Qs,Vw=Oi,jw=na,Hw=$f,qf=ra,Vf=Yr,Yw=Si;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 aa(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 aa().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=zw,Q.parse=jw,Q.fromJSON=Ww,Q.list=Hw,Q.comment=function(t){return new Wf(t)},Q.atRule=function(t){return new Gf(t)},Q.decl=function(t){return new Bf(t)},Q.rule=function(t){return new qf(t)},Q.root=function(t){return new Vf(t)},Q.document=function(t){return new zf(t)},Q.CssSyntaxError=Fw,Q.Declaration=Bf,Q.Container=Bw,Q.Processor=aa,Q.Document=zf,Q.Comment=Wf,Q.Warning=Gw,Q.AtRule=Gf,Q.Result=qw,Q.Input=Vw,Q.Rule=qf,Q.Root=Vf,Q.Node=Yw,Uw.registerPostcss(Q);var Kw=Q;Q.default=Q;var fe=s_(Kw);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 Jw=Object.defineProperty,Xw=function(t,n,i){return n in t?Jw(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Bi=function(t,n,i){return Xw(t,(typeof n=="undefined"?"undefined":R(n))!=="symbol"?n+"":n,i)};function Zw(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 cr=(function(){function t(i){Bi(this,"fileName"),Bi(this,"functionName"),Bi(this,"lineNumber"),Bi(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})(),Qw=/(^|@)\S+:\d+/,jf=/^\s*at .*(\S+:\d+|\(native\))/m,eb=/^(eval@)?(\[native code])?$/,ua={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(jf)?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(jf)},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 cr({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(eb)},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 cr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,a=this.extractLocation(e.replace(r,""));return new cr({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 cr({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 cr({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(Qw)&&!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 cr({functionName:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function tb(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 ca(t){return Object.prototype.toString.call(t)==="[object Object]"}function Hf(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(ca(t[o])&&Hf(t[o],n-1))return!0}return!1}function lr(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":R(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]=tb(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!!(ca(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||ca(a)&&Hf(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 Yf={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 rb(t,n,i){var e=i?Object.assign({},Yf,i):Yf,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,_=ua.parse(m).map(function(S){return S.toString()}),b=[lr(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=[lr("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,m=[lr("Uncaught (in promise)",e.stringifyOptions),lr(y.reason,e.stringifyOptions)]);var _=ua.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]?Zw(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 M=ua.parse(new Error).map(function(U){return U.toString()}).splice(1),k=d==="assert"?C.slice(1):C,$=k.map(function(U){return lr(U,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:d,trace:M,payload:$}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[lr("The number of log records reached the threshold.")]})}catch(U){_.apply(void 0,[].concat(["rrweb logger error:",U],C))}finally{a=!1}}}}):function(){}}}var nb="rrweb/console@1",ib=function(t){return{name:nb,observer:rb,options:t}},Kf=E.setImmediate,mt,la,fa,Jf=Object.prototype.toString,ob=typeof Kf!="undefined"?function(n){return Kf(n)}:setTimeout;try{Object.defineProperty({},"x",{}),mt=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch(t){mt=function(i,e,r){return i[e]=r,i}}fa=(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=la=void 0;s;)s.fn.call(s.self),s=s.next}}})();function zi(t,n){fa.add(t,n),la||(la=ob(fa.drain))}function Xf(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function ha(){for(var t=0;t<this.chain.length;t++)sb(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function sb(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=Xf(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(o){i.reject(o)}}function Zf(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=Xf(t))?zi(function(){var e=new eh(i);try{n.call(t,function(){Zf.apply(e,arguments)},function(){Qr.apply(e,arguments)})}catch(r){Qr.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&zi(ha,i))}catch(e){Qr.call(new eh(i),e)}}}function Qr(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&zi(ha,n))}function Qf(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 eh(t){this.def=t,this.triggered=!1}function ab(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function yt(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 ab(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&&zi(ha,n),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){Zf.call(n,e)},function(e){Qr.call(n,e)})}catch(i){Qr.call(n,i)}}var th=mt({},"constructor",yt,!1);yt.prototype=th,mt(th,"__NPO__",0,!1),mt(yt,"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)})}),mt(yt,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),mt(yt,"all",function(n){var i=this;return Jf.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;Qf(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),mt(yt,"race",function(n){var i=this;return Jf.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");Qf(i,n,function(a,u){r(u)},o)})});var j;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?j=Promise:j=yt;var Te={DEBUG:!1,LIB_VERSION:"2.74.0"},en=1440*60*1e3,pa=8*1e3,Wi=Array.prototype,ub=Function.prototype,rh=Object.prototype,_t=Wi.slice,tn=rh.toString,Gi=rh.hasOwnProperty,we=E.console,rt=E.navigator,L=E.document,rn=E.opera,nh=E.screen,je=rt.userAgent,da=ub.bind,ih=Wi.forEach,oh=Wi.indexOf,sh=Wi.map,cb=Array.isArray,va={},p={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},D={log:function(){if(Te.DEBUG&&!p.isUndefined(we)&&we)try{we.log.apply(we,arguments)}catch(t){p.each(arguments,function(n){we.log(n)})}},warn:function(){if(Te.DEBUG&&!p.isUndefined(we)&&we){var t=["Mixpanel warning:"].concat(p.toArray(arguments));try{we.warn.apply(we,t)}catch(n){p.each(t,function(i){we.warn(i)})}}},error:function(){if(Te.DEBUG&&!p.isUndefined(we)&&we){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{we.error.apply(we,t)}catch(n){p.each(t,function(i){we.error(i)})}}},critical:function(){if(!p.isUndefined(we)&&we){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{we.error.apply(we,t)}catch(n){p.each(t,function(i){we.error(i)})}}}},ga=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(D,arguments)}},Nt=function(t){return{log:ga(D.log,t),error:ga(D.error,t),critical:ga(D.critical,t)}},nn=function(t){return function(){try{return t.apply(this,arguments)}catch(n){D.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Te.DEBUG&&D.critical(n)}}},ah=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=nn(n[i]))};p.bind=function(t,n){var i,e;if(da&&t.bind===da)return da.apply(t,_t.call(arguments,1));if(!p.isFunction(t))throw new TypeError;return i=_t.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(_t.call(arguments)));var r={};r.prototype=t.prototype;var o=new r;r.prototype=null;var s=t.apply(o,i.concat(_t.call(arguments)));return Object(s)===s?s:o},e},p.each=function(t,n,i){if(t!=null){if(ih&&t.forEach===ih)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)===va)return}else for(var o in t)if(Gi.call(t,o)&&n.call(i,t[o],o,t)===va)return}},p.extend=function(t){return p.each(_t.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t},p.isArray=cb||function(t){return tn.call(t)==="[object Array]"},p.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch(n){return!1}},p.isArguments=function(t){return!!(t&&Gi.call(t,"callee"))},p.toArray=function(t){return t?t.toArray?t.toArray():p.isArray(t)||p.isArguments(t)?_t.call(t):p.values(t):[]},p.map=function(t,n,i){if(sh&&t.map===sh)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:oh&&t.indexOf===oh?t.indexOf(n)!=-1:(p.each(t,function(e){if(i||(i=e===n))return va}),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(Gi.call(t,n))return!1;return!0}return!1},p.isUndefined=function(t){return t===void 0},p.isString=function(t){return tn.call(t)=="[object String]"},p.isDate=function(t){return tn.call(t)=="[object Date]"},p.isNumber=function(t){return tn.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=[],tn.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)Gi.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 uh=["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<uh.length;n++)if(t.indexOf(uh[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){D.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},p.cookie={get:function(t){for(var n=t+"=",i=L.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=ph(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=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=ph(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 h=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return L.cookie=h,h},remove:function(t,n,i){p.cookie.set(t,"",-1,n,!1,!1,i)}};var ch=function(t){var n=!0;try{var i="__mplss_"+_a(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch(r){n=!1}return n},ma=null,on=function(t,n){return ma!==null&&!n?ma:ma=ch(t||E.localStorage)},ya=null,lb=function(t,n){return ya!==null&&!n?ya:ya=ch(t||E.sessionStorage)};function lh(t,n,i){var e=function(r){D.error(n+" error: "+r)};return{is_supported:function(r){var o=i(t,r);return o||D.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 fh=null,hh=null;try{fh=E.localStorage,hh=E.sessionStorage}catch(t){}p.localStorage=lh(fh,"localStorage",on),p.sessionStorage=lh(hh,"sessionStorage",lb),p.register_event=(function(){var t=function(e,r,o,s,a){if(!e){D.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 fb=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(!L.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,h,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 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(fb);if(S){u=S[1];var C=S[2],x=S[3],M=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)==M};break;case"~":k=function($){return $.getAttribute(C).match(new RegExp("\\b"+M+"\\b"))};break;case"|":k=function($){return $.getAttribute(C).match(new RegExp("^"+M+"-?"))};break;case"^":k=function($){return $.getAttribute(C).indexOf(M)===0};break;case"$":k=function($){return $.getAttribute(C).lastIndexOf(M)==$.getAttribute(C).length-M.length};break;case"*":k=function($){return $.getAttribute(C).indexOf(M)>-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 hb=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],pb=["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(hb,function(e){n=p.getQueryParam(L.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return p.each(pb,function(i){t=p.getQueryParam(L.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=je;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(je,rt.vendor,rn),$referrer:L.referrer,$referring_domain:p.info.referringDomain(L.referrer),$device:p.info.device(je)}),{$current_url:p.info.currentUrl(),$browser_version:p.info.browserVersion(je,rt.vendor,rn),$screen_height:nh.height,$screen_width:nh.width,mp_lib:"web",$lib_version:Te.LIB_VERSION,$insert_id:_a(),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(je,rt.vendor,rn)}),{$browser_version:p.info.browserVersion(je,rt.vendor,rn)})},mpPageViewProperties:function(){return p.strip_empty_properties({current_page_title:L.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 db=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}},_a=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},vb=function(){var t=p.UUID().replace(/-/g,""),n=p.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},gb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,mb=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ph=function(t){var n=mb,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=gb);var r=t.match(n);return r?r[0]:""},yb=function(){var t=E.navigator.onLine;return p.isUndefined(t)||t},wt=function(){},fr=null,qi=null;typeof JSON!="undefined"&&(fr=JSON.stringify,qi=JSON.parse),fr=fr||p.JSONEncode,qi=qi||p.JSONDecode;var _b=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=yt;var wb="mixpanelBrowserDb",dh="mixpanelRecordingEvents",wa="mixpanelRecordingRegistry",bb=1,Sb=[dh,wa],ze=function(t){this.dbPromise=null,this.storeName=t};ze.prototype._openDb=function(){return new j(function(t,n){var i=E.indexedDB.open(wb,bb);i.onerror=function(){n(i.error)},i.onsuccess=function(){t(i.result)},i.onupgradeneeded=function(e){var r=e.target.result;Sb.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 Cb="__mp_opt_in_out_";function Eb(t,n){mh(!0,t,n)}function Ib(t,n){mh(!1,t,n)}function Ob(t,n){return gh(t,n)==="1"}function vh(t,n){if(kb(n))return D.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=gh(t,n)==="0";return i&&D.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function bt(t){return Ca(t,function(n){return this.get_config(n)})}function St(t){return Ca(t,function(n){return this._get_config(n)})}function hr(t){return Ca(t,function(n){return this._get_config(n)})}function xb(t,n){n=n||{},ba(n).remove(Sa(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function ba(t){return t=t||{},t.persistenceType==="localStorage"?p.localStorage:p.cookie}function Sa(t,n){return n=n||{},(n.persistencePrefix||Cb)+t}function gh(t,n){return ba(n).get(Sa(t,n))}function kb(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 mh(t,n,i){if(!p.isString(n)||!n.length){D.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},ba(i).set(Sa(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 Ca(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=vh(e,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){D.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 Ab=Nt("lock"),yh=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};yh.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){Ab.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:(on(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(on(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var pr=function(t){this.storage=t||E.localStorage};pr.prototype.init=function(){return j.resolve()},pr.prototype.isInitialized=function(){return!0},pr.prototype.setItem=function(t,n){return new j(p.bind(function(i,e){try{this.storage.setItem(t,fr(n))}catch(r){e(r)}i()},this))},pr.prototype.getItem=function(t){return new j(p.bind(function(n,i){var e;try{e=qi(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))},pr.prototype.removeItem=function(t){return new j(p.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var _h=Nt("batch"),He=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new pr,this.lock=new yh(t,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||p.bind(_h.error,_h),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=db(p.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=p.bind(function(i){return this._enqueuePersisted([i])},this)};He.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))},He.prototype.enqueue=function(t,n){var i={id:_a(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),j.resolve(!0))},He.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))},He.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 wh=function(t,n){var i=[];return p.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};He.prototype.removeItemsByID=function(t){var n={};if(p.each(t,function(e){n[e]=!0}),this.memQueue=wh(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=wh(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),on(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 bh=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};He.prototype.updatePayloads=function(t){return this.memQueue=bh(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=bh(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)},He.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))},He.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))},He.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(p.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):j.resolve()};var Rb=600*1e3,sn=Nt("batch"),Ue=function(t,n){this.errorReporter=n.errorReporter,this.queue=new He(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 sn.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:Te.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&&!yb()||f.error==="timeout")){var h=this.flushInterval*2;return f.retryAfter&&(h=parseInt(f.retryAfter,10)*1e3||h),h=Math.min(Rb,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"),sn.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(sn.error.apply(sn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){sn.error(i)}};var Ea=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},Mb=250,an="change",nt="click",Ia="hashchange",$b="input",Sh="load",Ct="mp_locationchange",Ch="popstate",Vi="scrollend",Oa="scroll",Tb="select",ji="submit",Pb="toggle",Eh="visibilitychange",Nb=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Ih=["mp-include"],xa=["mp-no-track"],Oh=xa.concat(["mp-sensitive"]),Lb=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Db={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},Fb={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},Ub={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},xh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],Bb=5,re=Nt("autocapture");function ka(t){for(var n={},i=kh(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function kh(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function zb(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!Mh(t));return t}function Ah(t,n,i,e,r,o){var s={$classes:kh(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(s.$id=a),Ma(t,n,r,o)&&p.each(Lb.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var h=t.getAttribute(f);Hi(h)&&(s["$attr-"+f]=h)}});for(var u=1,c=1,l=t;l=zb(l);)u++,l.tagName===t.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function Wb(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($h(h)&&(h=h.parentNode),jb(h,t)&&Aa(h,t,i,e)&&!Ra(h,t,o,s)){for(var g=[h],v=h;v.parentNode&&!Ye(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(p.each(g,function(C){var x=Ma(C,t,i,e);!l.href&&C.tagName.toLowerCase()==="a"&&(d=C.getAttribute("href"),d=x&&Hi(d)&&d),Ra(C,t,o,s)&&(m=!0),y.push(Ah(C,t,l,u,i,e))},this),!m){var _=L.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:L.body.offsetHeight||0,$pageWidth:L.body.offsetWidth||0},p.each(u,function(C){if(!l[C]&&h.hasAttribute(C)){var x=h.getAttribute(C);Hi(x)&&(f["$el_attr__"+C]=x)}}),a&&(b=Rh(h,t,i,e),b&&b.length&&(f.$el_text=b)),t.type===nt&&(p.each(Nb,function(C){C in t&&(f["$"+C]=t[C])}),c&&(f.$captured_for_heatmap=!0),h=Gb(t)),a){var b=Rh(h,t,i,e);b&&b.length&&(f.$el_text=b)}if(h){if(!Aa(h,t,i,e)||Ra(h,t,o,s))return null;var S=Ah(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 Rh(t,n,i,e){var r="";return Ma(t,n,i,e)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,function(o){$h(o)&&o.textContent&&(r+=p.trim(o.textContent).split(/(\s+)/).filter(Hi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),p.trim(r)}function Gb(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Ye(r,"a")||Ye(r,"button")||Ye(r,"input")||Ye(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Aa(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(s){return re.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){re.critical("Error while checking selector: "+o,s)}}return!1}function Ra(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return re.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){re.critical("Error while checking selector: "+o,a)}}var s=ka(t);for(r=0;r<xa.length;r++)if(s[xa[r]])return!0;return!1}function Mh(t){return t&&t.nodeType===1}function Ye(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function $h(t){return t&&t.nodeType===3}function qb(){try{var t=L.createElement("div");return!!t.matches}catch(n){return!1}}function Vb(){return typeof WeakSet!="undefined"}function jb(t,n){if(!t||Ye(t,"html")||!Mh(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===ji;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===an:n.type===nt;case"select":case"textarea":return n.type===an;default:return n.type===nt}}function Th(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 Ma(t,n,i,e){var r;if(!Aa(t,n,i,e))return!1;for(var o=t;o.parentNode&&!Ye(o,"body");o=o.parentNode){var s=ka(o);for(r=0;r<Oh.length;r++)if(s[Oh[r]])return!1}var a=ka(t);for(r=0;r<Ih.length;r++)if(a[Ih[r]])return!0;if(Ye(t,"input")||Ye(t,"select")||Ye(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!Th(t)}function Hi(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 Ph(t){var n="onscrollend"in E,i=nn(t),e=Vi;if(!n){var r=null,o=100;i=nn(function(){clearTimeout(r),r=setTimeout(t,o)}),e=Oa}return{listener:i,eventType:e}}function Hb(t){for(var n=0;n<xh.length;n++)if(t.hasAttribute(xh[n]))return!0;return!1}function Yb(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return Db[i]}function $a(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||Hb(t)||Yb(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function Nh(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(Fb[n])return!0;if($a(t))return!1;for(var i=t.parentElement,e=0;i&&e<Bb;){if($a(i))return!1;if(i.getRootNode&&i.getRootNode()!==L){var r=i.getRootNode();if(r.host&&$a(r.host))return!1}i=i.parentElement,e++}return!!Ub[n]}function Lh(t){return"composedPath"in t?t.composedPath():[]}function Dh(t){var n=Lh(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var Fh=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Kb="data-rr-is-password",Jb=["password","email","tel","hidden"];function Yi(t){return t?Array.isArray(t)?t:[t]:[]}function Xb(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=Yi(i).join(","),n.input.unmaskingSelector=Yi(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=Yi(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=Yi(s).join(","),a===void 0&&o!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function dr(t,n){return n?!!t.closest(n):!1}function Zb(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(Jb.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(Kb)||Th(t)?!0:n.input.maskAll?!dr(t,n.input.unmaskingSelector):!!(dr(t,n.input.maskingSelector)||dr(t,Fh))}function Qb(t,n){return t?n.text._legacyClassRegex&&$s(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!dr(t,n.text.unmaskingSelector):!!(dr(t,n.text.maskingSelector)||dr(t,Fh)):!1}var vr=Nt("recorder"),eS=E.CompressionStream,tS={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},rS=new Set([N.MouseMove,N.MouseInteraction,N.Scroll,N.ViewportResize,N.Input,N.TouchMove,N.MediaInteraction,N.Drag,N.Selection]);function nS(t){return t.type===V.IncrementalSnapshot&&rS.has(t.data.source)}var be=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||wt,this._onMaxLengthReached=t.onMaxLengthReached||wt,this._onBatchSent=t.onBatchSent||wt,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=en,this.recordMinMs=0;var n=on(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ze(dh),this.batcher=new Ue(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:tS,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Mb,sharedLockTimeoutMS:10*1e3})};be.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},be.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))},be.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},be.prototype.get_config=function(t){return this.getConfig(t)},be.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){vr.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>en&&(this.recordMaxMs=en,vr.critical("record_max_ms cannot be greater than "+en+"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=Xb(this._mixpanel);try{this._stopRecording=this._rrwebRecord({emit:function(o){if(this.idleExpires&&this.idleExpires<o.timestamp){this._onIdleTimeout();return}nS(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(Zb,e),maskTextFn:this._getMaskFn(Qb,e),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[ib({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)},be.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},be.prototype.isRrwebStopped=function(){return this._stopRecording===null},be.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)},be.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}},be.deserialize=function(t,n){var i=new be(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},be.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})})},be.prototype._flushEvents=bt(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:Te.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()),_b(je,rt.vendor,rn)){var h=new Blob([f],{type:"application/json"}).stream(),g=h.pipeThrough(new eS("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)}}),be.prototype.reportError=function(t,n){vr.error.apply(vr.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(i){vr.error(i)}},be.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},be.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>pa?(vr.critical("record_min_ms cannot be greater than "+pa+"ms. Capping value."),pa):t},be.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 it=function(t){this.idb=new ze(wa),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};it.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},it.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},it.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())},it.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 Ea(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):j.resolve(null)},it.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},it.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))},it.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):j.resolve()},it.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 Ea(i)}).map(function(i){var e=be.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 un=Nt("recorder"),ot=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||dt,this.sharedLockStorage=i,this.recordingRegistry=new it({mixpanelInstance:this.mixpanelInstance,errorReporter:un.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};ot.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){un.log("Recording already in progress, skipping startRecording.");return}var n=function(){un.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){un.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=be.deserialize(t.activeSerializedRecording,r):this.activeRecording=new be(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},ot.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))},ot.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},ot.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return j.resolve()},ot.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}):(un.log("No resumable recording found."),null)}.bind(this))},ot.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},ot.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(ot.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E.__mp_recorder=ot;var iS=30,oS=1e3,sS=4,aS=!1;function Uh(){this.clicks=[]}Uh.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||iS,e=n.timeout_ms||oS,r=n.click_count||sS,o=n.interactive_elements_only||aS;if(o){var s=Dh(t);if(!s||Nh(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 gr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}gr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return Dh(t)},gr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=Lh(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}},gr.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){re.critical("Error while observing shadow root",e)}}},gr.prototype.start=function(){if(!this.observedShadowRoots){if(!Vb()){re.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},gr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){re.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var uS=500,cS=[an,$b,ji,Tb,Pb],lS=[Vi],fS=[Ia],Bh={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Ke(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}Ke.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||Nh(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},Ke.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i},Ke.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},Ke.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},Ke.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Ke.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},Ke.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)},Ke.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;cS.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}})}),fS.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),lS.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,Bh)}catch(i){re.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new gr(function(){t.recordChangeEvent()},Bh),this.shadowDOMObserver.start()}catch(i){re.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},Ke.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){re.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){re.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){re.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var zh="autocapture",hS="track_pageview",Wh="full-url",pS="url-with-path-and-query-string",dS="url-with-path",vS="allow_element_callback",Gh="allow_selectors",qh="allow_url_regexes",Vh="block_attrs",jh="block_element_callback",Hh="block_selectors",Yh="block_url_regexes",Kh="capture_extra_attrs",Jh="capture_text_content",Xh="scroll_capture_all",Zh="scroll_depth_percent_checkpoints",Ki="click",Ji="dead_click",Ta="input",Qh="pageview",Xi="rage_click",Pa="scroll",Zi="page_leave",Na="submit",Se={};Se[Gh]=[],Se[qh]=[],Se[Vh]=[],Se[jh]=null,Se[Hh]=[],Se[Yh]=[],Se[Kh]=[],Se[Jh]=!1,Se[Xh]=!1,Se[Zh]=[25,50,75,100],Se[Ki]=!0,Se[Ji]=!0,Se[Ta]=!0,Se[Qh]=Wh,Se[Xi]=!0,Se[Pa]=!0,Se[Zi]=!1,Se[Na]=!0;var cn={$mp_autocapture:!0},ep="$mp_click",tp="$mp_dead_click",gS="$mp_input_change",rp="$mp_rage_click",mS="$mp_scroll",yS="$mp_submit",_S="$mp_page_leave",ye=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};ye.prototype.init=function(){if(!qb()){re.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()},ye.prototype.getFullConfig=function(){var t=this.mp.get_config(zh);return t?p.isObject(t)?p.extend({},Se,t):Se:{}},ye.prototype.getConfig=function(t){return this.getFullConfig()[t]},ye.prototype.currentUrlBlocked=function(){var t,n=p.info.currentUrl(),i=this.getConfig(qh)||[];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 re.critical("Error while checking block URL regex: "+r,s),!0}}if(!e)return!0}var o=this.getConfig(Yh)||[];if(!o||!o.length)return!1;for(t=0;t<o.length;t++)try{if(n.match(o[t]))return!0}catch(s){return re.critical("Error while checking block URL regex: "+o[t],s),!0}return!1},ye.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(zh)?this.getConfig(Qh):this.mp.get_config(hS)},ye.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===ep&&!this.getConfig(Ki)||n===rp&&!this._getClickTrackingConfig(Xi)||n===tp&&!this._getClickTrackingConfig(Ji)),e=Wb(t,{allowElementCallback:this.getConfig(vS),allowSelectors:this.getConfig(Gh),blockAttrs:this.getConfig(Vh),blockElementCallback:this.getConfig(jh),blockSelectors:this.getConfig(Hh),captureExtraAttrs:this.getConfig(Kh),captureTextContent:this.getConfig(Jh),capturedForHeatMap:i});e&&(p.extend(e,cn),this.mp.track(n,e))}},ye.prototype.initPageListeners=function(){if(E.removeEventListener(Ch,this.listenerPopstate),E.removeEventListener(Ia,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(Zi)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){E.dispatchEvent(new Event(Ct))},this.listenerHashchange=function(){E.dispatchEvent(new Event(Ct))},E.addEventListener(Ch,this.listenerPopstate),E.addEventListener(Ia,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(Ct))});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(Ct))})}},ye.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},ye.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(Zi)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(L.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(L.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},cn);this.mp.track(_S,s,{transport:"sendBeacon"})}},ye.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(Oa,this.listenerScrollDepth),E.removeEventListener(Vi,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){re.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(L.documentElement.clientHeight,E.innerHeight||0);var t=function(){if(!this.currentUrlBlocked()){var i=Math.max(L.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=L.body.scrollHeight}}.bind(this),n=Ph(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}},ye.prototype.initClickTracking=function(){E.removeEventListener(nt,this.listenerClick),!(!this.getConfig(Ki)&&!this.mp.get_config("record_heatmap_data"))&&(re.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(Ki)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,ep)}.bind(this),E.addEventListener(nt,this.listenerClick))},ye.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(Ji);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}re.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Ke(function(n){this.trackDomEvent(n,tp)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(Ji);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=uS),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(nt,this.listenerDeadClick))},ye.prototype.initInputTracking=function(){E.removeEventListener(an,this.listenerChange),this.getConfig(Ta)&&(re.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(Ta)&&this.trackDomEvent(t,gS)}.bind(this),E.addEventListener(an,this.listenerChange))},ye.prototype.initPageviewTracking=function(){if(E.removeEventListener(Ct,this.listenerLocationchange),!!this.pageviewTrackingConfig()){re.log("Initializing pageview tracking");var t="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(cn)),n&&(t=p.info.currentUrl()),this.listenerLocationchange=nn(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===Wh?e=i!==t:o===pS?e=i.split("#")[0]!==t.split("#")[0]:o===dS&&(e=r),e){var s=this.mp.track_pageview(cn);s&&(t=i),r&&(this.lastScrollCheckpoint=0,re.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),E.addEventListener(Ct,this.listenerLocationchange)}},ye.prototype.initRageClickTracking=function(){E.removeEventListener(nt,this.listenerRageClick);var t=this._getClickTrackingConfig(Xi);!t&&!this.mp.get_config("record_heatmap_data")||(re.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Uh),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(Xi);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,rp)}.bind(this),E.addEventListener(nt,this.listenerRageClick))},ye.prototype.initScrollTracking=function(){if(E.removeEventListener(Vi,this.listenerScroll),E.removeEventListener(Oa,this.listenerScroll),!!this.getConfig(Pa)){re.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(Pa)&&!this.currentUrlBlocked()){var i=this.getConfig(Xh),e=(this.getConfig(Zh)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,o=p.extend({$scroll_top:r},cn);try{var s=L.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){re.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(mS,o)}}.bind(this),n=Ph(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}},ye.prototype.initSubmitTracking=function(){E.removeEventListener(ji,this.listenerSubmit),this.getConfig(Na)&&(re.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(Na)&&this.trackDomEvent(t,yS)}.bind(this),E.addEventListener(ji,this.listenerSubmit))},ye.prototype.initPageLeaveTracking=function(){if(L.removeEventListener(Eh,this.listenerPageLeaveVisibilitychange),E.removeEventListener(Ct,this.listenerPageLeaveLocationchange),E.removeEventListener(Sh,this.listenerPageLoad),!(!this.getConfig(Zi)&&!this.mp.get_config("record_heatmap_data"))){re.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=p.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=L.body.scrollHeight}.bind(this),E.addEventListener(Sh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=nn(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(L.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=L.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),E.addEventListener(Ct,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){L.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}.bind(this),L.addEventListener(Eh,this.listenerPageLeaveVisibilitychange)}},ye.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(nt,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},ah(ye);var ke=Nt("flags"),Qi="flags",eo="context",La={};La[eo]={};var W=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};W.prototype.init=function(){if(!this.minApisSupported()){ke.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},W.prototype.getFullConfig=function(){var t=this.getMpConfig(Qi);return t?p.isObject(t)?p.extend({},La,t):La:{}},W.prototype.getConfig=function(t){return this.getFullConfig()[t]},W.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Qi)},W.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return ke.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(Qi);p.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(eo);return i[eo]=p.extend({},e,t),this.setMpConfig(Qi,i),this.fetchFlags()},W.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ke.error("Feature Flags not enabled"),!!this.flags},W.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),i=vb();ke.log("Fetching flags for distinct ID: "+t);var e=p.extend({distinct_id:t,device_id:n},this.getConfig(eo)),r=new URLSearchParams;r.set("context",JSON.stringify(e)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",Te.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;p.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(),ke.error(a)}.bind(this))}.bind(this)).catch(function(s){this.markFetchComplete(),ke.error(s)}.bind(this)),this.fetchPromise},W.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){ke.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},W.prototype.getVariant=function(t,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(t,n)}.bind(this)).catch(function(i){return ke.error(i),n}):new Promise(function(i){ke.critical("Feature Flags not initialized"),i(n)})},W.prototype.getVariantSync=function(t,n){if(!this.areFlagsReady())return ke.log("Flags not loaded yet"),n;var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(ke.log('No flag found: "'+t+'"'),n)},W.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return ke.error(i),n})},W.prototype.getFeatureData=function(t,n){return ke.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)},W.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},W.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then(function(){return this.isEnabledSync(t,n)}.bind(this)).catch(function(i){return ke.error(i),n})},W.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(ke.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},W.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)}},W.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},ah(W),W.prototype.are_flags_ready=W.prototype.areFlagsReady,W.prototype.get_variant=W.prototype.getVariant,W.prototype.get_variant_sync=W.prototype.getVariantSync,W.prototype.get_variant_value=W.prototype.getVariantValue,W.prototype.get_variant_value_sync=W.prototype.getVariantValueSync,W.prototype.is_enabled=W.prototype.isEnabled,W.prototype.is_enabled_sync=W.prototype.isEnabledSync,W.prototype.update_context=W.prototype.updateContext,W.prototype.get_feature_data=W.prototype.getFeatureData;var st=function(){};st.prototype.create_properties=function(){},st.prototype.event_handler=function(){},st.prototype.after_track_handler=function(){},st.prototype.init=function(t){return this.mp=t,this},st.prototype.track=function(t,n,i,e){var r=this,o=p.dom_query(t);if(o.length===0){D.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},st.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))}},st.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=p.extend({},t),i};var mr=function(){this.override_event="click"};p.inherit(mr,st),mr.prototype.create_properties=function(t,n){var i=mr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},mr.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()},mr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var to=function(){this.override_event="submit"};p.inherit(to,st),to.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()},to.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var Et="$set",yr="$set_once",We="$unset",Lt="$add",Je="$append",Dt="$union",at="$remove",wS="$delete",np={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[Et]=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[yr]=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[Dt]=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[Je]=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[at]=e,i},delete_action:function(){var t={};return t[wS]="",t}},ae=function(){};p.extend(ae.prototype,np),ae.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i},ae.prototype.set=hr(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=hr(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=hr(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),ae.prototype.union=hr(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=hr(function(t){var n=this.delete_action();return this._send_request(n,t)}),ae.prototype.remove=hr(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 F=function(){};p.extend(F.prototype,np),F.prototype._init=function(t){this._mixpanel=t},F.prototype.set=St(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[Et]=p.extend({},p.info.people_properties(),e[Et]),this._send_request(e,i)}),F.prototype.set_once=St(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)}),F.prototype.unset=St(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),F.prototype.increment=St(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))){D.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[Lt]=r,this._send_request(e,i)}),F.prototype.append=St(function(t,n,i){p.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)}),F.prototype.remove=St(function(t,n,i){p.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)}),F.prototype.union=St(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),F.prototype.track_charge=St(function(){D.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),F.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},F.prototype.delete_user=function(){if(!this._identify_called()){D.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)},F.prototype.toString=function(){return this._mixpanel.toString()+".people"},F.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))},F.prototype._get_config=function(t){return this._mixpanel.get_config(t)},F.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},F.prototype._enqueue=function(t){Et in t?this._mixpanel.persistence._add_to_people_queue(Et,t):yr in t?this._mixpanel.persistence._add_to_people_queue(yr,t):We in t?this._mixpanel.persistence._add_to_people_queue(We,t):Lt in t?this._mixpanel.persistence._add_to_people_queue(Lt,t):Je in t?this._mixpanel.persistence._add_to_people_queue(Je,t):at in t?this._mixpanel.persistence._add_to_people_queue(at,t):Dt in t?this._mixpanel.persistence._add_to_people_queue(Dt,t):D.error("Invalid call to _enqueue():",t)},F.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)}))},F.prototype._flush=function(t,n,i,e,r,o,s){var a=this;this._flush_one_queue(Et,this.set,t),this._flush_one_queue(yr,this.set_once,e),this._flush_one_queue(We,this.unset,o,function(d){return p.keys(d)}),this._flush_one_queue(Lt,this.increment,n),this._flush_one_queue(Dt,this.union,r);var u=this._mixpanel.persistence.load_queue(Je);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(Je,c),p.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(Je),c=u.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(c)||a.append(c,l);var h=this._mixpanel.persistence.load_queue(at);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(at,g),p.isUndefined(s)||s(d,m)},y=h.length-1;y>=0;y--)h=this._mixpanel.persistence.load_queue(at),g=h.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(g)||a.remove(g,v)},F.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},F.prototype.set=F.prototype.set,F.prototype.set_once=F.prototype.set_once,F.prototype.unset=F.prototype.unset,F.prototype.increment=F.prototype.increment,F.prototype.append=F.prototype.append,F.prototype.remove=F.prototype.remove,F.prototype.union=F.prototype.union,F.prototype.track_charge=F.prototype.track_charge,F.prototype.clear_charges=F.prototype.clear_charges,F.prototype.delete_user=F.prototype.delete_user,F.prototype.toString=F.prototype.toString;var Da="__mps",Fa="__mpso",Ua="__mpus",Ba="__mpa",za="__mpap",Wa="__mpr",Ga="__mpu",ip="$people_distinct_id",ro="__alias",ln="__timers",bS=[Da,Fa,Ua,Ba,za,Wa,Ga,ip,ro,ln],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"&&(D.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(bS,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,fr(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(Et),o=this._get_or_create_queue(yr),s=this._get_or_create_queue(We),a=this._get_or_create_queue(Lt),u=this._get_or_create_queue(Dt),c=this._get_or_create_queue(at,[]),l=this._get_or_create_queue(Je,[]);i===Da?(p.extend(r,e),this._pop_from_people_queue(Lt,e),this._pop_from_people_queue(Dt,e),this._pop_from_people_queue(We,e)):i===Fa?(p.each(e,function(f,h){h in o||(o[h]=f)}),this._pop_from_people_queue(We,e)):i===Ua?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===Ba?(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===Ga?(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===Wa?(c.push(e),this._pop_from_people_queue(Je,e)):i===za&&(l.push(e),this._pop_from_people_queue(We,e)),D.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),D.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===Je||t===at?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===Et)return Da;if(t===yr)return Fa;if(t===We)return Ua;if(t===Lt)return Ba;if(t===Je)return za;if(t===at)return Wa;if(t===Dt)return Ga;D.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(ln)||{};i[t]=n,this.props[ln]=i,this.save()},z.prototype.remove_event_timer=function(t){var n=this.load_prop(ln)||{},i=n[t];return p.isUndefined(i)||(delete this.props[ln][t],this.save()),i};var no,op=function(t,n){throw new Error(t+" not available in this build.")},_e,sp=0,ap=1,Pe="mixpanel",up="base64",SS="json",qa="$device:",CS="strict",ES="fallback",IS="disabled",_r=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,cp=!_r&&je.indexOf("MSIE")===-1&&je.indexOf("Mozilla")===-1,io=null;rt.sendBeacon&&(io=function(){return rt.sendBeacon.apply(rt,arguments)});var lp={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},Va={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:lp,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:up,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:wt,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:wt,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:en,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js",remote_settings_mode:IS},fp=!1,w=function(){},oo=function(t,n,i){var e,r=i===Pe?_e:_e[i];if(r&&no===sp)e=r;else{if(r&&!p.isArray(r)){D.error("You have already initialized "+i);return}e=new w}if(e._cached_groups={},e._init(t,n,i),e.people=new F,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)}Te.DEBUG=Te.DEBUG||e.get_config("debug");var u=no===sp?"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===Pe){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=oo(t,n,i);return _e[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||Va.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=SS)}if(this.hooks={},this.set_config(p.extend({},Va,e,n,{name:i,token:t,callback_fn:(i===Pe?i:Pe+"."+i)+"._jsc"})),this._jsc=wt,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)||!_r)this._batch_requests=!1,D.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),p.each(this.get_batcher_configs(),function(u){D.log("Clearing batch queue "+u.queue_key),p.localStorage.remove(u.queue_key)});else if(this.init_batchers(),io&&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(){L.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:qa+s,$device_id:s},""),this.flags=new W({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)}),this.flags.init(),this.flags=this.flags,this.autocapture=new ye(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");a===CS||a===ES?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"))D.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 D.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var t=new ze(wa),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(Ea(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=bt(function(t){if(!E.MutationObserver){D.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.__mp_recorder(this),this._recorder.resumeRecording(e)},this);p.isUndefined(E.__mp_recorder)?op(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(L.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(L.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(!fp)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(_r){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(cp)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||{}),_r||(i.method="GET");var a=i.method==="POST",u=io&&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),_r||(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=L.createElement("img");f.src=t,L.body.appendChild(f)}else if(u){try{r=io(t,s)}catch(m){l.report_error(m),r=!1}try{e&&e(r?1:0)}catch(m){l.report_error(m)}}else if(_r)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=L.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=t;var d=L.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 D.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:Te.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){D.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){Va.hasOwnProperty(v)&&(h[v]=g)}),p.isEmptyObject(h)?(D.critical("No valid config keys found in remote settings."),n()):s.set_config(h)}else n()}).catch(function(l){clearTimeout(u),D.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=fr(t);return this.get_config("api_payload_format")===up&&(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||wt;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?(D.log("MIXPANEL REQUEST:"),D.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=bt(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=wt),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),r}),w.prototype.set_group=bt(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=bt(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=bt(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=bt(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=bt(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,mr,arguments)},w.prototype.track_forms=function(){return this._track_dom.call(this,to,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 OS={persistent:!0},ja=function(t){var n;return p.isObject(t)?n=t:p.isUndefined(t)?n={}:n={days:t},p.extend({},OS,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(qa)===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(ro)&&(this.unregister(ro),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:qa+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(ip))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(ro,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),Te.DEBUG=Te.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])||D.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else D.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=_t.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!==Pe&&(t=Pe+"."+t),t},w.prototype._event_is_disabled=function(t){return p.isBlockedUA(je)||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(Eb,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(Ib,t),this._gdpr_update_persistence(t)},w.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(Ob,t)},w.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(vh,t)},w.prototype.clear_opt_in_out_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(xb,t),this._gdpr_update_persistence(t)},w.prototype.report_error=function(t,n){D.error.apply(D.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){D.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):D.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=lp,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 It={},xS=function(){p.each(It,function(t,n){n!==Pe&&(_e[n]=t)}),_e._=p},kS=function(){_e.init=function(t,n,i){if(i)return _e[i]||(_e[i]=It[i]=oo(t,n,i),_e[i]._loaded()),_e[i];var e=_e;It[Pe]?e=It[Pe]:t&&(e=oo(t,n,Pe),e._loaded(),It[Pe]=e),_e=e,no===ap&&(E[Pe]=_e),xS()}},AS=function(){function t(){t.done||(t.done=!0,fp=!0,cp=!1,p.each(It,function(e){e._dom_loaded()}))}function n(){try{L.documentElement.doScroll("left")}catch(e){setTimeout(n,1);return}t()}if(L.addEventListener)L.readyState==="complete"?t():L.addEventListener("DOMContentLoaded",t,!1);else if(L.attachEvent){L.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch(e){}L.documentElement.doScroll&&i&&n()}p.register_event(E,"load",t,!0)};function RS(t){if(op=t,no=ap,_e=E[Pe],p.isUndefined(_e)){D.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(_e.__loaded||_e.config&&_e.persistence){D.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=_e.__SV||0;if(n<1.1){D.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}p.each(_e._i,function(i){i&&p.isArray(i)&&(It[i[i.length-1]]=oo.apply(this,i))}),kS(),_e.init(),p.each(It,function(i){i._loaded()}),AS()}function MS(t,n){n()}RS(MS)})();
|
|
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)})();
|