rozmova-analytics 1.1.46 → 1.1.48

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/dist/index.cjs ADDED
@@ -0,0 +1,160 @@
1
+ "use strict";var Og=Object.create;var ii=Object.defineProperty;var xg=Object.getOwnPropertyDescriptor;var Rg=Object.getOwnPropertyNames;var Ag=Object.getPrototypeOf,Mg=Object.prototype.hasOwnProperty;var Tg=(t,n)=>{for(var i in n)ii(t,i,{get:n[i],enumerable:!0})},Dc=(t,n,i,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of Rg(n))!Mg.call(t,r)&&r!==i&&ii(t,r,{get:()=>n[r],enumerable:!(e=xg(n,r))||e.enumerable});return t};var Pg=(t,n,i)=>(i=t!=null?Og(Ag(t)):{},Dc(n||!t||!t.__esModule?ii(i,"default",{value:t,enumerable:!0}):i,t)),$g=t=>Dc(ii({},"__esModule",{value:!0}),t);var GI={};Tg(GI,{default:()=>jI});module.exports=$g(GI);function oi(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)t[e]=i[e]}return t}var Lg={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function hs(t,n){function i(r,o,s){if(!(typeof document>"u")){s=oi({},n,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in s)s[u]&&(a+="; "+u,s[u]!==!0&&(a+="="+s[u].split(";")[0]));return document.cookie=r+"="+t.write(o,r)+a}}function e(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var u=o[a].split("="),c=u.slice(1).join("=");try{var l=decodeURIComponent(u[0]);if(s[l]=t.read(c,l),r===l)break}catch{}}return r?s[r]:s}}return Object.create({set:i,get:e,remove:function(r,o){i(r,"",oi({},o,{expires:-1}))},withAttributes:function(r){return hs(this.converter,oi({},this.attributes,r))},withConverter:function(r){return hs(oi({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}var Te=hs(Lg,{path:"/"});var E;typeof window>"u"?(ps={hostname:""},E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:ps,referrer:""},screen:{width:0,height:0},location:ps,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}):E=window;var ps,nt={DEBUG:!1,LIB_VERSION:"2.78.0"},pt="__mp_targeting",Gs="__mp_recorder",Ng="__MP_RECORDER_FILENAME__",Pf="__MP_TARGETING_FILENAME__";function Fc(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 Uc(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 $o(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var o=t.apply(n,i);function s(u){Uc(o,e,r,s,a,"next",u)}function a(u){Uc(o,e,r,s,a,"throw",u)}s(void 0)})}}function qi(t,n,i){return $f()?qi=Reflect.construct:qi=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&In(c,s.prototype),c},qi.apply(null,arguments)}function Dg(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 be(t,n,i){return n&&Dg(t.prototype,n),t}function J(){return J=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},J.apply(this,arguments)}function Ws(t){return Ws=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},Ws(t)}function Ee(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&&In(t,n)}function N(t,n){return n!=null&&typeof Symbol<"u"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Fg(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function gr(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 In(t,n){return In=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},In(t,n)}function D(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function Ug(t,n){if(t){if(typeof t=="string")return Fc(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 Fc(t,n)}}function kn(t){var n=typeof Map=="function"?new Map:void 0;return kn=function(e){if(e===null||!Fg(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n<"u"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return qi(e,arguments,Ws(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),In(r,e)},kn(t)}function $f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($f=function(){return!!t})()}function O(t,n){var i=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=Ug(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 mr(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 ou(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 Bg=Object.defineProperty,zg=function(t,n,i){return n in t?Bg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},R=function(t,n,i){return zg(t,(typeof n>"u"?"undefined":D(n))!=="symbol"?n+"":n,i)},Bc,qg=Object.defineProperty,jg=function(t,n,i){return n in t?qg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},zc=function(t,n,i){return jg(t,(typeof n>"u"?"undefined":D(n))!=="symbol"?n+"":n,i)},ze=(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})(ze||{}),qc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},jc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},si={},Gg=function(){return!!globalThis.Zone};function su(t){if(si[t])return si[t];var n=globalThis[t],i=n.prototype,e=t in qc?qc[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 jc?jc[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&&!Gg())return si[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?si[t]=c:i}catch{return i}}var ds={};function Qt(t,n,i){var e,r=t+"."+String(i);if(ds[r])return ds[r].call(n);var o=su(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(ds[r]=s,s.call(n)):n[i]}var vs={};function Lf(t,n,i){var e=t+"."+String(i);if(vs[e])return vs[e].bind(n);var r=su(t),o=r[i];return typeof o!="function"?n[i]:(vs[e]=o,o.bind(n))}function Wg(t){return Qt("Node",t,"childNodes")}function Hg(t){return Qt("Node",t,"parentNode")}function Vg(t){return Qt("Node",t,"parentElement")}function Yg(t){return Qt("Node",t,"textContent")}function Kg(t,n){return Lf("Node",t,"contains")(n)}function Jg(t){return Lf("Node",t,"getRootNode")()}function Xg(t){return!t||!("host"in t)?null:Qt("ShadowRoot",t,"host")}function Zg(t){return t.styleSheets}function Qg(t){return!t||!("shadowRoot"in t)?null:Qt("Element",t,"shadowRoot")}function em(t,n){return Qt("Element",t,"querySelector")(n)}function tm(t,n){return Qt("Element",t,"querySelectorAll")(n)}function rm(){return su("MutationObserver").constructor}function nm(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{return function(){}}}var Ve={childNodes:Wg,parentNode:Hg,parentElement:Vg,textContent:Yg,contains:Kg,getRootNode:Jg,host:Xg,styleSheets:Zg,shadowRoot:Qg,querySelector:em,querySelectorAll:tm,mutationObserver:rm,patch:nm};function Nf(t){return t.nodeType===t.ELEMENT_NODE}function yn(t){var n=t&&"host"in t&&"mode"in t&&Ve.host(t)||null;return!!(n&&"shadowRoot"in n&&Ve.shadowRoot(n)===t)}function _n(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function im(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 om(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 Hs(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 Df(r,i)}).join("");return im(e)}catch{return null}}function Df(t,n){if(am(t)){var i;try{i=Hs(t.styleSheet)||om(t)}catch{i=t.cssText}return t.styleSheet.href?eo(i,t.styleSheet.href):i}else{var e=t.cssText;return um(t)&&t.selectorText.includes(":")&&(e=sm(e)),n?eo(e,n):e}}function sm(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function am(t){return"styleSheet"in t}function um(t){return"selectorText"in t}var Ff=(function(){function t(){zc(this,"idNodeMap",new Map),zc(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??-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 cm(){return new Ff}function Zi(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,o=t.value,s=t.maskInputFn,a=o||"",u=r&&yr(r);return(i[e.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function yr(t){return t.toLowerCase()}var Gc="__rrweb_original__";function lm(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=Gc in o?o[Gc]: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 Qi(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?yr(n):null}function Uf(t,n){var i;try{i=new URL(t,n??window.location.href)}catch{return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),o;return(o=r?.[1])!=null?o:null}function fm(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var hm=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pm=/^(?:[a-z+]+:)?\/\//i,dm=/^www\..*/i,vm=/^(data:)([^,]*),(.*)/i;function eo(t,n){return(t||"").replace(hm,function(i,e,r,o,s,a){var u=r||s||a,c=e||o||"";if(!u)return i;if(pm.test(u)||dm.test(u)||vm.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(fm(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var h=O(f),g;!(g=h()).done;){var d=g.value;d!=="."&&(d===".."?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function ai(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function gm(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=ai(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=ai(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),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;f=l+1}else f===c.length-1&&(d=s.indexOf(h));if(g.length>=2&&f>l){var m=e[u-1].textContent;if(m&&typeof m=="string"){var v=ai(m).length;d=s.indexOf(h,v)}d===-1&&(d=g[0].length)}if(d!==-1){for(var y=Math.floor(d/a);y>0&&y<t.length;){if(o+=1,o>50*e.length)return r.push(t),r;var _=ai(t.substring(0,y),i);if(_.length===d){r.push(t.substring(0,y)),t=t.substring(y),s=s.substring(d);break}else _.length<d?y+=Math.max(1,Math.floor((d-_.length)/a)):y-=Math.max(1,Math.floor((_.length-d)*a))}break}}}}return r.push(t),r}function mm(t,n){return gm(t,n).join("/* rr_split */")}var ym=1,_m=new RegExp("[^a-z0-9-_:]"),On=-2;function Bf(){return ym++}function wm(t){if(N(t,HTMLFormElement))return"form";var n=yr(t.tagName);return _m.test(n)?"div":n}var Ar,Wc,bm=/^[^ \t\n\r\u000c]+/,Sm=/^[, \t\n\r\u000c]+/;function Cm(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(Sm),!(i>=n.length);){var o=e(bm);if(o.slice(-1)===",")o=Lr(t,o.substring(0,o.length-1)),r.push(o);else{var s="";o=Lr(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 Hc=new WeakMap;function Lr(t,n){return!n||n.trim()===""?n:au(t,n)}function Em(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function au(t,n){var i=Hc.get(t);if(i||(i=t.createElement("a"),Hc.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function zf(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")?Lr(t,e):i==="srcset"?Cm(t,e):i==="style"?eo(e,au(t)):n==="object"&&i==="data"?Lr(t,e):e)}function qf(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function Im(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{}return!1}function to(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?to(Ve.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?to(Ve.parentNode(t),n,i):!1}function jf(t,n,i,e){var r;if(Nf(t)){if(r=t,!Ve.childNodes(r).length)return!1}else{if(Ve.parentElement(t)===null)return!1;r=Ve.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(to(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch{}return!1}function km(t,n,i){var e=t.contentWindow;if(e){var r=!1,o;try{o=e.document.readyState}catch{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 Om(t,n,i){var e=!1,r;try{r=t.sheet}catch{return}if(!r){var o=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(o),e=!0,n()})}}function xm(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,d=n.inlineImages,m=n.recordCanvas,v=n.keepIframeSrcFn,y=n.newlyAddedElement,_=y===void 0?!1:y,w=n.cssCaptured,b=w===void 0?!1:w,C=Rm(i,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:ze.Document,childNodes:[],compatMode:t.compatMode}:{type:ze.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:ze.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:C};case t.ELEMENT_NODE:return Mm(t,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:d,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:_,rootId:C});case t.TEXT_NODE:return Am(t,{doc:i,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:b});case t.CDATA_SECTION_NODE:return{type:ze.CDATA,textContent:"",rootId:C};case t.COMMENT_NODE:return{type:ze.Comment,textContent:Ve.textContent(t)||"",rootId:C};default:return!1}}function Rm(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function Am(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=Ve.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=Ve.textContent(t),c&&u&&(u=eo(u,au(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,Ve.parentElement(t)):u.replace(/[\S]/g,"*")),{type:ze.Text,textContent:u||"",rootId:r}}function Mm(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,d=n.newlyAddedElement,m=d===void 0?!1:d,v=n.rootId,y=Im(t,e,r),_=wm(t),w={},b=t.attributes.length,C=0;C<b;C++){var k=t.attributes[C];qf(_,k.name,k.value)||(w[k.name]=zf(i,_,yr(k.name),k.value))}if(_==="link"&&o){var x=Array.from(i.styleSheets).find(function(Ge){return Ge.href===t.href}),A=null;x&&(A=Hs(x)),A&&(delete w.rel,delete w.href,w._cssText=A)}if(_==="style"&&t.sheet){var P=Hs(t.sheet);P&&(t.childNodes.length>1&&(P=mm(P,t)),w._cssText=P)}if(_==="input"||_==="textarea"||_==="select"){var q=t.value,ee=t.checked;w.type!=="radio"&&w.type!=="checkbox"&&w.type!=="submit"&&w.type!=="button"&&q?w.value=Zi({element:t,type:Qi(t),tagName:_,value:q,maskInputOptions:a,maskInputFn:u}):ee&&(w.checked=ee)}if(_==="option"&&(t.selected&&!a.select?w.selected=!0:delete w.selected),_==="dialog"&&t.open&&(w.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&h){if(t.__context==="2d")lm(t)||(w.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var $=t.toDataURL(l.type,l.quality),U=i.createElement("canvas");U.width=t.width,U.height=t.height;var K=U.toDataURL(l.type,l.quality);$!==K&&(w.rr_dataURL=$)}}if(_==="img"&&f){Ar||(Ar=i.createElement("canvas"),Wc=Ar.getContext("2d"));var B=t,Ae=B.currentSrc||B.getAttribute("src")||"<unknown-src>",ie=B.crossOrigin,se=function(){B.removeEventListener("load",se);try{Ar.width=B.naturalWidth,Ar.height=B.naturalHeight,Wc.drawImage(B,0,0),w.rr_dataURL=Ar.toDataURL(l.type,l.quality)}catch(Ge){if(B.crossOrigin!=="anonymous"){B.crossOrigin="anonymous",B.complete&&B.naturalWidth!==0?se():B.addEventListener("load",se);return}else console.warn("Cannot inline img src="+Ae+"! Error: "+Ge)}B.crossOrigin==="anonymous"&&(ie?w.crossOrigin=ie:B.removeAttribute("crossorigin"))};B.complete&&B.naturalWidth!==0?se():B.addEventListener("load",se)}if(_==="audio"||_==="video"){var Z=w;Z.rr_mediaState=t.paused?"paused":"played",Z.rr_mediaCurrentTime=t.currentTime,Z.rr_mediaPlaybackRate=t.playbackRate,Z.rr_mediaMuted=t.muted,Z.rr_mediaLoop=t.loop,Z.rr_mediaVolume=t.volume}if(m||(t.scrollLeft&&(w.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(w.rr_scrollTop=t.scrollTop)),y){var he=t.getBoundingClientRect(),je=he.width,Se=he.height;w={class:w.class,rr_width:""+je+"px",rr_height:""+Se+"px"}}_==="iframe"&&!g(w.src)&&(t.contentDocument||(w.rr_src=w.src),delete w.src);var yt;try{customElements.get(_)&&(yt=!0)}catch{}return{type:ze.Element,tagName:_,attributes:w,childNodes:[],isSVG:Em(t)||void 0,needBlock:y,rootId:v,isCustom:yt}}function ve(t){return t==null?"":t.toLowerCase()}function Tm(t,n){if(n.comment&&t.type===ze.Comment)return!0;if(t.type===ze.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"&&Uf(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(ve(t.attributes.name).match(/^msapplication-tile(image|color)$/)||ve(t.attributes.name)==="application-name"||ve(t.attributes.rel)==="icon"||ve(t.attributes.rel)==="apple-touch-icon"||ve(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&ve(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ve(t.attributes.property).match(/^(og|twitter|fb):/)||ve(t.attributes.name).match(/^(og|twitter):/)||ve(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ve(t.attributes.name)==="robots"||ve(t.attributes.name)==="googlebot"||ve(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ve(t.attributes.name)==="author"||ve(t.attributes.name)==="generator"||ve(t.attributes.name)==="framework"||ve(t.attributes.name)==="publisher"||ve(t.attributes.name)==="progid"||ve(t.attributes.property).match(/^article:/)||ve(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ve(t.attributes.name)==="google-site-verification"||ve(t.attributes.name)==="yandex-verification"||ve(t.attributes.name)==="csrf-token"||ve(t.attributes.name)==="p:domain_verify"||ve(t.attributes.name)==="verify-v1"||ve(t.attributes.name)==="verification"||ve(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Nr(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,d=n.maskTextFn,m=n.maskInputFn,v=n.slimDOMOptions,y=n.dataURLOptions,_=y===void 0?{}:y,w=n.inlineImages,b=w===void 0?!1:w,C=n.recordCanvas,k=C===void 0?!1:C,x=n.onSerialize,A=n.onIframeLoad,P=n.iframeLoadTimeout,q=P===void 0?5e3:P,ee=n.onStylesheetLoad,$=n.stylesheetLoadTimeout,U=$===void 0?5e3:$,K=n.keepIframeSrcFn,B=K===void 0?function(){return!1}:K,Ae=n.newlyAddedElement,ie=Ae===void 0?!1:Ae,se=n.cssCaptured,Z=se===void 0?!1:se,he=n.needsMask,je=n.preserveWhiteSpace,Se=je===void 0?!0:je;if(!he){var yt=he===void 0;he=jf(t,s,a,yt)}var Ge=xm(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:he,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:m,dataURLOptions:_,inlineImages:b,recordCanvas:k,keepIframeSrcFn:B,newlyAddedElement:ie,cssCaptured:Z});if(!Ge)return console.warn(t,"not serialized"),null;var _t;e.hasNode(t)?_t=e.getId(t):Tm(Ge,v)||!Se&&Ge.type===ze.Text&&!Ge.textContent.replace(/^\s+|\s+$/gm,"").length?_t=On:_t=Bf();var z=Object.assign(Ge,{id:_t});if(e.add(t,z),_t===On)return null;x&&x(t);var Fe=!c;if(z.type===ze.Element){Fe=Fe&&!z.needBlock,delete z.needBlock;var le=Ve.shadowRoot(t);le&&_n(le)&&(z.isShadowHost=!0)}if((z.type===ze.Document||z.type===ze.Element)&&Fe){v.headWhitespace&&z.type===ze.Element&&z.tagName==="head"&&(Se=!1);var xe={doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:he,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:m,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:k,preserveWhiteSpace:Se,onSerialize:x,onIframeLoad:A,iframeLoadTimeout:q,onStylesheetLoad:ee,stylesheetLoadTimeout:U,keepIframeSrcFn:B,cssCaptured:!1};if(!(z.type===ze.Element&&z.tagName==="textarea"&&z.attributes.value!==void 0)){z.type===ze.Element&&z.attributes._cssText!==void 0&&typeof z.attributes._cssText=="string"&&(xe.cssCaptured=!0);for(var ot=O(Array.from(Ve.childNodes(t))),et;!(et=ot()).done;){var wt=et.value,ft=Nr(wt,xe);ft&&z.childNodes.push(ft)}}var Ke=null;if(Nf(t)&&(Ke=Ve.shadowRoot(t)))for(var tt=O(Array.from(Ve.childNodes(Ke))),We;!(We=tt()).done;){var bt=We.value,Lt=Nr(bt,xe);Lt&&(_n(Ke)&&(Lt.isShadow=!0),z.childNodes.push(Lt))}}var it=Ve.parentNode(t);return it&&yn(it)&&_n(it)&&(z.isShadow=!0),z.type===ze.Element&&z.tagName==="iframe"&&km(t,function(){var st=t.contentDocument;if(st&&A){var Rr=Nr(st,{doc:st,mirror:e,blockClass:r,blockSelector:o,needsMask:he,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:m,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:k,preserveWhiteSpace:Se,onSerialize:x,onIframeLoad:A,iframeLoadTimeout:q,onStylesheetLoad:ee,stylesheetLoadTimeout:U,keepIframeSrcFn:B});Rr&&A(t,Rr)}},q),z.type===ze.Element&&z.tagName==="link"&&typeof z.attributes.rel=="string"&&(z.attributes.rel==="stylesheet"||z.attributes.rel==="preload"&&typeof z.attributes.href=="string"&&Uf(z.attributes.href)==="css")&&Om(t,function(){if(ee){var st=Nr(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:he,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:m,slimDOMOptions:v,dataURLOptions:_,inlineImages:b,recordCanvas:k,preserveWhiteSpace:Se,onSerialize:x,onIframeLoad:A,iframeLoadTimeout:q,onStylesheetLoad:ee,stylesheetLoadTimeout:U,keepIframeSrcFn:B});st&&ee(t,st)}},U),z}function Pm(t,n){var i=n||{},e=i.mirror,r=e===void 0?new Ff: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,d=g===void 0?!0:g,m=i.inlineImages,v=m===void 0?!1:m,y=i.recordCanvas,_=y===void 0?!1:y,w=i.maskAllInputs,b=w===void 0?!1:w,C=i.maskTextFn,k=i.maskInputFn,x=i.slimDOM,A=x===void 0?!1:x,P=i.dataURLOptions,q=i.preserveWhiteSpace,ee=i.onSerialize,$=i.onIframeLoad,U=i.iframeLoadTimeout,K=i.onStylesheetLoad,B=i.stylesheetLoadTimeout,Ae=i.keepIframeSrcFn,ie=Ae===void 0?function(){return!1}:Ae,se=b===!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===!1?{password:!0}:b,Z=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:A==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:A===!1?{}:A;return Nr(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:se,maskTextFn:C,maskInputFn:k,slimDOMOptions:Z,dataURLOptions:P,inlineImages:v,recordCanvas:_,preserveWhiteSpace:q,onSerialize:ee,onIframeLoad:$,iframeLoadTimeout:U,onStylesheetLoad:K,stylesheetLoadTimeout:B,keepIframeSrcFn:ie,newlyAddedElement:!1})}function $m(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Lm(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return N(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 uu={exports:{}},me=String,Gf=function(){return{isColorSupported:!1,reset:me,bold:me,dim:me,italic:me,underline:me,inverse:me,hidden:me,strikethrough:me,black:me,red:me,green:me,yellow:me,blue:me,magenta:me,cyan:me,white:me,gray:me,bgBlack:me,bgRed:me,bgGreen:me,bgYellow:me,bgBlue:me,bgMagenta:me,bgCyan:me,bgWhite:me}};uu.exports=Gf();uu.exports.createColors=Gf;var Nm=uu.exports,Dm={},Fm=Object.freeze(Object.defineProperty({__proto__:null,default:Dm},Symbol.toStringTag,{value:"Module"})),$e=Lm(Fm),Vc=Nm,Yc=$e,Vs=(function(t){Ee(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<"u"&&typeof o<"u"&&(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<"u"&&(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=Vc.isColorSupported),Yc&&r&&(s=Yc(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=Vc.createColors(!0),d=g.bold,m=g.gray,v=g.red;f=function(y){return d(v(y))},h=function(y){return m(y)}}else f=h=function(y){return y};return a.slice(u,c).map(function(y,_){var w=u+1+_,b=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=h(b.replace(/\d/g," "))+y.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(b)+y+`
2
+ `+C+f("^")}return" "+h(b)+y}).join(`
3
+ `)},i.toString=function(){var r=this.showSourceCode();return r&&(r=`
4
+
5
+ `+r+`
6
+ `),this.name+": "+this.message+r},n})(kn(Error)),cu=Vs;Vs.default=Vs;var er={};er.isClean=Symbol("isClean");er.my=Symbol("my");var Kc={after:`
7
+ `,beforeClose:`
8
+ `,beforeComment:`
9
+ `,beforeDecl:`
10
+ `,beforeOpen:" ",beforeRule:`
11
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Um(t){return t[0].toUpperCase()+t.slice(1)}var Ys=(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<"u"?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(`
12
+ `)){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<"u"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Kc[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+Um(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=Kc[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<"u")return r=o.raws.after,r.includes(`
13
+ `)&&(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<"u")return o=s.raws.before,o.includes(`
14
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?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<"u")return o=s.raws.before,o.includes(`
15
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?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<"u"))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<"u")return r=o.raws.before,r.includes(`
16
+ `)&&(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<"u")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<"u"))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<"u"){var a=o.raws.before.split(`
17
+ `);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<"u"))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})(),Wf=Ys;Ys.default=Ys;var Bm=Wf;function Ks(t,n){var i=new Bm(n);i.stringify(t)}var Lo=Ks;Ks.default=Ks;var ui=er.isClean,zm=er.my,qm=cu,jm=Wf,Gm=Lo;function Js(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>"u"?"undefined":D(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Js(s,i)}):(o==="object"&&r!==null&&(r=Js(r)),i[e]=r)}return i}var Xs=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[ui]=!1,this[zm]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=O(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=Js(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 qm(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[ui]){this[ui]=!1;for(var e=this;e=e.parent;)e[ui]=!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]===`
18
+ `?(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 jm;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=O(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var 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>"u"?"undefined":D(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c>"u"?"undefined":D(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=Gm),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)},be(t,[{key:"proxyOf",get:function(){return this}}]),t})(),No=Xs;Xs.default=Xs;var Wm=No,Zs=(function(t){Ee(n,t);function n(i){var e;return i&&typeof i.value<"u"&&typeof i.value!="string"&&(i=J({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return be(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Wm),Do=Zs;Zs.default=Zs;var Hm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Vm=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Hm[Math.random()*64|0];return n},Ym={nanoid:Vm},Jc=$e.SourceMapConsumer,Xc=$e.SourceMapGenerator,Km=$e.existsSync,Jm=$e.readFileSync,gs=$e.dirname,Xm=$e.join;function Zm(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Qs=(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=gs(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Jc(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 Zm(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>"u"?"undefined":D(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=gs(e),Km(e))return this.mapFile=e,Jm(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(N(r,Jc))return Xc.fromSourceMap(r).toString();if(N(r,Xc))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=Xm(gs(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})(),Hf=Qs;Qs.default=Qs;var Qm=$e.SourceMapConsumer,ey=$e.SourceMapGenerator,Zc=$e.fileURLToPath,ci=$e.pathToFileURL,ea=$e.isAbsolute,ta=$e.resolve,ty=Ym.nanoid,ms=$e,Qc=cu,ry=Hf,ys=Symbol("fromOffsetCache"),ny=!!(Qm&&ey),el=!!(ta&&ea),ro=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i>"u"||(typeof i>"u"?"undefined":D(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&&(!el||/^\w+:\/\//.test(e.from)||ea(e.from)?this.file=e.from:this.file=ta(e.from)),el&&ny){var r=new ry(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 "+ty(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>"u"?"undefined":D(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 d=this.fromOffset(r);r=d.line,o=d.col}var m=this.origin(r,o,u,c);return m?a=new Qc(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new Qc(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&&(ci&&(a.input.url=ci(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[ys])o=this[ys];else{var s=this.css.split(`
19
+ `);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[ys]=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:ta(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;ea(u.source)?l=ci(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||ci(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(Zc)f.file=Zc(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=J({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},be(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Fo=ro;ro.default=ro;ms&&ms.registerInput&&ms.registerInput(ro);var Vf=$e.SourceMapConsumer,ji=$e.SourceMapGenerator,Gi=$e.dirname,Yf=$e.relative,Kf=$e.resolve,Jf=$e.sep,tl=$e.pathToFileURL,iy=Fo,oy=!!(Vf&&ji),sy=!!(Gi&&Kf&&Yf&&Jf),ay=(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=`
20
+ `;this.css.includes(`\r
21
+ `)&&(r=`\r
22
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Gi(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Vf(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(),sy&&oy&&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=ji.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ji({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 ji({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(`
23
+ `),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||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<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?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?Gi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Gi(Kf(o,this.mapOpts.annotation)));var s=Yf(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 iy(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(tl){var o=tl(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;Jf==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Xf=ay,uy=No,ra=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(uy),Uo=ra;ra.default=ra;var Zf=er.isClean,Qf=er.my,eh=Do,th=Uo,cy=No,rh,lu,fu,nh;function ih(t){return t.map(function(n){return n.nodes&&(n.nodes=ih(n.nodes)),delete n.source,n})}function oh(t){if(t[Zf]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;oh(e)}}var Bt=(function(t){Ee(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=O(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=O(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=O(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(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=O(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=O(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=ih(rh(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=O(r),f;!(f=l()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new eh(r)]}else if(r.selector)r=[new lu(r)];else if(r.name)r=[new fu(r)];else if(r.text)r=[new th(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Qf]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Zf]&&oh(d),typeof d.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(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=O(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=O(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=O(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?N(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?N(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?N(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)}))},be(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})(cy);Bt.registerParse=function(t){rh=t};Bt.registerRule=function(t){lu=t};Bt.registerAtRule=function(t){fu=t};Bt.registerRoot=function(t){nh=t};var Sr=Bt;Bt.default=Bt;Bt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,fu.prototype):t.type==="rule"?Object.setPrototypeOf(t,lu.prototype):t.type==="decl"?Object.setPrototypeOf(t,eh.prototype):t.type==="comment"?Object.setPrototypeOf(t,th.prototype):t.type==="root"&&Object.setPrototypeOf(t,nh.prototype),t[Qf]=!0,t.nodes&&t.nodes.forEach(function(n){Bt.rebuild(n)})};var ly=Sr,sh,ah,xn=(function(t){Ee(n,t);function n(e){var r;return r=t.call(this,J({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 sh(new ah,this,r);return o.stringify()},n})(ly);xn.registerLazyResult=function(t){sh=t};xn.registerProcessor=function(t){ah=t};var hu=xn;xn.default=xn;var rl={},uh=function(n){rl[n]||(rl[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},na=(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})(),ch=na;na.default=na;var fy=ch,ia=(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 fy(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},be(t,[{key:"content",get:function(){return this.css}}]),t})(),pu=ia;ia.default=ia;var _s=39,nl=34,li=92,il=47,fi=10,ln=32,hi=12,pi=9,di=13,hy=91,py=93,dy=40,vy=41,gy=123,my=125,yy=59,_y=42,wy=58,by=64,vi=/[\t\n\f\r "#'()/;[\\\]{}]/g,gi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Sy=/.[\r\n"'(/\\]/,ol=/[\da-f]/i,Cy=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,d,m=e.length,v=0,y=[],_=[];function w(){return v}function b(A){throw n.error("Unclosed "+A,v)}function C(){return _.length===0&&v>=m}function k(A){if(_.length)return _.pop();if(!(v>=m)){var P=A?A.ignoreUnclosed:!1;switch(o=e.charCodeAt(v),o){case fi:case ln:case pi:case di:case hi:{s=v;do s+=1,o=e.charCodeAt(s);while(o===ln||o===fi||o===pi||o===di||o===hi);d=["space",e.slice(v,s)],v=s-1;break}case hy:case py:case gy:case my:case wy:case yy:case vy:{var q=String.fromCharCode(o);d=[q,q,v];break}case dy:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==_s&&g!==nl&&g!==ln&&g!==fi&&g!==pi&&g!==hi&&g!==di){s=v;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||P){s=v;break}else b("bracket");for(f=s;e.charCodeAt(f-1)===li;)f-=1,l=!l}while(l);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||Sy.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case _s:case nl:{a=o===_s?"'":'"',s=v;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||P){s=v+1;break}else b("string");for(f=s;e.charCodeAt(f-1)===li;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case by:{vi.lastIndex=v+1,vi.test(e),vi.lastIndex===0?s=e.length-1:s=vi.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case li:{for(s=v,c=!0;e.charCodeAt(s+1)===li;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==il&&o!==ln&&o!==fi&&o!==pi&&o!==di&&o!==hi&&(s+=1,ol.test(e.charAt(s)))){for(;ol.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===ln&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===il&&e.charCodeAt(v+1)===_y?(s=e.indexOf("*/",v+2)+1,s===0&&(r||P?s=e.length:b("comment")),d=["comment",e.slice(v,s+1),v,s],v=s):(gi.lastIndex=v+1,gi.test(e),gi.lastIndex===0?s=e.length-1:s=gi.lastIndex-2,d=["word",e.slice(v,s+1),v,s],y.push(d),v=s);break}}return v++,d}}function x(A){_.push(A)}return{back:x,endOfFile:C,nextToken:k,position:w}},lh=Sr,no=(function(t){Ee(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})(lh),du=no;no.default=no;lh.registerAtRule(no);var fh=Sr,hh,ph,zr=(function(t){Ee(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=O(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new hh(new ph,this,r);return o.stringify()},n})(fh);zr.registerLazyResult=function(t){hh=t};zr.registerProcessor=function(t){ph=t};var Wn=zr;zr.default=zr;fh.registerRoot(zr);var Rn={comma:function(n){return Rn.split(n,[","],!0)},space:function(n){var i=[" ",`
24
+ `," "];return Rn.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=O(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}},dh=Rn;Rn.default=Rn;var vh=Sr,Ey=dh,io=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return be(n,[{key:"selectors",get:function(){return Ey.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})(vh),vu=io;io.default=io;vh.registerRule(io);var Iy=Do,ky=Cy,Oy=Uo,xy=du,Ry=Wn,sl=vu,al={empty:!0,space:!0};function Ay(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var My=(function(){function t(i){this.input=i,this.root=new Ry,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 xy;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=O(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 Oy;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=ky(this.input)},n.decl=function(e,r){var o=new Iy;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]||Ay(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),d="",m=f;m>0;m--){var v=g[m][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 y=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});y&&(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 sl;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,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",h=o[d+1]?o[d+1][0]:"empty",!al[g]&&!al[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var m=o.reduce(function(v,y){return v+y[1]},"");e.raws[r]={raw:m,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new sl;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})(),Ty=My,Py=Sr,$y=Ty,Ly=Fo;function oo(t,n){var i=new Ly(t,n),e=new $y(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+=`
25
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(n.from)?r.message+=`
26
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(n.from)&&(r.message+=`
27
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),r}return e.root}var gu=oo;oo.default=oo;Py.registerParse(oo);var St=er.isClean,Ny=er.my,Dy=Xf,Fy=Lo,Uy=Sr,By=hu,zy=uh,ul=pu,qy=gu,jy=Wn,Gy={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wy={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},Hy={Once:!0,postcssPlugin:!0,prepare:!0},qr=0;function fn(t){return(typeof t>"u"?"undefined":D(t))==="object"&&typeof t.then=="function"}function gh(t){var n=!1,i=Gy[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,qr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,qr,i+"Exit"]:[i,i+"Exit"]}function cl(t){var n;return t.type==="document"?n=["Document",qr,"DocumentExit"]:t.type==="root"?n=["Root",qr,"RootExit"]:n=gh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function oa(t){return t[St]=!1,t.nodes&&t.nodes.forEach(function(n){return oa(n)}),t}var sa={},jr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":D(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=oa(e);else if(N(e,t)||N(e,ul))s=oa(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=qy;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[Ny]&&Uy.rebuild(s)}this.result=new ul(i,s,r),this.helpers=J({},sa,{postcss:sa,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u>"u"?"undefined":D(u))==="object"&&u.prepare?J({},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=O(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a>"u"?"undefined":D(a))==="object")for(var u in a){if(!Wy[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Hy[u])if(D(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 $o(function(){var r,o,s,a,u,c,l,f,h,g,d,m;return mr(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),!fn(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[St])return[3,14];u[St]=!0,c=[cl(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!fn(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.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 y,_,w,b,C;return mr(this,function(k){switch(k.label){case 0:y=m.value,_=y[0],w=y[1],e.result.lastPlugin=_,k.label=1;case 1:return k.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function(x){return w(x,e.helpers)}),[4,Promise.all(b)]);case 2:return k.sent(),[3,5];case 3:return[4,w(u,e.helpers)];case 4:k.sent(),k.label=5;case 5:return[3,7];case 6:throw C=k.sent(),e.handleError(C);case 7:return[2]}})},d=O(e.listeners.OnceExit),v.label=15;case 15:return(m=d()).done?[3,18]:[5,ou(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>"u"?"undefined":D(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 fn(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=Fy;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new Dy(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=O(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(fn(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[St];)a[St]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||zy("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=O(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(fn(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(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[St]){f[St]=!0,e.push(cl(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===qr){o.nodes&&o.nodes.length&&(o[St]=!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[St]=!0;for(var o=gh(e),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===qr)e.nodes&&e.each(function(l){l[St]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},be(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})();jr.registerPostcss=function(t){sa=t};var mh=jr;jr.default=jr;jy.registerLazyResult(jr);By.registerLazyResult(jr);var Vy=Xf,Yy=Lo,Ky=uh,Jy=gu,Xy=pu,aa=(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=Yy;this.result=new Xy(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 Vy(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||Ky("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[]},be(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=Jy;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})(),Zy=aa;aa.default=aa;var Qy=Zy,e_=mh,t_=hu,r_=Wn,An=(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=O(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":D(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a>"u"?"undefined":D(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a>"u"?"undefined":D(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 Qy(this,e,r):new e_(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),n_=An;An.default=An;r_.registerProcessor(An);t_.registerProcessor(An);var i_=Do,o_=Hf,s_=Uo,a_=du,u_=Fo,c_=Wn,l_=vu;function Mn(t,n){if(Array.isArray(t))return t.map(function(f){return Mn(f)});var i=t.inputs,e=gr(t,["inputs"]);if(i){n=[];for(var r=O(i),o;!(o=r()).done;){var s=o.value,a=J({},s,{__proto__:u_.prototype});a.map&&(a.map=J({},a.map,{__proto__:o_.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Mn(f,n)})),e.source){var u=e.source,c=u.inputId,l=gr(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new c_(e);if(e.type==="decl")return new i_(e);if(e.type==="rule")return new l_(e);if(e.type==="comment")return new s_(e);if(e.type==="atrule")return new a_(e);throw new Error("Unknown node type: "+t.type)}var f_=Mn;Mn.default=Mn;var h_=cu,yh=Do,p_=mh,d_=Sr,mu=n_,v_=Lo,g_=f_,_h=hu,m_=ch,wh=Uo,bh=du,y_=pu,__=Fo,w_=gu,b_=dh,Sh=vu,Ch=Wn,S_=No;function ae(){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 mu(n)}ae.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:
28
+ https://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:
29
+ https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new mu().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return ae([r(u)]).process(s,a)},r};ae.stringify=v_;ae.parse=w_;ae.fromJSON=g_;ae.list=b_;ae.comment=function(t){return new wh(t)};ae.atRule=function(t){return new bh(t)};ae.decl=function(t){return new yh(t)};ae.rule=function(t){return new Sh(t)};ae.root=function(t){return new Ch(t)};ae.document=function(t){return new _h(t)};ae.CssSyntaxError=h_;ae.Declaration=yh;ae.Container=d_;ae.Processor=mu;ae.Document=_h;ae.Comment=wh;ae.Warning=m_;ae.AtRule=bh;ae.Result=y_;ae.Input=__;ae.Rule=Sh;ae.Root=Ch;ae.Node=S_;p_.registerPostcss(ae);var C_=ae;ae.default=ae;var Ie=$m(C_);Ie.stringify;Ie.fromJSON;Ie.plugin;Ie.parse;Ie.list;Ie.document;Ie.comment;Ie.atRule;Ie.rule;Ie.decl;Ie.root;Ie.CssSyntaxError;Ie.Declaration;Ie.Container;Ie.Processor;Ie.Document;Ie.Comment;Ie.Warning;Ie.AtRule;Ie.Result;Ie.Input;Ie.Rule;Ie.Root;Ie.Node;var E_=Object.defineProperty,I_=function(t,n,i){return n in t?E_(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},at=function(t,n,i){return I_(t,(typeof n>"u"?"undefined":D(n))!=="symbol"?n+"":n,i)};function k_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function O_(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return N(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 yu={exports:{}},ye=String,Eh=function(){return{isColorSupported:!1,reset:ye,bold:ye,dim:ye,italic:ye,underline:ye,inverse:ye,hidden:ye,strikethrough:ye,black:ye,red:ye,green:ye,yellow:ye,blue:ye,magenta:ye,cyan:ye,white:ye,gray:ye,bgBlack:ye,bgRed:ye,bgGreen:ye,bgYellow:ye,bgBlue:ye,bgMagenta:ye,bgCyan:ye,bgWhite:ye}};yu.exports=Eh();yu.exports.createColors=Eh;var x_=yu.exports,R_={},A_=Object.freeze(Object.defineProperty({__proto__:null,default:R_},Symbol.toStringTag,{value:"Module"})),Le=O_(A_),ll=x_,fl=Le,ua=(function(t){Ee(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<"u"&&typeof o<"u"&&(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<"u"&&(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=ll.isColorSupported),fl&&r&&(s=fl(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=ll.createColors(!0),d=g.bold,m=g.gray,v=g.red;f=function(y){return d(v(y))},h=function(y){return m(y)}}else f=h=function(y){return y};return a.slice(u,c).map(function(y,_){var w=u+1+_,b=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=h(b.replace(/\d/g," "))+y.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(b)+y+`
30
+ `+C+f("^")}return" "+h(b)+y}).join(`
31
+ `)},i.toString=function(){var r=this.showSourceCode();return r&&(r=`
32
+
33
+ `+r+`
34
+ `),this.name+": "+this.message+r},n})(kn(Error)),_u=ua;ua.default=ua;var tr={};tr.isClean=Symbol("isClean");tr.my=Symbol("my");var hl={after:`
35
+ `,beforeClose:`
36
+ `,beforeComment:`
37
+ `,beforeDecl:`
38
+ `,beforeOpen:" ",beforeRule:`
39
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function M_(t){return t[0].toUpperCase()+t.slice(1)}var ca=(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<"u"?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(`
40
+ `)){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<"u"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return hl[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+M_(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=hl[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<"u")return r=o.raws.after,r.includes(`
41
+ `)&&(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<"u")return o=s.raws.before,o.includes(`
42
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?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<"u")return o=s.raws.before,o.includes(`
43
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?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<"u"))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<"u")return r=o.raws.before,r.includes(`
44
+ `)&&(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<"u")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<"u"))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<"u"){var a=o.raws.before.split(`
45
+ `);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<"u"))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})(),Ih=ca;ca.default=ca;var T_=Ih;function la(t,n){var i=new T_(n);i.stringify(t)}var Bo=la;la.default=la;var mi=tr.isClean,P_=tr.my,$_=_u,L_=Ih,N_=Bo;function fa(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>"u"?"undefined":D(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return fa(s,i)}):(o==="object"&&r!==null&&(r=fa(r)),i[e]=r)}return i}var ha=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[mi]=!1,this[P_]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=O(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=fa(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 $_(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[mi]){this[mi]=!1;for(var e=this;e=e.parent;)e[mi]=!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]===`
46
+ `?(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 L_;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=O(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var 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>"u"?"undefined":D(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c>"u"?"undefined":D(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=N_),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)},be(t,[{key:"proxyOf",get:function(){return this}}]),t})(),zo=ha;ha.default=ha;var D_=zo,pa=(function(t){Ee(n,t);function n(i){var e;return i&&typeof i.value<"u"&&typeof i.value!="string"&&(i=J({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return be(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(D_),qo=pa;pa.default=pa;var F_="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",U_=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=F_[Math.random()*64|0];return n},B_={nanoid:U_},pl=Le.SourceMapConsumer,dl=Le.SourceMapGenerator,z_=Le.existsSync,q_=Le.readFileSync,ws=Le.dirname,j_=Le.join;function G_(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var da=(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=ws(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new pl(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 G_(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>"u"?"undefined":D(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=ws(e),z_(e))return this.mapFile=e,q_(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(N(r,pl))return dl.fromSourceMap(r).toString();if(N(r,dl))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=j_(ws(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})(),kh=da;da.default=da;var W_=Le.SourceMapConsumer,H_=Le.SourceMapGenerator,vl=Le.fileURLToPath,yi=Le.pathToFileURL,va=Le.isAbsolute,ga=Le.resolve,V_=B_.nanoid,bs=Le,gl=_u,Y_=kh,Ss=Symbol("fromOffsetCache"),K_=!!(W_&&H_),ml=!!(ga&&va),so=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i>"u"||(typeof i>"u"?"undefined":D(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&&(!ml||/^\w+:\/\//.test(e.from)||va(e.from)?this.file=e.from:this.file=ga(e.from)),ml&&K_){var r=new Y_(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 "+V_(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>"u"?"undefined":D(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 d=this.fromOffset(r);r=d.line,o=d.col}var m=this.origin(r,o,u,c);return m?a=new gl(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new gl(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&&(yi&&(a.input.url=yi(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[Ss])o=this[Ss];else{var s=this.css.split(`
47
+ `);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[Ss]=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:ga(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;va(u.source)?l=yi(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||yi(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(vl)f.file=vl(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=J({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},be(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),jo=so;so.default=so;bs&&bs.registerInput&&bs.registerInput(so);var Oh=Le.SourceMapConsumer,Wi=Le.SourceMapGenerator,Hi=Le.dirname,xh=Le.relative,Rh=Le.resolve,Ah=Le.sep,yl=Le.pathToFileURL,J_=jo,X_=!!(Oh&&Wi),Z_=!!(Hi&&Rh&&xh&&Ah),Q_=(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=`
48
+ `;this.css.includes(`\r
49
+ `)&&(r=`\r
50
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Hi(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Oh(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(),Z_&&X_&&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=Wi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Wi({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 Wi({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(`
51
+ `),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||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<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?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?Hi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Hi(Rh(o,this.mapOpts.annotation)));var s=xh(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 J_(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(yl){var o=yl(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;Ah==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Mh=Q_,ew=zo,ma=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(ew),Go=ma;ma.default=ma;var Th=tr.isClean,Ph=tr.my,$h=qo,Lh=Go,tw=zo,Nh,wu,bu,Dh;function Fh(t){return t.map(function(n){return n.nodes&&(n.nodes=Fh(n.nodes)),delete n.source,n})}function Uh(t){if(t[Th]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Uh(e)}}var zt=(function(t){Ee(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=O(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=O(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=O(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(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=O(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=O(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=Fh(Nh(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=O(r),f;!(f=l()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new $h(r)]}else if(r.selector)r=[new wu(r)];else if(r.name)r=[new bu(r)];else if(r.text)r=[new Lh(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Ph]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Th]&&Uh(d),typeof d.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(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=O(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=O(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=O(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?N(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?N(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?N(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)}))},be(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})(tw);zt.registerParse=function(t){Nh=t};zt.registerRule=function(t){wu=t};zt.registerAtRule=function(t){bu=t};zt.registerRoot=function(t){Dh=t};var Cr=zt;zt.default=zt;zt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,bu.prototype):t.type==="rule"?Object.setPrototypeOf(t,wu.prototype):t.type==="decl"?Object.setPrototypeOf(t,$h.prototype):t.type==="comment"?Object.setPrototypeOf(t,Lh.prototype):t.type==="root"&&Object.setPrototypeOf(t,Dh.prototype),t[Ph]=!0,t.nodes&&t.nodes.forEach(function(n){zt.rebuild(n)})};var rw=Cr,Bh,zh,Tn=(function(t){Ee(n,t);function n(e){var r;return r=t.call(this,J({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 Bh(new zh,this,r);return o.stringify()},n})(rw);Tn.registerLazyResult=function(t){Bh=t};Tn.registerProcessor=function(t){zh=t};var Su=Tn;Tn.default=Tn;var _l={},qh=function(n){_l[n]||(_l[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},ya=(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})(),jh=ya;ya.default=ya;var nw=jh,_a=(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 nw(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},be(t,[{key:"content",get:function(){return this.css}}]),t})(),Cu=_a;_a.default=_a;var Cs=39,wl=34,_i=92,bl=47,wi=10,hn=32,bi=12,Si=9,Ci=13,iw=91,ow=93,sw=40,aw=41,uw=123,cw=125,lw=59,fw=42,hw=58,pw=64,Ei=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ii=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,dw=/.[\r\n"'(/\\]/,Sl=/[\da-f]/i,vw=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,d,m=e.length,v=0,y=[],_=[];function w(){return v}function b(A){throw n.error("Unclosed "+A,v)}function C(){return _.length===0&&v>=m}function k(A){if(_.length)return _.pop();if(!(v>=m)){var P=A?A.ignoreUnclosed:!1;switch(o=e.charCodeAt(v),o){case wi:case hn:case Si:case Ci:case bi:{s=v;do s+=1,o=e.charCodeAt(s);while(o===hn||o===wi||o===Si||o===Ci||o===bi);d=["space",e.slice(v,s)],v=s-1;break}case iw:case ow:case uw:case cw:case hw:case lw:case aw:{var q=String.fromCharCode(o);d=[q,q,v];break}case sw:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==Cs&&g!==wl&&g!==hn&&g!==wi&&g!==Si&&g!==bi&&g!==Ci){s=v;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||P){s=v;break}else b("bracket");for(f=s;e.charCodeAt(f-1)===_i;)f-=1,l=!l}while(l);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||dw.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case Cs:case wl:{a=o===Cs?"'":'"',s=v;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||P){s=v+1;break}else b("string");for(f=s;e.charCodeAt(f-1)===_i;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case pw:{Ei.lastIndex=v+1,Ei.test(e),Ei.lastIndex===0?s=e.length-1:s=Ei.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case _i:{for(s=v,c=!0;e.charCodeAt(s+1)===_i;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==bl&&o!==hn&&o!==wi&&o!==Si&&o!==Ci&&o!==bi&&(s+=1,Sl.test(e.charAt(s)))){for(;Sl.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===hn&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===bl&&e.charCodeAt(v+1)===fw?(s=e.indexOf("*/",v+2)+1,s===0&&(r||P?s=e.length:b("comment")),d=["comment",e.slice(v,s+1),v,s],v=s):(Ii.lastIndex=v+1,Ii.test(e),Ii.lastIndex===0?s=e.length-1:s=Ii.lastIndex-2,d=["word",e.slice(v,s+1),v,s],y.push(d),v=s);break}}return v++,d}}function x(A){_.push(A)}return{back:x,endOfFile:C,nextToken:k,position:w}},Gh=Cr,ao=(function(t){Ee(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})(Gh),Eu=ao;ao.default=ao;Gh.registerAtRule(ao);var Wh=Cr,Hh,Vh,Gr=(function(t){Ee(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=O(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Hh(new Vh,this,r);return o.stringify()},n})(Wh);Gr.registerLazyResult=function(t){Hh=t};Gr.registerProcessor=function(t){Vh=t};var Hn=Gr;Gr.default=Gr;Wh.registerRoot(Gr);var Pn={comma:function(n){return Pn.split(n,[","],!0)},space:function(n){var i=[" ",`
52
+ `," "];return Pn.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=O(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}},Yh=Pn;Pn.default=Pn;var Kh=Cr,gw=Yh,uo=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return be(n,[{key:"selectors",get:function(){return gw.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})(Kh),Iu=uo;uo.default=uo;Kh.registerRule(uo);var mw=qo,yw=vw,_w=Go,ww=Eu,bw=Hn,Cl=Iu,El={empty:!0,space:!0};function Sw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Cw=(function(){function t(i){this.input=i,this.root=new bw,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 ww;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=O(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 _w;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=yw(this.input)},n.decl=function(e,r){var o=new mw;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]||Sw(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),d="",m=f;m>0;m--){var v=g[m][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 y=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});y&&(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 Cl;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,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",h=o[d+1]?o[d+1][0]:"empty",!El[g]&&!El[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var m=o.reduce(function(v,y){return v+y[1]},"");e.raws[r]={raw:m,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new Cl;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})(),Ew=Cw,Iw=Cr,kw=Ew,Ow=jo;function co(t,n){var i=new Ow(t,n),e=new kw(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+=`
53
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(n.from)?r.message+=`
54
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(n.from)&&(r.message+=`
55
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),r}return e.root}var ku=co;co.default=co;Iw.registerParse(co);var Ct=tr.isClean,xw=tr.my,Rw=Mh,Aw=Bo,Mw=Cr,Tw=Su,Pw=qh,Il=Cu,$w=ku,Lw=Hn,Nw={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Dw={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},Fw={Once:!0,postcssPlugin:!0,prepare:!0},Wr=0;function pn(t){return(typeof t>"u"?"undefined":D(t))==="object"&&typeof t.then=="function"}function Jh(t){var n=!1,i=Nw[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Wr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Wr,i+"Exit"]:[i,i+"Exit"]}function kl(t){var n;return t.type==="document"?n=["Document",Wr,"DocumentExit"]:t.type==="root"?n=["Root",Wr,"RootExit"]:n=Jh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function wa(t){return t[Ct]=!1,t.nodes&&t.nodes.forEach(function(n){return wa(n)}),t}var ba={},Hr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":D(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=wa(e);else if(N(e,t)||N(e,Il))s=wa(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=$w;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[xw]&&Mw.rebuild(s)}this.result=new Il(i,s,r),this.helpers=J({},ba,{postcss:ba,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u>"u"?"undefined":D(u))==="object"&&u.prepare?J({},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=O(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a>"u"?"undefined":D(a))==="object")for(var u in a){if(!Dw[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Fw[u])if(D(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 $o(function(){var r,o,s,a,u,c,l,f,h,g,d,m;return mr(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),!pn(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[Ct])return[3,14];u[Ct]=!0,c=[kl(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!pn(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.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 y,_,w,b,C;return mr(this,function(k){switch(k.label){case 0:y=m.value,_=y[0],w=y[1],e.result.lastPlugin=_,k.label=1;case 1:return k.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function(x){return w(x,e.helpers)}),[4,Promise.all(b)]);case 2:return k.sent(),[3,5];case 3:return[4,w(u,e.helpers)];case 4:k.sent(),k.label=5;case 5:return[3,7];case 6:throw C=k.sent(),e.handleError(C);case 7:return[2]}})},d=O(e.listeners.OnceExit),v.label=15;case 15:return(m=d()).done?[3,18]:[5,ou(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>"u"?"undefined":D(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 pn(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=Aw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new Rw(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=O(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(pn(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ct];)a[Ct]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(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=O(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(pn(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(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ct]){f[Ct]=!0,e.push(kl(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===Wr){o.nodes&&o.nodes.length&&(o[Ct]=!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[Ct]=!0;for(var o=Jh(e),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===Wr)e.nodes&&e.each(function(l){l[Ct]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},be(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){ba=t};var Xh=Hr;Hr.default=Hr;Lw.registerLazyResult(Hr);Tw.registerLazyResult(Hr);var Uw=Mh,Bw=Bo,zw=qh,qw=ku,jw=Cu,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=Bw;this.result=new jw(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 Uw(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||zw("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[]},be(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=qw;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})(),Gw=Sa;Sa.default=Sa;var Ww=Gw,Hw=Xh,Vw=Su,Yw=Hn,$n=(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=O(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":D(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a>"u"?"undefined":D(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a>"u"?"undefined":D(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 Ww(this,e,r):new Hw(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Kw=$n;$n.default=$n;Yw.registerProcessor($n);Vw.registerProcessor($n);var Jw=qo,Xw=kh,Zw=Go,Qw=Eu,eb=jo,tb=Hn,rb=Iu;function Ln(t,n){if(Array.isArray(t))return t.map(function(f){return Ln(f)});var i=t.inputs,e=gr(t,["inputs"]);if(i){n=[];for(var r=O(i),o;!(o=r()).done;){var s=o.value,a=J({},s,{__proto__:eb.prototype});a.map&&(a.map=J({},a.map,{__proto__:Xw.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Ln(f,n)})),e.source){var u=e.source,c=u.inputId,l=gr(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new tb(e);if(e.type==="decl")return new Jw(e);if(e.type==="rule")return new rb(e);if(e.type==="comment")return new Zw(e);if(e.type==="atrule")return new Qw(e);throw new Error("Unknown node type: "+t.type)}var nb=Ln;Ln.default=Ln;var ib=_u,Zh=qo,ob=Xh,sb=Cr,Ou=Kw,ab=Bo,ub=nb,Qh=Su,cb=jh,ep=Go,tp=Eu,lb=Cu,fb=jo,hb=ku,pb=Yh,rp=Iu,np=Hn,db=zo;function ue(){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 Ou(n)}ue.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:
56
+ https://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:
57
+ https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Ou().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return ue([r(u)]).process(s,a)},r};ue.stringify=ab;ue.parse=hb;ue.fromJSON=ub;ue.list=pb;ue.comment=function(t){return new ep(t)};ue.atRule=function(t){return new tp(t)};ue.decl=function(t){return new Zh(t)};ue.rule=function(t){return new rp(t)};ue.root=function(t){return new np(t)};ue.document=function(t){return new Qh(t)};ue.CssSyntaxError=ib;ue.Declaration=Zh;ue.Container=sb;ue.Processor=Ou;ue.Document=Qh;ue.Comment=ep;ue.Warning=cb;ue.AtRule=tp;ue.Result=lb;ue.Input=fb;ue.Rule=rp;ue.Root=np;ue.Node=db;ob.registerPostcss(ue);var vb=ue;ue.default=ue;var ke=k_(vb);ke.stringify;ke.fromJSON;ke.plugin;ke.parse;ke.list;ke.document;ke.comment;ke.atRule;ke.rule;ke.decl;ke.root;ke.CssSyntaxError;ke.Declaration;ke.Container;ke.Processor;ke.Document;ke.Comment;ke.Warning;ke.AtRule;ke.Result;ke.Input;ke.Rule;ke.Root;ke.Node;var gb=(function(){function t(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];at(this,"parentElement",null),at(this,"parentNode",null),at(this,"ownerDocument"),at(this,"firstChild",null),at(this,"lastChild",null),at(this,"previousSibling",null),at(this,"nextSibling",null),at(this,"ELEMENT_NODE",1),at(this,"TEXT_NODE",3),at(this,"nodeType"),at(this,"nodeName"),at(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(N(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"},be(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),Ol={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},xl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ki={},mb=function(){return!!globalThis.Zone};function xu(t){if(ki[t])return ki[t];var n=globalThis[t],i=n.prototype,e=t in Ol?Ol[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 xl?xl[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&&!mb())return ki[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?ki[t]=c:i}catch{return i}}var Es={};function rr(t,n,i){var e,r=t+"."+String(i);if(Es[r])return Es[r].call(n);var o=xu(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(Es[r]=s,s.call(n)):n[i]}var Is={};function ip(t,n,i){var e=t+"."+String(i);if(Is[e])return Is[e].bind(n);var r=xu(t),o=r[i];return typeof o!="function"?n[i]:(Is[e]=o,o.bind(n))}function yb(t){return rr("Node",t,"childNodes")}function _b(t){return rr("Node",t,"parentNode")}function wb(t){return rr("Node",t,"parentElement")}function bb(t){return rr("Node",t,"textContent")}function Sb(t,n){return ip("Node",t,"contains")(n)}function Cb(t){return ip("Node",t,"getRootNode")()}function Eb(t){return!t||!("host"in t)?null:rr("ShadowRoot",t,"host")}function Ib(t){return t.styleSheets}function kb(t){return!t||!("shadowRoot"in t)?null:rr("Element",t,"shadowRoot")}function Ob(t,n){return rr("Element",t,"querySelector")(n)}function xb(t,n){return rr("Element",t,"querySelectorAll")(n)}function op(){return xu("MutationObserver").constructor}function Er(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{return function(){}}}var Q={childNodes:yb,parentNode:_b,parentElement:wb,textContent:bb,contains:Sb,getRootNode:Cb,host:Eb,styleSheets:Ib,shadowRoot:kb,querySelector:Ob,querySelectorAll:xb,mutationObserver:op,patch:Er};function Xe(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 Pr=`Please stop import mirror directly. Instead of that,\r
58
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
59
+ or you can use record.mirror to access the mirror instance during recording.`,Rl={map:{},getId:function(){return console.error(Pr),-1},getNode:function(){return console.error(Pr),null},removeNodeFromMap:function(){console.error(Pr)},has:function(){return console.error(Pr),!1},reset:function(){console.error(Pr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Rl=new Proxy(Rl,{get:function(n,i,e){return i==="map"&&console.error(Pr),Reflect.get(n,i,e)}}));function Nn(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 Wo(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 Wo(t,n,o||{},!0)}}var lo=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(lo=function(){return new Date().getTime()});function sp(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?.body&&((n=Q.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o?.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:o?.documentElement.scrollTop||o?.body&&((e=Q.parentElement(o.body))==null?void 0:e.scrollTop)||((r=o?.body)==null?void 0:r.scrollTop)||0}}function ap(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function up(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function cp(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:Q.parentElement(t);return n}function Ze(t,n,i,e){if(!t)return!1;var r=cp(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(to(r,n,e))return!0}catch{}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function Rb(t,n){return n.getId(t)!==-1}function ks(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===On}function lp(t,n){if(yn(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?lp(e,n):!0}function Ca(t){return!!t.changedTouches}function Ab(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 fp(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function hp(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Ea(t){return t?N(t,gb)&&"shadowRoot"in t?!!t.shadowRoot:!!Q.shadowRoot(t):!1}var Mb=(function(){function t(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(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 pp(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 Tb(t){for(var n=t,i;i=pp(n);)n=i;return n}function Pb(t){var n=t.ownerDocument;if(!n)return!1;var i=Tb(t);return Q.contains(n,i)}function dp(t){var n=t.ownerDocument;return n?Q.contains(n,t)||Pb(t):!1}var te=(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})(te||{}),G=(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})(G||{}),rt=(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})(rt||{}),Dt=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(Dt||{}),Vr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(Vr||{}),$r=(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})($r||{}),vp=(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})(vp||{});function Al(t){return"__ln"in t}var $b=(function(){function t(){R(this,"length",0),R(this,"head",null),R(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?.next||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Al(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&&Al(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t})(),Ml=function(t,n){return t+"@"+n},Lb=(function(){function t(){var i=this;R(this,"frozen",!1),R(this,"locked",!1),R(this,"texts",[]),R(this,"attributes",[]),R(this,"attributeMap",new WeakMap),R(this,"removes",[]),R(this,"mapRemoves",[]),R(this,"movedMap",{}),R(this,"addedSet",new Set),R(this,"movedSet",new Set),R(this,"droppedSet",new Set),R(this,"removesSubTreeCache",new Set),R(this,"mutationCb"),R(this,"blockClass"),R(this,"blockSelector"),R(this,"maskTextClass"),R(this,"maskTextSelector"),R(this,"inlineStylesheet"),R(this,"maskInputOptions"),R(this,"maskTextFn"),R(this,"maskInputFn"),R(this,"keepIframeSrcFn"),R(this,"recordCanvas"),R(this,"inlineImages"),R(this,"slimDOMOptions"),R(this,"dataURLOptions"),R(this,"doc"),R(this,"mirror"),R(this,"iframeManager"),R(this,"stylesheetManager"),R(this,"shadowDomManager"),R(this,"canvasManager"),R(this,"processedNodeManager"),R(this,"unattachedDoc"),R(this,"processMutations",function(e){e.forEach(i.processMutation),i.emit()}),R(this,"emit",function(){if(!(i.frozen||i.locked)){for(var e=[],r=new Set,o=new $b,s=function($){for(var U=$,K=On;K===On;)U=U&&U.nextSibling,K=U&&i.mirror.getId(U);return K},a=function($){var U=Q.parentNode($);if(!(!U||!dp($))){var K=!1;if($.nodeType===Node.TEXT_NODE){var B=U.tagName;if(B==="TEXTAREA")return;B==="STYLE"&&i.addedSet.has(U)&&(K=!0)}var Ae=yn(U)?i.mirror.getId(pp($)):i.mirror.getId(U),ie=s($);if(Ae===-1||ie===-1)return o.addNode($);var se=Nr($,{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(Z){fp(Z,i.mirror)&&i.iframeManager.addIframe(Z),hp(Z,i.mirror)&&i.stylesheetManager.trackLinkElement(Z),Ea($)&&i.shadowDomManager.addShadowRoot(Q.shadowRoot($),i.doc)},onIframeLoad:function(Z,he){i.iframeManager.attachIframe(Z,he),i.shadowDomManager.observeAttachShadow(Z)},onStylesheetLoad:function(Z,he){i.stylesheetManager.attachLinkElement(Z,he)},cssCaptured:K});se&&(e.push({parentId:Ae,nextId:ie,node:se}),r.add(se.id))}};i.mapRemoves.length;){var u=i.mapRemoves.shift();i.cleanupRemovedNode(u),i.mirror.removeNodeFromMap(u)}for(var c=O(i.movedSet),l;!(l=c()).done;){var f=l.value;Tl(i.removesSubTreeCache,f,i.mirror)&&!i.movedSet.has(Q.parentNode(f))||a(f)}for(var h=O(i.addedSet),g;!(g=h()).done;){var d=g.value;!Pl(i.droppedSet,d)&&!Tl(i.removesSubTreeCache,d,i.mirror)||Pl(i.movedSet,d)?a(d):i.droppedSet.add(d)}for(var m=null;o.length;){var v=null;if(m){var y=i.mirror.getId(Q.parentNode(m.value)),_=s(m.value);y!==-1&&_!==-1&&(v=m)}if(!v)for(var w=o.tail;w;){var b=w;if(w=w.previous,b){var C=i.mirror.getId(Q.parentNode(b.value)),k=s(b.value);if(k===-1)continue;if(C!==-1){v=b;break}else{var x=b.value,A=Q.parentNode(x);if(A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var P=Q.host(A),q=i.mirror.getId(P);if(q!==-1){v=b;break}}}}}if(!v){for(;o.head;)o.removeNode(o.head.value);break}m=v.previous,o.removeNode(v.value),a(v.value)}var ee={texts:i.texts.map(function($){var U=$.node,K=Q.parentNode(U);return K&&K.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(K),{id:i.mirror.getId(U),value:$.value}}).filter(function($){return!r.has($.id)}).filter(function($){return i.mirror.has($.id)}),attributes:i.attributes.map(function($){var U=$.attributes;if(typeof U.style=="string"){var K=JSON.stringify($.styleDiff),B=JSON.stringify($._unchangedStyles);K.length<U.style.length&&(K+B).split("var(").length===U.style.split("var(").length&&(U.style=$.styleDiff)}return{id:i.mirror.getId($.node),attributes:U}}).filter(function($){return!r.has($.id)}).filter(function($){return i.mirror.has($.id)}),removes:i.removes,adds:e};!ee.texts.length&&!ee.attributes.length&&!ee.removes.length&&!ee.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(ee))}}),R(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=Zi({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:Qi(e),value:o,maskInputFn:i.maskInputFn})}),R(this,"processMutation",function(e){if(!ks(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=Q.textContent(e.target);!Ze(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:jf(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,cp(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=Qi(o);a=Zi({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Ze(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"),!qf(o.tagName,s))if(c.attributes[s]=zf(i.doc,yr(o.tagName),yr(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch{i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var f=O(Array.from(o.style)),h;!(h=f()).done;){var g=h.value,d=o.style.getPropertyValue(g),m=o.style.getPropertyPriority(g);d!==l.style.getPropertyValue(g)||m!==l.style.getPropertyPriority(g)?m===""?c.styleDiff[g]=d:c.styleDiff[g]=[d,m]:c._unchangedStyles[g]=[d,m]}for(var v=O(Array.from(l.style)),y;!(y=v()).done;){var _=y.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(Ze(e.target,i.blockClass,i.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(w){return i.genAdds(w,e.target)}),e.removedNodes.forEach(function(w){var b=i.mirror.getId(w),C=yn(e.target)?i.mirror.getId(Q.host(e.target)):i.mirror.getId(e.target);Ze(e.target,i.blockClass,i.blockSelector,!1)||ks(w,i.mirror,i.slimDOMOptions)||!Rb(w,i.mirror)||(i.addedSet.has(w)?(Ia(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(e.target)&&b===-1||lp(e.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[Ml(b,C)]?Ia(i.movedSet,w):(i.removes.push({parentId:C,id:b,isShadow:yn(e.target)&&_n(e.target)?!0:void 0}),Nb(w,i.removesSubTreeCache))),i.mapRemoves.push(w))});break}}}),R(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(ks(e,i.mirror,i.slimDOMOptions))return;i.movedSet.add(e);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Ml(i.mirror.getId(e),o)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);Ze(e,i.blockClass,i.blockSelector,!1)||(Q.childNodes(e).forEach(function(s){return i.genAdds(s)}),Ea(e)&&Q.childNodes(Q.shadowRoot(e)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,e)}))}}),R(this,"cleanupRemovedNode",function(e){if(e.nodeName==="IFRAME")try{i.iframeManager.removeIframe(e)}catch{}else try{i.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch{}e.childNodes.forEach(function(r){i.cleanupRemovedNode(r)})})}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 Ia(t,n){t.delete(n),Q.childNodes(n).forEach(function(i){return Ia(t,i)})}function Nb(t,n){for(var i=[t];i.length;){var e=i.pop();n.has(e)||(n.add(e),Q.childNodes(e).forEach(function(r){return i.push(r)}))}}function Tl(t,n,i){return t.size===0?!1:Db(t,n)}function Db(t,n,i){var e=Q.parentNode(n);return e?t.has(e):!1}function Pl(t,n){return t.size===0?!1:gp(t,n)}function gp(t,n){var i=Q.parentNode(n);return i?t.has(i)?!0:gp(t,i):!1}var wn;function Fb(t){wn=t}function Ub(){wn=void 0}var re=function(t){if(!wn)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(wn&&wn(o)===!0)return;throw o}};return n},kt=[];function Vn(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{}return t&&t.target}function mp(t,n){var i=new Lb;kt.push(i),i.init(t);var e=new(op())(re(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Bb(t){for(var n=kt.length-1;n>=0;n--){var i=kt[n];i.getDoc()===t&&kt.splice(n,1)}}function zb(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=Nn(re(function(h){var g=Date.now()-u;n(a.map(function(d){return d.timeOffset-=g,d}),h),a=[],u=null}),s),l=re(Nn(re(function(h){var g=Vn(h),d=Ca(h)?h.changedTouches[0]:h,m=d.clientX,v=d.clientY;u||(u=lo()),a.push({x:m,y:v,id:r.getId(g),timeOffset:lo()-u}),c(typeof DragEvent<"u"&&N(h,DragEvent)?G.Drag:N(h,MouseEvent)?G.MouseMove:G.TouchMove)}),o,{trailing:!1})),f=[Xe("mousemove",l,e),Xe("touchmove",l,e),Xe("drag",l,e)];return re(function(){f.forEach(function(h){return h()})})}function qb(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=Vn(h);if(!Ze(g,r,o,!0)){var d=null,m=f;if("pointerType"in h){switch(h.pointerType){case"mouse":d=Dt.Mouse;break;case"touch":d=Dt.Touch;break;case"pen":d=Dt.Pen;break}d===Dt.Touch?rt[f]===rt.MouseDown?m="TouchStart":rt[f]===rt.MouseUp&&(m="TouchEnd"):Dt.Pen}else Ca(h)&&(d=Dt.Touch);d!==null?(c=d,(m.startsWith("Touch")&&d===Dt.Touch||m.startsWith("Mouse")&&d===Dt.Mouse)&&(d=null)):rt[f]===rt.Click&&(d=c,c=null);var v=Ca(h)?h.changedTouches[0]:h;if(v){var y=e.getId(g),_=v.clientX,w=v.clientY;re(n)(J({type:rt[m],id:y,x:_,y:w},d!==null&&{pointerType:d}))}}}};return Object.keys(rt).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var h=yr(f),g=l(f);if(window.PointerEvent)switch(rt[f]){case rt.MouseDown:case rt.MouseUp:h=h.replace("mouse","pointer");break;case rt.TouchStart:case rt.TouchEnd:return}u.push(Xe(h,g,i))}),re(function(){u.forEach(function(f){return f()})})}function yp(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling,a=re(Nn(re(function(u){var c=Vn(u);if(!(!c||Ze(c,r,o,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=sp(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 Xe("scroll",a,i)}function jb(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,o=-1,s=re(Nn(re(function(){var a=ap(),u=up();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Xe("resize",s,e)}var Gb=["INPUT","TEXTAREA","SELECT"],$l=new WeakMap;function Wb(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(b){var C=Vn(b),k=b.isTrusted,x=C&&C.tagName;if(C&&x==="OPTION"&&(C=Q.parentElement(C)),!(!C||!x||Gb.indexOf(x)<0||Ze(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var A=C.value,P=!1,q=Qi(C)||"";q==="radio"||q==="checkbox"?P=C.checked:(u[x.toLowerCase()]||u[q])&&(A=Zi({element:C,maskInputOptions:u,tagName:x,type:q,value:A,maskInputFn:c})),g(C,f?{text:A,isChecked:P,userTriggered:k}:{text:A,isChecked:P});var ee=C.name;q==="radio"&&ee&&P&&i.querySelectorAll('input[type="radio"][name="'+ee+'"]').forEach(function($){if($!==C){var U=$.value;g($,f?{text:U,isChecked:!P,userTriggered:!1}:{text:U,isChecked:!P})}})}}function g(b,C){var k=$l.get(b);if(!k||k.text!==C.text||k.isChecked!==C.isChecked){$l.set(b,C);var x=e.getId(b);re(n)(J({},C,{id:x}))}}var d=l.input==="last"?["change"]:["input","change"],m=d.map(function(b){return Xe(b,re(h),i)}),v=i.defaultView;if(!v)return function(){m.forEach(function(b){return b()})};var y=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(y&&y.set){var w;(w=m).push.apply(w,[].concat(_.map(function(b){return Wo(b[0],b[1],{set:function(){re(h)({target:this,isTrusted:!1})}},!1,v)})))}return re(function(){m.forEach(function(b){return b()})})}function fo(t){var n=[];function i(e,r){if(Oi("CSSGroupingRule")&&N(e.parentRule,CSSGroupingRule)||Oi("CSSMediaRule")&&N(e.parentRule,CSSMediaRule)||Oi("CSSSupportsRule")&&N(e.parentRule,CSSSupportsRule)||Oi("CSSConditionRule")&&N(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 Vt(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function Hb(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:re(function(h,g,d){var m=d[0],v=d[1],y=Vt(g,e,r.styleMirror),_=y.id,w=y.styleId;return(_&&_!==-1||w&&w!==-1)&&i({id:_,styleId:w,adds:[{rule:m,index:v}]}),h.apply(g,d)})}),o.CSSStyleSheet.prototype.addRule=function(h,g,d){d===void 0&&(d=this.cssRules.length);var m=h+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[m,d])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:re(function(h,g,d){var m=d[0],v=Vt(g,e,r.styleMirror),y=v.id,_=v.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,removes:[{index:m}]}),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:re(function(h,g,d){var m=d[0],v=Vt(g,e,r.styleMirror),y=v.id,_=v.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,replace:m}),h.apply(g,d)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:re(function(h,g,d){var m=d[0],v=Vt(g,e,r.styleMirror),y=v.id,_=v.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,replaceSync:m}),h.apply(g,d)})}));var l={};xi("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(xi("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),xi("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),xi("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(h){var g=h[0],d=h[1];f[g]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(f[g].insertRule,{apply:re(function(m,v,y){var _=y[0],w=y[1],b=Vt(v.parentStyleSheet,e,r.styleMirror),C=b.id,k=b.styleId;return(C&&C!==-1||k&&k!==-1)&&i({id:C,styleId:k,adds:[{rule:_,index:[].concat(fo(v),[w||0])}]}),m.apply(v,y)})}),d.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:re(function(m,v,y){var _=y[0],w=Vt(v.parentStyleSheet,e,r.styleMirror),b=w.id,C=w.styleId;return(b&&b!==-1||C&&C!==-1)&&i({id:b,styleId:C,removes:[{index:[].concat(fo(v),[_])}]}),m.apply(v,y)})})}),re(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],d=h[1];d.prototype.insertRule=f[g].insertRule,d.prototype.deleteRule=f[g].deleteRule})})}function _p(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?.prototype?Object.getOwnPropertyDescriptor(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{}return g}}),re(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function Vb(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:re(function(c,l,f){var h,g=f[0],d=f[1],m=f[2];if(r.has(g))return a.apply(l,[g,d,m]);var v=Vt((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),y=v.id,_=v.styleId;return(y&&y!==-1||_&&_!==-1)&&i({id:y,styleId:_,set:{property:g,value:d,priority:m},index:fo(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:re(function(c,l,f){var h,g=f[0];if(r.has(g))return u.apply(l,[g]);var d=Vt((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),m=d.id,v=d.styleId;return(m&&m!==-1||v&&v!==-1)&&i({id:m,styleId:v,remove:{property:g},index:fo(l.parentRule)}),c.apply(l,f)})}),re(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Yb(t){var n=t.mediaInteractionCb,i=t.blockClass,e=t.blockSelector,r=t.mirror,o=t.sampling,s=t.doc,a=re(function(c){return Nn(re(function(l){var f=Vn(l);if(!(!f||Ze(f,i,e,!0))){var h=f.currentTime,g=f.volume,d=f.muted,m=f.playbackRate,v=f.loop;n({type:c,id:r.getId(f),currentTime:h,volume:g,muted:d,playbackRate:m,loop:v})}}),o.media||500)}),u=[Xe("play",a($r.Play),s),Xe("pause",a($r.Pause),s),Xe("seeked",a($r.Seeked),s),Xe("volumechange",a($r.VolumeChange),s),Xe("ratechange",a($r.RateChange),s)];return re(function(){u.forEach(function(c){return c()})})}function Kb(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=Er(i.fonts,"add",function(u){return function(c){return setTimeout(re(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),re(function(){r.forEach(function(u){return u()})})}function Jb(t){var n=t.doc,i=t.mirror,e=t.blockClass,r=t.blockSelector,o=t.selectionCb,s=!0,a=re(function(){var u=n.getSelection();if(!(!u||s&&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,d=h.startOffset,m=h.endContainer,v=h.endOffset,y=Ze(g,e,r,!0)||Ze(m,e,r,!0);y||c.push({start:i.getId(g),startOffset:d,end:i.getId(m),endOffset:v})}o({ranges:c})}});return a(),Xe("selectionchange",a)}function Xb(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=Er(e.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch{console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function Zb(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,d=t.customElementCb;t.mutationCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(v))}i.apply(void 0,[].concat(v))},t.mousemoveCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(v))}e.apply(void 0,[].concat(v))},t.mouseInteractionCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(v))}r.apply(void 0,[].concat(v))},t.scrollCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(v))}o.apply(void 0,[].concat(v))},t.viewportResizeCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(v))}s.apply(void 0,[].concat(v))},t.inputCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.input){var _;(_=n).input.apply(_,[].concat(v))}a.apply(void 0,[].concat(v))},t.mediaInteractionCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(v))}u.apply(void 0,[].concat(v))},t.styleSheetRuleCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(v))}c.apply(void 0,[].concat(v))},t.styleDeclarationCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(v))}l.apply(void 0,[].concat(v))},t.canvasMutationCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(v))}f.apply(void 0,[].concat(v))},t.fontCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.font){var _;(_=n).font.apply(_,[].concat(v))}h.apply(void 0,[].concat(v))},t.selectionCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.selection){var _;(_=n).selection.apply(_,[].concat(v))}g.apply(void 0,[].concat(v))},t.customElementCb=function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(v))}d.apply(void 0,[].concat(v))}}function Qb(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};Zb(t,n);var e;t.recordDOM&&(e=mp(t,t.doc));var r=zb(t),o=qb(t),s=yp(t),a=jb(t,{win:i}),u=Wb(t),c=Yb(t),l=function(){},f=function(){},h=function(){},g=function(){};t.recordDOM&&(l=Hb(t,{win:i}),f=_p(t,t.doc),h=Vb(t,{win:i}),t.collectFonts&&(g=Kb(t)));for(var d=Jb(t),m=Xb(t),v=[],y=O(t.plugins),_;!(_=y()).done;){var w=_.value;v.push(w.observer(w.callback,i,w.options))}return re(function(){kt.forEach(function(b){return b.reset()}),e?.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),h(),g(),d(),m(),v.forEach(function(b){return b()})})}function Oi(t){return typeof window[t]<"u"}function xi(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}var Ll=(function(){function t(i){R(this,"iframeIdToRemoteIdMap",new WeakMap),R(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})(),eS=(function(){function t(i){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new Ll(Bf)),R(this,"crossOriginIframeStyleMirror"),R(this,"crossOriginIframeRootIdMap",new WeakMap),R(this,"iframeContentDocumentMap",new WeakMap),R(this,"iframeObserverCleanupMap",new WeakMap),R(this,"mirror"),R(this,"mutationCb"),R(this,"wrappedEmit"),R(this,"loadListener"),R(this,"stylesheetManager"),R(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ll(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{}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 te.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:te.IncrementalSnapshot,data:{source:G.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case te.Meta:case te.Load:case te.DomContentLoaded:return!1;case te.Plugin:return r;case te.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case te.IncrementalSnapshot:switch(r.data.source){case G.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 G.Drag:case G.TouchMove:case G.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,e,["id"])}),r;case G.ViewportResize:return!1;case G.MediaInteraction:case G.MouseInteraction:case G.Scroll:case G.CanvasMutation:case G.Input:return this.replaceIds(r.data,e,["id"]),r;case G.StyleSheetRule:case G.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case G.Font:return r;case G.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,e,["start","end"])}),r;case G.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=O(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!==vp.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},t})(),tS=(function(){function t(i){R(this,"shadowDoms",new WeakSet),R(this,"mutationCb"),R(this,"scrollCb"),R(this,"bypassOptions"),R(this,"mirror"),R(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(_n(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=mp(J({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(yp(J({},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(_p({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(Er(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=Q.shadowRoot(this);return c&&dp(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),Dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rS=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(dn=0;dn<Dr.length;dn++)rS[Dr.charCodeAt(dn)]=dn;var dn,nS=function(n){var i=new Uint8Array(n),e,r=i.length,o="";for(e=0;e<r;e+=3)o+=Dr[i[e]>>2],o+=Dr[(i[e]&3)<<4|i[e+1]>>4],o+=Dr[(i[e+1]&15)<<2|i[e+2]>>6],o+=Dr[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 iS(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 wp=function(t,n,i){if(!(!t||!(Sp(t,n)||(typeof t>"u"?"undefined":D(t))==="object"))){var e=t.constructor.name,r=iS(i,e),o=r.indexOf(t);return o===-1&&(o=r.length,r.push(t)),o}};function Vi(t,n,i){if(N(t,Array))return t.map(function(d){return Vi(d,n,i)});if(t===null)return t;if(N(t,Float32Array)||N(t,Float64Array)||N(t,Int32Array)||N(t,Uint32Array)||N(t,Uint8Array)||N(t,Uint16Array)||N(t,Int16Array)||N(t,Int8Array)||N(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(N(t,ArrayBuffer)){var r=t.constructor.name,o=nS(t);return{rr_type:r,base64:o}}else if(N(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[Vi(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(N(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(N(t,HTMLCanvasElement)){var c="HTMLImageElement",l=t.toDataURL();return{rr_type:c,src:l}}else if(N(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[Vi(t.data,n,i),t.width,t.height]}}else if(Sp(t,n)||(typeof t>"u"?"undefined":D(t))==="object"){var h=t.constructor.name,g=wp(t,n,i);return{rr_type:h,index:g}}return t}var bp=function(t,n,i){return t.map(function(e){return Vi(e,n,i)})},Sp=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 N(t,n[r])})};function oS(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=Er(n.CanvasRenderingContext2D.prototype,c,function(h){return function(){for(var g=this,d=arguments.length,m=new Array(d),v=0;v<d;v++)m[v]=arguments[v];return Ze(this.canvas,i,e,!0)||setTimeout(function(){var y=bp(m,n,g);t(g.canvas,{type:Vr["2D"],property:c,args:y})},0),h.apply(this,m)}});o.push(l)}catch{var f=Wo(n.CanvasRenderingContext2D.prototype,c,{set:function(d){t(this.canvas,{type:Vr["2D"],property:c,args:[d],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=O(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function sS(t){return t==="experimental-webgl"?"webgl":t}function Dl(t,n,i,e){var r=[];try{var o=Er(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(!Ze(this,n,i,!0)){var f=sS(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(c[0]&&D(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{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function Fl(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=Er(t,f,function(d){return function(){for(var m=arguments.length,v=new Array(m),y=0;y<m;y++)v[y]=arguments[y];var _=d.apply(this,v);if(wp(_,o,this),"tagName"in this.canvas&&!Ze(this.canvas,e,r,!0)){var w=bp(v,o,this),b={type:n,property:f,args:w};i(this.canvas,b)}return _}});a.push(h)}catch{var g=Wo(t,f,{set:function(v){i(this.canvas,{type:n,property:f,args:[v],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(t),c=O(u),l;!(l=c()).done;)s();return a}function aS(t,n,i,e){var r,o=[];if((r=o).push.apply(r,[].concat(Fl(n.WebGLRenderingContext.prototype,Vr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext<"u"){var s;(s=o).push.apply(s,[].concat(Fl(n.WebGL2RenderingContext.prototype,Vr.WebGL2,t,i,e,n)))}return function(){o.forEach(function(a){return a()})}}var Cp="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",uS=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},Ul=typeof window<"u"&&window.Blob&&new Blob([uS(Cp)],{type:"text/javascript;charset=utf-8"});function cS(t){var n;try{if(n=Ul&&(window.URL||window.webkitURL).createObjectURL(Ul),!n)throw"";var i=new Worker(n,{name:t?.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch{return new Worker("data:text/javascript;base64,"+Cp,{name:t?.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var lS=(function(){function t(i){var e=this;R(this,"pendingCanvasMutations",new Map),R(this,"rafStamps",{latestId:0,invokeId:null}),R(this,"mirror"),R(this,"mutationCb"),R(this,"resetObservers"),R(this,"frozen",!1),R(this,"locked",!1),R(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=Dl(r,o,s,!0),l=new Map,f=new cS;f.onmessage=function(y){var _=y.data.id;if(l.set(_,!1),"base64"in y.data){var w=y.data,b=w.base64,C=w.type,k=w.width,x=w.height;u.mutationCb({id:_,type:Vr["2D"],commands:[{property:"clearRect",args:[0,0,k,x]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:C}]},0,0]}]})}};var h=1e3/e,g=0,d,m=function(){var y=[];return r.document.querySelectorAll("canvas").forEach(function(_){Ze(_,o,s,!0)||y.push(_)}),y},v=function(y){if(g&&y-g<h){d=requestAnimationFrame(v);return}g=y;var _=u;m().forEach($o(function(w){var b,C,k,x;return mr(this,function(A){switch(A.label){case 0:return C=_.mirror.getId(w),l.get(C)?[2]:w.width===0||w.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(w.__context)&&(k=w.getContext(w.__context),((b=k?.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&k.clear(k.COLOR_BUFFER_BIT)),[4,createImageBitmap(w)]);case 1:return x=A.sent(),f.postMessage({id:C,bitmap:x,width:w.width,height:w.height,dataURLOptions:a.dataURLOptions},[x]),[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=Dl(e,r,o,!1),a=oS(this.processMutation.bind(this),e,r,o),u=aS(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=gr(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t})(),fS=(function(){function t(i){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new Mb),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,d){return{rule:Df(g,f.href),index:d}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],c=O(e),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.cleanupStylesheetsForRemovedNode=function(e){var r=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var o=e;if(o.adoptedStyleSheets)for(var s=O(o.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var c=e;c.sheet&&this.styleMirror.remove(c.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(f){r.cleanupStylesheetsForRemovedNode(f)})}catch{}},n.trackStylesheetInLinkElement=function(e){},t})(),hS=(function(){function t(){R(this,"nodeMap",new WeakMap),R(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})();function pS(t){try{var n=new URL(t).origin;return n!=="null"?n:null}catch{return null}}function dS(t){if(!Array.isArray(t)||t.length===0)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var n=new Set,i=0;i<t.length;i++){var e=t[i];if(typeof e!="string")throw new Error("[rrweb] allowedIframeOrigins["+i+"] must be a string, got "+(typeof e>"u"?"undefined":D(e))+".");var r=pS(e);r&&n.add(r)}return Object.freeze(n)}var Me,Yi,Os,ho=!1;try{Array.from([1],function(t){return t*2})[0]!==2&&(Ri=document.createElement("iframe"),document.body.appendChild(Ri),Array.from=((Bc=Ri.contentWindow)==null?void 0:Bc.Array.from)||Array.from,document.body.removeChild(Ri))}catch(t){console.debug("Unable to override Array.from",t)}var Ri,ht=cm();function nr(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,d=t.maskTextSelector,m=d===void 0?null:d,v=t.inlineStylesheet,y=v===void 0?!0:v,_=t.maskAllInputs,w=t.maskInputOptions,b=t.slimDOMOptions,C=t.maskInputFn,k=t.maskTextFn,x=t.hooks,A=t.packFn,P=t.sampling,q=P===void 0?{}:P,ee=t.dataURLOptions,$=ee===void 0?{}:ee,U=t.mousemoveWait,K=t.recordDOM,B=K===void 0?!0:K,Ae=t.recordCanvas,ie=Ae===void 0?!1:Ae,se=t.recordCrossOriginIframes,Z=se===void 0?!1:se,he=t.allowedIframeOrigins,je=t.recordAfter,Se=je===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":je,yt=t.userTriggeredOnInput,Ge=yt===void 0?!1:yt,_t=t.collectFonts,z=_t===void 0?!1:_t,Fe=t.inlineImages,le=Fe===void 0?!1:Fe,xe=t.plugins,ot=t.keepIframeSrcFn,et=ot===void 0?function(){return!1}:ot,wt=t.ignoreCSSAttributes,ft=wt===void 0?new Set([]):wt,Ke=t.errorHandler;Fb(Ke);var tt;Z&&he&&he.length>0&&(tt=dS(he),tt.size===0&&(tt=void 0));var We=Z?window.parent===window:!0,bt=!1;if(!We)try{window.parent.document&&(bt=!1)}catch{bt=!0}if(We&&!n)throw new Error("emit function is required");if(!We&&!bt)return function(){};U!==void 0&&q.mousemove===void 0&&(q.mousemove=U),ht.reset();var Lt=_===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:w!==void 0?w:{password:!0},it=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all",headTitleMutations:b==="all"}:b||{};Ab();var st,Rr=0,Ac=function(oe){for(var Je=O(xe||[]),L;!(L=Je()).done;){var de=L.value;de.eventProcessor&&(oe=de.eventProcessor(oe))}return A&&!bt&&(oe=A(oe)),oe};Me=function(oe,Je){var L,de=oe;if(de.timestamp=lo(),(L=kt[0])!=null&&L.isFrozen()&&de.type!==te.FullSnapshot&&!(de.type===te.IncrementalSnapshot&&de.data.source===G.Mutation)&&kt.forEach(function(kg){return kg.unfreeze()}),We)n?.(Ac(de),Je);else if(bt){var dr={type:"rrweb",event:Ac(de),origin:window.location.origin,isCheckout:Je};if(tt)for(var fs=O(tt),Nc;!(Nc=fs()).done;){var Cg=Nc.value;window.parent.postMessage(dr,Cg)}else window.parent.postMessage(dr,"*")}if(de.type===te.FullSnapshot)st=de,Rr=0;else if(de.type===te.IncrementalSnapshot){if(de.data.source===G.Mutation&&de.data.isAttachIframe)return;Rr++;var Eg=e&&Rr>=e,Ig=i&&de.timestamp-st.timestamp>i;(Eg||Ig)&&Yi(!0)}};for(var ri=function(oe){Me({type:te.IncrementalSnapshot,data:J({source:G.Mutation},oe)})},Mc=function(oe){return Me({type:te.IncrementalSnapshot,data:J({source:G.Scroll},oe)})},Tc=function(oe){return Me({type:te.IncrementalSnapshot,data:J({source:G.CanvasMutation},oe)})},bg=function(oe){return Me({type:te.IncrementalSnapshot,data:J({source:G.AdoptedStyleSheet},oe)})},hr=new fS({mutationCb:ri,adoptedStyleSheetCb:bg}),Nt=new eS({mirror:ht,mutationCb:ri,stylesheetManager:hr,recordCrossOriginIframes:Z,wrappedEmit:Me}),Sg=O(xe||[]),Pc;!(Pc=Sg()).done;){var $c=Pc.value;$c.getMirror&&$c.getMirror({nodeMirror:ht,crossOriginIframeMirror:Nt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Nt.crossOriginIframeStyleMirror})}var cs=new hS;Os=new lS({recordCanvas:ie,mutationCb:Tc,win:window,blockClass:o,blockSelector:a,mirror:ht,sampling:q.canvas,dataURLOptions:$});var ni=new tS({mutationCb:ri,scrollCb:Mc,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:Lt,dataURLOptions:$,maskTextFn:k,maskInputFn:C,recordCanvas:ie,inlineImages:le,sampling:q,slimDOMOptions:it,iframeManager:Nt,stylesheetManager:hr,canvasManager:Os,keepIframeSrcFn:et,processedNodeManager:cs},mirror:ht});Yi=function(oe){if(oe===void 0&&(oe=!1),!!B){Me({type:te.Meta,data:{href:window.location.href,width:up(),height:ap()}},oe),hr.reset(),ni.init(),kt.forEach(function(L){return L.lock()});var Je=Pm(document,{mirror:ht,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:Lt,maskTextFn:k,maskInputFn:C,slimDOM:it,dataURLOptions:$,recordCanvas:ie,inlineImages:le,onSerialize:function(L){fp(L,ht)&&Nt.addIframe(L),hp(L,ht)&&hr.trackLinkElement(L),Ea(L)&&ni.addShadowRoot(Q.shadowRoot(L),document)},onIframeLoad:function(L,de){Nt.attachIframe(L,de),ni.observeAttachShadow(L)},onStylesheetLoad:function(L,de){hr.attachLinkElement(L,de)},keepIframeSrcFn:et});if(!Je)return console.warn("Failed to snapshot the document");Me({type:te.FullSnapshot,data:{node:Je,initialOffset:sp(window)}},oe),kt.forEach(function(L){return L.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&hr.adoptStyleSheets(document.adoptedStyleSheets,ht.getId(document))}};try{var pr=[],Lc=function(oe){var Je;return re(Qb)({mutationCb:ri,mousemoveCb:function(L,de){return Me({type:te.IncrementalSnapshot,data:{source:de,positions:L}})},mouseInteractionCb:function(L){return Me({type:te.IncrementalSnapshot,data:J({source:G.MouseInteraction},L)})},scrollCb:Mc,viewportResizeCb:function(L){return Me({type:te.IncrementalSnapshot,data:J({source:G.ViewportResize},L)})},inputCb:function(L){return Me({type:te.IncrementalSnapshot,data:J({source:G.Input},L)})},mediaInteractionCb:function(L){return Me({type:te.IncrementalSnapshot,data:J({source:G.MediaInteraction},L)})},styleSheetRuleCb:function(L){return Me({type:te.IncrementalSnapshot,data:J({source:G.StyleSheetRule},L)})},styleDeclarationCb:function(L){return Me({type:te.IncrementalSnapshot,data:J({source:G.StyleDeclaration},L)})},canvasMutationCb:Tc,fontCb:function(L){return Me({type:te.IncrementalSnapshot,data:J({source:G.Font},L)})},selectionCb:function(L){Me({type:te.IncrementalSnapshot,data:J({source:G.Selection},L)})},customElementCb:function(L){Me({type:te.IncrementalSnapshot,data:J({source:G.CustomElement},L)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:m,maskInputOptions:Lt,inlineStylesheet:y,sampling:q,recordDOM:B,recordCanvas:ie,inlineImages:le,userTriggeredOnInput:Ge,collectFonts:z,doc:oe,maskInputFn:C,maskTextFn:k,keepIframeSrcFn:et,blockSelector:a,slimDOMOptions:it,dataURLOptions:$,mirror:ht,iframeManager:Nt,stylesheetManager:hr,shadowDomManager:ni,processedNodeManager:cs,canvasManager:Os,ignoreCSSAttributes:ft,plugins:((Je=xe?.filter(function(L){return L.observer}))==null?void 0:Je.map(function(L){return{observer:L.observer,options:L.options,callback:function(de){return Me({type:te.Plugin,data:{plugin:L.name,payload:de}})}}}))||[]},x)};Nt.addLoadListener(function(oe){try{var Je=oe.contentDocument,L=Lc(Je);pr.push(L);var de=Nt.getObserverCleanup(oe);Nt.setObserverCleanup(oe,function(){if(de)try{de()}catch{}try{L();var dr=pr.indexOf(L);dr!==-1&&pr.splice(dr,1),Bb(Je)}catch{}})}catch(dr){console.warn(dr)}});var ls=function(){Yi(),pr.push(Lc(document)),ho=!0};return document.readyState==="interactive"||document.readyState==="complete"?ls():(pr.push(Xe("DOMContentLoaded",function(){Me({type:te.DomContentLoaded,data:{}}),Se==="DOMContentLoaded"&&ls()})),pr.push(Xe("load",function(){Me({type:te.Load,data:{}}),Se==="load"&&ls()},window))),function(){pr.forEach(function(oe){try{oe()}catch(L){var Je=String(L).toLowerCase();Je.includes("cross-origin")||console.warn(L)}}),cs.destroy(),ho=!1,Ub()}}catch(oe){console.warn(oe)}}nr.addCustomEvent=function(t,n){if(!ho)throw new Error("please add custom event after start recording");Me({type:te.Custom,data:{tag:t,payload:n}})};nr.freezePage=function(){kt.forEach(function(t){return t.freeze()})};nr.takeFullSnapshot=function(t){if(!ho)throw new Error("please take full snapshot after start recording");Yi(t)};nr.mirror=ht;var Bl;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Bl||(Bl={}));nr.addCustomEvent;nr.freezePage;nr.takeFullSnapshot;var zl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ql={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ai={},vS=function(){return!!globalThis.Zone};function Ru(t){if(Ai[t])return Ai[t];var n=globalThis[t],i=n.prototype,e=t in zl?zl[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 ql?ql[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&&!vS())return Ai[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?Ai[t]=c:i}catch{return i}}var xs={};function ir(t,n,i){var e,r=t+"."+String(i);if(xs[r])return xs[r].call(n);var o=Ru(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(xs[r]=s,s.call(n)):n[i]}var Rs={};function Ep(t,n,i){var e=t+"."+String(i);if(Rs[e])return Rs[e].bind(n);var r=Ru(t),o=r[i];return typeof o!="function"?n[i]:(Rs[e]=o,o.bind(n))}function gS(t){return ir("Node",t,"childNodes")}function mS(t){return ir("Node",t,"parentNode")}function yS(t){return ir("Node",t,"parentElement")}function _S(t){return ir("Node",t,"textContent")}function wS(t,n){return Ep("Node",t,"contains")(n)}function bS(t){return Ep("Node",t,"getRootNode")()}function SS(t){return!t||!("host"in t)?null:ir("ShadowRoot",t,"host")}function CS(t){return t.styleSheets}function ES(t){return!t||!("shadowRoot"in t)?null:ir("Element",t,"shadowRoot")}function IS(t,n){return ir("Element",t,"querySelector")(n)}function kS(t,n){return ir("Element",t,"querySelectorAll")(n)}function OS(){return Ru("MutationObserver").constructor}function xS(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{return function(){}}}var jl={childNodes:gS,parentNode:mS,parentElement:yS,textContent:_S,contains:wS,getRootNode:bS,host:SS,styleSheets:CS,shadowRoot:ES,querySelector:IS,querySelectorAll:kS,mutationObserver:OS,patch:xS};function ka(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return ka(jl.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return ka(jl.parentNode(t),n)}function RS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function AS(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return N(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 Au={exports:{}},_e=String,Ip=function(){return{isColorSupported:!1,reset:_e,bold:_e,dim:_e,italic:_e,underline:_e,inverse:_e,hidden:_e,strikethrough:_e,black:_e,red:_e,green:_e,yellow:_e,blue:_e,magenta:_e,cyan:_e,white:_e,gray:_e,bgBlack:_e,bgRed:_e,bgGreen:_e,bgYellow:_e,bgBlue:_e,bgMagenta:_e,bgCyan:_e,bgWhite:_e}};Au.exports=Ip();Au.exports.createColors=Ip;var MS=Au.exports,TS={},PS=Object.freeze(Object.defineProperty({__proto__:null,default:TS},Symbol.toStringTag,{value:"Module"})),Ne=AS(PS),Gl=MS,Wl=Ne,Oa=(function(t){Ee(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<"u"&&typeof o<"u"&&(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<"u"&&(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=Gl.isColorSupported),Wl&&r&&(s=Wl(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=Gl.createColors(!0),d=g.bold,m=g.gray,v=g.red;f=function(y){return d(v(y))},h=function(y){return m(y)}}else f=h=function(y){return y};return a.slice(u,c).map(function(y,_){var w=u+1+_,b=" "+(" "+w).slice(-l)+" | ";if(w===o.line){var C=h(b.replace(/\d/g," "))+y.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(b)+y+`
60
+ `+C+f("^")}return" "+h(b)+y}).join(`
61
+ `)},i.toString=function(){var r=this.showSourceCode();return r&&(r=`
62
+
63
+ `+r+`
64
+ `),this.name+": "+this.message+r},n})(kn(Error)),Mu=Oa;Oa.default=Oa;var or={};or.isClean=Symbol("isClean");or.my=Symbol("my");var Hl={after:`
65
+ `,beforeClose:`
66
+ `,beforeComment:`
67
+ `,beforeDecl:`
68
+ `,beforeOpen:" ",beforeRule:`
69
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function $S(t){return t[0].toUpperCase()+t.slice(1)}var xa=(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<"u"?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(`
70
+ `)){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<"u"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Hl[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]<"u")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+$S(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s<"u")return!1}),typeof s>"u"&&(s=Hl[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<"u")return r=o.raws.after,r.includes(`
71
+ `)&&(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<"u")return o=s.raws.before,o.includes(`
72
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?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<"u")return o=s.raws.before,o.includes(`
73
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?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<"u"))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<"u")return r=o.raws.before,r.includes(`
74
+ `)&&(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<"u")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<"u"))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<"u"){var a=o.raws.before.split(`
75
+ `);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<"u"))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})(),kp=xa;xa.default=xa;var LS=kp;function Ra(t,n){var i=new LS(n);i.stringify(t)}var Ho=Ra;Ra.default=Ra;var Mi=or.isClean,NS=or.my,DS=Mu,FS=kp,US=Ho;function Aa(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>"u"?"undefined":D(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Aa(s,i)}):(o==="object"&&r!==null&&(r=Aa(r)),i[e]=r)}return i}var Ma=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Mi]=!1,this[NS]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=O(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=Aa(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 DS(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[Mi]){this[Mi]=!1;for(var e=this;e=e.parent;)e[Mi]=!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]===`
76
+ `?(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 FS;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=O(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var 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>"u"?"undefined":D(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c>"u"?"undefined":D(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=US),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)},be(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Vo=Ma;Ma.default=Ma;var BS=Vo,Ta=(function(t){Ee(n,t);function n(i){var e;return i&&typeof i.value<"u"&&typeof i.value!="string"&&(i=J({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return be(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(BS),Yo=Ta;Ta.default=Ta;var zS="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",qS=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=zS[Math.random()*64|0];return n},jS={nanoid:qS},Vl=Ne.SourceMapConsumer,Yl=Ne.SourceMapGenerator,GS=Ne.existsSync,WS=Ne.readFileSync,As=Ne.dirname,HS=Ne.join;function VS(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Pa=(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=As(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Vl(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 VS(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>"u"?"undefined":D(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=As(e),GS(e))return this.mapFile=e,WS(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(N(r,Vl))return Yl.fromSourceMap(r).toString();if(N(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=HS(As(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})(),Op=Pa;Pa.default=Pa;var YS=Ne.SourceMapConsumer,KS=Ne.SourceMapGenerator,Kl=Ne.fileURLToPath,Ti=Ne.pathToFileURL,$a=Ne.isAbsolute,La=Ne.resolve,JS=jS.nanoid,Ms=Ne,Jl=Mu,XS=Op,Ts=Symbol("fromOffsetCache"),ZS=!!(YS&&KS),Xl=!!(La&&$a),po=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i>"u"||(typeof i>"u"?"undefined":D(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&&(!Xl||/^\w+:\/\//.test(e.from)||$a(e.from)?this.file=e.from:this.file=La(e.from)),Xl&&ZS){var r=new XS(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 "+JS(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>"u"?"undefined":D(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 d=this.fromOffset(r);r=d.line,o=d.col}var m=this.origin(r,o,u,c);return m?a=new Jl(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new Jl(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&&(Ti&&(a.input.url=Ti(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[Ts])o=this[Ts];else{var s=this.css.split(`
77
+ `);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[Ts]=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:La(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;$a(u.source)?l=Ti(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Ti(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(Kl)f.file=Kl(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=J({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},be(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Ko=po;po.default=po;Ms&&Ms.registerInput&&Ms.registerInput(po);var xp=Ne.SourceMapConsumer,Ki=Ne.SourceMapGenerator,Ji=Ne.dirname,Rp=Ne.relative,Ap=Ne.resolve,Mp=Ne.sep,Zl=Ne.pathToFileURL,QS=Ko,eC=!!(xp&&Ki),tC=!!(Ji&&Ap&&Rp&&Mp),rC=(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=`
78
+ `;this.css.includes(`\r
79
+ `)&&(r=`\r
80
+ `),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=O(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Ji(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new xp(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(),tC&&eC&&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=Ki.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ki({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 Ki({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(`
81
+ `),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||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<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?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?Ji(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Ji(Ap(o,this.mapOpts.annotation)));var s=Rp(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 QS(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(Zl){var o=Zl(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;Mp==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Tp=rC,nC=Vo,Na=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(nC),Jo=Na;Na.default=Na;var Pp=or.isClean,$p=or.my,Lp=Yo,Np=Jo,iC=Vo,Dp,Tu,Pu,Fp;function Up(t){return t.map(function(n){return n.nodes&&(n.nodes=Up(n.nodes)),delete n.source,n})}function Bp(t){if(t[Pp]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Bp(e)}}var qt=(function(t){Ee(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=O(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=O(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=O(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(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=O(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=O(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=Up(Dp(r).nodes);else if(typeof r>"u")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=O(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=O(r),f;!(f=l()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value>"u")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Lp(r)]}else if(r.selector)r=[new Tu(r)];else if(r.name)r=[new Pu(r)];else if(r.text)r=[new Np(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[$p]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Pp]&&Bp(d),typeof d.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(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=O(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=O(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=O(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?N(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?N(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?N(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)}))},be(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})(iC);qt.registerParse=function(t){Dp=t};qt.registerRule=function(t){Tu=t};qt.registerAtRule=function(t){Pu=t};qt.registerRoot=function(t){Fp=t};var Ir=qt;qt.default=qt;qt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Pu.prototype):t.type==="rule"?Object.setPrototypeOf(t,Tu.prototype):t.type==="decl"?Object.setPrototypeOf(t,Lp.prototype):t.type==="comment"?Object.setPrototypeOf(t,Np.prototype):t.type==="root"&&Object.setPrototypeOf(t,Fp.prototype),t[$p]=!0,t.nodes&&t.nodes.forEach(function(n){qt.rebuild(n)})};var oC=Ir,zp,qp,Dn=(function(t){Ee(n,t);function n(e){var r;return r=t.call(this,J({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 zp(new qp,this,r);return o.stringify()},n})(oC);Dn.registerLazyResult=function(t){zp=t};Dn.registerProcessor=function(t){qp=t};var $u=Dn;Dn.default=Dn;var Ql={},jp=function(n){Ql[n]||(Ql[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))},Da=(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})(),Gp=Da;Da.default=Da;var sC=Gp,Fa=(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 sC(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},be(t,[{key:"content",get:function(){return this.css}}]),t})(),Lu=Fa;Fa.default=Fa;var Ps=39,ef=34,Pi=92,tf=47,$i=10,vn=32,Li=12,Ni=9,Di=13,aC=91,uC=93,cC=40,lC=41,fC=123,hC=125,pC=59,dC=42,vC=58,gC=64,Fi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ui=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,mC=/.[\r\n"'(/\\]/,rf=/[\da-f]/i,yC=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,d,m=e.length,v=0,y=[],_=[];function w(){return v}function b(A){throw n.error("Unclosed "+A,v)}function C(){return _.length===0&&v>=m}function k(A){if(_.length)return _.pop();if(!(v>=m)){var P=A?A.ignoreUnclosed:!1;switch(o=e.charCodeAt(v),o){case $i:case vn:case Ni:case Di:case Li:{s=v;do s+=1,o=e.charCodeAt(s);while(o===vn||o===$i||o===Ni||o===Di||o===Li);d=["space",e.slice(v,s)],v=s-1;break}case aC:case uC:case fC:case hC:case vC:case pC:case lC:{var q=String.fromCharCode(o);d=[q,q,v];break}case cC:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==Ps&&g!==ef&&g!==vn&&g!==$i&&g!==Ni&&g!==Li&&g!==Di){s=v;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||P){s=v;break}else b("bracket");for(f=s;e.charCodeAt(f-1)===Pi;)f-=1,l=!l}while(l);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||mC.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case Ps:case ef:{a=o===Ps?"'":'"',s=v;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||P){s=v+1;break}else b("string");for(f=s;e.charCodeAt(f-1)===Pi;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case gC:{Fi.lastIndex=v+1,Fi.test(e),Fi.lastIndex===0?s=e.length-1:s=Fi.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!==tf&&o!==vn&&o!==$i&&o!==Ni&&o!==Di&&o!==Li&&(s+=1,rf.test(e.charAt(s)))){for(;rf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===vn&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===tf&&e.charCodeAt(v+1)===dC?(s=e.indexOf("*/",v+2)+1,s===0&&(r||P?s=e.length:b("comment")),d=["comment",e.slice(v,s+1),v,s],v=s):(Ui.lastIndex=v+1,Ui.test(e),Ui.lastIndex===0?s=e.length-1:s=Ui.lastIndex-2,d=["word",e.slice(v,s+1),v,s],y.push(d),v=s);break}}return v++,d}}function x(A){_.push(A)}return{back:x,endOfFile:C,nextToken:k,position:w}},Wp=Ir,vo=(function(t){Ee(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})(Wp),Nu=vo;vo.default=vo;Wp.registerAtRule(vo);var Hp=Ir,Vp,Yp,Yr=(function(t){Ee(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=O(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Vp(new Yp,this,r);return o.stringify()},n})(Hp);Yr.registerLazyResult=function(t){Vp=t};Yr.registerProcessor=function(t){Yp=t};var Yn=Yr;Yr.default=Yr;Hp.registerRoot(Yr);var Fn={comma:function(n){return Fn.split(n,[","],!0)},space:function(n){var i=[" ",`
82
+ `," "];return Fn.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=O(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}},Kp=Fn;Fn.default=Fn;var Jp=Ir,_C=Kp,go=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return be(n,[{key:"selectors",get:function(){return _C.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})(Jp),Du=go;go.default=go;Jp.registerRule(go);var wC=Yo,bC=yC,SC=Jo,CC=Nu,EC=Yn,nf=Du,of={empty:!0,space:!0};function IC(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var kC=(function(){function t(i){this.input=i,this.root=new EC,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 CC;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=O(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 SC;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=bC(this.input)},n.decl=function(e,r){var o=new wC;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]||IC(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),d="",m=f;m>0;m--){var v=g[m][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 y=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});y&&(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 nf;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,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",h=o[d+1]?o[d+1][0]:"empty",!of[g]&&!of[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var m=o.reduce(function(v,y){return v+y[1]},"");e.raws[r]={raw:m,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new nf;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})(),OC=kC,xC=Ir,RC=OC,AC=Ko;function mo(t,n){var i=new AC(t,n),e=new RC(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+=`
83
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(n.from)?r.message+=`
84
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(n.from)&&(r.message+=`
85
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),r}return e.root}var Fu=mo;mo.default=mo;xC.registerParse(mo);var Et=or.isClean,MC=or.my,TC=Tp,PC=Ho,$C=Ir,LC=$u,NC=jp,sf=Lu,DC=Fu,FC=Yn,UC={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},BC={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},zC={Once:!0,postcssPlugin:!0,prepare:!0},Kr=0;function gn(t){return(typeof t>"u"?"undefined":D(t))==="object"&&typeof t.then=="function"}function Xp(t){var n=!1,i=UC[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Kr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Kr,i+"Exit"]:[i,i+"Exit"]}function af(t){var n;return t.type==="document"?n=["Document",Kr,"DocumentExit"]:t.type==="root"?n=["Root",Kr,"RootExit"]:n=Xp(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Ua(t){return t[Et]=!1,t.nodes&&t.nodes.forEach(function(n){return Ua(n)}),t}var Ba={},Jr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e>"u"?"undefined":D(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Ua(e);else if(N(e,t)||N(e,sf))s=Ua(e.root),e.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=DC;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[MC]&&$C.rebuild(s)}this.result=new sf(i,s,r),this.helpers=J({},Ba,{postcss:Ba,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u>"u"?"undefined":D(u))==="object"&&u.prepare?J({},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=O(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a>"u"?"undefined":D(a))==="object")for(var u in a){if(!BC[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!zC[u])if(D(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 $o(function(){var r,o,s,a,u,c,l,f,h,g,d,m;return mr(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),!gn(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[Et])return[3,14];u[Et]=!0,c=[af(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!gn(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.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 y,_,w,b,C;return mr(this,function(k){switch(k.label){case 0:y=m.value,_=y[0],w=y[1],e.result.lastPlugin=_,k.label=1;case 1:return k.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(b=u.nodes.map(function(x){return w(x,e.helpers)}),[4,Promise.all(b)]);case 2:return k.sent(),[3,5];case 3:return[4,w(u,e.helpers)];case 4:k.sent(),k.label=5;case 5:return[3,7];case 6:throw C=k.sent(),e.handleError(C);case 7:return[2]}})},d=O(e.listeners.OnceExit),v.label=15;case 15:return(m=d()).done?[3,18]:[5,ou(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>"u"?"undefined":D(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 gn(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=PC;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new TC(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=O(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(gn(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Et];)a[Et]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=O(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||NC("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=O(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(gn(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(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Et]){f[Et]=!0,e.push(af(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===Kr){o.nodes&&o.nodes.length&&(o[Et]=!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[Et]=!0;for(var o=Xp(e),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===Kr)e.nodes&&e.each(function(l){l[Et]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},be(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})();Jr.registerPostcss=function(t){Ba=t};var Zp=Jr;Jr.default=Jr;FC.registerLazyResult(Jr);LC.registerLazyResult(Jr);var qC=Tp,jC=Ho,GC=jp,WC=Fu,HC=Lu,za=(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=jC;this.result=new HC(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 qC(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||GC("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[]},be(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=WC;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})(),VC=za;za.default=za;var YC=VC,KC=Zp,JC=$u,XC=Yn,Un=(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=O(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a>"u"?"undefined":D(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a>"u"?"undefined":D(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a>"u"?"undefined":D(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 YC(this,e,r):new KC(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),ZC=Un;Un.default=Un;XC.registerProcessor(Un);JC.registerProcessor(Un);var QC=Yo,eE=Op,tE=Jo,rE=Nu,nE=Ko,iE=Yn,oE=Du;function Bn(t,n){if(Array.isArray(t))return t.map(function(f){return Bn(f)});var i=t.inputs,e=gr(t,["inputs"]);if(i){n=[];for(var r=O(i),o;!(o=r()).done;){var s=o.value,a=J({},s,{__proto__:nE.prototype});a.map&&(a.map=J({},a.map,{__proto__:eE.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Bn(f,n)})),e.source){var u=e.source,c=u.inputId,l=gr(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new iE(e);if(e.type==="decl")return new QC(e);if(e.type==="rule")return new oE(e);if(e.type==="comment")return new tE(e);if(e.type==="atrule")return new rE(e);throw new Error("Unknown node type: "+t.type)}var sE=Bn;Bn.default=Bn;var aE=Mu,Qp=Yo,uE=Zp,cE=Ir,Uu=ZC,lE=Ho,fE=sE,ed=$u,hE=Gp,td=Jo,rd=Nu,pE=Lu,dE=Ko,vE=Fu,gE=Kp,nd=Du,id=Yn,mE=Vo;function ce(){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 Uu(n)}ce.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:
86
+ https://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:
87
+ https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Uu().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return ce([r(u)]).process(s,a)},r};ce.stringify=lE;ce.parse=vE;ce.fromJSON=fE;ce.list=gE;ce.comment=function(t){return new td(t)};ce.atRule=function(t){return new rd(t)};ce.decl=function(t){return new Qp(t)};ce.rule=function(t){return new nd(t)};ce.root=function(t){return new id(t)};ce.document=function(t){return new ed(t)};ce.CssSyntaxError=aE;ce.Declaration=Qp;ce.Container=cE;ce.Processor=Uu;ce.Document=ed;ce.Comment=td;ce.Warning=hE;ce.AtRule=rd;ce.Result=pE;ce.Input=dE;ce.Rule=nd;ce.Root=id;ce.Node=mE;uE.registerPostcss(ce);var yE=ce;ce.default=ce;var Oe=RS(yE);Oe.stringify;Oe.fromJSON;Oe.plugin;Oe.parse;Oe.list;Oe.document;Oe.comment;Oe.atRule;Oe.rule;Oe.decl;Oe.root;Oe.CssSyntaxError;Oe.Declaration;Oe.Container;Oe.Processor;Oe.Document;Oe.Comment;Oe.Warning;Oe.AtRule;Oe.Result;Oe.Input;Oe.Rule;Oe.Root;Oe.Node;var _E=Object.defineProperty,wE=function(t,n,i){return n in t?_E(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Bi=function(t,n,i){return wE(t,(typeof n>"u"?"undefined":D(n))!=="symbol"?n+"":n,i)};function bE(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{return function(){}}}var Mr=(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})(),SE=/(^|@)\S+:\d+/,uf=/^\s*at .*(\S+:\d+|\(native\))/m,CE=/^(eval@)?(\[native code])?$/,$s={parse:function(n){return n?typeof n.stacktrace<"u"||typeof n["opera#sourceloc"]<"u"?this.parseOpera(n):n.stack&&n.stack.match(uf)?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(`
88
+ `).filter(function(e){return!!e.match(uf)},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 Mr({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split(`
89
+ `).filter(function(e){return!e.match(CE)},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 Mr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,a=this.extractLocation(e.replace(r,""));return new Mr({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf(`
90
+ `)>-1&&n.message.split(`
91
+ `).length>n.stacktrace.split(`
92
+ `).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(`
93
+ `),r=[],o=2,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new Mr({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(`
94
+ `),r=[],o=0,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new Mr({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split(`
95
+ `).filter(function(e){return!!e.match(SE)&&!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 Mr({functionName:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function EE(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 qa(t){return Object.prototype.toString.call(t)==="[object Object]"}function od(t,n){if(n===0)return!0;for(var i=Object.keys(t),e=O(i),r;!(r=e()).done;){var o=r.value;if(qa(t[o])&&od(t[o],n-1))return!0}return!1}function Tr(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>"u"?"undefined":D(u))==="bigint")return u.toString()+"n";if(N(u,Event)){var l={};for(var f in u){var h=u[f];Array.isArray(h)?l[f]=EE(h.length?h[0]:null):l[f]=h}return l}else{if(N(u,Node))return N(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(N(u,Error))return u.stack?u.stack+`
96
+ End of stack for Error object`:u.name+": "+u.message}return u});function o(a){return!!(qa(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||qa(a)&&od(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 cf={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 IE(t,n,i){var e=i?Object.assign({},cf,i):cf,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(m){var v=m.message,y=m.error,_=$s.parse(y).map(function(b){return b.toString()}),w=[Tr(v,e.stringifyOptions)];t({level:"error",trace:_,payload:w})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var l=function(m){var v,y;N(m.reason,Error)?(v=m.reason,y=[Tr("Uncaught (in promise) "+v.name+": "+v.message,e.stringifyOptions)]):(v=new Error,y=[Tr("Uncaught (in promise)",e.stringifyOptions),Tr(m.reason,e.stringifyOptions)]);var _=$s.parse(v).map(function(w){return w.toString()});t({level:"error",trace:_,payload:y})};n.addEventListener("unhandledrejection",l),u.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var f=O(e.level),h;!(h=f()).done;){var g=h.value;u.push(d(o,g))}return function(){u.forEach(function(m){return m()})};function d(m,v){var y=this;return m[v]?bE(m,v,function(_){var w=y;return function(){for(var b=arguments.length,C=new Array(b),k=0;k<b;k++)C[k]=arguments[k];if(_.apply(w,C),!(v==="assert"&&C[0])&&!a){a=!0;try{var x=$s.parse(new Error).map(function(q){return q.toString()}).splice(1),A=v==="assert"?C.slice(1):C,P=A.map(function(q){return Tr(q,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:v,trace:x,payload:P}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[Tr("The number of log records reached the threshold.")]})}catch(q){_.apply(void 0,[].concat(["rrweb logger error:",q],C))}finally{a=!1}}}}):function(){}}}var kE="rrweb/console@1",OE=function(t){return{name:kE,observer:IE,options:t}},lf=E.setImmediate,Xt,ja,Ga,sd=Object.prototype.toString,xE=typeof lf<"u"?function(n){return lf(n)}:setTimeout;try{Object.defineProperty({},"x",{}),Xt=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch{Xt=function(i,e,r){return i[e]=r,i}}Ga=(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=ja=void 0;s;)s.fn.call(s.self),s=s.next}}})();function yo(t,n){Ga.add(t,n),ja||(ja=xE(Ga.drain))}function ad(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function Bu(){for(var t=0;t<this.chain.length;t++)RE(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function RE(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=ad(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(o){i.reject(o)}}function ud(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=ad(t))?yo(function(){var e=new ff(i);try{n.call(t,function(){ud.apply(e,arguments)},function(){bn.apply(e,arguments)})}catch(r){bn.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&yo(Bu,i))}catch(e){bn.call(new ff(i),e)}}}function bn(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&yo(Bu,n))}function cd(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 ff(t){this.def=t,this.triggered=!1}function AE(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function sr(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 AE(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&&yo(Bu,n),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){ud.call(n,e)},function(e){bn.call(n,e)})}catch(i){bn.call(n,i)}}var ld=Xt({},"constructor",sr,!1);sr.prototype=ld;Xt(ld,"__NPO__",0,!1);Xt(sr,"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)})});Xt(sr,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})});Xt(sr,"all",function(n){var i=this;return sd.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;cd(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})});Xt(sr,"race",function(n){var i=this;return sd.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");cd(i,n,function(a,u){r(u)},o)})});var V;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?V=Promise:V=sr;var Sn=1440*60*1e3,Ls=8*1e3,Xo=Array.prototype,ME=Function.prototype,fd=Object.prototype,Yt=Xo.slice,Kn=fd.toString,Zo=fd.hasOwnProperty,Ue=E.console,Ft=E.navigator,W=E.document,mn=E.opera,hf=E.screen,It=Ft.userAgent,Ns=ME.bind,pf=Xo.forEach,df=Xo.indexOf,vf=Xo.map,TE=Array.isArray,Wa={},p={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},H={log:function(){if(nt.DEBUG&&!p.isUndefined(Ue)&&Ue)try{Ue.log.apply(Ue,arguments)}catch{p.each(arguments,function(n){Ue.log(n)})}},warn:function(){if(nt.DEBUG&&!p.isUndefined(Ue)&&Ue){var t=["Mixpanel warning:"].concat(p.toArray(arguments));try{Ue.warn.apply(Ue,t)}catch{p.each(t,function(i){Ue.warn(i)})}}},error:function(){if(nt.DEBUG&&!p.isUndefined(Ue)&&Ue){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Ue.error.apply(Ue,t)}catch{p.each(t,function(i){Ue.error(i)})}}},critical:function(){if(!p.isUndefined(Ue)&&Ue){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Ue.error.apply(Ue,t)}catch{p.each(t,function(i){Ue.error(i)})}}}},Ds=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(H,arguments)}},Gt=function(t){return{log:Ds(H.log,t),error:Ds(H.error,t),critical:Ds(H.critical,t)}},Xr=function(t){return function(){try{return t.apply(this,arguments)}catch(n){H.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),nt.DEBUG&&H.critical(n)}}},zu=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Xr(n[i]))};p.bind=function(t,n){var i,e;if(Ns&&t.bind===Ns)return Ns.apply(t,Yt.call(arguments,1));if(!p.isFunction(t))throw new TypeError;return i=Yt.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(Yt.call(arguments)));var r={};r.prototype=t.prototype;var o=new r;r.prototype=null;var s=t.apply(o,i.concat(Yt.call(arguments)));return Object(s)===s?s:o},e};p.each=function(t,n,i){if(t!=null){if(pf&&t.forEach===pf)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)===Wa)return}else for(var o in t)if(Zo.call(t,o)&&n.call(i,t[o],o,t)===Wa)return}};p.extend=function(t){return p.each(Yt.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t};p.isArray=TE||function(t){return Kn.call(t)==="[object Array]"};p.isFunction=function(t){return typeof t=="function"};p.isArguments=function(t){return!!(t&&Zo.call(t,"callee"))};p.toArray=function(t){return t?t.toArray?t.toArray():p.isArray(t)||p.isArguments(t)?Yt.call(t):p.values(t):[]};p.map=function(t,n,i){if(vf&&t.map===vf)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:df&&t.indexOf===df?t.indexOf(n)!=-1:(p.each(t,function(e){if(i||(i=e===n))return Wa}),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(Zo.call(t,n))return!1;return!0}return!1};p.isUndefined=function(t){return t===void 0};p.isString=function(t){return Kn.call(t)=="[object String]"};p.isDate=function(t){return Kn.call(t)=="[object Date]"};p.isNumber=function(t){return Kn.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=[],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=[],Kn.apply(d)==="[object Array]"){for(f=d.length,u=0;u<f;u+=1)g[u]=e(u,d)||"null";return l=g.length===0?"[]":s?`[
97
+ `+s+g.join(`,
98
+ `+s)+`
99
+ `+h+"]":"["+g.join(",")+"]",s=h,l}for(c in d)Zo.call(d,c)&&(l=e(c,d),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:`
100
+ `,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,m="",v;if(n==='"')for(;o();){if(n==='"')return o(),m;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;m+=String.fromCharCode(v)}else if(typeof i[n]=="string")m+=i[n];else break;else m+=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,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]=l(),u(),n==="}")return o("}"),d;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 d;return e=g,t=0,n=" ",d=l(),u(),n&&r("Syntax error"),d}})();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,`
101
+ `).replace(/\r/g,`
102
+ `);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{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 gf=["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<gf.length;n++)if(t.indexOf(gf[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{H.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")};p.cookie={get:function(t){for(var n=t+"=",i=W.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{}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=mf(W.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"),W.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=mf(W.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 W.cookie=h,h},remove:function(t,n,i){p.cookie.set(t,"",-1,n,!1,!1,i)}};var hd=function(t){var n=!0;try{var i="__mplss_"+qu(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch{n=!1}return n},Fs=null,zn=function(t,n){return Fs!==null&&!n?Fs:Fs=hd(t||E.localStorage)},Us=null,PE=function(t,n){return Us!==null&&!n?Us:Us=hd(t||E.sessionStorage)};function pd(t,n,i){var e=function(r){H.error(n+" error: "+r)};return{is_supported:function(r){var o=i(t,r);return o||H.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{}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 dd=null,vd=null;try{dd=E.localStorage,vd=E.sessionStorage}catch{}p.localStorage=pd(dd,"localStorage",zn);p.sessionStorage=pd(vd,"sessionStorage",PE);p.register_event=(function(){var t=function(e,r,o,s,a){if(!e){H.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 $E=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(!W.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,h,g,d,m,v=[W];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 y=a[1],_=W.getElementById(y);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];v=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var w=a[1];for(u||(u="*"),c=[],l=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[l++]=d[g];for(v=[],m=0,h=0;h<c.length;h++)c[h].className&&p.isString(c[h].className)&&i(c[h],w)&&(v[m++]=c[h]);continue}var b=s.match($E);if(b){u=b[1];var C=b[2],k=b[3],x=b[4];for(u||(u="*"),c=[],l=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[l++]=d[g];v=[],m=0;var A;switch(k){case"=":A=function(P){return P.getAttribute(C)==x};break;case"~":A=function(P){return P.getAttribute(C).match(new RegExp("\\b"+x+"\\b"))};break;case"|":A=function(P){return P.getAttribute(C).match(new RegExp("^"+x+"-?"))};break;case"^":A=function(P){return P.getAttribute(C).indexOf(x)===0};break;case"$":A=function(P){return P.getAttribute(C).lastIndexOf(x)==P.getAttribute(C).length-x.length};break;case"*":A=function(P){return P.getAttribute(C).indexOf(x)>-1};break;default:A=function(P){return P.getAttribute(C)}}for(v=[],m=0,h=0;h<c.length;h++)A(c[h])&&(v[m++]=c[h]);continue}for(u=s,c=[],l=0,h=0;h<v.length;h++)for(d=v[h].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=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 LE=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],NE=["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(LE,function(e){n=p.getQueryParam(W.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return p.each(NE,function(i){t=p.getQueryParam(W.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=It;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(It,Ft.vendor,mn),$referrer:W.referrer,$referring_domain:p.info.referringDomain(W.referrer),$device:p.info.device(It)}),{$current_url:p.info.currentUrl(),$browser_version:p.info.browserVersion(It,Ft.vendor,mn),$screen_height:hf.height,$screen_width:hf.width,mp_lib:"web",$lib_version:nt.LIB_VERSION,$insert_id:qu(),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(It,Ft.vendor,mn)}),{$browser_version:p.info.browserVersion(It,Ft.vendor,mn)})},mpPageViewProperties:function(){return p.strip_empty_properties({current_page_title:W.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 DE=function(t,n){var i=null,e=[];return function(r){var o=this;return e.push(r),i||(i=new V(function(s){setTimeout(function(){var a=t.apply(o,[e]);i=null,e=[],s(a)},n)})),i}},qu=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},gd=function(){var t=p.UUID().replace(/-/g,""),n=p.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},FE=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,UE=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,mf=function(t){var n=UE,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=FE);var r=t.match(n);return r?r[0]:""},BE=function(){var t=E.navigator.onLine;return p.isUndefined(t)||t},Jt=function(){},_o=function(t,n){for(var i=!1,e=0;e<n.length;e++)if(t.match(n[e])){i=!0;break}return i},Zr=null,wo=null;typeof JSON<"u"&&(Zr=JSON.stringify,wo=JSON.parse);Zr=Zr||p.JSONEncode;wo=wo||p.JSONDecode;var zE=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=sr;var qE="mixpanelBrowserDb",md="mixpanelRecordingEvents",ju="mixpanelRecordingRegistry",jE=1,GE=[md,ju],vt=function(t){this.dbPromise=null,this.storeName=t};vt.prototype._openDb=function(){return new V(function(t,n){var i=E.indexedDB.open(qE,jE);i.onerror=function(){n(i.error)},i.onsuccess=function(){t(i.result)},i.onupgradeneeded=function(e){var r=e.target.result;GE.forEach(function(o){r.createObjectStore(o)})}})};vt.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof E.IDBDatabase?V.resolve():V.reject(t)})):V.reject("indexedDB is not supported in this browser")};vt.prototype.isInitialized=function(){return!!this.dbPromise};vt.prototype.makeTransaction=function(t,n){var i=this.storeName,e=function(r){return new V(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)):V.reject(r)}.bind(this))};vt.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(i){i.put(n,t)})};vt.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(i){n=i.get(t)}).then(function(){return n.result})};vt.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})};vt.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var WE="__mp_opt_in_out_";function HE(t,n){wd(!0,t,n)}function VE(t,n){wd(!1,t,n)}function YE(t,n){return _d(t,n)==="1"}function yd(t,n){if(JE(n))return H.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=_d(t,n)==="0";return i&&H.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function ar(t){return Hu(t,function(n){return this.get_config(n)})}function ur(t){return Hu(t,function(n){return this._get_config(n)})}function tn(t){return Hu(t,function(n){return this._get_config(n)})}function KE(t,n){n=n||{},Gu(n).remove(Wu(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function Gu(t){return t=t||{},t.persistenceType==="localStorage"?p.localStorage:p.cookie}function Wu(t,n){return n=n||{},(n.persistencePrefix||WE)+t}function _d(t,n){return Gu(n).get(Wu(t,n))}function JE(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 wd(t,n,i){if(!p.isString(n)||!n.length){H.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},Gu(i).set(Wu(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 Hu(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=yd(e,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){H.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 XE=Gt("lock"),bd=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||V};bd.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",d=function(w){if(new Date().getTime()-s>c){XE.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(h),y();return}setTimeout(function(){try{w()}catch(b){r(b)}},u*(Math.random()+.1))},m=function(w,b){w()?b():d(function(){m(w,b)})},v=function(){var w=l.getItem(h);return w&&w!==o?!1:(l.setItem(h,o),l.getItem(h)===o?!0:(zn(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},y=function(){l.setItem(f,o),m(v,function(){if(l.getItem(f)===o){_();return}d(function(){if(l.getItem(h)!==o){y();return}m(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var w=function(){l.removeItem(g),l.getItem(h)===o&&l.removeItem(h),l.getItem(f)===o&&l.removeItem(f)};t().then(function(b){w(),e(b)}).catch(function(b){w(),r(b)})};try{if(zn(l,!0))y();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var rn=function(t){this.storage=t||E.localStorage};rn.prototype.init=function(){return V.resolve()};rn.prototype.isInitialized=function(){return!0};rn.prototype.setItem=function(t,n){return new V(p.bind(function(i,e){try{this.storage.setItem(t,Zr(n))}catch(r){e(r)}i()},this))};rn.prototype.getItem=function(t){return new V(p.bind(function(n,i){var e;try{e=wo(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))};rn.prototype.removeItem=function(t){return new V(p.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var yf=Gt("batch"),Rt=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new rn,this.lock=new bd(t,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||p.bind(yf.error,yf),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=DE(p.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=p.bind(function(i){return this._enqueuePersisted([i])},this)};Rt.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?V.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))};Rt.prototype.enqueue=function(t,n){var i={id:qu(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),V.resolve(!0))};Rt.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))};Rt.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)):V.resolve(n)};var _f=function(t,n){var i=[];return p.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};Rt.prototype.removeItemsByID=function(t){var n={};if(p.each(t,function(e){n[e]=!0}),this.memQueue=_f(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=_f(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),zn(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 V.resolve(!0)};var wf=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};Rt.prototype.updatePayloads=function(t){return this.memQueue=wf(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=wf(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)):V.resolve(!0)};Rt.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))};Rt.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))};Rt.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(p.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):V.resolve()};var ZE=600*1e3,Cn=Gt("batch"),ct=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Rt(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};ct.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)};ct.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};ct.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};ct.prototype.clear=function(){return this.queue.clear()};ct.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};ct.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};ct.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(p.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};ct.prototype.sendRequestPromise=function(t,n){return new V(p.bind(function(i){this.sendRequest(t,n,i)},this))};ct.prototype.flush=function(t){if(this.requestInProgress)return Cn.log("Flush: Request already in progress"),V.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:nt.LIB_VERSION}));var g=!0,d=f.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[d]}),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(),V.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(),V.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),V.resolve())},this))},this),c=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&&!BE()||f.error==="timeout")){var h=this.flushInterval*2;return f.retryAfter&&(h=parseInt(f.retryAfter,10)*1e3||h),h=Math.min(ZE,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),V.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(),V.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),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(l.transport="sendBeacon"),Cn.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(p.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))};ct.prototype.reportError=function(t,n){if(Cn.error.apply(Cn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){Cn.error(i)}};var Vu=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},QE=250,Sd=function(t,n){if(!p.isArray(t))return t&&n.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var i=[],e=0;e<t.length;e++)try{var r=new URL(t[e]).origin;if(r==="null"){n.critical(t[e]+" has an opaque origin. Skipping this entry.");continue}i.push(r)}catch{n.critical(t[e]+" is not a valid origin URL. Skipping this entry.")}return i},qn="change",jt="click",Ha="hashchange",e0="input",bf="load",Kt="mp_locationchange",Sf="popstate",Qo="scrollend",Yu="scroll",t0="select",bo="submit",r0="toggle",Cf="visibilitychange",n0=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Ef=["mp-include"],Va=["mp-no-track"],If=Va.concat(["mp-sensitive"]),i0=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],o0={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},s0={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},a0={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},kf=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],u0=5,ge=Gt("autocapture");function Ya(t){for(var n={},i=Cd(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function Cd(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function c0(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!Ed(t));return t}function Of(t,n,i,e,r,o){var s={$classes:Cd(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(s.$id=a),Ku(t,n,r,o)&&p.each(i0.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var h=t.getAttribute(f);So(h)&&(s["$attr-"+f]=h)}});for(var u=1,c=1,l=t;l=c0(l);)u++,l.tagName===t.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function l0(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>"u"?t.srcElement:t.target;if(Id(h)&&(h=h.parentNode),d0(h,t)&&Ka(h,t,i,e)&&!Bs(h,t,o,s)){for(var g=[h],d=h;d.parentNode&&!Ot(d,"body");)g.push(d.parentNode),d=d.parentNode;var m=[],v,y=!1;if(p.each(g,function(C){var k=Ku(C,t,i,e);!l.href&&C.tagName.toLowerCase()==="a"&&(v=C.getAttribute("href"),v=k&&So(v)&&v),Bs(C,t,o,s)&&(y=!0),m.push(Of(C,t,l,u,i,e))},this),!y){var _=W.documentElement;if(f={$event_type:t.type,$host:E.location.host,$pathname:E.location.pathname,$elements:m,$el_attr__href:v,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:W.body.offsetHeight||0,$pageWidth:W.body.offsetWidth||0},p.each(u,function(C){if(!l[C]&&h.hasAttribute(C)){var k=h.getAttribute(C);So(k)&&(f["$el_attr__"+C]=k)}}),a&&(w=xf(h,t,i,e),w&&w.length&&(f.$el_text=w)),t.type===jt&&(p.each(n0,function(C){C in t&&(f["$"+C]=t[C])}),c&&(f.$captured_for_heatmap=!0),h=f0(t)),a){var w=xf(h,t,i,e);w&&w.length&&(f.$el_text=w)}if(h){if(!Ka(h,t,i,e)||Bs(h,t,o,s))return null;var b=Of(h,t,l,u,i,e);f.$target=b,f.$el_classes=b.$classes,p.extend(f,p.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return f}function xf(t,n,i,e){var r="";return Ku(t,n,i,e)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,function(o){Id(o)&&o.textContent&&(r+=p.trim(o.textContent).split(/(\s+)/).filter(So).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),p.trim(r)}function f0(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Ot(r,"a")||Ot(r,"button")||Ot(r,"input")||Ot(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Ka(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(s){return ge.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){ge.critical("Error while checking selector: "+o,s)}}return!1}function Bs(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return ge.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){ge.critical("Error while checking selector: "+o,a)}}var s=Ya(t);for(r=0;r<Va.length;r++)if(s[Va[r]])return!0;return!1}function Ed(t){return t&&t.nodeType===1}function Ot(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function Id(t){return t&&t.nodeType===3}function h0(){try{var t=W.createElement("div");return!!t.matches}catch{return!1}}function p0(){return typeof WeakSet<"u"}function d0(t,n){if(!t||Ot(t,"html")||!Ed(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===bo;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===qn:n.type===jt;case"select":case"textarea":return n.type===qn;default:return n.type===jt}}function kd(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 Ku(t,n,i,e){var r;if(!Ka(t,n,i,e))return!1;for(var o=t;o.parentNode&&!Ot(o,"body");o=o.parentNode){var s=Ya(o);for(r=0;r<If.length;r++)if(s[If[r]])return!1}var a=Ya(t);for(r=0;r<Ef.length;r++)if(a[Ef[r]])return!0;if(Ot(t,"input")||Ot(t,"select")||Ot(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!kd(t)}function So(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 Od(t){var n="onscrollend"in E,i=Xr(t),e=Qo;if(!n){var r=null,o=100;i=Xr(function(){clearTimeout(r),r=setTimeout(t,o)}),e=Yu}return{listener:i,eventType:e}}function v0(t){for(var n=0;n<kf.length;n++)if(t.hasAttribute(kf[n]))return!0;return!1}function g0(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return o0[i]}function zs(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||v0(t)||g0(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function xd(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(s0[n])return!0;if(zs(t))return!1;for(var i=t.parentElement,e=0;i&&e<u0;){if(zs(i))return!1;if(i.getRootNode&&i.getRootNode()!==W){var r=i.getRootNode();if(r.host&&zs(r.host))return!1}i=i.parentElement,e++}return!!a0[n]}function Rd(t){return"composedPath"in t?t.composedPath():[]}function Ad(t){var n=Rd(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var Md=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",m0="data-rr-is-password",y0=["password","email","tel","hidden"];function zi(t){return t?Array.isArray(t)?t:[t]:[]}function _0(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=zi(i).join(","),n.input.unmaskingSelector=zi(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=zi(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=zi(s).join(","),a===void 0&&o!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function Ur(t,n){return n?!!t.closest(n):!1}function w0(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(y0.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(m0)||kd(t)?!0:n.input.maskAll?!Ur(t,n.input.unmaskingSelector):!!(Ur(t,n.input.maskingSelector)||Ur(t,Md))}function b0(t,n){return t?n.text._legacyClassRegex&&ka(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!Ur(t,n.text.unmaskingSelector):!!(Ur(t,n.text.maskingSelector)||Ur(t,Md)):!1}var _r=Gt("network-plugin");function Co(t){return Math.round(Date.now()-t.performance.now())}var qs={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 S0(t){return t.entryType==="navigation"}function Ja(t){return t.entryType==="resource"}function C0(t,n){for(var i=t.length,e=i-1;e>=0;e-=1)if(n(t[e]))return t[e]}function Td(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 js=1024*1024;function Pd(t){return!t||typeof t!="string"?t:t.length>js?(_r.error("Body truncated from "+t.length+" to "+js+" characters"),t.substring(0,js)+"... [truncated]"):t}function E0(t,n,i){if(!n.PerformanceObserver)return _r.error("PerformanceObserver not supported"),function(){};if(i.recordInitialRequests){var e=n.performance.getEntries().filter(function(o){return S0(o)||Ja(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:Co(n)}}),isInitial:!0})}var r=new n.PerformanceObserver(function(o){var s=o.getEntries().filter(function(a){return Ja(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:Co(n)}})})});return r.observe({entryTypes:["navigation","resource"]}),function(){r.disconnect()}}function Eo(t,n,i){return!n[t]||n[t].length===0?!1:n[t].includes(i.toLowerCase())}function Io(t,n,i){return!n[t]||n[t].length===0?!1:_o(i,n[t])}function Rf(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{return"Failed to stringify response object"}else return"Cannot read body of type "+typeof t;return Pd(n)}function Af(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(Pd(e))},function(e){clearTimeout(i),n("Failed to read body: "+String(e))})}catch(e){clearTimeout(i),n("Failed to read body: "+String(e))}})}function Ju(t,n,i,e,r,o){if(o===void 0&&(o=0),o>10)return _r.error("Cannot find performance entry"),Promise.resolve(null);var s=t.performance.getEntriesByName(i),a=C0(s,function(u){return Ja(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 Ju(t,n,i,e,r,o+1)})}function I0(t,n,i){if(!i.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=Td(n.XMLHttpRequest.prototype,"open",function(r){return function(o,s,a,u,c){a===void 0&&(a=!0);var l=this,f=new Request(s,{method:o}),h={},g,d,m={},v=l.setRequestHeader.bind(l);l.setRequestHeader=function(_,w){return Eo("request",i.recordHeaders,_)&&(m[_]=w),v(_,w)},h.requestHeaders=m;var y=l.send.bind(l);l.send=function(_){return Io("request",i.recordBodyUrls,f.url)&&(h.requestBody=Rf(_)),g=n.performance.now(),y(_)},l.addEventListener("readystatechange",function(){if(l.readyState===l.DONE){d=n.performance.now();var _={},w=l.getAllResponseHeaders();if(w){var b=w.trim().split(/[\r\n]+/);b.forEach(function(C){if(C){var k=C.indexOf(": ");if(k!==-1){var x=C.substring(0,k),A=C.substring(k+2);x&&Eo("response",i.recordHeaders,x)&&(_[x]=A)}}})}h.responseHeaders=_,Io("response",i.recordBodyUrls,f.url)&&(h.responseBody=Rf(l.response)),Ju(n,"xmlhttprequest",f.url,g,d).then(function(C){if(!C){_r.error("Failed to get performance entry for XHR request to "+f.url);return}var k={url:C.name,method:f.method,initiatorType:C.initiatorType,status:l.status,startTime:Math.round(C.startTime),endTime:Math.round(C.responseEnd),timeOrigin:Co(n),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};t({requests:[k]})}).catch(function(C){_r.error("Error recording XHR request to "+f.url+": "+String(C))})}}),r.call(l,o,s,a,u,c)}});return function(){e()}}function k0(t,n,i){if(!i.initiatorTypes.includes("fetch"))return function(){};var e=Td(n,"fetch",function(r){return function(){var o=new Request(arguments[0],arguments[1]),s,a={},u,c,l,f=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var g={};o.headers.forEach(function(d,m){Eo("request",i.recordHeaders,m)&&(g[m]=d)}),a.requestHeaders=g,Io("request",i.recordBodyUrls,o.url)&&(f=Af(o).then(function(d){a.requestBody=d})),u=n.performance.now(),l=r.apply(n,arguments).then(function(d){s=d,c=n.performance.now();var m={};return s.headers.forEach(function(v,y){Eo("response",i.recordHeaders,y)&&(m[y]=v)}),a.responseHeaders=m,Io("response",i.recordBodyUrls,o.url)&&(h=Af(s).then(function(v){a.responseBody=v})),s})}catch(d){l=Promise.reject(d)}return Promise.all([f,h,l]).then(function(){return Ju(n,"fetch",o.url,u,c)}).then(function(d){if(!d){_r.error("Failed to get performance entry for fetch request to "+o.url);return}var m={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:Co(n),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};t({requests:[m]})}).catch(function(d){_r.error("Error recording fetch request to "+o.url+": "+String(d))}),l}});return function(){e()}}function O0(t,n,i){if(!("performance"in n))return function(){};var e=Object.assign({},qs.recordHeaders,i.recordHeaders||{}),r=Object.assign({},qs.recordBodyUrls,i.recordBodyUrls||{});i=Object.assign({},i,{recordHeaders:e,recordBodyUrls:r});var o=Object.assign({},qs,i),s=function(l){var f=l.requests.filter(function(h){var g=_o(h.url,o.ignoreRequestUrls||[]);return!g&&!o.ignoreRequestFn(h)});(f.length>0||l.isInitial)&&t(Object.assign({},l,{requests:f}))},a=E0(s,n,o),u=I0(s,n,o),c=k0(s,n,o);return function(){a(),u(),c()}}var x0="rrweb/network@1.mp",R0=function(t){return{name:x0,observer:O0,options:t}},vr=Gt("recorder"),A0=E.CompressionStream,M0={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},T0=new Set([G.MouseMove,G.MouseInteraction,G.Scroll,G.ViewportResize,G.Input,G.TouchMove,G.MediaInteraction,G.Drag,G.Selection]);function P0(t){return t.type===te.IncrementalSnapshot&&T0.has(t.data.source)}var Pe=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||Jt,this._onMaxLengthReached=t.onMaxLengthReached||Jt,this._onBatchSent=t.onBatchSent||Jt,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=Sn,this.recordMinMs=0;var n=zn(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new vt(md),this.batcher=new ct(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:M0,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:QE,sharedLockTimeoutMS:10*1e3})};Pe.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};Pe.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))};Pe.prototype.getConfig=function(t){return this._mixpanel.get_config(t)};Pe.prototype.get_config=function(t){return this.getConfig(t)};Pe.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>Sn&&(this.recordMaxMs=Sn,vr.critical("record_max_ms cannot be greater than "+Sn+"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 c=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,c),this.idleExpires=new Date().getTime()+c}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);var e=_0(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(R0(o))}this.getConfig("record_console")&&r.push(OE({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=Sd(this.getConfig("record_allowed_iframe_origins"),vr);try{this._stopRecording=this._rrwebRecord({emit:function(c){if(this.idleExpires&&this.idleExpires<c.timestamp){this._onIdleTimeout();return}P0(c)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(c),(this.lastEventTimestamp===null||c.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=c.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(w0,e),maskTextFn:this._getMaskFn(b0,e),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:r})}catch(c){this.reportError("Unexpected error when starting rrweb recording.",c)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)};Pe.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};Pe.prototype.isRrwebStopped=function(){return this._stopRecording===null};Pe.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)};Pe.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}};Pe.deserialize=function(t,n){var i=new Pe(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};Pe.prototype._getApiRoute=function(){return this.getConfig("api_routes").record};Pe.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})})};Pe.prototype._flushEvents=ar(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===te.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:nt.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()),zE(It,Ft.vendor,mn)){var h=new Blob([f],{type:"application/json"}).stream(),g=h.pipeThrough(new A0("gzip"));new Response(g).blob().then(function(d){l.format="gzip",this._sendRequest(r,l,d,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}});Pe.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)}};Pe.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime};Pe.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Ls?(vr.critical("record_min_ms cannot be greater than "+Ls+"ms. Capping value."),Ls):t};Pe.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 Wt=function(t){this.idb=new vt(ju),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};Wt.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")};Wt.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)};Wt.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return V.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."),V.resolve())};Wt.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 Vu(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):V.resolve(null)};Wt.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()};Wt.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))};Wt.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):V.resolve()};Wt.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 Vu(i)}).map(function(i){var e=Pe.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 V.all(n)}.bind(this)).catch(this.handleError.bind(this)):V.resolve([])};var En=Gt("recorder"),At=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||nr,this.sharedLockStorage=i,this.recordingRegistry=new Wt({mixpanelInstance:this.mixpanelInstance,errorReporter:En.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};At.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){En.log("Recording already in progress, skipping startRecording.");return}var n=function(){En.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){En.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=Pe.deserialize(t.activeSerializedRecording,r):this.activeRecording=new Pe(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};At.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then(function(){return this.recordingRegistry.clearActiveRecording()}.bind(this)).then(function(){this.stopRecordingInProgress=!1}.bind(this))};At.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};At.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return V.resolve()};At.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),V.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(En.log("No resumable recording found."),null)}.bind(this))};At.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};At.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()};At.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null};Object.defineProperty(At.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});E[Gs]=At;function $0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xi={exports:{}},L0=Xi.exports,Mf;function N0(){return Mf||(Mf=1,(function(t,n){(function(i,e){t.exports=e()})(L0,function(){Array.isArray||(Array.isArray=function(o){return Object.prototype.toString.call(o)==="[object Array]"});function i(o){for(var s=[],a=0,u=o.length;a<u;a++)s.indexOf(o[a])===-1&&s.push(o[a]);return s}var e={},r={"==":function(o,s){return o==s},"===":function(o,s){return o===s},"!=":function(o,s){return o!=s},"!==":function(o,s){return o!==s},">":function(o,s){return o>s},">=":function(o,s){return o>=s},"<":function(o,s,a){return a===void 0?o<s:o<s&&s<a},"<=":function(o,s,a){return a===void 0?o<=s:o<=s&&s<=a},"!!":function(o){return e.truthy(o)},"!":function(o){return!e.truthy(o)},"%":function(o,s){return o%s},log:function(o){return console.log(o),o},in:function(o,s){return!s||typeof s.indexOf>"u"?!1:s.indexOf(o)!==-1},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(o,s,a){if(a<0){var u=String(o).substr(s);return u.substr(0,u.length+a)}return String(o).substr(s,a)},"+":function(){return Array.prototype.reduce.call(arguments,function(o,s){return parseFloat(o,10)+parseFloat(s,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(o,s){return parseFloat(o,10)*parseFloat(s,10)})},"-":function(o,s){return s===void 0?-o:o-s},"/":function(o,s){return o/s},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(o,s){return o.concat(s)},[])},var:function(o,s){var a=s===void 0?null:s,u=this;if(typeof o>"u"||o===""||o===null)return u;for(var c=String(o).split("."),l=0;l<c.length;l++)if(u==null||(u=u[c[l]],u===void 0))return a;return u},missing:function(){for(var o=[],s=Array.isArray(arguments[0])?arguments[0]:arguments,a=0;a<s.length;a++){var u=s[a],c=e.apply({var:u},this);(c===null||c==="")&&o.push(u)}return o},missing_some:function(o,s){var a=e.apply({missing:s},this);return s.length-a.length>=o?[]:a}};return e.is_logic=function(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)&&Object.keys(o).length===1},e.truthy=function(o){return Array.isArray(o)&&o.length===0?!1:!!o},e.get_operator=function(o){return Object.keys(o)[0]},e.get_values=function(o){return o[e.get_operator(o)]},e.apply=function(o,s){if(Array.isArray(o))return o.map(function(v){return e.apply(v,s)});if(!e.is_logic(o))return o;var a=e.get_operator(o),u=o[a],c,l,f,h,g;if(Array.isArray(u)||(u=[u]),a==="if"||a=="?:"){for(c=0;c<u.length-1;c+=2)if(e.truthy(e.apply(u[c],s)))return e.apply(u[c+1],s);return u.length===c+1?e.apply(u[c],s):null}else if(a==="and"){for(c=0;c<u.length;c+=1)if(l=e.apply(u[c],s),!e.truthy(l))return l;return l}else if(a==="or"){for(c=0;c<u.length;c+=1)if(l=e.apply(u[c],s),e.truthy(l))return l;return l}else{if(a==="filter")return h=e.apply(u[0],s),f=u[1],Array.isArray(h)?h.filter(function(v){return e.truthy(e.apply(f,v))}):[];if(a==="map")return h=e.apply(u[0],s),f=u[1],Array.isArray(h)?h.map(function(v){return e.apply(f,v)}):[];if(a==="reduce")return h=e.apply(u[0],s),f=u[1],g=typeof u[2]<"u"?e.apply(u[2],s):null,Array.isArray(h)?h.reduce(function(v,y){return e.apply(f,{current:y,accumulator:v})},g):g;if(a==="all"){if(h=e.apply(u[0],s),f=u[1],!Array.isArray(h)||!h.length)return!1;for(c=0;c<h.length;c+=1)if(!e.truthy(e.apply(f,h[c])))return!1;return!0}else if(a==="none"){if(h=e.apply(u[0],s),f=u[1],!Array.isArray(h)||!h.length)return!0;for(c=0;c<h.length;c+=1)if(e.truthy(e.apply(f,h[c])))return!1;return!0}else if(a==="some"){if(h=e.apply(u[0],s),f=u[1],!Array.isArray(h)||!h.length)return!1;for(c=0;c<h.length;c+=1)if(e.truthy(e.apply(f,h[c])))return!0;return!1}}if(u=u.map(function(v){return e.apply(v,s)}),r.hasOwnProperty(a)&&typeof r[a]=="function")return r[a].apply(s,u);if(a.indexOf(".")>0){var d=String(a).split("."),m=r;for(c=0;c<d.length;c++){if(!m.hasOwnProperty(d[c]))throw new Error("Unrecognized operation "+a+" (failed at "+d.slice(0,c+1).join(".")+")");m=m[d[c]]}return m.apply(s,u)}throw new Error("Unrecognized operation "+a)},e.uses_data=function(o){var s=[];if(e.is_logic(o)){var a=e.get_operator(o),u=o[a];Array.isArray(u)||(u=[u]),a==="var"?s.push(u[0]):u.forEach(function(c){s.push.apply(s,e.uses_data(c))})}return i(s)},e.add_operation=function(o,s){r[o]=s},e.rm_operation=function(o){delete r[o]},e.rule_like=function(o,s){if(s===o||s==="@")return!0;if(s==="number")return typeof o=="number";if(s==="string")return typeof o=="string";if(s==="array")return Array.isArray(o)&&!e.is_logic(o);if(e.is_logic(s)){if(e.is_logic(o)){var a=e.get_operator(s),u=e.get_operator(o);if(a==="@"||a===u)return e.rule_like(e.get_values(o,!1),e.get_values(s,!1))}return!1}if(Array.isArray(s))if(Array.isArray(o)){if(s.length!==o.length)return!1;for(var c=0;c<s.length;c+=1)if(!e.rule_like(o[c],s[c]))return!1;return!0}else return!1;return!1},e})})(Xi)),Xi.exports}var D0=N0(),F0=$0(D0),U0=function(t,n,i){if(t!==i.event_name)return{matches:!1};var e=i.property_filters,r=!0;if(e&&!p.isEmptyObject(e))try{r=F0.apply(e,n||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:r}},$d={};$d.eventMatchesCriteria=U0;E[pt]=Promise.resolve($d);var B0=30,z0=1e3,q0=4,j0=!1;function Ld(){this.clicks=[]}Ld.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||B0,e=n.timeout_ms||z0,r=n.click_count||q0,o=n.interactive_elements_only||j0;if(o){var s=Ad(t);if(!s||xd(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 nn(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}nn.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return Ad(t)};nn.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=Rd(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}};nn.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){ge.critical("Error while observing shadow root",e)}}};nn.prototype.start=function(){if(!this.observedShadowRoots){if(!p0()){ge.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};nn.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){ge.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var G0=500,W0=[qn,e0,bo,t0,r0],H0=[Qo],V0=[Ha],Tf={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Mt(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}Mt.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||xd(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)};Mt.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i};Mt.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};Mt.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100};Mt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()};Mt.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))};Mt.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)};Mt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;W0.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}})}),V0.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),H0.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,Tf)}catch(i){ge.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new nn(function(){t.recordChangeEvent()},Tf),this.shadowDOMObserver.start()}catch(i){ge.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}};Mt.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){ge.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){ge.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){ge.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var Nd="autocapture",Y0="track_pageview",Dd="full-url",K0="url-with-path-and-query-string",J0="url-with-path",X0="allow_element_callback",Fd="allow_selectors",Ud="allow_url_regexes",Bd="block_attrs",zd="block_element_callback",qd="block_selectors",jd="block_url_regexes",Gd="capture_extra_attrs",Wd="capture_text_content",Hd="scroll_capture_all",Vd="scroll_depth_percent_checkpoints",ko="click",Oo="dead_click",Xa="input",Yd="pageview",xo="rage_click",Za="scroll",es="page_leave",Qa="submit",Be={};Be[Fd]=[];Be[Ud]=[];Be[Bd]=[];Be[zd]=null;Be[qd]=[];Be[jd]=[];Be[Gd]=[];Be[Wd]=!1;Be[Hd]=!1;Be[Vd]=[25,50,75,100];Be[ko]=!0;Be[Oo]=!0;Be[Xa]=!0;Be[Yd]=Dd;Be[xo]=!0;Be[Za]=!0;Be[es]=!1;Be[Qa]=!0;var jn={$mp_autocapture:!0},Kd="$mp_click",Jd="$mp_dead_click",Z0="$mp_input_change",Xd="$mp_rage_click",Q0="$mp_scroll",eI="$mp_submit",tI="$mp_page_leave",De=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};De.prototype.init=function(){if(!h0()){ge.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()};De.prototype.getFullConfig=function(){var t=this.mp.get_config(Nd);return t?p.isObject(t)?p.extend({},Be,t):Be:{}};De.prototype.getConfig=function(t){return this.getFullConfig()[t]};De.prototype.currentUrlBlocked=function(){var t=p.info.currentUrl(),n=this.getConfig(Ud)||[];if(n.length)try{return!_o(t,n)}catch(e){return ge.critical("Error while checking block URL regexes: ",e),!0}var i=this.getConfig(jd)||[];if(!i||!i.length)return!1;try{return _o(t,i)}catch(e){return ge.critical("Error while checking block URL regexes: ",e),!0}};De.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Nd)?this.getConfig(Yd):this.mp.get_config(Y0)};De.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===Kd&&!this.getConfig(ko)||n===Xd&&!this._getClickTrackingConfig(xo)||n===Jd&&!this._getClickTrackingConfig(Oo)),e=l0(t,{allowElementCallback:this.getConfig(X0),allowSelectors:this.getConfig(Fd),blockAttrs:this.getConfig(Bd),blockElementCallback:this.getConfig(zd),blockSelectors:this.getConfig(qd),captureExtraAttrs:this.getConfig(Gd),captureTextContent:this.getConfig(Wd),capturedForHeatMap:i});e&&(p.extend(e,jn),this.mp.track(n,e))}};De.prototype.initPageListeners=function(){if(E.removeEventListener(Sf,this.listenerPopstate),E.removeEventListener(Ha,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(es)&&!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(Sf,this.listenerPopstate),E.addEventListener(Ha,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))})}};De.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null};De.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(es)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(W.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(W.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},jn);this.mp.track(tI,s,{transport:"sendBeacon"})}};De.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(Yu,this.listenerScrollDepth),E.removeEventListener(Qo,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){ge.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(W.documentElement.clientHeight,E.innerHeight||0);var t=function(){if(!this.currentUrlBlocked()){var i=Math.max(W.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=W.body.scrollHeight}}.bind(this),n=Od(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}};De.prototype.initClickTracking=function(){E.removeEventListener(jt,this.listenerClick),!(!this.getConfig(ko)&&!this.mp.get_config("record_heatmap_data"))&&(ge.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(ko)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Kd)}.bind(this),E.addEventListener(jt,this.listenerClick))};De.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(Oo);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}ge.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Mt(function(n){this.trackDomEvent(n,Jd)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(Oo);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=G0),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(jt,this.listenerDeadClick))};De.prototype.initInputTracking=function(){E.removeEventListener(qn,this.listenerChange),this.getConfig(Xa)&&(ge.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(Xa)&&this.trackDomEvent(t,Z0)}.bind(this),E.addEventListener(qn,this.listenerChange))};De.prototype.initPageviewTracking=function(){if(E.removeEventListener(Kt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){ge.log("Initializing pageview tracking");var t="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(jn)),n&&(t=p.info.currentUrl()),this.listenerLocationchange=Xr(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===Dd?e=i!==t:o===K0?e=i.split("#")[0]!==t.split("#")[0]:o===J0&&(e=r),e){var s=this.mp.track_pageview(jn);s&&(t=i),r&&(this.lastScrollCheckpoint=0,ge.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),E.addEventListener(Kt,this.listenerLocationchange)}};De.prototype.initRageClickTracking=function(){E.removeEventListener(jt,this.listenerRageClick);var t=this._getClickTrackingConfig(xo);!t&&!this.mp.get_config("record_heatmap_data")||(ge.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Ld),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(xo);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,Xd)}.bind(this),E.addEventListener(jt,this.listenerRageClick))};De.prototype.initScrollTracking=function(){if(E.removeEventListener(Qo,this.listenerScroll),E.removeEventListener(Yu,this.listenerScroll),!!this.getConfig(Za)){ge.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(Za)&&!this.currentUrlBlocked()){var i=this.getConfig(Hd),e=(this.getConfig(Vd)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,o=p.extend({$scroll_top:r},jn);try{var s=W.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){ge.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(Q0,o)}}.bind(this),n=Od(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}};De.prototype.initSubmitTracking=function(){E.removeEventListener(bo,this.listenerSubmit),this.getConfig(Qa)&&(ge.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(Qa)&&this.trackDomEvent(t,eI)}.bind(this),E.addEventListener(bo,this.listenerSubmit))};De.prototype.initPageLeaveTracking=function(){if(W.removeEventListener(Cf,this.listenerPageLeaveVisibilitychange),E.removeEventListener(Kt,this.listenerPageLeaveLocationchange),E.removeEventListener(bf,this.listenerPageLoad),!(!this.getConfig(es)&&!this.mp.get_config("record_heatmap_data"))){ge.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=p.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=W.body.scrollHeight}.bind(this),E.addEventListener(bf,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Xr(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(W.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=W.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),E.addEventListener(Kt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){W.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}.bind(this),W.addEventListener(Cf,this.listenerPageLeaveVisibilitychange)}};De.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(jt,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};zu(De);var Zd=function(t,n){return E[pt]&&typeof E[pt].then=="function"||(E[pt]=new Promise(function(i){t(n,i)}).then(function(){var i=E[pt];if(i&&typeof i.then=="function")return i;throw new Error("targeting failed to load")}).catch(function(i){throw delete E[pt],i})),E[pt]},Ce=Gt("flags"),Ro="flags",Ao="context",eu={};eu[Ao]={};var rI=function(t,n){return t+":"+n},nI=function(t){return t.split(":")[0]},F=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||""};F.prototype.init=function(){if(!this.minApisSupported()){Ce.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags().catch(function(){Ce.error("Error fetching flags during init")}),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}};F.prototype.getFullConfig=function(){var t=this.getMpConfig(Ro);return t?p.isObject(t)?p.extend({},eu,t):eu:{}};F.prototype.getConfig=function(t){return this.getFullConfig()[t]};F.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Ro)};F.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return Ce.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(Ro);p.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(Ao);i[Ao]=p.extend({},e,t);var r={};return r[Ro]=i,this.setMpConfig(r),this.fetchFlags().catch(function(){Ce.error("Error fetching flags during updateContext")})};F.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Ce.error("Feature Flags not enabled"),!!this.flags};F.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),i=gd();Ce.log("Fetching flags for distinct ID: "+t);var e=p.extend({distinct_id:t,device_id:n},this.getConfig(Ao)),r=new URLSearchParams;r.set("context",JSON.stringify(e)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",nt.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()}.bind(this)).then(function(s){var a=s.flags;if(!a)throw new Error("No flags in API response");var u=new Map,c={};p.each(a,function(f,h){var g=!1,d=h+":";if(p.each(this.activatedFirstTimeEvents,function(v,y){y.startsWith(d)&&(g=!0)}),g){var m=this.flags&&this.flags.get(h);m&&u.set(h,m)}else u.set(h,{key:f.variant_key,value:f.variant_value,experiment_id:f.experiment_id,is_experiment_active:f.is_experiment_active,is_qa_tester:f.is_qa_tester})},this);var l=s.pending_first_time_events;l&&l.length>0&&p.each(l,function(f){var h=f.flag_key,g=rI(h,f.first_time_event_hash);this.activatedFirstTimeEvents[g]||(c[g]={flag_key:h,flag_id:f.flag_id,project_id:f.project_id,first_time_event_hash:f.first_time_event_hash,event_name:f.event_name,property_filters:f.property_filters,pending_variant:f.pending_variant})},this),this.activatedFirstTimeEvents&&p.each(this.activatedFirstTimeEvents,function(f,h){var g=nI(h);f&&!u.has(g)&&this.flags&&this.flags.has(g)&&u.set(g,this.flags.get(g))},this),this.flags=u,this.pendingFirstTimeEvents=c,this._traceparent=i,this._loadTargetingIfNeeded()}.bind(this)).catch(function(s){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Ce.error(s),s}.bind(this)),this.fetchPromise};F.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Ce.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()};F.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){Ce.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};F.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(){Ce.log("targeting loaded for property filter evaluation")})};F.prototype.getTargeting=function(){return Zd(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(t){Ce.error("Failed to load targeting: "+t)}.bind(this))};F.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||p.isEmptyObject(this.pendingFirstTimeEvents)||(E[pt]&&p.isFunction(E[pt].then)?E[pt].then(function(i){this._processFirstTimeEventCheck(t,n,i)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))};F.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)){Ce.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){Ce.error('Error checking first-time event for flag "'+o+'": '+s.error);return}if(s.matches){Ce.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)};F.prototype.getFirstTimeEventApiRoute=function(t){return this.getFullApiRoute()+"/"+t+"/first-time-events"};F.prototype.recordFirstTimeEvent=function(t,n,i){var e=this.getMpProperty("distinct_id"),r=gd(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",nt.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(t)+"?"+o.toString(),a={distinct_id:e,project_id:n,first_time_event_hash:i};Ce.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){Ce.error("Failed to record first-time event for flag "+t+": "+u)})};F.prototype.getVariant=function(t,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(t,n)}.bind(this)).catch(function(i){return Ce.error(i),n}):new Promise(function(i){Ce.critical("Feature Flags not initialized"),i(n)})};F.prototype.getVariantSync=function(t,n){if(!this.areFlagsReady())return Ce.log("Flags not loaded yet"),n;var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(Ce.log('No flag found: "'+t+'"'),n)};F.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return Ce.error(i),n})};F.prototype.getFeatureData=function(t,n){return Ce.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)};F.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value};F.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then(function(){return this.isEnabledSync(t,n)}.bind(this)).catch(function(i){return Ce.error(i),n})};F.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(Ce.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i};F.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)}};F.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()};F.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"};zu(F);F.prototype.are_flags_ready=F.prototype.areFlagsReady;F.prototype.get_variant=F.prototype.getVariant;F.prototype.get_variant_sync=F.prototype.getVariantSync;F.prototype.get_variant_value=F.prototype.getVariantValue;F.prototype.get_variant_value_sync=F.prototype.getVariantValueSync;F.prototype.is_enabled=F.prototype.isEnabled;F.prototype.is_enabled_sync=F.prototype.isEnabledSync;F.prototype.load_flags=F.prototype.loadFlags;F.prototype.update_context=F.prototype.updateContext;F.prototype.when_ready=F.prototype.whenReady;F.prototype.get_feature_data=F.prototype.getFeatureData;F.prototype.getTargeting=F.prototype.getTargeting;var iI=Gt("recorder"),Qd="mp_iframe_handshake_request",ev="mp_iframe_handshake_response",qe=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,this._parentReplayId=null,this._parentFrameRetryInterval=null};qe.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return H.log("Load recorder check skipped due to disable_persistence config"),V.resolve(!1);var t=new vt(ju),n=this.getTabId();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(Vu(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))};qe.prototype.checkAndStartSessionRecording=function(t,n){if(!E.MutationObserver)return H.critical("Browser does not support MutationObserver; skipping session recording"),V.resolve();var i=p.bind(function(a){return new V(p.bind(function(u){var c=Xr(p.bind(function(){this._recorder=this._recorder||new E[Gs](this.mixpanelInstance),this._recorder.resumeRecording(a),u()},this));if(p.isUndefined(E[Gs])){var l=this.recorderSrc||this.libBasePath+Ng;this.loadExtraBundle(l,c)}else c()},this))},this),e=Sd(this.getMpConfig("record_allowed_iframe_origins"),iI),r=e.length>0;if(r&&(this._setupParentFrameListener(e),E.parent!==E))return this._setupChildFrameListener(e,i),this._sendParentFrameRequestWithRetry(e),V.resolve();var o=p.isUndefined(n)?this.getMpConfig("record_sessions_percent"):n,s=o>0&&Math.random()*100<=o;return t||s?i(!0):this.shouldLoadRecorder().then(p.bind(function(a){return a?i(!1):V.resolve()},this))};qe.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}};qe.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+Pf;Zd(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(l){H.critical("Could not parse recording event trigger properties logic:",l)}}.bind(this)).catch(function(u){H.critical("Failed to load targeting library:",u)})}else this.checkAndStartSessionRecording(!1,o)}}};qe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():V.resolve()};qe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():V.resolve()};qe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():V.resolve()};qe.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")};qe.prototype.getSessionRecordingProperties=function(){var t={},n=this.getSessionReplayId();return n&&(t.$mp_replay_id=n),t};qe.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};qe.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var t=null;return this._recorder&&(t=this._recorder.replayId),t||null};qe.prototype.getRecorder=function(){return this._recorder};qe.prototype._setupChildFrameListener=function(t,n){if(!this._childFrameMessageHandler){var i=this;this._childFrameMessageHandler=function(e){if(t.indexOf(e.origin)!==-1){var r=e.data;r&&r.type===ev&&r.token===i.getMpConfig("token")&&r.replayId&&(i._parentReplayId=r.replayId,r.distinctId&&i.mixpanelInstance.identify(r.distinctId),i._parentFrameRetryActive=!1,E.removeEventListener("message",i._childFrameMessageHandler),i._childFrameMessageHandler=null,n(!0))}},E.addEventListener("message",this._childFrameMessageHandler)}};qe.prototype._sendParentFrameRequest=function(t){var n={};n.type=Qd,n.token=this.getMpConfig("token");for(var i=0;i<t.length;i++)try{E.parent.postMessage(n,t[i])}catch{}};qe.prototype._sendParentFrameRequestWithRetry=function(t){var n=this,i=10,e=0,r=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(t);function o(){setTimeout(function(){!n._parentFrameRetryActive||n._parentReplayId||++e>=i||(n._sendParentFrameRequest(t),r*=2,o())},r)}o()};qe.prototype._setupParentFrameListener=function(t){if(!this._parentFrameMessageHandler){var n=this;this._parentFrameMessageHandler=function(i){if(t.indexOf(i.origin)!==-1){var e=i.data;if(e&&e.type===Qd&&e.token===n.getMpConfig("token")){var r=n.getSessionReplayId();if(r){var o={};o.type=ev,o.token=n.getMpConfig("token"),o.replayId=r,o.distinctId=n.getDistinctId(),i.source.postMessage(o,i.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}};zu(qe);var Ht=function(){};Ht.prototype.create_properties=function(){};Ht.prototype.event_handler=function(){};Ht.prototype.after_track_handler=function(){};Ht.prototype.init=function(t){return this.mp=t,this};Ht.prototype.track=function(t,n,i,e){var r=this,o=p.dom_query(t);if(o.length===0){H.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};Ht.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))}};Ht.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=p.extend({},t),i};var Qr=function(){this.override_event="click"};p.inherit(Qr,Ht);Qr.prototype.create_properties=function(t,n){var i=Qr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i};Qr.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()};Qr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var ts=function(){this.override_event="submit"};p.inherit(ts,Ht);ts.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()};ts.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var Zt="$set",en="$set_once",dt="$unset",wr="$add",xt="$append",br="$union",Ut="$remove",oI="$delete",tv={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[Zt]=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[dt]=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[en]=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[br]=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[xt]=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[Ut]=e,i},delete_action:function(){var t={};return t[oI]="",t}},we=function(){};p.extend(we.prototype,tv);we.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i};we.prototype.set=tn(function(t,n,i){var e=this.set_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)});we.prototype.set_once=tn(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)});we.prototype.unset=tn(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)});we.prototype.union=tn(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)});we.prototype.delete=tn(function(t){var n=this.delete_action();return this._send_request(n,t)});we.prototype.remove=tn(function(t,n,i){var e=this.remove_action(t,n);return this._send_request(e,i)});we.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)};we.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"};we.prototype._get_config=function(t){return this._mixpanel.get_config(t)};we.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};we.prototype.remove=we.prototype.remove;we.prototype.set=we.prototype.set;we.prototype.set_once=we.prototype.set_once;we.prototype.union=we.prototype.union;we.prototype.unset=we.prototype.unset;we.prototype.toString=we.prototype.toString;var Y=function(){};p.extend(Y.prototype,tv);Y.prototype._init=function(t){this._mixpanel=t};Y.prototype.set=ur(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[Zt]=p.extend({},p.info.people_properties(),e[Zt]),this._send_request(e,i)});Y.prototype.set_once=ur(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)});Y.prototype.unset=ur(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)});Y.prototype.increment=ur(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))){H.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[wr]=r,this._send_request(e,i)});Y.prototype.append=ur(function(t,n,i){p.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)});Y.prototype.remove=ur(function(t,n,i){p.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)});Y.prototype.union=ur(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)});Y.prototype.track_charge=ur(function(){H.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});Y.prototype.clear_charges=function(t){return this.set("$transactions",[],t)};Y.prototype.delete_user=function(){if(!this._identify_called()){H.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)};Y.prototype.toString=function(){return this._mixpanel.toString()+".people"};Y.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))};Y.prototype._get_config=function(t){return this._mixpanel.get_config(t)};Y.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};Y.prototype._enqueue=function(t){Zt in t?this._mixpanel.persistence._add_to_people_queue(Zt,t):en in t?this._mixpanel.persistence._add_to_people_queue(en,t):dt in t?this._mixpanel.persistence._add_to_people_queue(dt,t):wr in t?this._mixpanel.persistence._add_to_people_queue(wr,t):xt in t?this._mixpanel.persistence._add_to_people_queue(xt,t):Ut in t?this._mixpanel.persistence._add_to_people_queue(Ut,t):br in t?this._mixpanel.persistence._add_to_people_queue(br,t):H.error("Invalid call to _enqueue():",t)};Y.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)}))};Y.prototype._flush=function(t,n,i,e,r,o,s){var a=this;this._flush_one_queue(Zt,this.set,t),this._flush_one_queue(en,this.set_once,e),this._flush_one_queue(dt,this.unset,o,function(v){return p.keys(v)}),this._flush_one_queue(wr,this.increment,n),this._flush_one_queue(br,this.union,r);var u=this._mixpanel.persistence.load_queue(xt);if(!p.isUndefined(u)&&p.isArray(u)&&u.length)for(var c,l=function(v,y){v===0&&a._mixpanel.persistence._add_to_people_queue(xt,c),p.isUndefined(i)||i(v,y)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(xt),c=u.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(c)||a.append(c,l);var h=this._mixpanel.persistence.load_queue(Ut);if(!p.isUndefined(h)&&p.isArray(h)&&h.length)for(var g,d=function(v,y){v===0&&a._mixpanel.persistence._add_to_people_queue(Ut,g),p.isUndefined(s)||s(v,y)},m=h.length-1;m>=0;m--)h=this._mixpanel.persistence.load_queue(Ut),g=h.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(g)||a.remove(g,d)};Y.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"};Y.prototype.set=Y.prototype.set;Y.prototype.set_once=Y.prototype.set_once;Y.prototype.unset=Y.prototype.unset;Y.prototype.increment=Y.prototype.increment;Y.prototype.append=Y.prototype.append;Y.prototype.remove=Y.prototype.remove;Y.prototype.union=Y.prototype.union;Y.prototype.track_charge=Y.prototype.track_charge;Y.prototype.clear_charges=Y.prototype.clear_charges;Y.prototype.delete_user=Y.prototype.delete_user;Y.prototype.toString=Y.prototype.toString;var Xu="__mps",Zu="__mpso",Qu="__mpus",ec="__mpa",tc="__mpap",rc="__mpr",nc="__mpu",rv="$people_distinct_id",Mo="__alias",Gn="__timers",sI=[Xu,Zu,Qu,ec,tc,rc,nc,rv,Mo,Gn],X=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"&&(H.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()};X.prototype.properties=function(){var t={};return this.load(),p.each(this.props,function(n,i){p.include(sI,i)||(t[i]=n)}),t};X.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=p.extend({},t))}};X.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))};X.prototype.save=function(){this.disabled||this.storage.set(this.name,Zr(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};X.prototype.load_prop=function(t){return this.load(),this.props[t]};X.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};X.prototype.clear=function(){this.remove(),this.props={}};X.prototype.register_once=function(t,n,i){return p.isObject(t)?(typeof n>"u"&&(n="None"),this.expire_days=typeof i>"u"?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};X.prototype.register=function(t,n){return p.isObject(t)?(this.expire_days=typeof n>"u"?this.default_expiry:n,this.load(),p.extend(this.props,t),this.save(),!0):!1};X.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())};X.prototype.update_search_keyword=function(t){this.register(p.info.searchInfo(t))};X.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:p.info.referringDomain(t)||"$direct"},"")};X.prototype.get_referrer_info=function(){return p.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};X.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)};X.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()};X.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())};X.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())};X.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())};X.prototype.get_cross_subdomain=function(){return this.cross_subdomain};X.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())};X.prototype._add_to_people_queue=function(t,n){var i=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(Zt),o=this._get_or_create_queue(en),s=this._get_or_create_queue(dt),a=this._get_or_create_queue(wr),u=this._get_or_create_queue(br),c=this._get_or_create_queue(Ut,[]),l=this._get_or_create_queue(xt,[]);i===Xu?(p.extend(r,e),this._pop_from_people_queue(wr,e),this._pop_from_people_queue(br,e),this._pop_from_people_queue(dt,e)):i===Zu?(p.each(e,function(f,h){h in o||(o[h]=f)}),this._pop_from_people_queue(dt,e)):i===Qu?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===ec?(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(dt,e)):i===nc?(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(dt,e)):i===rc?(c.push(e),this._pop_from_people_queue(xt,e)):i===tc&&(l.push(e),this._pop_from_people_queue(dt,e)),H.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),H.log(n),this.save()};X.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===xt||t===Ut?p.each(i,function(o){o[r]===e&&delete o[r]}):delete i[r]},this)};X.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))};X.prototype._get_queue_key=function(t){if(t===Zt)return Xu;if(t===en)return Zu;if(t===dt)return Qu;if(t===wr)return ec;if(t===xt)return tc;if(t===Ut)return rc;if(t===br)return nc;H.error("Invalid queue:",t)};X.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)};X.prototype.set_event_timer=function(t,n){var i=this.load_prop(Gn)||{};i[t]=n,this.props[Gn]=i,this.save()};X.prototype.remove_event_timer=function(t){var n=this.load_prop(Gn)||{},i=n[t];return p.isUndefined(i)||(delete this.props[Gn][t],this.save()),i};var To,tu=function(t,n){throw new Error(t+" not available in this build.")},He,ru=0,aI=1,ut="mixpanel",nv="base64",uI="json",ic="$device:",cI="strict",lI="fallback",fI="disabled",Br=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,iv=!Br&&It.indexOf("MSIE")===-1&&It.indexOf("Mozilla")===-1,Po=null;Ft.sendBeacon&&(Po=function(){return Ft.sendBeacon.apply(Ft,arguments)});var ov={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},nu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:ov,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:nv,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Jt,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Jt,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_allowed_iframe_origins:[],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:Sn,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:fI},sv=!1,S=function(){},iu=function(t,n,i){var e,r=i===ut?He:He[i];if(r&&To===ru)e=r;else{if(r&&!p.isArray(r)){H.error("You have already initialized "+i);return}e=new S}if(e._cached_groups={},e._init(t,n,i),e.people=new Y,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)}nt.DEBUG=nt.DEBUG||e.get_config("debug");var u=To===ru?"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};S.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===ut){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=iu(t,n,i);return He[i]=e,e._loaded(),e};S.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||nu.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=uI)}if(this.hooks={},this.set_config(p.extend({},nu,e,n,{name:i,token:t,callback_fn:(i===ut?i:ut+"."+i)+"._jsc"})),this.recorderManager=new qe({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:tu}),this._jsc=Jt,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!p.localStorage.is_supported(!0)||!Br)this._batch_requests=!1,H.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),p.each(this.get_batcher_configs(),function(u){H.log("Clearing batch queue "+u.queue_key),p.localStorage.remove(u.queue_key)});else if(this.init_batchers(),Po&&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(){W.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new X(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=p.UUID();this.get_distinct_id()||this.register_once({distinct_id:ic+s,$device_id:s},""),this.flags=new F({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:tu,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Pf}),this.flags.init(),this.flags=this.flags,this.autocapture=new De(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");a===cI||a===lI?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()};S.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))H.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.")};S.prototype.get_tab_id=function(){return this.tab_id||null};S.prototype._check_and_start_session_recording=ar(function(t){return this.recorderManager.checkAndStartSessionRecording(t)});S.prototype._start_recording_on_event=function(t,n){return this.recorderManager.startRecordingOnEvent(t,n)};S.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)};S.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()};S.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()};S.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()};S.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()};S.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()};S.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()};S.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()};S.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise};S.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))}};S.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(W.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(W.referrer)};S.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};S.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(!sv)return this.__dom_loaded_queue.push([t,n]),!1;var i=new t().init(this);return i.track.apply(i,n)};S.prototype._prepare_callback=function(t,n){if(p.isUndefined(t))return null;if(Br){var i=function(s){t(s,n)};return i}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(s){delete e[r],t(s,n)},o}};S.prototype._send_request=function(t,n,i,e){var r=!0;if(iv)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!e&&(p.isFunction(i)||typeof i=="string")&&(e=i,i=null),i=p.extend(o,i||{}),Br||(i.method="GET");var a=i.method==="POST",u=Po&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),Br||(e?n.callback=e:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),p.extend(n,this.get_config("api_extra_query_params")),t+="?"+p.HTTPBuildQuery(n);var l=this;if("img"in n){var f=W.createElement("img");f.src=t,W.body.appendChild(f)}else if(u){try{r=Po(t,s)}catch(y){l.report_error(y),r=!1}try{e&&e(r?1:0)}catch(y){l.report_error(y)}}else if(Br)try{var h=new XMLHttpRequest;h.open(i.method,t,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),p.each(g,function(y,_){h.setRequestHeader(_,y)}),i.timeout_ms&&typeof h.timeout<"u"){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 y;try{y=p.JSONDecode(h.responseText)}catch(b){if(l.report_error(b),i.ignore_json_errors)y=h.responseText;else return}e(y)}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,l.report_error(_),e)if(c){var w=h.responseHeaders||{};e({status:0,httpStatusCode:h.status,error:_,retryAfter:w["Retry-After"]})}else e(0)}},h.send(s)}catch(y){l.report_error(y),r=!1}else{var m=W.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=t;var v=W.getElementsByTagName("script")[0];v.parentNode.insertBefore(m,v)}return r};S.prototype._fetch_remote_settings=function(t){var n=this,i=function(){t==="strict"&&n.set_config({record_sessions_percent:0})};if(!E.AbortController)return H.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:nt.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(l){if(clearTimeout(u),!l.ok){H.critical("Network response was not ok"),i();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,d){nu.hasOwnProperty(d)&&(h[d]=g)}),p.isEmptyObject(h)?(H.critical("No valid config keys found in remote settings."),i()):n.set_config(h)}else i()}).catch(function(l){clearTimeout(u),H.critical("Failed to fetch remote settings",l),i()})};S.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)};S.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};S.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};S.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=p.bind(function(i){return new ct(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()};S.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()}))};S.prototype.stop_batch_senders=function(){this._batch_requests=!1,p.each(this.request_batchers,function(t){t.stop(),t.clear()})};S.prototype.push=function(t){this._execute_array([t])};S.prototype.enable=function(t){var n,i,e,r;if(typeof t>"u")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}};S.prototype.disable=function(t){typeof t>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)};S.prototype._encode_data_for_request=function(t){var n=Zr(t);return this.get_config("api_payload_format")===nv&&(n=p.base64Encode(n)),{data:n}};S.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||Jt;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?(H.log("MIXPANEL REQUEST:"),H.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};S.prototype.track=ar(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=Jt),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),this._start_recording_on_event(t,n);var f={event:t,properties:n};return r=this._track_or_batch({type:"events",data:f,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:i},e),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(t,n),r});S.prototype.set_group=ar(function(t,n,i){p.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,i)});S.prototype.add_group=ar(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)});S.prototype.remove_group=ar(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)});S.prototype.track_with_groups=ar(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)});S.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)};S.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]};S.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 we,e._init(this,t,n),this._cached_groups[i]=e),e};S.prototype.track_pageview=ar(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)});S.prototype.track_links=function(){return this._track_dom.call(this,Qr,arguments)};S.prototype.track_forms=function(){return this._track_dom.call(this,ts,arguments)};S.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 hI={persistent:!0},oc=function(t){var n;return p.isObject(t)?n=t:p.isUndefined(t)?n={}:n={days:t},p.extend({},hI,n)};S.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=oc(n);e.persistent?this.persistence.register(t,e.days):p.extend(this.unpersisted_superprops,t)}};S.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=oc(i);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n>"u"&&(n="None"),p.each(t,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===n)&&(this.unpersisted_superprops[s]=o)},this))}};S.prototype.unregister=function(t,n){var i=this._run_hook("before_unregister",t,n);i!==null&&(t=i[0],n=i[1],n=oc(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])};S.prototype._register_single=function(t,n){var i={};i[t]=n,this.register(i)};S.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(ic)===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(Mo)&&(this.unregister(Mo),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().catch(function(){H.error("[flags] Error fetching flags during identify")})};S.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=p.UUID();this.register_once({distinct_id:ic+t,$device_id:t},""),this._check_and_start_session_recording()};S.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};S.prototype.alias=function(t,n){if(t===this.get_property(rv))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(Mo,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)};S.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)};S.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),nt.DEBUG=nt.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])||H.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else H.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}};S.prototype.get_config=function(t){return this.config[t]};S.prototype._run_hook=function(t){var n=Yt.call(arguments,1);return p.each(this.hooks[t],function(i){if(n===null)return null;var e=i.apply(this,n);typeof e>"u"?(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};S.prototype.get_property=function(t){return this.persistence.load_prop([t])};S.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")};S.prototype.toString=function(){var t=this.get_config("name");return t!==ut&&(t=ut+"."+t),t};S.prototype._event_is_disabled=function(t){return p.isBlockedUA(It)||this._flags.disable_all_events||p.include(this.__disabled_events,t)};S.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")}))};S.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()};S.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})};S.prototype.opt_in_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(HE,t),this._gdpr_update_persistence(t)};S.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(VE,t),this._gdpr_update_persistence(t)};S.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(YE,t)};S.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(yd,t)};S.prototype.clear_opt_in_out_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(KE,t),this._gdpr_update_persistence(t)};S.prototype.report_error=function(t,n){H.error.apply(H.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){H.error(i)}};S.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)};S.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):H.log("remove_hook failed. Matching hook was not found"))};S.prototype.init=S.prototype.init;S.prototype.reset=S.prototype.reset;S.prototype.enable=S.prototype.enable;S.prototype.disable=S.prototype.disable;S.prototype.time_event=S.prototype.time_event;S.prototype.track=S.prototype.track;S.prototype.track_links=S.prototype.track_links;S.prototype.track_forms=S.prototype.track_forms;S.prototype.track_pageview=S.prototype.track_pageview;S.prototype.register=S.prototype.register;S.prototype.register_once=S.prototype.register_once;S.prototype.unregister=S.prototype.unregister;S.prototype.identify=S.prototype.identify;S.prototype.alias=S.prototype.alias;S.prototype.name_tag=S.prototype.name_tag;S.prototype.set_config=S.prototype.set_config;S.prototype.get_config=S.prototype.get_config;S.prototype.get_api_host=S.prototype.get_api_host;S.prototype.get_property=S.prototype.get_property;S.prototype.get_distinct_id=S.prototype.get_distinct_id;S.prototype.toString=S.prototype.toString;S.prototype.opt_out_tracking=S.prototype.opt_out_tracking;S.prototype.opt_in_tracking=S.prototype.opt_in_tracking;S.prototype.has_opted_out_tracking=S.prototype.has_opted_out_tracking;S.prototype.has_opted_in_tracking=S.prototype.has_opted_in_tracking;S.prototype.clear_opt_in_out_tracking=S.prototype.clear_opt_in_out_tracking;S.prototype.get_group=S.prototype.get_group;S.prototype.set_group=S.prototype.set_group;S.prototype.add_group=S.prototype.add_group;S.prototype.remove_group=S.prototype.remove_group;S.prototype.add_hook=S.prototype.add_hook;S.prototype.remove_hook=S.prototype.remove_hook;S.prototype.track_with_groups=S.prototype.track_with_groups;S.prototype.start_batch_senders=S.prototype.start_batch_senders;S.prototype.stop_batch_senders=S.prototype.stop_batch_senders;S.prototype.start_session_recording=S.prototype.start_session_recording;S.prototype.stop_session_recording=S.prototype.stop_session_recording;S.prototype.pause_session_recording=S.prototype.pause_session_recording;S.prototype.resume_session_recording=S.prototype.resume_session_recording;S.prototype.get_session_recording_properties=S.prototype.get_session_recording_properties;S.prototype.get_session_replay_url=S.prototype.get_session_replay_url;S.prototype.get_tab_id=S.prototype.get_tab_id;S.prototype.DEFAULT_API_ROUTES=ov;S.prototype.__get_recorder=S.prototype.__get_recorder;S.prototype.__get_recording_init_promise=S.prototype.__get_recording_init_promise;X.prototype.properties=X.prototype.properties;X.prototype.update_search_keyword=X.prototype.update_search_keyword;X.prototype.update_referrer_info=X.prototype.update_referrer_info;X.prototype.get_cross_subdomain=X.prototype.get_cross_subdomain;X.prototype.clear=X.prototype.clear;var Fr={},pI=function(){p.each(Fr,function(t,n){n!==ut&&(He[n]=t)}),He._=p},dI=function(){He.init=function(t,n,i){if(i)return He[i]||(He[i]=Fr[i]=iu(t,n,i),He[i]._loaded()),He[i];var e=He;Fr[ut]?e=Fr[ut]:t&&(e=iu(t,n,ut),e._loaded(),Fr[ut]=e),He=e,To===aI&&(E[ut]=He),pI()}},vI=function(){function t(){t.done||(t.done=!0,sv=!0,iv=!1,p.each(Fr,function(e){e._dom_loaded()}))}function n(){try{W.documentElement.doScroll("left")}catch{setTimeout(n,1);return}t()}if(W.addEventListener)W.readyState==="complete"?t():W.addEventListener("DOMContentLoaded",t,!1);else if(W.attachEvent){W.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch{}W.documentElement.doScroll&&i&&n()}p.register_event(E,"load",t,!0)};function gI(t){return tu=t,To=ru,He=new S,dI(),He.init(),vI(),He}function mI(t,n){n()}var cr=gI(mI);var sc=Pg(require("crypto"),1);var av="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var yI=128,kr,on,_I=t=>{if(t<0||t>1024)throw new RangeError("Wrong ID size");!kr||kr.length<t?(kr=Buffer.allocUnsafe(t*yI),sc.default.randomFillSync(kr),on=0):on+t>kr.length&&(sc.default.randomFillSync(kr),on=0),on+=t};var uv=(t=21)=>{_I(t|=0);let n="";for(let i=on-t;i<on;i++)n+=av[kr[i]&63];return n};var ac="rozmovaAnalyticsParams",uc=["utm_source","utm_medium","utm_campaign","utm_campaign_id","utm_advertiser_id","utm_adset_id","utm_adset_name","utm_ad_id","utm_ad_name","utm_keyword"],cv="G-GYQLL028VQ";var lv="9d4cb3d213e5aee689ea01dd68ad65ad",fv="e6d009719c77519432c3",hv=["en","uk","pl","es","ru"],pv=["view_item_list","select_item","view_item","begin_checkout","add_payment_info"],dv=["rozmova.me","clearly.help","uptech.team"],vv="createTherapyPlacementPage",gv="rankingSessionId";var mv=(t,n)=>{let i=new URL(window.location.href);i.searchParams.set(t,n),window.history.replaceState({path:i.toString()},"",i.toString())},cc=t=>new URLSearchParams(window.location.search).get(t),yv=()=>(navigator.userAgent||navigator.vendor||window.opera).match(/FBAN|FBAV|Instagram/i),_v=()=>window.navigator.language;function wv(){let t=navigator.userAgent;return t.indexOf("Edg")>-1?"Microsoft Edge":t.indexOf("Chrome")>-1?"Chrome":t.indexOf("Firefox")>-1?"Firefox":t.indexOf("Safari")>-1?"Safari":t.indexOf("Opera")>-1?"Opera":t.indexOf("Trident")>-1||t.indexOf("MSIE")>-1?"Internet Explorer":"Unknown"}function bv(){let t=navigator.userAgent;return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)?"Mobile":"Desktop"}function Sv(){let t=navigator.userAgent;return t.includes("Win")?"Windows":t.includes("Mac")?"macOS":t.includes("X11")||t.includes("Linux")?"Linux":t.includes("Android")?"Android":t.includes("like Mac")?"iOS":"Unknown OS"}var lt=()=>{let t=window.location.hostname.split("."),n=t.length;return t.length===1?t[0]:t.slice(n-2,n).join(".")},wI=["accounts.google.com","appleid.apple.com","checkout.stripe.com"],lc=()=>{let t=document.referrer;if(t){let n=new URL(t);if([...wI,lt()].some(i=>n.hostname.includes(i)))return null}return t};function Cv(){let t=lc();if(!t)return null;let n={"google.com":"q","bing.com":"q","yahoo.com":"p","duckduckgo.com":"q","ask.com":"q","baidu.com":"wd","yandex.com":"text"},i=new URL(t);for(let[e,r]of Object.entries(n))if(i.hostname.includes(e)){let o=i.searchParams.get(r);return o?decodeURIComponent(o):null}return null}var rs=()=>{let t=Te.get("_ga");if(!t)return null;let n=t.split(".");return n.length<4?null:`${n[2]}.${n[3]}`},Ev=()=>new Promise(t=>{let n=!1,i=()=>{n||(n=!0,t(rs()))};if(typeof window<"u"&&typeof gtag=="function")try{gtag("get",cv,"client_id",e=>{n||(n=!0,t(e||rs()))}),setTimeout(i,1e3)}catch{i()}else i()});function fc(){let t=Te.get("_ga_GYQLL028VQ");if(!t)return null;let n=t.split("."),i=n[0];if(i==="GS1"&&n.length>=3)return n[2];if(i==="GS2"){let e=t.match(/s(\d+)/);if(e)return e[1]}return null}var Iv=t=>{if(!t)return;let i="GA1.1."+t,e=730,r=new Date(Date.now()+e*864e5).toUTCString();document.cookie=`_ga=${i}; expires=${r}; path=/; Secure; SameSite=Lax`},kv=t=>{let i=window.location.pathname.split("/")[1];return hv.includes(i)?i:t?"en":"uk"},Ov=t=>t&&dv.some(i=>t.includes(i))?"internal":"external";function xv(t,n){let i=Object.keys(t),e=Object.keys(n);return i.length!==e.length?!1:i.every(r=>t[r]===n[r])}function Rv(t){let n=Number(t);return isNaN(n)?null:n}function Av(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(n,i)=>String.fromCharCode(parseInt(i,16))))}var Mv=(t,n)=>(t?"https://trp.rozmova.me":"https://stage.trp.rozmova.me")+n,hc=t=>{let n=Te.get(t),i=fc(),e=n!==i;if(e){let r=lt();i&&Te.set(t,i,{domain:r})}return e};function Tv(){let t=`
103
+ (function(){
104
+ var analytics = window.analytics = window.analytics || [];
105
+ if (!analytics.initialize)
106
+ if (analytics.invoked)
107
+ window.console && console.error && console.error("Snippet included twice.");
108
+ else {
109
+ analytics.invoked = !0;
110
+ analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"];
111
+ analytics.factory = function(e) {
112
+ return function() {
113
+ var t = Array.prototype.slice.call(arguments);
114
+ t.unshift(e);
115
+ analytics.push(t);
116
+ return analytics;
117
+ }
118
+ };
119
+ for (var e = 0; e < analytics.methods.length; e++) {
120
+ var key = analytics.methods[e];
121
+ analytics[key] = analytics.factory(key);
122
+ }
123
+ analytics.load = function(key, e) {
124
+ var t = document.createElement("script");
125
+ t.type = "text/javascript";
126
+ t.async = !0;
127
+ t.src = "https://cdp-eu.customer.io/v1/analytics-js/snippet/" + key + "/analytics.min.js";
128
+ var n = document.getElementsByTagName("script")[0];
129
+ n.parentNode.insertBefore(t, n);
130
+ analytics._writeKey = key;
131
+ analytics._loadOptions = e;
132
+ };
133
+ analytics.SNIPPET_VERSION = "4.15.3";
134
+ analytics.load("${fv}");
135
+ analytics.page();
136
+ }
137
+ })();
138
+ `,n=document.createElement("script");n.type="text/javascript",n.text=t,document.head.appendChild(n)}var Pv=t=>{let n=lt();Te.set("rid",t,{domain:n}),localStorage.setItem("rid",t)},bI=()=>{let t=uv();return Pv(t),t},sn=()=>{let t=cc("rid");return t&&Pv(t),t||localStorage.getItem("rid")||Te.get("rid")||bI()},SI=(t,n,i)=>{let e=n.get("gclid"),r=n.get("wbraid"),o=n.get("gbraid"),s=n.get("utm_source"),a=n.get("utm_medium");function u(){return e||r||o?"google":s||(a?"(none)":e||r||o?"google":i?i.includes("google.")?"google":i.includes("bing.")?"bing":i.includes("yahoo.")?"yahoo":i.includes("baidu.")?"baidu":i.includes("duckduckgo.")?"duckduckgo":i.includes("googlesyndication.com")?"google":i.includes("facebook.")?"facebook":i.includes("instagram.")?"instagram":/linkedin\.|lnkd\./.test(i)?"linkedin":i:null)}function c(){return e||r||o?"cpc":a||(s?"(none)":i?/google\.|bing\.|duckduckgo\.|yahoo\.|baidu\./.test(i)?"organic":i.includes("googlesyndication.com")?"cpc":(i.includes("facebook.")||i.includes("instagram.")||/linkedin\.|lnkd\./.test(i),"referral"):null)}return t==="utm_source"?u():t==="utm_medium"?c():n.get(t)},$v=()=>{let t=Te.get(ac),n=t?JSON.parse(t):{},i=new URLSearchParams(window.location.search),e=lc(),r=uc.reduce((u,c)=>({...u,[c]:SI(c,i,e)}),{}),o=()=>uc.some(u=>r[u]&&r[u]!==n[u]),a={...hc("utm_params_prev_session_id")&&o()?r:n,referrer:e||n.referrer,search_query:Cv()||n.search_query,landing_page_url:n.landing_page_url||window.location.href};return Te.set(ac,JSON.stringify(a),{domain:lt()}),a},Lv=()=>{let t=cc("geo");if(t){let n=lt();Te.set("geo",t,{domain:n})}},Nv=t=>{hc("prev_session_id")&&t("login",{logged:"no"},{ga:!0})},pc="my_profile_id",Dv=t=>{let n=lt();Te.set(pc,t,{domain:n})},ns=()=>Te.get(pc),Fv=()=>{let t=lt();Te.remove(pc,{domain:t})},dc="my_profile_email",Uv=t=>{let n=lt();Te.set(dc,t,{domain:n})},Bv=()=>Te.get(dc),zv=()=>{let t=lt();Te.remove(dc,{domain:t})},qv=()=>({listName:localStorage.getItem("listName"),index:localStorage.getItem("index")});var Zv="opt-in",Jn="opt-out",Qv="show--consent",eg="show--preferences",jv="disable--interaction",ss="data-category";var gt="button",mt="aria-hidden",Xn="btn-group",Ye="click",un="data-role",Ec="consentModal",Ic="preferencesModal",wc=class{constructor(){this.t={mode:Zv,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",secure:!0,sameSite:"Lax"}},this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,L:[],j:!1,F:"",P:!1,O:[],R:[],B:[],$:[],G:!1,J:!1,U:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},oe:[]},this.ne={ae:{},se:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}},I=new wc,tg=(t,n)=>t.indexOf(n),fe=(t,n)=>tg(t,n)!==-1,us=t=>Array.isArray(t),cn=t=>typeof t=="string",bc=t=>!!t&&typeof t=="object"&&!us(t),Tt=t=>typeof t=="function",xr=t=>Object.keys(t),rg=t=>Array.from(new Set(t)),as=()=>document.activeElement,an=t=>t.preventDefault(),kc=(t,n)=>t.querySelectorAll(n);var T=t=>{let n=document.createElement(t);return t===gt&&(n.type=t),n},j=(t,n,i)=>t.setAttribute(n,i),vc=(t,n,i)=>{t.removeAttribute(i?"data-"+n:n)},is=(t,n,i)=>t.getAttribute(i?"data-"+n:n),M=(t,n)=>t.appendChild(n),pe=(t,n)=>t.classList.add(n),Qe=(t,n)=>pe(t,"cm__"+n),ne=(t,n)=>pe(t,"pm__"+n),fr=(t,n)=>t.classList.remove(n),lr=t=>{if(typeof t!="object")return t;if(t instanceof Date)return new Date(t.getTime());let n=Array.isArray(t)?[]:{};for(let i in t){let e=t[i];n[i]=lr(e)}return n};var Gv=(t,n)=>dispatchEvent(new CustomEvent(t,{detail:n})),Re=(t,n,i,e)=>{t.addEventListener(n,i),e&&I.o.m.push({pe:t,ge:n,me:i})},Wv=()=>{let t=I.t.cookie.expiresAfterDays;return Tt(t)?t(I.o.F):t},gc=(t,n)=>{let i=t||[],e=n||[];return i.filter((r=>!fe(e,r))).concat(e.filter((r=>!fe(i,r))))},ng=t=>{I.o.R=rg(t),I.o.F=(()=>{let n="custom",{R:i,O:e,B:r}=I.o,o=i.length;return o===e.length?n="all":o===r.length&&(n="necessary"),n})()},ig=(t,n,i,e)=>{let r="accept-",{show:o,showPreferences:s,hide:a,hidePreferences:u,acceptCategory:c}=n,l=t||document,f=w=>kc(l,`[data-cc="${w}"]`),h=(w,b)=>{an(w),c(b),u(),a()},g=f("show-preferencesModal"),d=f("show-consentModal"),m=f(r+"all"),v=f(r+"necessary"),y=f(r+"custom"),_=I.t.lazyHtmlGeneration;for(let w of g)j(w,"aria-haspopup","dialog"),Re(w,Ye,(b=>{an(b),s()})),_&&(Re(w,"mouseenter",(b=>{an(b),I.o.N||i(n,e)}),!0),Re(w,"focus",(()=>{I.o.N||i(n,e)})));for(let w of d)j(w,"aria-haspopup","dialog"),Re(w,Ye,(b=>{an(b),o(!0)}),!0);for(let w of m)Re(w,Ye,(b=>{h(b,"all")}),!0);for(let w of y)Re(w,Ye,(b=>{h(b)}),!0);for(let w of v)Re(w,Ye,(b=>{h(b,[])}),!0)},Pt=(t,n)=>{t&&(n&&(t.tabIndex=-1),t.focus(),n&&t.removeAttribute("tabindex"))},og=(t,n)=>{let i=e=>{e.target.removeEventListener("transitionend",i),e.propertyName==="opacity"&&getComputedStyle(t).opacity==="1"&&Pt((r=>r===1?I.ne.be:I.ne.ve)(n))};Re(t,"transitionend",i)},Hv,sg=t=>{clearTimeout(Hv),t?pe(I.ne.ye,jv):Hv=setTimeout((()=>{fr(I.ne.ye,jv)}),500)},CI=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],Qn=(t=0,n=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${n}"><path d="${CI[t]}"/></svg>`,ag=t=>{let n=I.ne,i=I.o;(e=>{let r=e===n.he,o=i.i.disablePageInteraction?n.ye:r?n.Ce:n.ye;Re(o,"keydown",(s=>{if(s.key!=="Tab"||!(r?i.k&&!i.A:i.A))return;let a=as(),u=r?i.q:i.K;u.length!==0&&(s.shiftKey?a!==u[0]&&e.contains(a)||(an(s),Pt(u[1])):a!==u[1]&&e.contains(a)||(an(s),Pt(u[0])))}),!0)})(t)},EI=["[href]",gt,"input","details","[tabindex]"].map((t=>t+':not([tabindex="-1"])')).join(","),ug=t=>{let{o:n,ne:i}=I,e=(r,o)=>{let s=kc(r,EI);o[0]=s[0],o[1]=s[s.length-1]};t===1&&n.T&&e(i.he,n.q),t===2&&n.N&&e(i.we,n.K)},$t=(t,n,i)=>{let{de:e,le:r,ie:o,_e:s,ue:a,fe:u}=I.ce,c=I.re;if(n){let f={modalName:n};return t===c.fe?Tt(u)&&u(f):t===c._e?Tt(s)&&s(f):(f.modal=i,Tt(a)&&a(f)),Gv(t,f)}let l={cookie:I.o.p};t===c.ie?Tt(o)&&o(lr(l)):t===c.le?Tt(r)&&r(lr(l)):(l.changedCategories=I.o.L,l.changedServices=I.o.ee,Tt(e)&&e(lr(l))),Gv(t,lr(l))},ei=(t,n)=>{try{return t()}catch(i){return!n&&console.warn("CookieConsent:",i),!1}},Sc=t=>{let{Y:n,ee:i,O:e,X:r,oe:o,p:s,L:a}=I.o;for(let f of e){let h=i[f]||n[f]||[];for(let g of h){let d=r[f][g];if(!d)continue;let{onAccept:m,onReject:v}=d;!d.Se&&fe(n[f],g)?(d.Se=!0,Tt(m)&&m()):d.Se&&!fe(n[f],g)&&(d.Se=!1,Tt(v)&&v())}}if(!I.t.manageScriptTags)return;let u=o,c=t||s.categories||[],l=(f,h)=>{if(h>=f.length)return;let g=o[h];if(g.xe)return l(f,h+1);let d=g.Me,m=g.De,v=g.Te,y=fe(c,m),_=!!v&&fe(n[m],v);if(!v&&!g.ke&&y||!v&&g.ke&&!y&&fe(a,m)||v&&!g.ke&&_||v&&g.ke&&!_&&fe(i[m]||[],v)){g.xe=!0;let w=is(d,"type",!0);vc(d,"type",!!w),vc(d,ss);let b=is(d,"src",!0);b&&vc(d,"src",!0);let C=T("script");C.textContent=d.innerHTML;for(let{nodeName:x}of d.attributes)j(C,x,d[x]||is(d,x));w&&(C.type=w),b?C.src=b:b=d.src;let k=!!b&&(!w||["text/javascript","module"].includes(w));if(k&&(C.onload=C.onerror=()=>{l(f,++h)}),d.replaceWith(C),k)return}l(f,++h)};l(u,0)},os="bottom",Cc="left",cg="center",Oc="right",mc="inline",lg="wide",fg="pm--",yc=["middle","top",os],Vv=[Cc,cg,Oc],II={box:{Ee:[lg,mc],Ae:yc,Ne:Vv,He:os,Ve:Oc},cloud:{Ee:[mc],Ae:yc,Ne:Vv,He:os,Ve:cg},bar:{Ee:[mc],Ae:yc.slice(1),Ne:[],He:os,Ve:""}},kI={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[lg],Ae:[],Ne:[Cc,Oc],He:"",Ve:Cc}},hg=t=>{let n=I.o.i.guiOptions,i=n&&n.consentModal,e=n&&n.preferencesModal;t===0&&Yv(I.ne.he,II,i,"cm--","box","cm"),t===1&&Yv(I.ne.we,kI,e,fg,"box","pm")},Yv=(t,n,i,e,r,o)=>{t.className=o;let s=i&&i.layout,a=i&&i.position,u=i&&i.flipButtons,c=!i||i.equalWeightButtons!==!1,l=s&&s.split(" ")||[],f=l[0],h=l[1],g=f in n?f:r,d=n[g],m=fe(d.Ee,h)&&h,v=a&&a.split(" ")||[],y=v[0],_=e===fg?v[0]:v[1],w=fe(d.Ae,y)?y:d.He,b=fe(d.Ne,_)?_:d.Ve,C=x=>{x&&pe(t,e+x)};C(g),C(m),C(w),C(b),u&&C("flip");let k=o+"__btn--secondary";if(o==="cm"){let{Ie:x,Le:A}=I.ne;x&&(c?fr(x,k):pe(x,k)),A&&(c?fr(A,k):pe(A,k))}else{let{je:x}=I.ne;x&&(c?fr(x,k):pe(x,k))}},ti=(t,n)=>{let i=I.o,e=I.ne,{hide:r,hidePreferences:o,acceptCategory:s}=t,a=b=>{s(b),o(),r()},u=i.u&&i.u.preferencesModal;if(!u)return;let c=u.title,l=u.closeIconLabel,f=u.acceptAllBtn,h=u.acceptNecessaryBtn,g=u.savePreferencesBtn,d=u.sections||[],m=f||h||g;if(e.Fe)e.Pe=T("div"),ne(e.Pe,"body");else{e.Fe=T("div"),pe(e.Fe,"pm-wrapper");let b=T("div");pe(b,"pm-overlay"),M(e.Fe,b),Re(b,Ye,o),e.we=T("div"),pe(e.we,"pm"),j(e.we,"role","dialog"),j(e.we,mt,!0),j(e.we,"aria-modal",!0),j(e.we,"aria-labelledby","pm__title"),Re(e.ye,"keydown",(C=>{C.keyCode===27&&o()}),!0),e.Oe=T("div"),ne(e.Oe,"header"),e.Re=T("h2"),ne(e.Re,"title"),e.Re.id="pm__title",e.Be=T(gt),ne(e.Be,"close-btn"),j(e.Be,"aria-label",u.closeIconLabel||""),Re(e.Be,Ye,o),e.$e=T("span"),e.$e.innerHTML=Qn(),M(e.Be,e.$e),e.Ge=T("div"),ne(e.Ge,"body"),e.Je=T("div"),ne(e.Je,"footer");var v=T("div");pe(v,"btns");var y=T("div"),_=T("div");ne(y,Xn),ne(_,Xn),M(e.Je,y),M(e.Je,_),M(e.Oe,e.Re),M(e.Oe,e.Be),e.ve=T("div"),j(e.ve,"tabIndex",-1),M(e.we,e.ve),M(e.we,e.Oe),M(e.we,e.Ge),m&&M(e.we,e.Je),M(e.Fe,e.we)}let w;c&&(e.Re.innerHTML=c,l&&j(e.Be,"aria-label",l)),d.forEach(((b,C)=>{let k=b.title,x=b.description,A=b.linkedCategory,P=A&&i.P[A],q=b.cookieTable,ee=q&&q.body,$=q&&q.caption,U=ee&&ee.length>0,K=!!P,B=K&&i.X[A],Ae=bc(B)&&xr(B)||[],ie=K&&(!!x||!!U||xr(B).length>0);var se=T("div");if(ne(se,"section"),ie||x){var Z=T("div");ne(Z,"section-desc-wrapper")}let he=Ae.length;if(ie&&he>0){let z=T("div");ne(z,"section-services");for(let Fe of Ae){let le=B[Fe],xe=le&&le.label||Fe,ot=T("div"),et=T("div"),wt=T("div"),ft=T("div");ne(ot,"service"),ne(ft,"service-title"),ne(et,"service-header"),ne(wt,"service-icon");let Ke=Kv(xe,Fe,P,!0,A);ft.innerHTML=xe,M(et,wt),M(et,ft),M(ot,et),M(ot,Ke),M(z,ot)}M(Z,z)}if(k){var je=T("div"),Se=T(K?gt:"div");if(ne(je,"section-title-wrapper"),ne(Se,"section-title"),Se.innerHTML=k,M(je,Se),K){let z=T("span");z.innerHTML=Qn(2,3.5),ne(z,"section-arrow"),M(je,z),se.className+="--toggle";let Fe=Kv(k,A,P),le=u.serviceCounterLabel;if(he>0&&cn(le)){let xe=T("span");ne(xe,"badge"),ne(xe,"service-counter"),j(xe,mt,!0),j(xe,"data-servicecounter",he),le&&(le=le.split("|"),le=le.length>1&&he>1?le[1]:le[0],j(xe,"data-counterlabel",le)),xe.innerHTML=he+(le?" "+le:""),M(Se,xe)}if(ie){ne(se,"section--expandable");var yt=A+"-desc";j(Se,"aria-expanded",!1),j(Se,"aria-controls",yt)}M(je,Fe)}else j(Se,"role","heading"),j(Se,"aria-level","3");M(se,je)}if(x){var Ge=T("p");ne(Ge,"section-desc"),Ge.innerHTML=x,M(Z,Ge)}if(ie&&(j(Z,mt,"true"),Z.id=yt,((z,Fe,le)=>{Re(Se,Ye,(()=>{Fe.classList.contains("is-expanded")?(fr(Fe,"is-expanded"),j(le,"aria-expanded","false"),j(z,mt,"true")):(pe(Fe,"is-expanded"),j(le,"aria-expanded","true"),j(z,mt,"false"))}))})(Z,se,Se),U)){let z=T("table"),Fe=T("thead"),le=T("tbody");if($){let Ke=T("caption");ne(Ke,"table-caption"),Ke.innerHTML=$,z.appendChild(Ke)}ne(z,"section-table"),ne(Fe,"table-head"),ne(le,"table-body");let xe=q.headers,ot=xr(xe),et=e.Ue.createDocumentFragment(),wt=T("tr");for(let Ke of ot){let tt=xe[Ke],We=T("th");We.id="cc__row-"+tt+C,j(We,"scope","col"),ne(We,"table-th"),We.innerHTML=tt,M(et,We)}M(wt,et),M(Fe,wt);let ft=e.Ue.createDocumentFragment();for(let Ke of ee){let tt=T("tr");ne(tt,"table-tr");for(let We of ot){let bt=xe[We],Lt=Ke[We],it=T("td"),st=T("div");ne(it,"table-td"),j(it,"data-column",bt),j(it,"headers","cc__row-"+bt+C),st.insertAdjacentHTML("beforeend",Lt),M(it,st),M(tt,it)}M(ft,tt)}M(le,ft),M(z,Fe),M(z,le),M(Z,z)}(ie||x)&&M(se,Z);let _t=e.Pe||e.Ge;K?(w||(w=T("div"),ne(w,"section-toggles")),w.appendChild(se)):w=null,M(_t,w||se)})),f&&(e.ze||(e.ze=T(gt),ne(e.ze,"btn"),j(e.ze,un,"all"),M(y,e.ze),Re(e.ze,Ye,(()=>a("all")))),e.ze.innerHTML=f),h&&(e.je||(e.je=T(gt),ne(e.je,"btn"),j(e.je,un,"necessary"),M(y,e.je),Re(e.je,Ye,(()=>a([])))),e.je.innerHTML=h),g&&(e.qe||(e.qe=T(gt),ne(e.qe,"btn"),ne(e.qe,"btn--secondary"),j(e.qe,un,"save"),M(_,e.qe),Re(e.qe,Ye,(()=>a()))),e.qe.innerHTML=g),e.Pe&&(e.we.replaceChild(e.Pe,e.Ge),e.Ge=e.Pe),hg(1),i.N||(i.N=!0,$t(I.re.ue,Ic,e.we),n(t),M(e.Ce,e.Fe),ag(e.we),setTimeout((()=>pe(e.Fe,"cc--anim")),100)),ug(2)};function Kv(t,n,i,e,r){let o=I.o,s=I.ne,a=T("label"),u=T("input"),c=T("span"),l=T("span"),f=T("span"),h=T("span"),g=T("span");if(h.innerHTML=Qn(1,3),g.innerHTML=Qn(0,3),u.type="checkbox",pe(a,"section__toggle-wrapper"),pe(u,"section__toggle"),pe(h,"toggle__icon-on"),pe(g,"toggle__icon-off"),pe(c,"toggle__icon"),pe(l,"toggle__icon-circle"),pe(f,"toggle__label"),j(c,mt,"true"),e?(pe(a,"toggle-service"),j(u,ss,r),s.se[r][n]=u):s.ae[n]=u,e?(d=>{Re(u,"change",(()=>{let m=s.se[d],v=s.ae[d];o.Z[d]=[];for(let y in m){let _=m[y];_.checked&&o.Z[d].push(_.value)}v.checked=o.Z[d].length>0}))})(r):(d=>{Re(u,Ye,(()=>{let m=s.se[d],v=u.checked;o.Z[d]=[];for(let y in m)m[y].checked=v,v&&o.Z[d].push(y)}))})(n),u.value=n,f.textContent=t.replace(/<.*>.*<\/.*>/gm,""),M(l,g),M(l,h),M(c,l),o.D)(i.readOnly||i.enabled)&&(u.checked=!0);else if(e){let d=o.Y[r];u.checked=i.readOnly||fe(d,n)}else fe(o.R,n)&&(u.checked=!0);return i.readOnly&&(u.disabled=!0),M(a,u),M(a,c),M(a,f),a}var _c=()=>{let t=T("span");return I.ne.Ke||(I.ne.Ke=t),t},pg=(t,n)=>{let i=I.o,e=I.ne,{hide:r,showPreferences:o,acceptCategory:s}=t,a=i.u&&i.u.consentModal;if(!a)return;let u=a.acceptAllBtn,c=a.acceptNecessaryBtn,l=a.showPreferencesBtn,f=a.closeIconLabel,h=a.footer,g=a.label,d=a.title,m=y=>{r(),s(y)};if(!e.Qe){e.Qe=T("div"),e.he=T("div"),e.We=T("div"),e.Xe=T("div"),e.Ye=T("div"),pe(e.Qe,"cm-wrapper"),pe(e.he,"cm"),Qe(e.We,"body"),Qe(e.Xe,"texts"),Qe(e.Ye,"btns"),j(e.he,"role","dialog"),j(e.he,"aria-modal","true"),j(e.he,mt,"false"),j(e.he,"aria-describedby","cm__desc"),g?j(e.he,"aria-label",g):d&&j(e.he,"aria-labelledby","cm__title");let y="box",_=i.i.guiOptions,w=_&&_.consentModal,b=(w&&w.layout||y).split(" ")[0]===y;d&&f&&b&&(e.Le||(e.Le=T(gt),e.Le.innerHTML=Qn(),Qe(e.Le,"btn"),Qe(e.Le,"btn--close"),Re(e.Le,Ye,(()=>{m([])})),M(e.We,e.Le)),j(e.Le,"aria-label",f)),M(e.We,e.Xe),(u||c||l)&&M(e.We,e.Ye),e.be=T("div"),j(e.be,"tabIndex",-1),M(e.he,e.be),M(e.he,e.We),M(e.Qe,e.he)}d&&(e.Ze||(e.Ze=T("h2"),e.Ze.className=e.Ze.id="cm__title",M(e.Xe,e.Ze)),e.Ze.innerHTML=d);let v=a.description;if(v&&(i.V&&(v=v.replace("{{revisionMessage}}",i.I?"":a.revisionMessage||"")),e.et||(e.et=T("p"),e.et.className=e.et.id="cm__desc",M(e.Xe,e.et)),e.et.innerHTML=v),u&&(e.tt||(e.tt=T(gt),M(e.tt,_c()),Qe(e.tt,"btn"),j(e.tt,un,"all"),Re(e.tt,Ye,(()=>{m("all")}))),e.tt.firstElementChild.innerHTML=u),c&&(e.Ie||(e.Ie=T(gt),M(e.Ie,_c()),Qe(e.Ie,"btn"),j(e.Ie,un,"necessary"),Re(e.Ie,Ye,(()=>{m([])}))),e.Ie.firstElementChild.innerHTML=c),l&&(e.ot||(e.ot=T(gt),M(e.ot,_c()),Qe(e.ot,"btn"),Qe(e.ot,"btn--secondary"),j(e.ot,un,"show"),Re(e.ot,"mouseenter",(()=>{i.N||ti(t,n)})),Re(e.ot,Ye,o)),e.ot.firstElementChild.innerHTML=l),e.nt||(e.nt=T("div"),Qe(e.nt,Xn),u&&M(e.nt,e.tt),c&&M(e.nt,e.Ie),(u||c)&&M(e.We,e.nt),M(e.Ye,e.nt)),e.ot&&!e.st&&(e.st=T("div"),e.Ie&&e.tt?(Qe(e.st,Xn),M(e.st,e.ot),M(e.Ye,e.st)):(M(e.nt,e.ot),Qe(e.nt,Xn+"--uneven"))),h){if(!e.ct){let y=T("div"),_=T("div");e.ct=T("div"),Qe(y,"footer"),Qe(_,"links"),Qe(e.ct,"link-group"),M(_,e.ct),M(y,_),M(e.he,y)}e.ct.innerHTML=h}hg(0),i.T||(i.T=!0,$t(I.re.ue,Ec,e.he),n(t),M(e.Ce,e.Qe),ag(e.he),setTimeout((()=>pe(e.Qe,"cc--anim")),100)),ug(1),ig(e.We,t,ti,n)},dg=t=>{if(!cn(t))return null;if(t in I.o._)return t;let n=t.slice(0,2);return n in I.o._?n:null},vg=()=>I.o.l||I.o.i.language.default,gg=t=>{t&&(I.o.l=t)},OI=async t=>{let n=I.o,i=dg(t)?t:vg(),e=n._[i];if(cn(e)?e=await(async r=>{try{return await(await fetch(r)).json()}catch(o){return console.error(o),!1}})(e):Tt(e)&&(e=await e()),!e)throw`Could not load translation for the '${i}' language`;return n.u=e,gg(i),!0},xI=()=>{let t=I.o.i.language.rtl,n=I.ne.Ce;t&&n&&(us(t)||(t=[t]),fe(t,I.o.l)?pe(n,"cc--rtl"):fr(n,"cc--rtl"))},Zn=()=>{let t=I.ne;if(t.Ce)return;t.Ce=T("div"),t.Ce.id="cc-main",t.Ce.setAttribute("data-nosnippet",""),xI();let n=I.o.i.root;n&&cn(n)&&(n=document.querySelector(n)),(n||t.Ue.body).appendChild(t.Ce)},RI=t=>ei((()=>localStorage.removeItem(t))),Jv=(t,n)=>{if(n instanceof RegExp)return t.filter((i=>n.test(i)));{let i=tg(t,n);return i>-1?[t[i]]:[]}},AI=t=>{let{hostname:n,protocol:i}=location,{name:e,path:r,domain:o,sameSite:s,useLocalStorage:a,secure:u}=I.t.cookie,c=t?(()=>{let g=I.o.S,d=g?new Date-g:0;return 864e5*Wv()-d})():864e5*Wv(),l=new Date;l.setTime(l.getTime()+c),I.o.p.expirationTime=l.getTime();let f=JSON.stringify(I.o.p),h=e+"="+encodeURIComponent(f)+(c!==0?"; expires="+l.toUTCString():"")+"; Path="+r+"; SameSite="+s;fe(n,".")&&(h+="; Domain="+o),u&&i==="https:"&&(h+="; Secure"),a?((g,d)=>{ei((()=>localStorage.setItem(g,d)))})(e,f):document.cookie=h,I.o.p},Xv=(t,n,i)=>{if(t.length===0)return;let e=i||I.t.cookie.domain,r=n||I.t.cookie.path,o=e.slice(0,4)==="www.",s=o&&e.substring(4),a=(u,c)=>{c&&c.slice(0,1)!=="."&&(c="."+c),document.cookie=u+"=; path="+r+(c?"; domain="+c:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(let u of t)a(u,i),i||a(u,e),o&&a(u,s)},MI=t=>{let n=t||I.t.cookie.name,i=I.t.cookie.useLocalStorage;return((r,o)=>{let s;return s=ei((()=>JSON.parse(o?r:decodeURIComponent(r))),!0)||{},s})(i?(e=n,ei((()=>localStorage.getItem(e)))||""):TI(n,!0),i);var e},TI=(t,n)=>{let i=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)");return i?n?i.pop():t:""},PI=t=>{let n=document.cookie.split(/;\s*/),i=[];for(let e of n){let r=e.split("=")[0];t?ei((()=>{t.test(r)&&i.push(r)})):i.push(r)}return i},$I=(t,n=[])=>{((i,e)=>{let{O:r,R:o,B:s,N:a,Z:u,$:c,X:l}=I.o,f=[];if(i){us(i)?f.push(...i):cn(i)&&(f=i==="all"?r:[i]);for(let h of r)u[h]=fe(f,h)?xr(l[h]):[]}else f=[...o,...c],a&&(f=(()=>{let h=I.ne.ae;if(!h)return[];let g=[];for(let d in h)h[d].checked&&g.push(d);return g})());f=f.filter((h=>!fe(r,h)||!fe(e,h))),f.push(...s),ng(f)})(t,n),(()=>{let i=I.o,{Z:e,B:r,Y:o,X:s,O:a}=i,u=a;i.te=lr(o);for(let c of u){let l=s[c],f=xr(l),h=e[c]&&e[c].length>0,g=fe(r,c);if(f.length!==0){if(o[c]=[],g)o[c].push(...f);else if(h){let d=e[c];o[c].push(...d)}else o[c]=i.Z[c];o[c]=rg(o[c])}}})(),(()=>{let i=I.o;i.L=I.t.mode===Jn&&i.D?gc(i.$,i.R):gc(i.R,i.p.categories);let e=i.L.length>0,r=!1;for(let u of i.O)i.ee[u]=gc(i.Y[u],i.te[u]),i.ee[u].length>0&&(r=!0);let o=I.ne.ae;for(let u in o)o[u].checked=fe(i.R,u);for(let u of i.O){let c=I.ne.se[u],l=i.Y[u];for(let f in c)c[f].checked=fe(l,f)}i.C||(i.C=new Date),i.M||(i.M=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(u=>(u^crypto.getRandomValues(new Uint8Array(1))[0]&15>>u/4).toString(16)))),i.p={categories:lr(i.R),revision:I.t.revision,data:i.h,consentTimestamp:i.C.toISOString(),consentId:i.M,services:lr(i.Y),languageCode:I.o.l},i.S&&(i.p.lastConsentTimestamp=i.S.toISOString());let s=!1,a=e||r;(i.D||a)&&(i.D&&(i.D=!1,s=!0),i.S=i.S?new Date:i.C,i.p.lastConsentTimestamp=i.S.toISOString(),AI(),I.t.autoClearCookies&&(s||a)&&(u=>{let c=I.o,l=PI(),f=(h=>{let g=I.o;return(h?g.O:g.L).filter((d=>{let m=g.P[d];return!!m&&!m.readOnly&&!!m.autoClear}))})(u);for(let h in c.ee)for(let g of c.ee[h]){let d=c.X[h][g].cookies;if(!fe(c.Y[h],g)&&d)for(let m of d){let v=Jv(l,m.name);Xv(v,m.path,m.domain)}}for(let h of f){let g=c.P[h].autoClear,d=g&&g.cookies||[],m=fe(c.L,h),v=!fe(c.R,h),y=m&&v;if(u?v:y){g.reloadPage&&y&&(c.j=!0);for(let _ of d){let w=Jv(l,_.name);Xv(w,_.path,_.domain)}}}})(s),Sc()),s&&($t(I.re.ie),$t(I.re.le),I.t.mode===Zv)||(a&&$t(I.re.de),i.j&&(i.j=!1,location.reload()))})()},LI=t=>{let n=I.o.D?[]:I.o.R;return fe(n,t)};var NI=(t,n)=>{let i=I.o.D?[]:I.o.Y[n]||[];return fe(i,t)};var mg=t=>{let{ne:n,o:i}=I;if(!i.k){if(!i.T){if(!t)return;pg(xc,Zn)}i.k=!0,i.J=as(),i.v&&sg(!0),og(n.he,1),pe(n.ye,Qv),j(n.he,mt,"false"),setTimeout((()=>{Pt(I.ne.be)}),100),$t(I.re.fe,Ec)}},DI=()=>{let{ne:t,o:n,re:i}=I;n.k&&(n.k=!1,n.v&&sg(),Pt(t.Ke,!0),fr(t.ye,Qv),j(t.he,mt,"true"),Pt(n.J),n.J=null,$t(i._e,Ec))},FI=()=>{let t=I.o;t.A||(t.N||ti(xc,Zn),t.A=!0,t.k?t.U=as():t.J=as(),og(I.ne.we,2),pe(I.ne.ye,eg),j(I.ne.we,mt,"false"),setTimeout((()=>{Pt(I.ne.ve)}),100),$t(I.re.fe,Ic))},UI=()=>{let t=I.o;t.A&&(t.A=!1,(()=>{let n=yg(),i=I.o.P,e=I.ne.ae,r=I.ne.se,o=s=>fe(I.o.$,s);for(let s in e){let a=!!i[s].readOnly;e[s].checked=a||(n?LI(s):o(s));for(let u in r[s])r[s][u].checked=a||(n?NI(u,s):o(s))}})(),Pt(I.ne.$e,!0),fr(I.ne.ye,eg),j(I.ne.we,mt,"true"),t.k?(Pt(t.U),t.U=null):(Pt(t.J),t.J=null),$t(I.re._e,Ic))},xc={show:mg,hide:DI,showPreferences:FI,hidePreferences:UI,acceptCategory:$I};var yg=()=>!I.o.D,_g=async t=>{let{o:n,t:i,re:e}=I,r=window;if(!r._ccRun){if(r._ccRun=!0,(a=>{let{ne:u,t:c,o:l}=I,f=c,h=l,{cookie:g}=f,d=I.ce,m=a.cookie,v=a.categories,y=xr(v)||[],_=navigator,w=document;u.Ue=w,u.ye=w.documentElement,g.domain=location.hostname,h.i=a,h.P=v,h.O=y,h._=a.language.translations,h.v=!!a.disablePageInteraction,d.ie=a.onFirstConsent,d.le=a.onConsent,d.de=a.onChange,d._e=a.onModalHide,d.fe=a.onModalShow,d.ue=a.onModalReady;let{mode:b,autoShow:C,lazyHtmlGeneration:k,autoClearCookies:x,revision:A,manageScriptTags:P,hideFromBots:q}=a;b===Jn&&(f.mode=b),typeof x=="boolean"&&(f.autoClearCookies=x),typeof P=="boolean"&&(f.manageScriptTags=P),typeof A=="number"&&A>=0&&(f.revision=A,h.V=!0),typeof C=="boolean"&&(f.autoShow=C),typeof k=="boolean"&&(f.lazyHtmlGeneration=k),q===!1&&(f.hideFromBots=!1),f.hideFromBots===!0&&_&&(h.G=_.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(_.userAgent)||_.webdriver),bc(m)&&(f.cookie={...g,...m}),f.autoClearCookies,h.V,f.manageScriptTags,(ee=>{let{P:$,X:U,Y:K,Z:B,B:Ae}=I.o;for(let ie of ee){let se=$[ie],Z=se.services||{},he=bc(Z)&&xr(Z)||[];U[ie]={},K[ie]=[],B[ie]=[],se.readOnly&&(Ae.push(ie),K[ie]=he),I.ne.se[ie]={};for(let je of he){let Se=Z[je];Se.Se=!1,U[ie][je]=Se}}})(y),(()=>{if(!I.t.manageScriptTags)return;let ee=I.o,$=kc(document,"script["+ss+"]");for(let U of $){let K=is(U,ss),B=U.dataset.service||"",Ae=!1;if(K&&K.charAt(0)==="!"&&(K=K.slice(1),Ae=!0),B.charAt(0)==="!"&&(B=B.slice(1),Ae=!0),fe(ee.O,K)&&(ee.oe.push({Me:U,xe:!1,ke:Ae,De:K,Te:B}),B)){let ie=ee.X[K];ie[B]||(ie[B]={Se:!1})}}})(),gg((()=>{let ee=I.o.i.language.autoDetect;if(ee){let $={browser:navigator.language,document:document.documentElement.lang},U=dg($[ee]);if(U)return U}return vg()})())})(t),n.G)return;(()=>{let a=I.o,u=I.t,c=MI(),{categories:l,services:f,consentId:h,consentTimestamp:g,lastConsentTimestamp:d,data:m,revision:v}=c,y=us(l);a.p=c,a.M=h;let _=!!h&&cn(h);a.C=g,a.C&&(a.C=new Date(g)),a.S=d,a.S&&(a.S=new Date(d)),a.h=m!==void 0?m:null,a.V&&_&&v!==u.revision&&(a.I=!1),a.D=!(_&&a.I&&a.C&&a.S&&y),u.cookie.useLocalStorage&&!a.D&&(a.D=new Date().getTime()>(c.expirationTime||0),a.D&&RI(u.cookie.name)),a.D,(()=>{let w=I.o;for(let b of w.O){let C=w.P[b];if(C.readOnly||C.enabled){w.$.push(b);let k=w.X[b]||{};for(let x in k)w.Z[b].push(x),w.i.mode===Jn&&w.Y[b].push(x)}}})(),a.D?u.mode===Jn&&(a.R=[...a.$]):(a.Y={...a.Y,...f},a.Z={...a.Y},ng([...a.B,...l]))})();let s=yg();if(!await OI())return!1;if(ig(null,o=xc,ti,Zn),I.o.D&&pg(o,Zn),I.t.lazyHtmlGeneration||ti(o,Zn),i.autoShow&&!s&&mg(!0),s)return Sc(),$t(e.le);i.mode===Jn&&Sc(n.$)}var o};var zI=(t,n)=>{let i=lt();return{language:{default:t,translations:qI(n)},cookie:{domain:i},guiOptions:{consentModal:{layout:"box wide",position:"bottom left"},preferencesModal:{layout:"bar"}},categories:{necessary:{enabled:!0,readOnly:!0},analytics:{enabled:!0,readOnly:!1,services:{ga:{label:"Google Analytics",onAccept:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})},onReject:()=>{gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"})}}}}}}},qI=t=>({en:{consentModal:{title:"We use cookies",description:"Our website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. Tracking will be enabled only upon your explicit consent.",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",showPreferencesBtn:"Manage preferences"},preferencesModal:{title:"Consent preferences center",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",savePreferencesBtn:"Accept current selection",closeIconLabel:"Close modal",sections:[{title:"Tracking technologies and your consent",description:"Cookies are small files that websites place on users' devices to collect data and enhance user experience. They can remember preferences, and track browsing habits. You can modify your preferences regarding cookies and tracking at any time."},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of the website and cannot be disabled.",linkedCategory:"necessary"},{title:"Analytics cookies",description:"These cookies collect information about how you use our website. All of the data is anonymized and cannot be used to identify you.",linkedCategory:"analytics"},{title:"More information",description:`For any queries in relation to our policy on cookies and your choices, please <a href="mailto:${t?"hello@clearly.help":"hello@rozmova.me"}">contact us</a>`}]}},pl:{consentModal:{title:"U\u017Cywamy plik\xF3w cookie",description:"Nasza strona internetowa u\u017Cywa niezb\u0119dnych plik\xF3w cookie do jej prawid\u0142owego dzia\u0142ania oraz plik\xF3w \u015Bledz\u0105cych, aby zrozumie\u0107, jak z niej korzystasz. \u015Aledzenie zostanie w\u0142\u0105czone tylko po Twojej wyra\u017Anej zgodzie.",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzu\u0107 wszystkie",showPreferencesBtn:"Zarz\u0105dzaj ustawieniami"},preferencesModal:{title:"Centrum preferencji zgody",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzu\u0107 wszystkie",savePreferencesBtn:"Akceptuj bie\u017C\u0105cy wyb\xF3r",closeIconLabel:"Zamknij okno",sections:[{title:"Technologie \u015Bledzenia i Twoja zgoda",description:"Pliki cookie to ma\u0142e pliki, kt\xF3re strony internetowe umieszczaj\u0105 na urz\u0105dzeniach u\u017Cytkownik\xF3w, aby zbiera\u0107 dane i poprawia\u0107 do\u015Bwiadczenie u\u017Cytkownika. Mog\u0105 zapami\u0119tywa\u0107 preferencje i \u015Bledzi\u0107 nawyki przegl\u0105dania. Mo\u017Cesz zmieni\u0107 swoje preferencje dotycz\u0105ce plik\xF3w cookie i \u015Bledzenia w dowolnym momencie."},{title:"Niezb\u0119dne pliki cookie",description:"Te pliki cookie s\u0105 niezb\u0119dne do prawid\u0142owego funkcjonowania strony internetowej i nie mo\u017Cna ich wy\u0142\u0105czy\u0107.",linkedCategory:"necessary"},{title:"Pliki cookie analityczne",description:"Te pliki cookie zbieraj\u0105 informacje o tym, jak korzystasz z naszej strony internetowej. Wszystkie dane s\u0105 anonimizowane i nie mog\u0105 zosta\u0107 wykorzystane do Twojej identyfikacji.",linkedCategory:"analytics"},{title:"Wi\u0119cej informacji",description:`W przypadku pyta\u0144 dotycz\u0105cych naszej polityki plik\xF3w cookie i Twoich wybor\xF3w, prosimy <a href="mailto:${t?"hello@clearly.help":"hello@rozmova.me"}">skontaktowa\u0107 si\u0119 z nami</a>.`}]}},es:{consentModal:{title:"Usamos cookies",description:"Nuestro sitio web utiliza cookies esenciales para garantizar su correcto funcionamiento y cookies de seguimiento para comprender c\xF3mo interact\xFAas con \xE9l. El seguimiento solo se habilitar\xE1 con tu consentimiento expl\xEDcito.",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",showPreferencesBtn:"Gestionar preferencias"},preferencesModal:{title:"Centro de preferencias de consentimiento",acceptAllBtn:"Aceptar todas",acceptNecessaryBtn:"Rechazar todas",savePreferencesBtn:"Aceptar selecci\xF3n actual",closeIconLabel:"Cerrar ventana",sections:[{title:"Tecnolog\xEDas de seguimiento y tu consentimiento",description:"Las cookies son peque\xF1os archivos que los sitios web colocan en los dispositivos de los usuarios para recopilar datos y mejorar la experiencia del usuario. Pueden recordar preferencias y rastrear h\xE1bitos de navegaci\xF3n. Puedes modificar tus preferencias sobre cookies y seguimiento en cualquier momento."},{title:"Cookies estrictamente necesarias",description:"Estas cookies son esenciales para el funcionamiento adecuado del sitio web y no se pueden desactivar.",linkedCategory:"necessary"},{title:"Cookies de an\xE1lisis",description:"Estas cookies recopilan informaci\xF3n sobre c\xF3mo usas nuestro sitio web. Todos los datos est\xE1n anonimizados y no pueden utilizarse para identificarte.",linkedCategory:"analytics"},{title:"M\xE1s informaci\xF3n",description:`Para cualquier consulta sobre nuestra pol\xEDtica de cookies y tus elecciones, por favor <a href="mailto:${t?"hello@clearly.help":"hello@rozmova.me"}">cont\xE1ctanos</a>.`}]}},uk:{consentModal:{title:"\u041C\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u043C\u043E \u0444\u0430\u0439\u043B\u0438 cookie",description:"\u041D\u0430\u0448 \u0432\u0435\u0431\u0441\u0430\u0439\u0442 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454 \u043D\u0435\u043E\u0431\u0445\u0456\u0434\u043D\u0456 \u0444\u0430\u0439\u043B\u0438 cookie \u0434\u043B\u044F \u0437\u0430\u0431\u0435\u0437\u043F\u0435\u0447\u0435\u043D\u043D\u044F \u0439\u043E\u0433\u043E \u043D\u0430\u043B\u0435\u0436\u043D\u043E\u0457 \u0440\u043E\u0431\u043E\u0442\u0438, \u0430 \u0442\u0430\u043A\u043E\u0436 \u0444\u0430\u0439\u043B\u0438 \u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0435\u043D\u043D\u044F, \u0449\u043E\u0431 \u0437\u0440\u043E\u0437\u0443\u043C\u0456\u0442\u0438, \u044F\u043A \u0432\u0438 \u0437 \u043D\u0438\u043C \u0432\u0437\u0430\u0454\u043C\u043E\u0434\u0456\u0454\u0442\u0435. \u0412\u0456\u0434\u0441\u0442\u0435\u0436\u0435\u043D\u043D\u044F \u0431\u0443\u0434\u0435 \u0443\u0432\u0456\u043C\u043A\u043D\u0435\u043D\u043E \u043B\u0438\u0448\u0435 \u043F\u0456\u0441\u043B\u044F \u0432\u0430\u0448\u043E\u0457 \u044F\u0432\u043D\u043E\u0457 \u0437\u0433\u043E\u0434\u0438.",acceptAllBtn:"\u041F\u0440\u0438\u0439\u043D\u044F\u0442\u0438 \u0432\u0441\u0456",acceptNecessaryBtn:"\u0412\u0456\u0434\u0445\u0438\u043B\u0438\u0442\u0438 \u0432\u0441\u0456",showPreferencesBtn:"\u041A\u0435\u0440\u0443\u0432\u0430\u0442\u0438 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F\u043C\u0438"},preferencesModal:{title:"\u0426\u0435\u043D\u0442\u0440 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u044C \u0437\u0433\u043E\u0434\u0438",acceptAllBtn:"\u041F\u0440\u0438\u0439\u043D\u044F\u0442\u0438 \u0432\u0441\u0456",acceptNecessaryBtn:"\u0412\u0456\u0434\u0445\u0438\u043B\u0438\u0442\u0438 \u0432\u0441\u0456",savePreferencesBtn:"\u041F\u0440\u0438\u0439\u043D\u044F\u0442\u0438 \u043F\u043E\u0442\u043E\u0447\u043D\u0438\u0439 \u0432\u0438\u0431\u0456\u0440",closeIconLabel:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438 \u0432\u0456\u043A\u043D\u043E",sections:[{title:"\u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0456\u0457 \u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0435\u043D\u043D\u044F \u0442\u0430 \u0432\u0430\u0448\u0430 \u0437\u0433\u043E\u0434\u0430",description:"\u0424\u0430\u0439\u043B\u0438 cookie \u2013 \u0446\u0435 \u043D\u0435\u0432\u0435\u043B\u0438\u043A\u0456 \u0444\u0430\u0439\u043B\u0438, \u044F\u043A\u0456 \u0432\u0435\u0431\u0441\u0430\u0439\u0442\u0438 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u044E\u0442\u044C \u043D\u0430 \u043F\u0440\u0438\u0441\u0442\u0440\u043E\u044F\u0445 \u043A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0456\u0432 \u0434\u043B\u044F \u0437\u0431\u043E\u0440\u0443 \u0434\u0430\u043D\u0438\u0445 \u0456 \u043F\u043E\u043A\u0440\u0430\u0449\u0435\u043D\u043D\u044F \u0432\u0437\u0430\u0454\u043C\u043E\u0434\u0456\u0457. \u0412\u043E\u043D\u0438 \u043C\u043E\u0436\u0443\u0442\u044C \u0437\u0430\u043F\u0430\u043C'\u044F\u0442\u043E\u0432\u0443\u0432\u0430\u0442\u0438 \u0432\u043F\u043E\u0434\u043E\u0431\u0430\u043D\u043D\u044F \u0442\u0430 \u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0443\u0432\u0430\u0442\u0438 \u043F\u043E\u0432\u0435\u0434\u0456\u043D\u043A\u0443 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434\u0443. \u0412\u0438 \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u043C\u0456\u043D\u0438\u0442\u0438 \u0441\u0432\u043E\u0457 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u043D\u044F \u0449\u043E\u0434\u043E \u0444\u0430\u0439\u043B\u0456\u0432 cookie \u0442\u0430 \u0432\u0456\u0434\u0441\u0442\u0435\u0436\u0435\u043D\u043D\u044F \u0443 \u0431\u0443\u0434\u044C-\u044F\u043A\u0438\u0439 \u0447\u0430\u0441."},{title:"\u0421\u0442\u0440\u043E\u0433\u043E \u043D\u0435\u043E\u0431\u0445\u0456\u0434\u043D\u0456 \u0444\u0430\u0439\u043B\u0438 cookie",description:"\u0426\u0456 \u0444\u0430\u0439\u043B\u0438 cookie \u0454 \u043D\u0435\u043E\u0431\u0445\u0456\u0434\u043D\u0438\u043C\u0438 \u0434\u043B\u044F \u043D\u0430\u043B\u0435\u0436\u043D\u043E\u0433\u043E \u0444\u0443\u043D\u043A\u0446\u0456\u043E\u043D\u0443\u0432\u0430\u043D\u043D\u044F \u0432\u0435\u0431\u0441\u0430\u0439\u0442\u0443 \u0456 \u0457\u0445 \u043D\u0435 \u043C\u043E\u0436\u043D\u0430 \u0432\u0438\u043C\u043A\u043D\u0443\u0442\u0438.",linkedCategory:"necessary"},{title:"\u0410\u043D\u0430\u043B\u0456\u0442\u0438\u0447\u043D\u0456 \u0444\u0430\u0439\u043B\u0438 cookie",description:"\u0426\u0456 \u0444\u0430\u0439\u043B\u0438 cookie \u0437\u0431\u0438\u0440\u0430\u044E\u0442\u044C \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044E \u043F\u0440\u043E \u0442\u0435, \u044F\u043A \u0432\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u043E\u0432\u0443\u0454\u0442\u0435 \u043D\u0430\u0448 \u0432\u0435\u0431\u0441\u0430\u0439\u0442. \u0423\u0441\u0456 \u0434\u0430\u043D\u0456 \u0430\u043D\u043E\u043D\u0456\u043C\u0456\u0437\u043E\u0432\u0430\u043D\u0456 \u0456 \u043D\u0435 \u043C\u043E\u0436\u0443\u0442\u044C \u0431\u0443\u0442\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u043D\u0456 \u0434\u043B\u044F \u0456\u0434\u0435\u043D\u0442\u0438\u0444\u0456\u043A\u0430\u0446\u0456\u0457 \u0432\u0430\u0441.",linkedCategory:"analytics"},{title:"\u0414\u043E\u0434\u0430\u0442\u043A\u043E\u0432\u0430 \u0456\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0456\u044F",description:`\u042F\u043A\u0449\u043E \u0443 \u0432\u0430\u0441 \u0454 \u0437\u0430\u043F\u0438\u0442\u0430\u043D\u043D\u044F \u0449\u043E\u0434\u043E \u043D\u0430\u0448\u043E\u0457 \u043F\u043E\u043B\u0456\u0442\u0438\u043A\u0438 \u0432\u0438\u043A\u043E\u0440\u0438\u0441\u0442\u0430\u043D\u043D\u044F \u0444\u0430\u0439\u043B\u0456\u0432 cookie \u0442\u0430 \u0432\u0430\u0448\u0438\u0445 \u043D\u0430\u043B\u0430\u0448\u0442\u0443\u0432\u0430\u043D\u044C, \u0431\u0443\u0434\u044C \u043B\u0430\u0441\u043A\u0430, <a href="mailto:${t?"hello@clearly.help":"hello@rozmova.me"}">\u0437\u0432'\u044F\u0436\u0456\u0442\u044C\u0441\u044F \u0437 \u043D\u0430\u043C\u0438</a>.`}]}}}),wg=(t,n)=>{let i=document.createElement("link");i.rel="stylesheet",i.href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.css",document.head.appendChild(i);let e=document.createElement("style");e.innerHTML=`
139
+ :root {
140
+ /** Change font **/
141
+ --cc-font-family: "Inter", sans-serif;
142
+
143
+ /** Change button primary color to black **/
144
+ --cc-btn-primary-bg: #4C6EF5;
145
+ --cc-btn-primary-border-color: #4C6EF5;
146
+ }
147
+ `,document.head.appendChild(e),_g(zI(t,n))};var Rc=class{initialized=!1;locale="uk";platform="web";isProd=!0;dataLayer=[];lastGConfig={};mxDistinctId=null;async init({isProd:n,locale:i,platform:e,isClearly:r,config:o,trackPageScroll:s=!0,mixpanelConfig:a={}}={}){Tv(),Lv();let u=sn();yv()&&mv("rid",u),typeof n=="boolean"&&(this.isProd=n),i?this.locale=i:this.locale=kv(r),e&&(this.platform=e),this.platform==="web"&&r&&wg(this.locale,r),cr.init(lv,{debug:!1,track_pageview:"url-with-path",persistence:"cookie",batch_requests:!1,loaded:c=>this.mxDistinctId=c.get_distinct_id(),...a}),this.setConfig(o),this.trackPageView(),Nv(this.trackEvent.bind(this)),s&&this.trackPageScroll(),this.initialized=!0,this.processDataLayer()}processDataLayer(){let n=["g_config","page_view"];for(let i of n){let e=this.dataLayer.findIndex(r=>r.eventName===i);if(e!==-1){let r=this.dataLayer.splice(e,1)[0];this.trackEvent(r.eventName,r.eventParams)}}for(;this.dataLayer.length>0;){let i=this.dataLayer.shift();this.trackEvent(i?.eventName,i?.eventParams)}}async getGAClientId(){return await Ev()}setGAClientId=Iv;async trackEvent(n,i,e={ga:!0,mixpanel:!0,customerIO:!0}){if(!this.initialized){this.dataLayer.push({eventName:n,eventParams:i});return}let r=this.getCommonParams(),o={...r,...i};if(e.mixpanel)try{cr.track(n,o)}catch(s){console.log(s)}if(e.ga)try{let s={funnel_name:r.funnel_name,...i};pv.includes(n)&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:n,...s})}catch(s){console.log(s)}if(e.customerIO)try{window.analytics.track(n,o)}catch(s){console.log(s)}}setConfig(n={userId:ns(),email:Bv()}){if(xv(n,this.lastGConfig))return;this.lastGConfig=n;let{userId:i,email:e}=n,r={user_id:i,is_logged:i?"yes":"no",locale:this.locale,platform:this.platform,user_type:Ov(e),rid:sn()},o=this.getCommonParams();window.dataLayer.push({event:"g_config",...r})}trackPageView({referrer:n}={}){let i={page_title:document.title,page_location:window.location.href,page_referrer:n||document.referrer},e=this.getCommonParams();window.dataLayer.push({event:"page_view",...i})}setUser(n,i){let{email:e,name:r,phone:o,isB2B:s,CIOParams:a={},mixpanelParams:u={}}=i;this.setConfig({userId:n,email:e}),cr.identify(n),cr.people.set({$email:e,name:r,phone:o,isB2B:s,...u}),window.analytics.identify(n,{...i,...a}),Dv(n),Uv(e),this.trackEvent("login",{logged:"yes",uid:n},{ga:!0})}getCommonParams(){let n=$v(),i=rs();return{...n,fbc:Te.get("_fbc"),fbp:Te.get("_fbp"),session_id:fc(),user_pseudo_id:i,rid:sn(),funnel_name:Te.get("funnel_name"),language:_v(),platform:this.platform,url:window.location.href,device:bv(),browser:wv(),system:Sv(),locale:this.locale,logged_in:!!ns(),user_id:ns()}}setLocale(n){this.locale=n}resetUser(){cr.reset(),window.analytics.reset(),Fv(),zv(),this.setConfig(),this.trackEvent("login",{logged:"no"},{ga:!0}),this.init()}getUserId=sn;async getAttributionProperties(n){let i=await this.getGAClientId(),{listName:e,index:r}=qv(),o=localStorage.getItem(vv),s=sessionStorage.getItem(gv),a=this.getCommonParams();return{funnelInfo:{funnelName:n?.funnelName||a.funnel_name,funnelType:null,listName:e,platform:this.platform,index:Rv(r),placement:o,rankingSessionId:s},trackingParams:{source:a.utm_source,medium:a.utm_medium,advertiserId:a.utm_advertiser_id,campaignId:a.utm_campaign_id,campaignName:a.utm_campaign,adsetId:a.utm_adset_id,adId:a.utm_ad_id,adName:a.utm_ad_name,keyword:a.utm_keyword,searchQuery:a.search_query,referrer:a.referrer,landingPageUrl:a.landing_page_url},externalAnalyticsUserInfo:{gaClientId:i,gaSessionId:a.session_id,rid:sn(),fbp:a.fbp,fbc:a.fbc,mxDistinctId:this.mxDistinctId,cioAnonId:window.analytics?.user?.().anonymousId?.()}}}trackPageScroll(n){let i=()=>{let r=n?n.scrollTop:window.scrollY||document.documentElement.scrollTop,o=n?n.scrollHeight:document.documentElement.scrollHeight,s=n?n.clientHeight:window.innerHeight;r+s>=o&&this.trackEvent("page_scroll",{page_path:location.pathname,page_title:document.title,scroll_depth:100},{mixpanel:!0})},e=n||window;return e.addEventListener("scroll",i),()=>e.removeEventListener("scroll",i)}start_session_recording=()=>cr.start_session_recording();stop_session_recording=()=>cr.stop_session_recording();async trackFirstPartyEvent(n,i,e){let r=await this.getAttributionProperties(e),o=JSON.stringify(r),s=Av(o),a=new Headers({"X-Attribution":s,"Content-Type":"application/json"}),u=Mv(this.isProd,"/api/analytics/track");return await fetch(u,{body:JSON.stringify({eventName:n,eventParams:i}),method:"POST",headers:a})}},jI=new Rc;
148
+ /*! Bundled license information:
149
+
150
+ js-cookie/dist/js.cookie.mjs:
151
+ (*! js-cookie v3.0.5 | MIT *)
152
+
153
+ vanilla-cookieconsent/dist/cookieconsent.esm.js:
154
+ (*!
155
+ * CookieConsent 3.1.0
156
+ * https://github.com/orestbida/cookieconsent
157
+ * Author Orest Bida
158
+ * Released under the MIT License
159
+ *)
160
+ */