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