rozmova-analytics 1.1.47 → 1.1.49
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 +160 -0
- package/dist/index.d.cts +127 -0
- package/dist/index.d.ts +73 -3
- package/dist/index.js +118 -31990
- package/dist/index.umd.js +151 -2
- package/package.json +41 -42
- package/dist/analytics.d.ts +0 -21
- package/dist/constants.d.ts +0 -12
- package/dist/cookieConsentBanner.d.ts +0 -1
- package/dist/helpers.d.ts +0 -21
- package/dist/index.esm.js +0 -32030
- package/dist/types.d.ts +0 -68
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,151 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Analytics=t()}(this,(function(){"use strict";
|
|
2
|
-
/*! js-cookie v3.0.5 | MIT */function e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var t={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var r,n=function t(r,n){function i(t,i,o){if("undefined"!=typeof document){"number"==typeof(o=e({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=t+"="+r.write(i,t)+s}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],n={},i=0;i<t.length;i++){var o=t[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(n[a]=r.read(s,a),e===a)break}catch(e){}}return e?n[e]:n}},remove:function(t,r){i(t,"",e({},r,{expires:-1}))},withAttributes:function(r){return t(this.converter,e({},this.attributes,r))},withConverter:function(r){return t(e({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(r)}})}(t,{path:"/"});if("undefined"==typeof window){var i={hostname:""};r={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:i,referrer:""},screen:{width:0,height:0},location:i,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else r=window;var o={DEBUG:!1,LIB_VERSION:"2.78.0"},s="__mp_targeting",a="__mp_recorder",c="__MP_TARGETING_FILENAME__";function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){l(o,n,i,s,a,"next",e)}function a(e){l(o,n,i,s,a,"throw",e)}s(void 0)}))}}function p(e,t,r){return p=k()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&_(i,r.prototype),i},p.apply(null,arguments)}function f(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(this,arguments)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function v(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function y(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function w(e){var t="function"==typeof Map?new Map:void 0;return w=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return p(e,arguments,g(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,e)},w(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}function S(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 C(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function x(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var I,O=Object.defineProperty,E=function(e,t,r){return function(e,t,r){return t in e?O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,r)},A=Object.defineProperty,M=function(e,t,r){return function(e,t,r){return t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,r)},R=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(R||{}),T={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},P={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},N={};function L(e){if(N[e])return N[e];var t=globalThis[e],r=t.prototype,n=e in T?T[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in P?P[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return N[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?N[e]=u:r}catch(e){return r}}var D={};function F(e,t,r){var n,i=e+"."+String(r);if(D[i])return D[i].call(t);var o=L(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(D[i]=s,s.call(t)):t[r]}var B={};function U(e,t,r){var n=e+"."+String(r);if(B[n])return B[n].bind(t);var i=L(e)[r];return"function"!=typeof i?t[r]:(B[n]=i,i.bind(t))}var j={childNodes:function(e){return F("Node",e,"childNodes")},parentNode:function(e){return F("Node",e,"parentNode")},parentElement:function(e){return F("Node",e,"parentElement")},textContent:function(e){return F("Node",e,"textContent")},contains:function(e,t){return U("Node",e,"contains")(t)},getRootNode:function(e){return U("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?F("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?F("Element",e,"shadowRoot"):null},querySelector:function(e,t){return F("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return F("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return L("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}};function z(e){return e.nodeType===e.ELEMENT_NODE}function q(e){var t=e&&"host"in e&&"mode"in e&&j.host(e)||null;return Boolean(t&&"shadowRoot"in t&&j.shadowRoot(t)===e)}function V(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function W(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,(function(e){return H(e,r)})).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i}function H(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=W(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?re(r,e.styleSheet.href):r}var n,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?re(i,t):i}var $=function(){function e(){M(this,"idNodeMap",new Map),M(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach((function(e){return r.removeNodeFromMap(e,t)}))},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function G(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&Y(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function Y(e){return e.toLowerCase()}var Z="__rrweb_original__";function J(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Y(t):null}function X(e,t){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var K=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Q=/^(?:[a-z+]+:)?\/\//i,ee=/^www\..*/i,te=/^(data:)([^,]*),(.*)/i;function re(e,t){return(e||"").replace(K,(function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(Q.test(c)||ee.test(c))return"url("+u+c+u+")";if(te.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var l=t.split("/"),h=c.split("/");l.pop();for(var p,f=S(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+u+l.join("/")+u+")"}))}function ne(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function ie(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=ne(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=ne(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),f=-1;if(2===p.length)f=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)f=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}else l===u.length-1&&(f=s.indexOf(h));if(p.length>=2&&l>100){var d=n[c-1].textContent;if(d&&"string"==typeof d){var g=ne(d).length;f=s.indexOf(h,g)}-1===f&&(f=p[0].length)}if(-1!==f){for(var m=Math.floor(f/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=ne(e.substring(0,m),r);if(v.length===f){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(f);break}v.length<f?m+=Math.max(1,Math.floor((f-v.length)/a)):m-=Math.max(1,Math.floor((v.length-f)*a))}break}}}return i.push(e),i}(e,t).join("/* rr_split */")}var oe,se,ae=1,ce=new RegExp("[^a-z0-9-_:]");function ue(){return ae++}var le=/^[^ \t\n\r\u000c]+/,he=/^[, \t\n\r\u000c]+/;var pe=new WeakMap;function fe(e,t){return t&&""!==t.trim()?ge(e,t):t}function de(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function ge(e,t){var r=pe.get(e);if(r||(r=e.createElement("a"),pe.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function me(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?fe(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(he),!(r>=t.length);){var o=n(le);if(","===o.slice(-1))o=fe(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=fe(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?re(n,ge(e)):"object"===t&&"data"===r?fe(e,n):n:fe(e,n):n}function ve(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ye(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ye(j.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ye(j.parentNode(e),t,r)}function _e(e,t,r,n){var i;if(z(e)){if(i=e,!j.childNodes(i).length)return!1}else{if(null===j.parentElement(e))return!1;i=j.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ye(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(e){}return!1}function be(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,f=void 0===p?{}:p,d=t.inlineImages,g=t.recordCanvas,m=t.keepIframeSrcFn,y=t.newlyAddedElement,_=void 0!==y&&y,b=t.cssCaptured,w=void 0!==b&&b,k=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:R.Document,childNodes:[],compatMode:e.compatMode}:{type:R.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:R.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,f=t.recordCanvas,d=t.keepIframeSrcFn,g=t.newlyAddedElement,m=void 0!==g&&g,y=t.rootId,_=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),b=function(e){if(v(e,HTMLFormElement))return"form";var t=Y(e.tagName);return ce.test(t)?"div":t}(e),w={},k=e.attributes.length,S=0;S<k;S++){var C=e.attributes[S];ve(b,C.name,C.value)||(w[C.name]=me(n,b,Y(C.name),C.value))}if("link"===b&&s){var x=Array.from(n.styleSheets).find((function(t){return t.href===e.href})),I=null;x&&(I=W(x)),I&&(delete w.rel,delete w.href,w._cssText=I)}if("style"===b&&e.sheet){var O=W(e.sheet);O&&(e.childNodes.length>1&&(O=ie(O,e)),w._cssText=O)}if("input"===b||"textarea"===b||"select"===b){var E=e.value,A=e.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&E?w.value=G({element:e,type:J(e),tagName:b,value:E,maskInputOptions:c,maskInputFn:u}):A&&(w.checked=A)}"option"===b&&(e.selected&&!c.select?w.selected=!0:delete w.selected);"dialog"===b&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===b&&f)if("2d"===e.__context)(function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData,o=Z in i?i[Z]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var M=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height,M!==T.toDataURL(h.type,h.quality)&&(w.rr_dataURL=M)}if("img"===b&&p){oe||(oe=n.createElement("canvas"),se=oe.getContext("2d"));var P=e,N=P.currentSrc||P.getAttribute("src")||"<unknown-src>",L=P.crossOrigin,D=function(){P.removeEventListener("load",D);try{oe.width=P.naturalWidth,oe.height=P.naturalHeight,se.drawImage(P,0,0),w.rr_dataURL=oe.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==P.crossOrigin)return P.crossOrigin="anonymous",void(P.complete&&0!==P.naturalWidth?D():P.addEventListener("load",D));console.warn("Cannot inline img src="+N+"! Error: "+e)}"anonymous"===P.crossOrigin&&(L?w.crossOrigin=L:P.removeAttribute("crossorigin"))};P.complete&&0!==P.naturalWidth?D():P.addEventListener("load",D)}if("audio"===b||"video"===b){var F=w;F.rr_mediaState=e.paused?"paused":"played",F.rr_mediaCurrentTime=e.currentTime,F.rr_mediaPlaybackRate=e.playbackRate,F.rr_mediaMuted=e.muted,F.rr_mediaLoop=e.loop,F.rr_mediaVolume=e.volume}m||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(_){var B=e.getBoundingClientRect(),U=B.width,j=B.height;w={class:w.class,rr_width:U+"px",rr_height:j+"px"}}"iframe"!==b||d(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(b)&&(r=!0)}catch(e){}return{type:R.Element,tagName:b,attributes:w,childNodes:[],isSVG:de(e)||void 0,needBlock:_,rootId:y,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:f,inlineImages:d,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:_,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=j.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;l?c="SCRIPT_PLACEHOLDER":o||(c=j.textContent(e),u&&c&&(c=re(c,ge(t.doc))));!u&&!l&&c&&r&&(c=n?n(c,j.parentElement(e)):c.replace(/[\S]/g,"*"));return{type:R.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:R.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:R.Comment,textContent:j.textContent(e)||"",rootId:k};default:return!1}}function we(e){return null==e?"":e.toLowerCase()}function ke(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,f=void 0===p?{}:p,d=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,k=void 0!==w&&w,C=t.onSerialize,x=t.onIframeLoad,I=t.iframeLoadTimeout,O=void 0===I?5e3:I,E=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,M=void 0===A?5e3:A,T=t.keepIframeSrcFn,P=void 0===T?function(){return!1}:T,N=t.newlyAddedElement,L=void 0!==N&&N,D=t.cssCaptured,F=void 0!==D&&D,B=t.needsMask,U=t.preserveWhiteSpace,W=void 0===U||U;B||(B=_e(e,s,a,void 0===B));var H,$=be(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:P,newlyAddedElement:L,cssCaptured:F});if(!$)return console.warn(e,"not serialized"),null;H=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===R.Comment)return!0;if(e.type===R.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===X(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(we(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===we(e.attributes.name)||"icon"===we(e.attributes.rel)||"apple-touch-icon"===we(e.attributes.rel)||"shortcut icon"===we(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&we(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(we(e.attributes.property).match(/^(og|twitter|fb):/)||we(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===we(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===we(e.attributes.name)||"googlebot"===we(e.attributes.name)||"bingbot"===we(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===we(e.attributes.name)||"generator"===we(e.attributes.name)||"framework"===we(e.attributes.name)||"publisher"===we(e.attributes.name)||"progid"===we(e.attributes.name)||we(e.attributes.property).match(/^article:/)||we(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===we(e.attributes.name)||"yandex-verification"===we(e.attributes.name)||"csrf-token"===we(e.attributes.name)||"p:domain_verify"===we(e.attributes.name)||"verify-v1"===we(e.attributes.name)||"verification"===we(e.attributes.name)||"shopify-checkout-api-token"===we(e.attributes.name)))return!0}}return!1}($,m)||!W&&$.type===R.Text&&!$.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ue();var G=Object.assign($,{id:H});if(n.add(e,G),-2===H)return null;C&&C(e);var Y=!u;if(G.type===R.Element){Y=Y&&!G.needBlock,delete G.needBlock;var Z=j.shadowRoot(e);Z&&V(Z)&&(G.isShadowHost=!0)}if((G.type===R.Document||G.type===R.Element)&&Y){m.headWhitespace&&G.type===R.Element&&"head"===G.tagName&&(W=!1);var J={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:W,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:P,cssCaptured:!1};if(G.type===R.Element&&"textarea"===G.tagName&&void 0!==G.attributes.value);else{G.type===R.Element&&void 0!==G.attributes._cssText&&"string"==typeof G.attributes._cssText&&(J.cssCaptured=!0);for(var K,Q=S(Array.from(j.childNodes(e)));!(K=Q()).done;){var ee=ke(K.value,J);ee&&G.childNodes.push(ee)}}var te=null;if(z(e)&&(te=j.shadowRoot(e)))for(var re,ne=S(Array.from(j.childNodes(te)));!(re=ne()).done;){var ie=ke(re.value,J);ie&&(V(te)&&(ie.isShadow=!0),G.childNodes.push(ie))}}var oe=j.parentNode(e);return oe&&q(oe)&&V(oe)&&(G.isShadow=!0),G.type===R.Element&&"iframe"===G.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),o=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&x){var r=ke(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:W,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:P});r&&x(e,r)}}),O),G.type===R.Element&&"link"===G.tagName&&"string"==typeof G.attributes.rel&&("stylesheet"===G.attributes.rel||"preload"===G.attributes.rel&&"string"==typeof G.attributes.href&&"css"===X(G.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(o),i=!0,t()}))}}(e,(function(){if(E){var t=ke(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:B,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:W,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:M,keepIframeSrcFn:P});t&&E(e,t)}}),M),G}function Se(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ce(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var xe={exports:{}},Ie=String,Oe=function(){return{isColorSupported:!1,reset:Ie,bold:Ie,dim:Ie,italic:Ie,underline:Ie,inverse:Ie,hidden:Ie,strikethrough:Ie,black:Ie,red:Ie,green:Ie,yellow:Ie,blue:Ie,magenta:Ie,cyan:Ie,white:Ie,gray:Ie,bgBlack:Ie,bgRed:Ie,bgGreen:Ie,bgYellow:Ie,bgBlue:Ie,bgMagenta:Ie,bgCyan:Ie,bgWhite:Ie}};xe.exports=Oe(),xe.exports.createColors=Oe;var Ee=xe.exports,Ae=Ce(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Me=Ee,Re=Ae,Te=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}m(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Me.isColorSupported),Re&&e&&(r=Re(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Me.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error)),Pe=Te;Te.default=Te;var Ne={};Ne.isClean=Symbol("isClean"),Ne.my=Symbol("my");var Le={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var De=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Le[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=Le[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Fe=De;De.default=De;var Be=Fe;function Ue(e,t){new Be(t).stringify(e)}var je=Ue;Ue.default=Ue;var ze=Ne.isClean,qe=Ne.my,Ve=Pe,We=Fe,He=je;function $e(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":b(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return $e(e,r)})):("object"===o&&null!==i&&(i=$e(i)),r[n]=i)}return r}var Ge=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ze]=!1,this[qe]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=$e(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Ve(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[ze]){this[ze]=!1;for(var e=this;e=e.parent;)e[ze]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new We).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":b(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":b(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=He),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},f(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Ye=Ge;Ge.default=Ge;var Ze=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=d({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return m(t,e),f(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Ye),Je=Ze;Ze.default=Ze;var Xe=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Ke=Ae.SourceMapConsumer,Qe=Ae.SourceMapGenerator,et=Ae.existsSync,tt=Ae.readFileSync,rt=Ae.dirname,nt=Ae.join;var it=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=rt(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Ke(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":b(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=rt(e),et(e))return this.mapFile=e,tt(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(v(t,Ke))return Qe.fromSourceMap(t).toString();if(v(t,Qe))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=nt(rt(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),ot=it;it.default=it;var st=Ae.SourceMapConsumer,at=Ae.SourceMapGenerator,ct=Ae.fileURLToPath,ut=Ae.pathToFileURL,lt=Ae.isAbsolute,ht=Ae.resolve,pt=Xe,ft=Ae,dt=Pe,gt=ot,mt=Symbol("fromOffsetCache"),vt=Boolean(st&&at),yt=Boolean(ht&<),_t=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":b(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!yt||/^\w+:\/\//.test(t.from)||lt(t.from)?this.file=t.from:this.file=ht(t.from)),yt&&vt){var r=new gt(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+pt(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":b(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new dt(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new dt(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ut&&(i.input.url=ut(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[mt])t=this[mt];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[mt]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ht(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=lt(a.source)?ut(a.source):new URL(a.source,this.map.consumer().sourceRoot||ut(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!ct)throw new Error("file: protocol is not available in this PostCSS build");c.file=ct(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=d({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},f(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),bt=_t;_t.default=_t,ft&&ft.registerInput&&ft.registerInput(_t);var wt=Ae.SourceMapConsumer,kt=Ae.SourceMapGenerator,St=Ae.dirname,Ct=Ae.relative,xt=Ae.resolve,It=Ae.sep,Ot=Ae.pathToFileURL,Et=bt,At=Boolean(wt&&kt),Mt=Boolean(St&&xt&&Ct&&It),Rt=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||St(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new wt(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Mt&&At&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=kt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new kt({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]},t.generateString=function(){var e=this;this.css="",this.map=new kt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?St(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=St(xt(r,this.mapOpts.annotation)));var n=Ct(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new Et(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ot){var r=Ot(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===It&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Tt=Rt,Pt=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(Ye),Nt=Pt;Pt.default=Pt;var Lt,Dt,Ft,Bt,Ut=Ne.isClean,jt=Ne.my,zt=Je,qt=Nt;function Vt(e){return e.map((function(e){return e.nodes&&(e.nodes=Vt(e.nodes)),delete e.source,e}))}function Wt(e){if(e[Ut]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){Wt(t.value)}}var Ht=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=S(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Vt(Lt(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=S(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=S(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new zt(e)]}else if(e.selector)e=[new Dt(e)];else if(e.name)e=[new Ft(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new qt(e)]}var l=e.map((function(e){return e[jt]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ut]&&Wt(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},f(t,[{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]}}]),t}(Ye);Ht.registerParse=function(e){Lt=e},Ht.registerRule=function(e){Dt=e},Ht.registerAtRule=function(e){Ft=e},Ht.registerRoot=function(e){Bt=e};var $t=Ht;Ht.default=Ht,Ht.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Ft.prototype):"rule"===e.type?Object.setPrototypeOf(e,Dt.prototype):"decl"===e.type?Object.setPrototypeOf(e,zt.prototype):"comment"===e.type?Object.setPrototypeOf(e,qt.prototype):"root"===e.type&&Object.setPrototypeOf(e,Bt.prototype),e[jt]=!0,e.nodes&&e.nodes.forEach((function(e){Ht.rebuild(e)}))};var Gt,Yt,Zt=function(e){function t(t){var r;return(r=e.call(this,d({type:"document"},t))||this).nodes||(r.nodes=[]),r}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Gt(new Yt,this,e).stringify()},t}($t);Zt.registerLazyResult=function(e){Gt=e},Zt.registerProcessor=function(e){Yt=e};var Jt=Zt;Zt.default=Zt;var Xt={},Kt=function(e){Xt[e]||(Xt[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Qt=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),er=Qt;Qt.default=Qt;var tr=er,rr=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new tr(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},f(e,[{key:"content",get:function(){return this.css}}]),e}(),nr=rr;rr.default=rr;var ir="'".charCodeAt(0),or='"'.charCodeAt(0),sr="\\".charCodeAt(0),ar="/".charCodeAt(0),cr="\n".charCodeAt(0),ur=" ".charCodeAt(0),lr="\f".charCodeAt(0),hr="\t".charCodeAt(0),pr="\r".charCodeAt(0),fr="[".charCodeAt(0),dr="]".charCodeAt(0),gr="(".charCodeAt(0),mr=")".charCodeAt(0),vr="{".charCodeAt(0),yr="}".charCodeAt(0),_r=";".charCodeAt(0),br="*".charCodeAt(0),wr=":".charCodeAt(0),kr="@".charCodeAt(0),Sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,xr=/.[\r\n"'(/\\]/,Ir=/[\da-f]/i,Or=$t,Er=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}m(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Or),Ar=Er;Er.default=Er,Or.registerAtRule(Er);var Mr,Rr,Tr=$t,Pr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}m(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new Mr(new Rr,this,e).stringify()},t}(Tr);Pr.registerLazyResult=function(e){Mr=e},Pr.registerProcessor=function(e){Rr=e};var Nr=Pr;Pr.default=Pr,Tr.registerRoot(Pr);var Lr={comma:function(e){return Lr.split(e,[","],!0)},space:function(e){return Lr.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Dr=Lr;Lr.default=Lr;var Fr=$t,Br=Dr,Ur=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return m(t,e),f(t,[{key:"selectors",get:function(){return Br.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Fr),jr=Ur;Ur.default=Ur,Fr.registerRule(Ur);var zr=Je,qr=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case cr:case ur:case hr:case pr:case lr:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===ur||r===cr||r===hr||r===pr||r===lr);h=["space",p.slice(g,n)],g=n-1;break;case fr:case dr:case vr:case yr:case wr:case _r:case mr:var _=String.fromCharCode(r);h=[_,_,g];break;case gr:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==ir&&l!==or&&l!==ur&&l!==cr&&l!==hr&&l!==lr&&l!==pr){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===sr;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||xr.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case ir:case or:i=r===ir?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===sr;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case kr:Sr.lastIndex=g+1,Sr.test(p),n=0===Sr.lastIndex?p.length-1:Sr.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case sr:for(n=g,s=!0;p.charCodeAt(n+1)===sr;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==ar&&r!==ur&&r!==cr&&r!==hr&&r!==pr&&r!==lr&&(n+=1,Ir.test(p.charAt(n)))){for(;Ir.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===ur&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===ar&&p.charCodeAt(g+1)===br?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Cr.lastIndex=g+1,Cr.test(p),n=0===Cr.lastIndex?p.length-1:Cr.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Vr=Nt,Wr=Ar,Hr=Nr,$r=jr,Gr={empty:!0,space:!0};var Yr=function(){function e(e){this.input=e,this.root=new Hr,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Wr;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Vr;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=qr(this.input)},t.decl=function(e,t){var r=new zr;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new $r;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.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)},t.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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[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)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Gr[a]||Gr[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new $r;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Zr=$t,Jr=Yr,Xr=bt;function Kr(e,t){var r=new Xr(e,t),n=new Jr(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var Qr=Kr;Kr.default=Kr,Zr.registerParse(Kr);var en=Ne.isClean,tn=Ne.my,rn=Tt,nn=je,on=$t,sn=Jt,an=Kt,cn=nr,un=Qr,ln=Nr,hn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},pn={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},fn={Once:!0,postcssPlugin:!0,prepare:!0};function dn(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function gn(e){var t=!1,r=hn[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function mn(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:gn(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function vn(e){return e[en]=!1,e.nodes&&e.nodes.forEach((function(e){return vn(e)})),e}var yn={},_n=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":b(r))||null===r||"root"!==r.type&&"document"!==r.type)if(v(r,e)||v(r,cn))i=vn(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=un;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[tn]&&on.rebuild(i)}else i=vn(r);this.result=new cn(t,i,n),this.helpers=d({},yn,{postcss:yn,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":b(e))&&e.prepare?d({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":b(i)))for(var o in i){if(!pn[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!fn[o])if("object"===b(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,(function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!dn(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[en])return[3,14];o[en]=!0,s=[mn(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!dn(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":b(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return dn(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=nn;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new rn(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.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,t=S(this.plugins);!(e=t()).done;){var r=e.value;if(dn(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[en];)n[en]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=S(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||an("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,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(dn(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[en])return a[en]=!0,void e.push(mn(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[en]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[en]=!0;for(var r,n=S(gn(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[en]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},f(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();_n.registerPostcss=function(e){yn=e};var bn=_n;_n.default=_n,ln.registerLazyResult(_n),sn.registerLazyResult(_n);var wn=Tt,kn=je,Sn=Kt,Cn=Qr,xn=nr,In=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=kn;this.result=new xn(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new wn(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Sn("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,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},f(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Cn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),On=In;In.default=In;var En=On,An=bn,Mn=Jt,Rn=Nr,Tn=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":b(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":b(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":b(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new An(this,e,t):new En(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Pn=Tn;Tn.default=Tn,Rn.registerProcessor(Tn),Mn.registerProcessor(Tn);var Nn=Je,Ln=ot,Dn=Nt,Fn=Ar,Bn=bt,Un=Nr,jn=jr;function zn(e,t){if(Array.isArray(e))return e.map((function(e){return zn(e)}));var r=e.inputs,n=y(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=d({},i.value,{__proto__:Bn.prototype});s.map&&(s.map=d({},s.map,{__proto__:Ln.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return zn(e,t)}))),n.source){var a=n.source,c=a.inputId,u=y(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Un(n);if("decl"===n.type)return new Nn(n);if("rule"===n.type)return new jn(n);if("comment"===n.type)return new Dn(n);if("atrule"===n.type)return new Fn(n);throw new Error("Unknown node type: "+e.type)}var qn=zn;zn.default=zn;var Vn=Pe,Wn=Je,Hn=bn,$n=$t,Gn=Pn,Yn=je,Zn=qn,Jn=Jt,Xn=er,Kn=Nt,Qn=Ar,ei=nr,ti=bt,ri=Qr,ni=Dr,ii=jr,oi=Nr,si=Ye;function ai(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Gn(t)}ai.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Gn).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ai([i(r)]).process(e,t)},i},ai.stringify=Yn,ai.parse=ri,ai.fromJSON=Zn,ai.list=ni,ai.comment=function(e){return new Kn(e)},ai.atRule=function(e){return new Qn(e)},ai.decl=function(e){return new Wn(e)},ai.rule=function(e){return new ii(e)},ai.root=function(e){return new oi(e)},ai.document=function(e){return new Jn(e)},ai.CssSyntaxError=Vn,ai.Declaration=Wn,ai.Container=$n,ai.Processor=Gn,ai.Document=Jn,ai.Comment=Kn,ai.Warning=Xn,ai.AtRule=Qn,ai.Result=ei,ai.Input=ti,ai.Rule=ii,ai.Root=oi,ai.Node=si,Hn.registerPostcss(ai);var ci=ai;ai.default=ai;var ui=Se(ci);ui.stringify,ui.fromJSON,ui.plugin,ui.parse,ui.list,ui.document,ui.comment,ui.atRule,ui.rule,ui.decl,ui.root,ui.CssSyntaxError,ui.Declaration,ui.Container,ui.Processor,ui.Document,ui.Comment,ui.Warning,ui.AtRule,ui.Result,ui.Input,ui.Rule,ui.Root,ui.Node;var li=Object.defineProperty,hi=function(e,t,r){return function(e,t,r){return t in e?li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,r)};function pi(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fi(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var di={exports:{}},gi=String,mi=function(){return{isColorSupported:!1,reset:gi,bold:gi,dim:gi,italic:gi,underline:gi,inverse:gi,hidden:gi,strikethrough:gi,black:gi,red:gi,green:gi,yellow:gi,blue:gi,magenta:gi,cyan:gi,white:gi,gray:gi,bgBlack:gi,bgRed:gi,bgGreen:gi,bgYellow:gi,bgBlue:gi,bgMagenta:gi,bgCyan:gi,bgWhite:gi}};di.exports=mi(),di.exports.createColors=mi;var vi=di.exports,yi=fi(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),_i=vi,bi=yi,wi=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}m(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=_i.isColorSupported),bi&&e&&(r=bi(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=_i.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error)),ki=wi;wi.default=wi;var Si={};Si.isClean=Symbol("isClean"),Si.my=Symbol("my");var Ci={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var xi=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Ci[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=Ci[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),Ii=xi;xi.default=xi;var Oi=Ii;function Ei(e,t){new Oi(t).stringify(e)}var Ai=Ei;Ei.default=Ei;var Mi=Si.isClean,Ri=Si.my,Ti=ki,Pi=Ii,Ni=Ai;function Li(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":b(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return Li(e,r)})):("object"===o&&null!==i&&(i=Li(i)),r[n]=i)}return r}var Di=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Mi]=!1,this[Ri]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=Li(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new Ti(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Mi]){this[Mi]=!1;for(var e=this;e=e.parent;)e[Mi]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new Pi).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":b(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":b(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=Ni),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},f(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Fi=Di;Di.default=Di;var Bi=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=d({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return m(t,e),f(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Fi),Ui=Bi;Bi.default=Bi;var ji=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},zi=yi.SourceMapConsumer,qi=yi.SourceMapGenerator,Vi=yi.existsSync,Wi=yi.readFileSync,Hi=yi.dirname,$i=yi.join;var Gi=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Hi(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new zi(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":b(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Hi(e),Vi(e))return this.mapFile=e,Wi(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(v(t,zi))return qi.fromSourceMap(t).toString();if(v(t,qi))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=$i(Hi(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Yi=Gi;Gi.default=Gi;var Zi=yi.SourceMapConsumer,Ji=yi.SourceMapGenerator,Xi=yi.fileURLToPath,Ki=yi.pathToFileURL,Qi=yi.isAbsolute,eo=yi.resolve,to=ji,ro=yi,no=ki,io=Yi,oo=Symbol("fromOffsetCache"),so=Boolean(Zi&&Ji),ao=Boolean(eo&&Qi),co=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":b(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ao||/^\w+:\/\//.test(t.from)||Qi(t.from)?this.file=t.from:this.file=eo(t.from)),ao&&so){var r=new io(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+to(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":b(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new no(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new no(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Ki&&(i.input.url=Ki(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[oo])t=this[oo];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[oo]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:eo(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Qi(a.source)?Ki(a.source):new URL(a.source,this.map.consumer().sourceRoot||Ki(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Xi)throw new Error("file: protocol is not available in this PostCSS build");c.file=Xi(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=d({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},f(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),uo=co;co.default=co,ro&&ro.registerInput&&ro.registerInput(co);var lo=yi.SourceMapConsumer,ho=yi.SourceMapGenerator,po=yi.dirname,fo=yi.relative,go=yi.resolve,mo=yi.sep,vo=yi.pathToFileURL,yo=uo,_o=Boolean(lo&&ho),bo=Boolean(po&&go&&fo&&mo),wo=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||po(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new lo(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),bo&&_o&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=ho.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ho({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]},t.generateString=function(){var e=this;this.css="",this.map=new ho({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?po(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=po(go(r,this.mapOpts.annotation)));var n=fo(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new yo(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(vo){var r=vo(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===mo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),ko=wo,So=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(Fi),Co=So;So.default=So;var xo,Io,Oo,Eo,Ao=Si.isClean,Mo=Si.my,Ro=Ui,To=Co;function Po(e){return e.map((function(e){return e.nodes&&(e.nodes=Po(e.nodes)),delete e.source,e}))}function No(e){if(e[Ao]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){No(t.value)}}var Lo=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=S(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=Po(xo(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=S(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=S(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Ro(e)]}else if(e.selector)e=[new Io(e)];else if(e.name)e=[new Oo(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new To(e)]}var l=e.map((function(e){return e[Mo]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Ao]&&No(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},f(t,[{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]}}]),t}(Fi);Lo.registerParse=function(e){xo=e},Lo.registerRule=function(e){Io=e},Lo.registerAtRule=function(e){Oo=e},Lo.registerRoot=function(e){Eo=e};var Do=Lo;Lo.default=Lo,Lo.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Oo.prototype):"rule"===e.type?Object.setPrototypeOf(e,Io.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ro.prototype):"comment"===e.type?Object.setPrototypeOf(e,To.prototype):"root"===e.type&&Object.setPrototypeOf(e,Eo.prototype),e[Mo]=!0,e.nodes&&e.nodes.forEach((function(e){Lo.rebuild(e)}))};var Fo,Bo,Uo=function(e){function t(t){var r;return(r=e.call(this,d({type:"document"},t))||this).nodes||(r.nodes=[]),r}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Fo(new Bo,this,e).stringify()},t}(Do);Uo.registerLazyResult=function(e){Fo=e},Uo.registerProcessor=function(e){Bo=e};var jo=Uo;Uo.default=Uo;var zo={},qo=function(e){zo[e]||(zo[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Vo=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Wo=Vo;Vo.default=Vo;var Ho=Wo,$o=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Ho(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},f(e,[{key:"content",get:function(){return this.css}}]),e}(),Go=$o;$o.default=$o;var Yo="'".charCodeAt(0),Zo='"'.charCodeAt(0),Jo="\\".charCodeAt(0),Xo="/".charCodeAt(0),Ko="\n".charCodeAt(0),Qo=" ".charCodeAt(0),es="\f".charCodeAt(0),ts="\t".charCodeAt(0),rs="\r".charCodeAt(0),ns="[".charCodeAt(0),is="]".charCodeAt(0),os="(".charCodeAt(0),ss=")".charCodeAt(0),as="{".charCodeAt(0),cs="}".charCodeAt(0),us=";".charCodeAt(0),ls="*".charCodeAt(0),hs=":".charCodeAt(0),ps="@".charCodeAt(0),fs=/[\t\n\f\r "#'()/;[\\\]{}]/g,ds=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,gs=/.[\r\n"'(/\\]/,ms=/[\da-f]/i,vs=Do,ys=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}m(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(vs),_s=ys;ys.default=ys,vs.registerAtRule(ys);var bs,ws,ks=Do,Ss=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}m(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new bs(new ws,this,e).stringify()},t}(ks);Ss.registerLazyResult=function(e){bs=e},Ss.registerProcessor=function(e){ws=e};var Cs=Ss;Ss.default=Ss,ks.registerRoot(Ss);var xs={comma:function(e){return xs.split(e,[","],!0)},space:function(e){return xs.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},Is=xs;xs.default=xs;var Os=Do,Es=Is,As=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return m(t,e),f(t,[{key:"selectors",get:function(){return Es.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(Os),Ms=As;As.default=As,Os.registerRule(As);var Rs=Ui,Ts=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Ko:case Qo:case ts:case rs:case es:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Qo||r===Ko||r===ts||r===rs||r===es);h=["space",p.slice(g,n)],g=n-1;break;case ns:case is:case as:case cs:case hs:case us:case ss:var _=String.fromCharCode(r);h=[_,_,g];break;case os:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Yo&&l!==Zo&&l!==Qo&&l!==Ko&&l!==ts&&l!==es&&l!==rs){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Jo;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||gs.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Yo:case Zo:i=r===Yo?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Jo;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case ps:fs.lastIndex=g+1,fs.test(p),n=0===fs.lastIndex?p.length-1:fs.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Jo:for(n=g,s=!0;p.charCodeAt(n+1)===Jo;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Xo&&r!==Qo&&r!==Ko&&r!==ts&&r!==rs&&r!==es&&(n+=1,ms.test(p.charAt(n)))){for(;ms.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Qo&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Xo&&p.charCodeAt(g+1)===ls?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(ds.lastIndex=g+1,ds.test(p),n=0===ds.lastIndex?p.length-1:ds.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Ps=Co,Ns=_s,Ls=Cs,Ds=Ms,Fs={empty:!0,space:!0};var Bs=function(){function e(e){this.input=e,this.root=new Ls,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new Ns;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Ps;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=Ts(this.input)},t.decl=function(e,t){var r=new Rs;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ds;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.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)},t.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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[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)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",Fs[a]||Fs[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new Ds;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),Us=Do,js=Bs,zs=uo;function qs(e,t){var r=new zs(e,t),n=new js(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var Vs=qs;qs.default=qs,Us.registerParse(qs);var Ws=Si.isClean,Hs=Si.my,$s=ko,Gs=Ai,Ys=Do,Zs=jo,Js=qo,Xs=Go,Ks=Vs,Qs=Cs,ea={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ta={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},ra={Once:!0,postcssPlugin:!0,prepare:!0};function na(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function ia(e){var t=!1,r=ea[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function oa(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ia(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function sa(e){return e[Ws]=!1,e.nodes&&e.nodes.forEach((function(e){return sa(e)})),e}var aa={},ca=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":b(r))||null===r||"root"!==r.type&&"document"!==r.type)if(v(r,e)||v(r,Xs))i=sa(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Ks;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Hs]&&Ys.rebuild(i)}else i=sa(r);this.result=new Xs(t,i,n),this.helpers=d({},aa,{postcss:aa,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":b(e))&&e.prepare?d({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":b(i)))for(var o in i){if(!ta[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ra[o])if("object"===b(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,(function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!na(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[Ws])return[3,14];o[Ws]=!0,s=[oa(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!na(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":b(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return na(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Gs;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new $s(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.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,t=S(this.plugins);!(e=t()).done;){var r=e.value;if(na(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Ws];)n[Ws]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=S(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Js("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,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(na(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Ws])return a[Ws]=!0,void e.push(oa(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Ws]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Ws]=!0;for(var r,n=S(ia(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Ws]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},f(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();ca.registerPostcss=function(e){aa=e};var ua=ca;ca.default=ca,Qs.registerLazyResult(ca),Zs.registerLazyResult(ca);var la=ko,ha=Ai,pa=qo,fa=Vs,da=Go,ga=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=ha;this.result=new da(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new la(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||pa("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,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},f(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=fa;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),ma=ga;ga.default=ga;var va=ma,ya=ua,_a=jo,ba=Cs,wa=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":b(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":b(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":b(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new ya(this,e,t):new va(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ka=wa;wa.default=wa,ba.registerProcessor(wa),_a.registerProcessor(wa);var Sa=Ui,Ca=Yi,xa=Co,Ia=_s,Oa=uo,Ea=Cs,Aa=Ms;function Ma(e,t){if(Array.isArray(e))return e.map((function(e){return Ma(e)}));var r=e.inputs,n=y(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=d({},i.value,{__proto__:Oa.prototype});s.map&&(s.map=d({},s.map,{__proto__:Ca.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return Ma(e,t)}))),n.source){var a=n.source,c=a.inputId,u=y(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Ea(n);if("decl"===n.type)return new Sa(n);if("rule"===n.type)return new Aa(n);if("comment"===n.type)return new xa(n);if("atrule"===n.type)return new Ia(n);throw new Error("Unknown node type: "+e.type)}var Ra=Ma;Ma.default=Ma;var Ta=ki,Pa=Ui,Na=ua,La=Do,Da=ka,Fa=Ai,Ba=Ra,Ua=jo,ja=Wo,za=Co,qa=_s,Va=Go,Wa=uo,Ha=Vs,$a=Is,Ga=Ms,Ya=Cs,Za=Fi;function Ja(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Da(t)}Ja.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new Da).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Ja([i(r)]).process(e,t)},i},Ja.stringify=Fa,Ja.parse=Ha,Ja.fromJSON=Ba,Ja.list=$a,Ja.comment=function(e){return new za(e)},Ja.atRule=function(e){return new qa(e)},Ja.decl=function(e){return new Pa(e)},Ja.rule=function(e){return new Ga(e)},Ja.root=function(e){return new Ya(e)},Ja.document=function(e){return new Ua(e)},Ja.CssSyntaxError=Ta,Ja.Declaration=Pa,Ja.Container=La,Ja.Processor=Da,Ja.Document=Ua,Ja.Comment=za,Ja.Warning=ja,Ja.AtRule=qa,Ja.Result=Va,Ja.Input=Wa,Ja.Rule=Ga,Ja.Root=Ya,Ja.Node=Za,Na.registerPostcss(Ja);var Xa=Ja;Ja.default=Ja;var Ka=pi(Xa);Ka.stringify,Ka.fromJSON,Ka.plugin,Ka.parse,Ka.list,Ka.document,Ka.comment,Ka.atRule,Ka.rule,Ka.decl,Ka.root,Ka.CssSyntaxError,Ka.Declaration,Ka.Container,Ka.Processor,Ka.Document,Ka.Comment,Ka.Warning,Ka.AtRule,Ka.Result,Ka.Input,Ka.Rule,Ka.Root,Ka.Node;var Qa=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];hi(this,"parentElement",null),hi(this,"parentNode",null),hi(this,"ownerDocument"),hi(this,"firstChild",null),hi(this,"lastChild",null),hi(this,"previousSibling",null),hi(this,"nextSibling",null),hi(this,"ELEMENT_NODE",1),hi(this,"TEXT_NODE",3),hi(this,"nodeType"),hi(this,"nodeName"),hi(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!v(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},f(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),ec={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},tc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},rc={};function nc(e){if(rc[e])return rc[e];var t=globalThis[e],r=t.prototype,n=e in ec?ec[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in tc?tc[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return rc[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?rc[e]=u:r}catch(e){return r}}var ic={};function oc(e,t,r){var n,i=e+"."+String(r);if(ic[i])return ic[i].call(t);var o=nc(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(ic[i]=s,s.call(t)):t[r]}var sc={};function ac(e,t,r){var n=e+"."+String(r);if(sc[n])return sc[n].bind(t);var i=nc(e)[r];return"function"!=typeof i?t[r]:(sc[n]=i,i.bind(t))}function cc(){return nc("MutationObserver").constructor}function uc(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var lc={childNodes:function(e){return oc("Node",e,"childNodes")},parentNode:function(e){return oc("Node",e,"parentNode")},parentElement:function(e){return oc("Node",e,"parentElement")},textContent:function(e){return oc("Node",e,"textContent")},contains:function(e,t){return ac("Node",e,"contains")(t)},getRootNode:function(e){return ac("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?oc("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?oc("Element",e,"shadowRoot"):null},querySelector:function(e,t){return oc("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return oc("Element",e,"querySelectorAll")(t)},mutationObserver:cc,patch:uc};function hc(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var pc="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",fc={map:{},getId:function(){return console.error(pc),-1},getNode:function(){return console.error(pc),null},removeNodeFromMap:function(){console.error(pc)},has:function(){return console.error(pc),!1},reset:function(){console.error(pc)}};function dc(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>t?(n&&(clearTimeout(n),n=null),i=c,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout((function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)}),u))}}function gc(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout((function(){r.set.call(t,e)}),0),o&&o.set&&o.set.call(this,e)}}),function(){return gc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(fc=new Proxy(fc,{get:function(e,t,r){return"map"===t&&console.error(pc),Reflect.get(e,t,r)}}));var mc=Date.now;function vc(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=lc.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=lc.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function yc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function _c(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function bc(e){return e?e.nodeType===e.ELEMENT_NODE?e:lc.parentElement(e):null}function wc(e,t,r,n){if(!e)return!1;var i=bc(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(ye(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function kc(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function Sc(e,t){if(q(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=lc.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||Sc(n,t))}function Cc(e){return Boolean(e.changedTouches)}function xc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function Ic(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Oc(e){return!!e&&(v(e,Qa)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(lc.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(mc=function(){return(new Date).getTime()});var Ec=function(){function e(){E(this,"id",1),E(this,"styleIDMap",new WeakMap),E(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function Ac(e){var t,r=null;return"getRootNode"in e&&(null==(t=lc.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&lc.host(lc.getRootNode(e))&&(r=lc.host(lc.getRootNode(e))),r}function Mc(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=Ac(r);)r=t;return r}(e);return lc.contains(t,r)}function Rc(e){var t=e.ownerDocument;return!!t&&(lc.contains(t,e)||Mc(e))}var Tc=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(Tc||{}),Pc=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(Pc||{}),Nc=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(Nc||{}),Lc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Lc||{}),Dc=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Dc||{}),Fc=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Fc||{}),Bc=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Bc||{});function Uc(e){return"__ln"in e}var jc,zc=function(){function e(){E(this,"length",0),E(this,"head",null),E(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Uc(e.previousSibling)){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&Uc(e.nextSibling)&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),qc=function(e,t){return e+"@"+t},Vc=function(){function e(){var e=this;E(this,"frozen",!1),E(this,"locked",!1),E(this,"texts",[]),E(this,"attributes",[]),E(this,"attributeMap",new WeakMap),E(this,"removes",[]),E(this,"mapRemoves",[]),E(this,"movedMap",{}),E(this,"addedSet",new Set),E(this,"movedSet",new Set),E(this,"droppedSet",new Set),E(this,"removesSubTreeCache",new Set),E(this,"mutationCb"),E(this,"blockClass"),E(this,"blockSelector"),E(this,"maskTextClass"),E(this,"maskTextSelector"),E(this,"inlineStylesheet"),E(this,"maskInputOptions"),E(this,"maskTextFn"),E(this,"maskInputFn"),E(this,"keepIframeSrcFn"),E(this,"recordCanvas"),E(this,"inlineImages"),E(this,"slimDOMOptions"),E(this,"dataURLOptions"),E(this,"doc"),E(this,"mirror"),E(this,"iframeManager"),E(this,"stylesheetManager"),E(this,"shadowDomManager"),E(this,"canvasManager"),E(this,"processedNodeManager"),E(this,"unattachedDoc"),E(this,"processMutations",(function(t){t.forEach(e.processMutation),e.emit()})),E(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new zc,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=lc.parentNode(o);if(s&&Rc(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=q(s)?e.mirror.getId(Ac(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=ke(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){xc(t,e.mirror)&&e.iframeManager.addIframe(t),Ic(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Oc(o)&&e.shadowDomManager.addShadowRoot(lc.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,c=S(e.movedSet);!(a=c()).done;){var u=a.value;Hc(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(lc.parentNode(u))||o(u)}for(var l,h=S(e.addedSet);!(l=h()).done;){var p=l.value;$c(e.droppedSet,p)||Hc(e.removesSubTreeCache,p,e.mirror)?$c(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var f=null;n.length;){var d=null;if(f){var g=e.mirror.getId(lc.parentNode(f.value)),m=i(f.value);-1!==g&&-1!==m&&(d=f)}if(!d)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(lc.parentNode(y.value));if(-1===i(y.value))continue;if(-1!==_){d=y;break}var b=y.value,w=lc.parentNode(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=lc.host(w);if(-1!==e.mirror.getId(k)){d=y;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}f=d.previous,n.removeNode(d.value),o(d.value)}var C={texts:e.texts.map((function(t){var r=t.node,n=lc.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),attributes:e.attributes.map((function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}})).filter((function(e){return!r.has(e.id)})).filter((function(t){return e.mirror.has(t.id)})),removes:e.removes,adds:t};(C.texts.length||C.attributes.length||C.removes.length||C.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(C))}})),E(this,"genTextAreaValueMutation",(function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(lc.childNodes(t),(function(e){return lc.textContent(e)||""})).join("");r.attributes.value=G({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:J(t),value:n,maskInputFn:e.maskInputFn})})),E(this,"processMutation",(function(t){if(!kc(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=lc.textContent(t.target);wc(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:_e(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,bc(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=J(n);o=G({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(wc(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o)){if(n.contentDocument)return;i="rr_src"}if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!ve(n.tagName,i))if(a.attributes[i]=me(e.doc,Y(n.tagName),Y(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=S(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),f=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||f!==c.style.getPropertyPriority(h)?a.styleDiff[h]=""===f?p:[p,f]:a._unchangedStyles[h]=[p,f]}for(var d,g=S(Array.from(c.style));!(d=g()).done;){var m=d.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(wc(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach((function(r){return e.genAdds(r,t.target)})),t.removedNodes.forEach((function(r){var n=e.mirror.getId(r),i=q(t.target)?e.mirror.getId(lc.host(t.target)):e.mirror.getId(t.target);wc(t.target,e.blockClass,e.blockSelector,!1)||kc(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Wc(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||Sc(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[qc(n,i)]?Wc(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!q(t.target)||!V(t.target))||void 0}),function(e,t){var r=[e];for(;r.length;){var n=r.pop();t.has(n)||(t.add(n),lc.childNodes(n).forEach((function(e){return r.push(e)})))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))}))}})),E(this,"genAdds",(function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!e.addedSet.has(t)&&!e.movedSet.has(t)){if(e.mirror.hasNode(t)){if(kc(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[qc(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);wc(t,e.blockClass,e.blockSelector,!1)||(lc.childNodes(t).forEach((function(t){return e.genAdds(t)})),Oc(t)&&lc.childNodes(lc.shadowRoot(t)).forEach((function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)})))}})),E(this,"cleanupRemovedNode",(function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach((function(t){e.cleanupRemovedNode(t)}))}))}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach((function(r){t[r]=e[r]}))},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function Wc(e,t){e.delete(t),lc.childNodes(t).forEach((function(t){return Wc(e,t)}))}function Hc(e,t,r){return 0!==e.size&&function(e,t){var r=lc.parentNode(t);return!!r&&e.has(r)}(e,t)}function $c(e,t){return 0!==e.size&&Gc(e,t)}function Gc(e,t){var r=lc.parentNode(t);return!!r&&(!!e.has(r)||Gc(e,r))}var Yc=function(e){if(!jc)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(jc&&!0===jc(e))return;throw e}}},Zc=[];function Jc(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function Xc(e,t){var r=new Vc;Zc.push(r),r.init(e);var n=new(cc())(Yc(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Kc(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null;return Object.keys(Nc).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]})).forEach((function(e){var s=Y(e),a=function(e){return function(r){var s=Jc(r);if(!wc(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Lc.Mouse;break;case"touch":a=Lc.Touch;break;case"pen":a=Lc.Pen}a===Lc.Touch?Nc[e]===Nc.MouseDown?c="TouchStart":Nc[e]===Nc.MouseUp&&(c="TouchEnd"):Lc.Pen}else Cc(r)&&(a=Lc.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===Lc.Touch||c.startsWith("Mouse")&&a===Lc.Mouse)&&(a=null)):Nc[e]===Nc.Click&&(a=u,u=null);var l=Cc(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;Yc(t)(d({type:Nc[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(Nc[e]){case Nc.MouseDown:case Nc.MouseUp:s=s.replace("mouse","pointer");break;case Nc.TouchStart:case Nc.TouchEnd:return}c.push(hc(s,a,r))})),Yc((function(){c.forEach((function(e){return e()}))}))}function Qc(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return hc("scroll",Yc(dc(Yc((function(e){var s=Jc(e);if(s&&!wc(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=vc(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}})),s.scroll||100)),r)}var eu=["INPUT","TEXTAREA","SELECT"],tu=new WeakMap;function ru(e){return function(e,t){if(su("CSSGroupingRule")&&v(e.parentRule,CSSGroupingRule)||su("CSSMediaRule")&&v(e.parentRule,CSSMediaRule)||su("CSSSupportsRule")&&v(e.parentRule,CSSSupportsRule)||su("CSSConditionRule")&&v(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function nu(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function iu(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(lc.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),Yc((function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))):function(){}}function ou(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,f=e.selectionCb,d=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=Xc(e,e.doc));var i,o,s,a,c,u,l,h,p,f=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=dc(Yc((function(e){var r=Date.now()-o;t(c.map((function(e){return e.timeOffset-=r,e})),e),c=[],o=null})),a),l=Yc(dc(Yc((function(e){var t=Jc(e),r=Cc(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=mc()),c.push({x:n,y:s,id:i.getId(t),timeOffset:mc()-o}),u("undefined"!=typeof DragEvent&&v(e,DragEvent)?Pc.Drag:v(e,MouseEvent)?Pc.MouseMove:Pc.TouchMove)})),s,{trailing:!1})),h=[hc("mousemove",l,n),hc("touchmove",l,n),hc("drag",l,n)];return Yc((function(){h.forEach((function(e){return e()}))}))}(e),g=Kc(e),m=Qc(e),y=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return hc("resize",Yc(dc(Yc((function(){var e=yc(),t=_c();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)})),200)),n)}(e,{win:n}),_=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=Jc(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=lc.parentElement(t)),t&&l&&!(eu.indexOf(l)<0)&&!wc(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=J(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=G({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),f(t,h?{text:p,isChecked:d,userTriggered:n}:{text:p,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach((function(e){if(e!==t){var r=e.value;f(e,h?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}}))}}function f(e,r){var i=tu.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){tu.set(e,r);var o=n.getId(e);Yc(t)(d({},r,{id:o}))}}var g=("last"===l.input?["change"]:["input","change"]).map((function(e){return hc(e,Yc(p),r)})),m=r.defaultView;if(!m)return function(){g.forEach((function(e){return e()}))};var v,y=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),_=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&(v=g).push.apply(v,[].concat(_.map((function(e){return gc(e[0],e[1],{set:function(){Yc(p)({target:this,isTrusted:!1})}},!1,m)})))),Yc((function(){g.forEach((function(e){return e()}))}))}(e),b=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,c=i.mirror,u=i.sampling,l=i.doc,h=Yc((function(e){return dc(Yc((function(t){var r=Jc(t);if(r&&!wc(r,s,a,!0)){var n=r.currentTime,i=r.volume,u=r.muted,l=r.playbackRate,h=r.loop;o({type:e,id:c.getId(r),currentTime:n,volume:i,muted:u,playbackRate:l,loop:h})}})),u.media||500)})),p=[hc("play",h(Fc.Play),l),hc("pause",h(Fc.Pause),l),hc("seeked",h(Fc.Seeked),l),hc("volumechange",h(Fc.VolumeChange),l),hc("ratechange",h(Fc.RateChange),l)],Yc((function(){p.forEach((function(e){return e()}))}))),w=function(){},k=function(){},C=function(){},x=function(){};e.recordDOM&&(w=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Yc((function(e,t,o){var s=o[0],a=o[1],c=nu(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:Yc((function(e,t,o){var s=o[0],a=nu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Yc((function(e,t,o){var s=o[0],a=nu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)}))})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Yc((function(e,t,o){var s=o[0],a=nu(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)}))}));var l={};au("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(au("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),au("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),au("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach((function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Yc((function(e,t,o){var s=o[0],a=o[1],c=nu(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(ru(t),[a||0])}]}),e.apply(t,o)}))}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Yc((function(e,t,o){var s=o[0],a=nu(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(ru(t),[s])}]}),e.apply(t,o)}))})})),Yc((function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach((function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule}))}))}(e,{win:n}),k=iu(e,e.doc),C=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Yc((function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var p=nu(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),f=p.id,d=p.styleId;return(f&&-1!==f||d&&-1!==d)&&r({id:f,styleId:d,set:{property:u,value:l,priority:h},index:ru(t.parentRule)}),e.apply(t,s)}))});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Yc((function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=nu(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:u},index:ru(t.parentRule)}),e.apply(t,s)}))}),Yc((function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c}))}(e,{win:n}),e.collectFonts&&(x=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=uc(r.fonts,"add",(function(e){return function(r){return setTimeout(Yc((function(){var e=o.get(r);e&&(t(e),o.delete(r))})),0),e.apply(this,[r])}}));return i.push((function(){n.FontFace=s})),i.push(a),Yc((function(){i.forEach((function(e){return e()}))}))}(e)));for(var I,O=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Yc((function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,p=l.startOffset,f=l.endContainer,d=l.endOffset;wc(h,n,i,!0)||wc(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}}));return a(),hc("selectionchange",a)}(e),E=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?uc(n.customElements,"define",(function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,n,i])}})):function(){}}(e),A=[],M=S(e.plugins);!(I=M()).done;){var R=I.value;A.push(R.observer(R.callback,n,R.options))}return Yc((function(){Zc.forEach((function(e){return e.reset()})),null==r||r.disconnect(),f(),g(),m(),y(),_(),b(),w(),k(),C(),x(),O(),E(),A.forEach((function(e){return e()}))}))}function su(e){return void 0!==window[e]}function au(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var cu=function(){function e(e){E(this,"iframeIdToRemoteIdMap",new WeakMap),E(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getId(e,t,n,i)}))},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);return t.map((function(t){return r.getRemoteId(e,t,n)}))},t.reset=function(e){if(!e)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),uu=function(){function e(e){E(this,"iframes",new WeakMap),E(this,"crossOriginIframeMap",new WeakMap),E(this,"crossOriginIframeMirror",new cu(ue)),E(this,"crossOriginIframeStyleMirror"),E(this,"crossOriginIframeRootIdMap",new WeakMap),E(this,"iframeContentDocumentMap",new WeakMap),E(this,"iframeObserverCleanupMap",new WeakMap),E(this,"mirror"),E(this,"mutationCb"),E(this,"wrappedEmit"),E(this,"loadListener"),E(this,"stylesheetManager"),E(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new cu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case Tc.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:Tc.IncrementalSnapshot,data:{source:Pc.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Tc.Meta:case Tc.Load:case Tc.DomContentLoaded:return!1;case Tc.Plugin:return t;case Tc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Tc.IncrementalSnapshot:switch(t.data.source){case Pc.Mutation:return t.data.adds.forEach((function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)})),t.data.removes.forEach((function(t){n.replaceIds(t,e,["parentId","id"])})),t.data.attributes.forEach((function(t){n.replaceIds(t,e,["id"])})),t.data.texts.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case Pc.Drag:case Pc.TouchMove:case Pc.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case Pc.ViewportResize:return!1;case Pc.MediaInteraction:case Pc.MouseInteraction:case Pc.Scroll:case Pc.CanvasMutation:case Pc.Input:return this.replaceIds(t.data,e,["id"]),t;case Pc.StyleSheetRule:case Pc.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Pc.Font:return t;case Pc.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case Pc.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach((function(t){n.replaceStyleIds(t,e,["styleId"])})),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=S(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach((function(e){r.replaceIdOnNode(e,t)}))},t.patchRootIdOnNode=function(e,t){var r=this;e.type===Bc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((function(e){r.patchRootIdOnNode(e,t)}))},e}(),lu=function(){function e(e){E(this,"shadowDoms",new WeakSet),E(this,"mutationCb"),E(this,"scrollCb"),E(this,"bypassOptions"),E(this,"mirror"),E(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(V(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Xc(d({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return n.disconnect()})),this.restoreHandlers.push(Qc(d({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout((function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(lc.host(e))),r.restoreHandlers.push(iu({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))}),0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(uc(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n),o=lc.shadowRoot(this);return o&&Rc(this)&&r.addShadowRoot(o,t),i}})))},t.reset=function(){this.restoreHandlers.forEach((function(e){try{e()}catch(e){}})),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),hu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pu="undefined"==typeof Uint8Array?[]:new Uint8Array(256),fu=0;fu<64;fu++)pu[hu.charCodeAt(fu)]=fu;var du=new Map;var gu=function(e,t,r){if(e&&(yu(e,t)||"object"===(void 0===e?"undefined":b(e)))){var n=function(e,t){var r=du.get(e);return r||(r=new Map,du.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function mu(e,t,r){if(v(e,Array))return e.map((function(e){return mu(e,t,r)}));if(null===e)return e;if(v(e,Float32Array)||v(e,Float64Array)||v(e,Int32Array)||v(e,Uint32Array)||v(e,Uint8Array)||v(e,Uint16Array)||v(e,Int16Array)||v(e,Int8Array)||v(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};if(v(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=hu[r[t]>>2],i+=hu[(3&r[t])<<4|r[t+1]>>4],i+=hu[(15&r[t+1])<<2|r[t+2]>>6],i+=hu[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)};if(v(e,DataView))return{rr_type:e.constructor.name,args:[mu(e.buffer,t,r),e.byteOffset,e.byteLength]};if(v(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};if(v(e,HTMLCanvasElement)){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return v(e,ImageData)?{rr_type:e.constructor.name,args:[mu(e.data,t,r),e.width,e.height]}:yu(e,t)||"object"===(void 0===e?"undefined":b(e))?{rr_type:e.constructor.name,index:gu(e,t,r)}:e}var vu=function(e,t,r){return e.map((function(e){return mu(e,t,r)}))},yu=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return v(e,t[r])})))};function _u(e,t,r,n){var i=[];try{var o=uc(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!wc(this,t,r,!0)){var c=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===b(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}}));i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach((function(e){return e()}))}}function bu(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var u=uc(e,a,(function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(gu(l,o,this),"tagName"in this.canvas&&!wc(this.canvas,n,i,!0)){var h=vu(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}}));c.push(u)}catch(n){var l=gc(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=S(Object.getOwnPropertyNames(e));!(s=u()).done;)a();return c}var wu,ku="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Su="undefined"!=typeof window&&window.Blob&&new Blob([(wu=ku,Uint8Array.from(atob(wu),(function(e){return e.charCodeAt(0)})))],{type:"text/javascript;charset=utf-8"});function Cu(e){var t;try{if(!(t=Su&&(window.URL||window.webkitURL).createObjectURL(Su)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",(function(){(window.URL||window.webkitURL).revokeObjectURL(t)})),r}catch(t){return new Worker("data:text/javascript;base64,"+ku,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var xu,Iu,Ou,Eu=function(){function e(e){var t=this;E(this,"pendingCanvasMutations",new Map),E(this,"rafStamps",{latestId:0,invokeId:null}),E(this,"mirror"),E(this,"mutationCb"),E(this,"resetObservers"),E(this,"frozen",!1),E(this,"locked",!1),E(this,"processMutation",(function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)}));var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=_u(t,r,n,!0),a=new Map,c=new Cu;c.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:Dc["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var u,l=1e3/e,p=0,f=function(e){if(p&&e-p<l)u=requestAnimationFrame(f);else{p=e;var s,d=o;(s=[],t.document.querySelectorAll("canvas").forEach((function(e){wc(e,r,n,!0)||s.push(e)})),s).forEach(h((function(e){var t,r,n,o;return C(this,(function(s){switch(s.label){case 0:return r=d.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),c.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}}))}))),u=requestAnimationFrame(f)}};u=requestAnimationFrame(f),this.resetObservers=function(){s(),cancelAnimationFrame(u)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=_u(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=uc(t.CanvasRenderingContext2D.prototype,o,(function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return wc(this.canvas,r,n,!0)||setTimeout((function(){var r=vu(c,t,s);e(s.canvas,{type:Dc["2D"],property:o,args:r})}),0),i.apply(this,c)}}));s.push(a)}catch(r){var c=gc(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Dc["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=S(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(bu(t.WebGLRenderingContext.prototype,Dc.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(bu(t.WebGL2RenderingContext.prototype,Dc.WebGL2,e,r,n,t))),function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){return e.type,y(e,["type"])})),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),Au=function(){function e(e){E(this,"trackedLinkElements",new WeakSet),E(this,"mutationCb"),E(this,"adoptedStyleSheetCb"),E(this,"styleMirror",new Ec),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,(function(t,r){return{rule:H(t,e.href),index:r}}))})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=S(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var r=e;if(r.adoptedStyleSheets)for(var n,i=S(r.adoptedStyleSheets);!(n=i()).done;){var o=n.value;this.styleMirror.remove(o)}}if("STYLE"===e.nodeName){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}if("LINK"===e.nodeName&&"stylesheet"===e.rel){var a=e;a.sheet&&this.styleMirror.remove(a.sheet)}e.childNodes&&e.childNodes.forEach((function(e){t.cleanupStylesheetsForRemovedNode(e)}))}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),Mu=function(){function e(){E(this,"nodeMap",new WeakMap),E(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some((function(e){return e!==t}))},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame((function(){r.nodeMap=new WeakMap,r.active=!1}))),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function Ru(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}var Tu=!1;try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var Pu=document.createElement("iframe");document.body.appendChild(Pu),Array.from=(null==(I=Pu.contentWindow)?void 0:I.Array.from)||Array.from,document.body.removeChild(Pu)}}catch(e){console.debug("Unable to override Array.from",e)}var Nu,Lu,Du=new $;function Fu(e){void 0===e&&(e={});var t,r=e.emit,n=e.checkoutEveryNms,i=e.checkoutEveryNth,o=e.blockClass,s=void 0===o?"rr-block":o,a=e.blockSelector,c=void 0===a?null:a,u=e.ignoreClass,l=void 0===u?"rr-ignore":u,h=e.ignoreSelector,p=void 0===h?null:h,f=e.maskTextClass,g=void 0===f?"rr-mask":f,m=e.maskTextSelector,v=void 0===m?null:m,y=e.inlineStylesheet,_=void 0===y||y,w=e.maskAllInputs,k=e.maskInputOptions,C=e.slimDOMOptions,x=e.maskInputFn,I=e.maskTextFn,O=e.hooks,E=e.packFn,A=e.sampling,M=void 0===A?{}:A,R=e.dataURLOptions,T=void 0===R?{}:R,P=e.mousemoveWait,N=e.recordDOM,L=void 0===N||N,D=e.recordCanvas,F=void 0!==D&&D,B=e.recordCrossOriginIframes,U=void 0!==B&&B,j=e.allowedIframeOrigins,z=e.recordAfter,q=void 0===z?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":z,V=e.userTriggeredOnInput,W=void 0!==V&&V,H=e.collectFonts,G=void 0!==H&&H,Y=e.inlineImages,Z=void 0!==Y&&Y,J=e.plugins,X=e.keepIframeSrcFn,K=void 0===X?function(){return!1}:X,Q=e.ignoreCSSAttributes,ee=void 0===Q?new Set([]):Q,te=e.errorHandler;jc=te,U&&j&&j.length>0&&0===(t=function(e){if(!Array.isArray(e)||0===e.length)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw new Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":b(n))+".");var i=Ru(n);i&&t.add(i)}return Object.freeze(t)}(j)).size&&(t=void 0);var re=!U||window.parent===window,ne=!1;if(!re)try{window.parent.document&&(ne=!1)}catch(e){ne=!0}if(re&&!r)throw new Error("emit function is required");if(!re&&!ne)return function(){};void 0!==P&&void 0===M.mousemove&&(M.mousemove=P),Du.reset();var ie,oe=!0===w?{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}:void 0!==k?k:{password:!0},se=!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===C,headMetaDescKeywords:"all"===C,headTitleMutations:"all"===C}:C||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ae=0,ce=function(e){for(var t,r=S(J||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return E&&!ne&&(e=E(e)),e};xu=function(e,o){var s,a=e;if(a.timestamp=mc(),!(null==(s=Zc[0])?void 0:s.isFrozen())||a.type===Tc.FullSnapshot||a.type===Tc.IncrementalSnapshot&&a.data.source===Pc.Mutation||Zc.forEach((function(e){return e.unfreeze()})),re)null==r||r(ce(a),o);else if(ne){var c={type:"rrweb",event:ce(a),origin:window.location.origin,isCheckout:o};if(t)for(var u,l=S(t);!(u=l()).done;){var h=u.value;window.parent.postMessage(c,h)}else window.parent.postMessage(c,"*")}if(a.type===Tc.FullSnapshot)ie=a,ae=0;else if(a.type===Tc.IncrementalSnapshot){if(a.data.source===Pc.Mutation&&a.data.isAttachIframe)return;ae++;var p=i&&ae>=i,f=n&&a.timestamp-ie.timestamp>n;(p||f)&&Iu(!0)}};for(var ue,le=function(e){xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.Mutation},e)})},he=function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.Scroll},e)})},pe=function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.CanvasMutation},e)})},fe=new Au({mutationCb:le,adoptedStyleSheetCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.AdoptedStyleSheet},e)})}}),de=new uu({mirror:Du,mutationCb:le,stylesheetManager:fe,recordCrossOriginIframes:U,wrappedEmit:xu}),ge=S(J||[]);!(ue=ge()).done;){var me=ue.value;me.getMirror&&me.getMirror({nodeMirror:Du,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror})}var ve=new Mu;Ou=new Eu({recordCanvas:F,mutationCb:pe,win:window,blockClass:s,blockSelector:c,mirror:Du,sampling:M.canvas,dataURLOptions:T});var ye=new lu({mutationCb:le,scrollCb:he,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:g,maskTextSelector:v,inlineStylesheet:_,maskInputOptions:oe,dataURLOptions:T,maskTextFn:I,maskInputFn:x,recordCanvas:F,inlineImages:Z,sampling:M,slimDOMOptions:se,iframeManager:de,stylesheetManager:fe,canvasManager:Ou,keepIframeSrcFn:K,processedNodeManager:ve},mirror:Du});Iu=function(e){if(void 0===e&&(e=!1),L){xu({type:Tc.Meta,data:{href:window.location.href,width:_c(),height:yc()}},e),fe.reset(),ye.init(),Zc.forEach((function(e){return e.lock()}));var t=function(e,t){var r=t,n=r.mirror,i=void 0===n?new $:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,p=void 0===h?null:h,f=r.inlineStylesheet,d=void 0===f||f,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,_=r.maskAllInputs,b=void 0!==_&&_,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,C=void 0!==S&&S,x=r.dataURLOptions,I=r.preserveWhiteSpace,O=r.onSerialize,E=r.onIframeLoad,A=r.iframeLoadTimeout,M=r.onStylesheetLoad,R=r.stylesheetLoadTimeout,T=r.keepIframeSrcFn;return ke(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===b?{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}:!1===b?{password:!0}:b,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:x,inlineImages:m,recordCanvas:y,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:E,iframeLoadTimeout:A,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:void 0===T?function(){return!1}:T,newlyAddedElement:!1})}(document,{mirror:Du,blockClass:s,blockSelector:c,maskTextClass:g,maskTextSelector:v,inlineStylesheet:_,maskAllInputs:oe,maskTextFn:I,maskInputFn:x,slimDOM:se,dataURLOptions:T,recordCanvas:F,inlineImages:Z,onSerialize:function(e){xc(e,Du)&&de.addIframe(e),Ic(e,Du)&&fe.trackLinkElement(e),Oc(e)&&ye.addShadowRoot(lc.shadowRoot(e),document)},onIframeLoad:function(e,t){de.attachIframe(e,t),ye.observeAttachShadow(e)},onStylesheetLoad:function(e,t){fe.attachLinkElement(e,t)},keepIframeSrcFn:K});if(!t)return console.warn("Failed to snapshot the document");xu({type:Tc.FullSnapshot,data:{node:t,initialOffset:vc(window)}},e),Zc.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,Du.getId(document))}};try{var _e=[],be=function(e){var t;return Yc(ou)({mutationCb:le,mousemoveCb:function(e,t){return xu({type:Tc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.MouseInteraction},e)})},scrollCb:he,viewportResizeCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.ViewportResize},e)})},inputCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.Input},e)})},mediaInteractionCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.MediaInteraction},e)})},styleSheetRuleCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.StyleSheetRule},e)})},styleDeclarationCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.StyleDeclaration},e)})},canvasMutationCb:pe,fontCb:function(e){return xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.Font},e)})},selectionCb:function(e){xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.Selection},e)})},customElementCb:function(e){xu({type:Tc.IncrementalSnapshot,data:d({source:Pc.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:p,maskTextClass:g,maskTextSelector:v,maskInputOptions:oe,inlineStylesheet:_,sampling:M,recordDOM:L,recordCanvas:F,inlineImages:Z,userTriggeredOnInput:W,collectFonts:G,doc:e,maskInputFn:x,maskTextFn:I,keepIframeSrcFn:K,blockSelector:c,slimDOMOptions:se,dataURLOptions:T,mirror:Du,iframeManager:de,stylesheetManager:fe,shadowDomManager:ye,processedNodeManager:ve,canvasManager:Ou,ignoreCSSAttributes:ee,plugins:(null==(t=null==J?void 0:J.filter((function(e){return e.observer})))?void 0:t.map((function(e){return{observer:e.observer,options:e.options,callback:function(t){return xu({type:Tc.Plugin,data:{plugin:e.name,payload:t}})}}})))||[]},O)};de.addLoadListener((function(e){try{var t=e.contentDocument,r=be(t);_e.push(r);var n=de.getObserverCleanup(e);de.setObserverCleanup(e,(function(){if(n)try{n()}catch(e){}try{r();var e=_e.indexOf(r);-1!==e&&_e.splice(e,1),function(e){for(var t=Zc.length-1;t>=0;t--)Zc[t].getDoc()===e&&Zc.splice(t,1)}(t)}catch(e){}}))}catch(e){console.warn(e)}}));var we=function(){Iu(),_e.push(be(document)),Tu=!0};return"interactive"===document.readyState||"complete"===document.readyState?we():(_e.push(hc("DOMContentLoaded",(function(){xu({type:Tc.DomContentLoaded,data:{}}),"DOMContentLoaded"===q&&we()}))),_e.push(hc("load",(function(){xu({type:Tc.Load,data:{}}),"load"===q&&we()}),window))),function(){_e.forEach((function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}})),ve.destroy(),Tu=!1,jc=void 0}}catch(e){console.warn(e)}}Fu.addCustomEvent=function(e,t){if(!Tu)throw new Error("please add custom event after start recording");xu({type:Tc.Custom,data:{tag:e,payload:t}})},Fu.freezePage=function(){Zc.forEach((function(e){return e.freeze()}))},Fu.takeFullSnapshot=function(e){if(!Tu)throw new Error("please take full snapshot after start recording");Iu(e)},Fu.mirror=Du,(Lu=Nu||(Nu={}))[Lu.NotStarted=0]="NotStarted",Lu[Lu.Running=1]="Running",Lu[Lu.Stopped=2]="Stopped",Fu.addCustomEvent,Fu.freezePage,Fu.takeFullSnapshot;var Bu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Uu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ju={};function zu(e){if(ju[e])return ju[e];var t=globalThis[e],r=t.prototype,n=e in Bu?Bu[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in Uu?Uu[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return ju[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?ju[e]=u:r}catch(e){return r}}var qu={};function Vu(e,t,r){var n,i=e+"."+String(r);if(qu[i])return qu[i].call(t);var o=zu(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(qu[i]=s,s.call(t)):t[r]}var Wu={};function Hu(e,t,r){var n=e+"."+String(r);if(Wu[n])return Wu[n].bind(t);var i=zu(e)[r];return"function"!=typeof i?t[r]:(Wu[n]=i,i.bind(t))}var $u={childNodes:function(e){return Vu("Node",e,"childNodes")},parentNode:function(e){return Vu("Node",e,"parentNode")},parentElement:function(e){return Vu("Node",e,"parentElement")},textContent:function(e){return Vu("Node",e,"textContent")},contains:function(e,t){return Hu("Node",e,"contains")(t)},getRootNode:function(e){return Hu("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Vu("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Vu("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Vu("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Vu("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return zu("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}};function Gu(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Gu($u.parentNode(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return Gu($u.parentNode(e),t)}function Yu(e){return e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zu(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Ju={exports:{}},Xu=String,Ku=function(){return{isColorSupported:!1,reset:Xu,bold:Xu,dim:Xu,italic:Xu,underline:Xu,inverse:Xu,hidden:Xu,strikethrough:Xu,black:Xu,red:Xu,green:Xu,yellow:Xu,blue:Xu,magenta:Xu,cyan:Xu,white:Xu,gray:Xu,bgBlack:Xu,bgRed:Xu,bgGreen:Xu,bgYellow:Xu,bgBlue:Xu,bgMagenta:Xu,bgCyan:Xu,bgWhite:Xu}};Ju.exports=Ku(),Ju.exports.createColors=Ku;var Qu=Ju.exports,el=Zu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tl=Qu,rl=el,nl=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}m(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=tl.isColorSupported),rl&&e&&(r=rl(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=tl.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error)),il=nl;nl.default=nl;var ol={};ol.isClean=Symbol("isClean"),ol.my=Symbol("my");var sl={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var al=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return sl[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk((function(e){if(void 0!==(n=e.raws[t]))return!1})),void 0===n&&(n=sl[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),cl=al;al.default=al;var ul=cl;function ll(e,t){new ul(t).stringify(e)}var hl=ll;ll.default=ll;var pl=ol.isClean,fl=ol.my,dl=il,gl=cl,ml=hl;function vl(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":b(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return vl(e,r)})):("object"===o&&null!==i&&(i=vl(i)),r[n]=i)}return r}var yl=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[pl]=!1,this[fl]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=vl(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new dl(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[pl]){this[pl]=!1;for(var e=this;e=e.parent;)e[pl]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return(new gl).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":b(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":b(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ml),e.stringify&&(e=e.stringify);var t="";return e(this,(function(e){t+=e})),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},f(e,[{key:"proxyOf",get:function(){return this}}]),e}(),_l=yl;yl.default=yl;var bl=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=d({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return m(t,e),f(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(_l),wl=bl;bl.default=bl;var kl=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Sl=el.SourceMapConsumer,Cl=el.SourceMapGenerator,xl=el.existsSync,Il=el.readFileSync,Ol=el.dirname,El=el.join;var Al=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ol(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Sl(this.text)),this.consumerCache},t.decodeInline=function(e){var t;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var r=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return"object"===(void 0===e?"undefined":b(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Ol(e),xl(e))return this.mapFile=e,Il(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(v(t,Sl))return Cl.fromSourceMap(t).toString();if(v(t,Cl))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=El(Ol(e),i)),this.loadFile(i)}}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ml=Al;Al.default=Al;var Rl=el.SourceMapConsumer,Tl=el.SourceMapGenerator,Pl=el.fileURLToPath,Nl=el.pathToFileURL,Ll=el.isAbsolute,Dl=el.resolve,Fl=kl,Bl=el,Ul=il,jl=Ml,zl=Symbol("fromOffsetCache"),ql=Boolean(Rl&&Tl),Vl=Boolean(Dl&&Ll),Wl=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":b(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Vl||/^\w+:\/\//.test(t.from)||Ll(t.from)?this.file=t.from:this.file=Dl(t.from)),Vl&&ql){var r=new jl(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Fl(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":b(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Ul(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new Ul(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Nl&&(i.input.url=Nl(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[zl])t=this[zl];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[zl]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Dl(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=Ll(a.source)?Nl(a.source):new URL(a.source,this.map.consumer().sourceRoot||Nl(this.map.mapFile));var c={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Pl)throw new Error("file: protocol is not available in this PostCSS build");c.file=Pl(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=d({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},f(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),Hl=Wl;Wl.default=Wl,Bl&&Bl.registerInput&&Bl.registerInput(Wl);var $l=el.SourceMapConsumer,Gl=el.SourceMapGenerator,Yl=el.dirname,Zl=el.relative,Jl=el.resolve,Xl=el.sep,Kl=el.pathToFileURL,Ql=Hl,eh=Boolean($l&&Gl),th=Boolean(Yl&&Jl&&Zl&&Xl),rh=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||Yl(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new $l(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),th&&eh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Gl.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Gl({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]},t.generateString=function(){var e=this;this.css="",this.map=new Gl({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((function(e){return e.inline})))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?Yl(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Yl(Jl(r,this.mapOpts.annotation)));var n=Zl(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}}));else{var t=new Ql(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk((function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}}));else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.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))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Kl){var r=Kl(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===Xl&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),nh=rh,ih=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(_l),oh=ih;ih.default=ih;var sh,ah,ch,uh,lh=ol.isClean,hh=ol.my,ph=wl,fh=oh;function dh(e){return e.map((function(e){return e.nodes&&(e.nodes=dh(e.nodes)),delete e.source,e}))}function gh(e){if(e[lh]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;){gh(t.value)}}var mh=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=S(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=dh(sh(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=S(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=S(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ph(e)]}else if(e.selector)e=[new ah(e)];else if(e.name)e=[new ch(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new fh(e)]}var l=e.map((function(e){return e[hh]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[lh]&&gh(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;){e.value.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls((function(n){t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))})),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?v(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},f(t,[{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]}}]),t}(_l);mh.registerParse=function(e){sh=e},mh.registerRule=function(e){ah=e},mh.registerAtRule=function(e){ch=e},mh.registerRoot=function(e){uh=e};var vh=mh;mh.default=mh,mh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ch.prototype):"rule"===e.type?Object.setPrototypeOf(e,ah.prototype):"decl"===e.type?Object.setPrototypeOf(e,ph.prototype):"comment"===e.type?Object.setPrototypeOf(e,fh.prototype):"root"===e.type&&Object.setPrototypeOf(e,uh.prototype),e[hh]=!0,e.nodes&&e.nodes.forEach((function(e){mh.rebuild(e)}))};var yh,_h,bh=function(e){function t(t){var r;return(r=e.call(this,d({type:"document"},t))||this).nodes||(r.nodes=[]),r}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new yh(new _h,this,e).stringify()},t}(vh);bh.registerLazyResult=function(e){yh=e},bh.registerProcessor=function(e){_h=e};var wh=bh;bh.default=bh;var kh={},Sh=function(e){kh[e]||(kh[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))},Ch=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),xh=Ch;Ch.default=Ch;var Ih=xh,Oh=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Ih(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},f(e,[{key:"content",get:function(){return this.css}}]),e}(),Eh=Oh;Oh.default=Oh;var Ah="'".charCodeAt(0),Mh='"'.charCodeAt(0),Rh="\\".charCodeAt(0),Th="/".charCodeAt(0),Ph="\n".charCodeAt(0),Nh=" ".charCodeAt(0),Lh="\f".charCodeAt(0),Dh="\t".charCodeAt(0),Fh="\r".charCodeAt(0),Bh="[".charCodeAt(0),Uh="]".charCodeAt(0),jh="(".charCodeAt(0),zh=")".charCodeAt(0),qh="{".charCodeAt(0),Vh="}".charCodeAt(0),Wh=";".charCodeAt(0),Hh="*".charCodeAt(0),$h=":".charCodeAt(0),Gh="@".charCodeAt(0),Yh=/[\t\n\f\r "#'()/;[\\\]{}]/g,Zh=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Jh=/.[\r\n"'(/\\]/,Xh=/[\da-f]/i,Kh=vh,Qh=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}m(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(Kh),ep=Qh;Qh.default=Qh,Kh.registerAtRule(Qh);var tp,rp,np=vh,ip=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}m(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;){o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new tp(new rp,this,e).stringify()},t}(np);ip.registerLazyResult=function(e){tp=e},ip.registerProcessor=function(e){rp=e};var op=ip;ip.default=ip,np.registerRoot(ip);var sp={comma:function(e){return sp.split(e,[","],!0)},space:function(e){return sp.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}},ap=sp;sp.default=sp;var cp=vh,up=ap,lp=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return m(t,e),f(t,[{key:"selectors",get:function(){return up.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(cp),hp=lp;lp.default=lp,cp.registerRule(lp);var pp=wl,fp=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),f=t.ignoreErrors,d=p.length,g=0,m=[],v=[];function y(t){throw e.error("Unclosed "+t,g)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&g>=d},nextToken:function(e){if(v.length)return v.pop();if(!(g>=d)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case Ph:case Nh:case Dh:case Fh:case Lh:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===Nh||r===Ph||r===Dh||r===Fh||r===Lh);h=["space",p.slice(g,n)],g=n-1;break;case Bh:case Uh:case qh:case Vh:case $h:case Wh:case zh:var _=String.fromCharCode(r);h=[_,_,g];break;case jh:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Ah&&l!==Mh&&l!==Nh&&l!==Ph&&l!==Dh&&l!==Lh&&l!==Fh){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(f||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Rh;)c-=1,a=!a}while(a);h=["brackets",p.slice(g,n+1),g,n],g=n}else n=p.indexOf(")",g+1),o=p.slice(g,n+1),-1===n||Jh.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Ah:case Mh:i=r===Ah?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(f||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Rh;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Gh:Yh.lastIndex=g+1,Yh.test(p),n=0===Yh.lastIndex?p.length-1:Yh.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Rh:for(n=g,s=!0;p.charCodeAt(n+1)===Rh;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Th&&r!==Nh&&r!==Ph&&r!==Dh&&r!==Fh&&r!==Lh&&(n+=1,Xh.test(p.charAt(n)))){for(;Xh.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===Nh&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Th&&p.charCodeAt(g+1)===Hh?(0===(n=p.indexOf("*/",g+2)+1)&&(f||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(Zh.lastIndex=g+1,Zh.test(p),n=0===Zh.lastIndex?p.length-1:Zh.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},dp=oh,gp=ep,mp=op,vp=hp,yp={empty:!0,space:!0};var _p=function(){function e(e){this.input=e,this.root=new mp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new gp;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=S(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new dp;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=fp(this.input)},t.decl=function(e,t){var r=new pp;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var f=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==f)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var d=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));d&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new vp;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.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)},t.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())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[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)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",yp[a]||yp[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce((function(e,t){return e+t[1]}),"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new vp;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}(),bp=vh,wp=_p,kp=Hl;function Sp(e,t){var r=new kp(e,t),n=new wp(r);try{n.parse()}catch(e){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return n.root}var Cp=Sp;Sp.default=Sp,bp.registerParse(Sp);var xp=ol.isClean,Ip=ol.my,Op=nh,Ep=hl,Ap=vh,Mp=wh,Rp=Sh,Tp=Eh,Pp=Cp,Np=op,Lp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Dp={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},Fp={Once:!0,postcssPlugin:!0,prepare:!0};function Bp(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function Up(e){var t=!1,r=Lp[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function jp(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Up(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function zp(e){return e[xp]=!1,e.nodes&&e.nodes.forEach((function(e){return zp(e)})),e}var qp={},Vp=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":b(r))||null===r||"root"!==r.type&&"document"!==r.type)if(v(r,e)||v(r,Tp))i=zp(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=Pp;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[Ip]&&Ap.rebuild(i)}else i=zp(r);this.result=new Tp(t,i,n),this.helpers=d({},qp,{postcss:qp,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":b(e))&&e.prepare?d({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){var n=r.postcssPlugin,i=r.postcssVersion,o=this.result.processor.version,s=i.split("."),a=o.split(".");(s[0]!==a[0]||parseInt(s[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+n+" uses "+i+". Perhaps this is the source of the error below.")}}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":b(i)))for(var o in i){if(!Dp[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Fp[o])if("object"===b(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,(function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!Bp(n=e.runOnRoot(r)))return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,n];case 3:return f.sent(),[3,5];case 4:throw i=f.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,f.label=7;case 7:if(o[xp])return[3,14];o[xp]=!0,s=[jp(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Bp(a=e.visitTick(s)))return[3,12];f.label=9;case 9:return f.trys.push([9,11,,12]),[4,a];case 10:return f.sent(),[3,12];case 11:throw c=f.sent(),u=s[s.length-1].node,e.handleError(c,u);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i,s;return C(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}))},h=S(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,x(l())];case 16:f.sent(),f.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}}))}))()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if("object"===(void 0===e?"undefined":b(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return Bp(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ep;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Op(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.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,t=S(this.plugins);!(e=t()).done;){var r=e.value;if(Bp(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[xp];)n[xp]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=S(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this.opts||Rp("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,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(Bp(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[xp])return a[xp]=!0,void e.push(jp(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[xp]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[xp]=!0;for(var r,n=S(Up(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[xp]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},f(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Vp.registerPostcss=function(e){qp=e};var Wp=Vp;Vp.default=Vp,Np.registerLazyResult(Vp),Mp.registerLazyResult(Vp);var Hp=nh,$p=hl,Gp=Sh,Yp=Cp,Zp=Eh,Jp=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=$p;this.result=new Zp(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Hp(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return"production"!==process.env.NODE_ENV&&("from"in this._opts||Gp("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,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},f(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Yp;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),Xp=Jp;Jp.default=Jp;var Kp=Xp,Qp=Wp,ef=wh,tf=op,rf=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":b(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":b(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":b(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)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.")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Qp(this,e,t):new Kp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),nf=rf;rf.default=rf,tf.registerProcessor(rf),ef.registerProcessor(rf);var of=wl,sf=Ml,af=oh,cf=ep,uf=Hl,lf=op,hf=hp;function pf(e,t){if(Array.isArray(e))return e.map((function(e){return pf(e)}));var r=e.inputs,n=y(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=d({},i.value,{__proto__:uf.prototype});s.map&&(s.map=d({},s.map,{__proto__:sf.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return pf(e,t)}))),n.source){var a=n.source,c=a.inputId,u=y(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new lf(n);if("decl"===n.type)return new of(n);if("rule"===n.type)return new hf(n);if("comment"===n.type)return new af(n);if("atrule"===n.type)return new cf(n);throw new Error("Unknown node type: "+e.type)}var ff=pf;pf.default=pf;var df=il,gf=wl,mf=Wp,vf=vh,yf=nf,_f=hl,bf=ff,wf=wh,kf=xh,Sf=oh,Cf=ep,xf=Eh,If=Hl,Of=Cp,Ef=ap,Af=hp,Mf=op,Rf=_l;function Tf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new yf(t)}Tf.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=(new yf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Tf([i(r)]).process(e,t)},i},Tf.stringify=_f,Tf.parse=Of,Tf.fromJSON=bf,Tf.list=Ef,Tf.comment=function(e){return new Sf(e)},Tf.atRule=function(e){return new Cf(e)},Tf.decl=function(e){return new gf(e)},Tf.rule=function(e){return new Af(e)},Tf.root=function(e){return new Mf(e)},Tf.document=function(e){return new wf(e)},Tf.CssSyntaxError=df,Tf.Declaration=gf,Tf.Container=vf,Tf.Processor=yf,Tf.Document=wf,Tf.Comment=Sf,Tf.Warning=kf,Tf.AtRule=Cf,Tf.Result=xf,Tf.Input=If,Tf.Rule=Af,Tf.Root=Mf,Tf.Node=Rf,mf.registerPostcss(Tf);var Pf=Tf;Tf.default=Tf;var Nf=Yu(Pf);Nf.stringify,Nf.fromJSON,Nf.plugin,Nf.parse,Nf.list,Nf.document,Nf.comment,Nf.atRule,Nf.rule,Nf.decl,Nf.root,Nf.CssSyntaxError,Nf.Declaration,Nf.Container,Nf.Processor,Nf.Document,Nf.Comment,Nf.Warning,Nf.AtRule,Nf.Result,Nf.Input,Nf.Rule,Nf.Root,Nf.Node;var Lf=Object.defineProperty,Df=function(e,t,r){return function(e,t,r){return t in e?Lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,r)};var Ff=function(){function e(e){Df(this,"fileName"),Df(this,"functionName"),Df(this,"lineNumber"),Df(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),Bf=/(^|@)\S+:\d+/,Uf=/^\s*at .*(\S+:\d+|\(native\))/m,jf=/^(eval@)?(\[native code])?$/,zf={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Uf)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw new Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Uf)}),this).map((function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop()),o=n.join(" ")||void 0,s=["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0];return new Ff({functionName:o,fileName:s,lineNumber:i[1],columnNumber:i[2]})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(e){return!e.match(jf)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new Ff({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Ff({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})}),this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Ff({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new Ff({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter((function(e){return!!e.match(Bf)&&!e.match(/^Error created at/)}),this).map((function(e){var t=e.split("@"),r=this.extractLocation(t.pop()),n=(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Ff({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})}),this)}};function qf(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Vf(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wf(e,t){if(0===t)return!0;for(var r,n=S(Object.keys(e));!(r=n()).done;){var i=r.value;if(Vf(e[i])&&Wf(e[i],t-1))return!0}return!1}function Hf(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,(function(e,t){if(n.length>0){var o=n.indexOf(this);~o?n.splice(o+1):n.push(this),~o?i.splice(o,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(function(e){if(Vf(e)&&Object.keys(e).length>r.numOfKeysLimit)return!0;if("function"==typeof e)return!0;if(Vf(e)&&Wf(e,r.depthOfLimit))return!0;return!1}(t))return function(e){var t=e.toString();r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"...");return t}(t);if("bigint"===(void 0===t?"undefined":b(t)))return t.toString()+"n";if(v(t,Event)){var s={};for(var a in t){var c=t[a];Array.isArray(c)?s[a]=qf(c.length?c[0]:null):s[a]=c}return s}return v(t,Node)?v(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:v(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t}))}var $f={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 Gf(e,t,r){var n,i=r?Object.assign({},$f,r):$f,o=i.logger;if(!o)return function(){};n="string"==typeof o?t[o]:o;var s=0,a=!1,c=[];if(i.level.includes("error")){var u=function(t){var r=t.message,n=t.error,o=zf.parse(n).map((function(e){return e.toString()})),s=[Hf(r,i.stringifyOptions)];e({level:"error",trace:o,payload:s})};t.addEventListener("error",u),c.push((function(){t.removeEventListener("error",u)}));var l=function(t){var r,n;v(t.reason,Error)?n=[Hf("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Hf("Uncaught (in promise)",i.stringifyOptions),Hf(t.reason,i.stringifyOptions)]);var o=zf.parse(r).map((function(e){return e.toString()}));e({level:"error",trace:o,payload:n})};t.addEventListener("unhandledrejection",l),c.push((function(){t.removeEventListener("unhandledrejection",l)}))}for(var h,p=S(i.level);!(h=p()).done;){var f=h.value;c.push(d(n,f))}return function(){c.forEach((function(e){return e()}))};function d(t,r){var n=this;return t[r]?function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}(t,r,(function(t){var o=n;return function(){for(var n=arguments.length,c=new Array(n),u=0;u<n;u++)c[u]=arguments[u];if(t.apply(o,c),!("assert"===r&&c[0]||a)){a=!0;try{var l=zf.parse(new Error).map((function(e){return e.toString()})).splice(1),h=("assert"===r?c.slice(1):c).map((function(e){return Hf(e,i.stringifyOptions)}));++s<i.lengthThreshold?e({level:r,trace:l,payload:h}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[Hf("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}})):function(){}}}var Yf,Zf,Jf,Xf=r.setImmediate,Kf=Object.prototype.toString,Qf=void 0!==Xf?function(e){return Xf(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Yf=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){Yf=function(e,t,r){return e[t]=r,e}}function ed(e,t){Jf.add(e,t),Zf||(Zf=Qf(Jf.drain))}function td(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function rd(){for(var e=0;e<this.chain.length;e++)nd(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function nd(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=td(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function id(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=td(e))?ed((function(){var n=new ad(r);try{t.call(e,(function(){id.apply(n,arguments)}),(function(){od.apply(n,arguments)}))}catch(e){od.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&ed(rd,r))}catch(e){od.call(new ad(r),e)}}}function od(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&ed(rd,t))}function sd(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then((function(e){r(i,e)}),n)}(i)}function ad(e){this.def=e,this.triggered=!1}function cd(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function ud(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new cd(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t})),t.chain.push(n),0!==t.state&&ed(rd,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){id.call(t,e)}),(function(e){od.call(t,e)}))}catch(e){od.call(t,e)}}Jf=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=Zf=void 0;r;)r.fn.call(r.self),r=r.next}}}();var ld,hd=Yf({},"constructor",ud,!1);ud.prototype=hd,Yf(hd,"__NPO__",0,!1),Yf(ud,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)}))})),Yf(ud,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),Yf(ud,"all",(function(e){var t=this;return"[object Array]"!==Kf.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;sd(t,e,(function(e,t){o[e]=t,++s===i&&r(o)}),n)}))})),Yf(ud,"race",(function(e){var t=this;return"[object Array]"!==Kf.call(e)?t.reject(TypeError("Not an array")):new t((function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");sd(t,e,(function(e,t){r(t)}),n)}))})),ld="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:ud;var pd,fd,dd,gd,md,vd,yd,_d,bd,wd,kd=864e5,Sd=8e3,Cd=Array.prototype,xd=Function.prototype,Id=Object.prototype,Od=Cd.slice,Ed=Id.toString,Ad=Id.hasOwnProperty,Md=r.console,Rd=r.navigator,Td=r.document,Pd=r.opera,Nd=r.screen,Ld=Rd.userAgent,Dd=xd.bind,Fd=Cd.forEach,Bd=Cd.indexOf,Ud=Cd.map,jd=Array.isArray,zd={},qd={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Vd={log:function(){if(o.DEBUG&&!qd.isUndefined(Md)&&Md)try{Md.log.apply(Md,arguments)}catch(e){qd.each(arguments,(function(e){Md.log(e)}))}},warn:function(){if(o.DEBUG&&!qd.isUndefined(Md)&&Md){var e=["Mixpanel warning:"].concat(qd.toArray(arguments));try{Md.warn.apply(Md,e)}catch(t){qd.each(e,(function(e){Md.warn(e)}))}}},error:function(){if(o.DEBUG&&!qd.isUndefined(Md)&&Md){var e=["Mixpanel error:"].concat(qd.toArray(arguments));try{Md.error.apply(Md,e)}catch(t){qd.each(e,(function(e){Md.error(e)}))}}},critical:function(){if(!qd.isUndefined(Md)&&Md){var e=["Mixpanel error:"].concat(qd.toArray(arguments));try{Md.error.apply(Md,e)}catch(t){qd.each(e,(function(e){Md.error(e)}))}}}},Wd=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Vd,arguments)}},Hd=function(e){return{log:Wd(Vd.log,e),error:Wd(Vd.error,e),critical:Wd(Vd.critical,e)}},$d=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Vd.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),o.DEBUG&&Vd.critical(e)}}},Gd=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=$d(t[r]))};qd.bind=function(e,t){var r,n;if(Dd&&e.bind===Dd)return Dd.apply(e,Od.call(arguments,1));if(!qd.isFunction(e))throw new TypeError;return r=Od.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(Od.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(Od.call(arguments)));return Object(s)===s?s:o},n},qd.each=function(e,t,r){if(null!=e)if(Fd&&e.forEach===Fd)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===zd)return}else for(var o in e)if(Ad.call(e,o)&&t.call(r,e[o],o,e)===zd)return},qd.extend=function(e){return qd.each(Od.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},qd.isArray=jd||function(e){return"[object Array]"===Ed.call(e)},qd.isFunction=function(e){return"function"==typeof e},qd.isArguments=function(e){return!(!e||!Ad.call(e,"callee"))},qd.toArray=function(e){return e?e.toArray?e.toArray():qd.isArray(e)||qd.isArguments(e)?Od.call(e):qd.values(e):[]},qd.map=function(e,t,r){if(Ud&&e.map===Ud)return e.map(t,r);var n=[];return qd.each(e,(function(e){n.push(t.call(r,e))})),n},qd.keys=function(e){var t=[];return null===e||qd.each(e,(function(e,r){t[t.length]=r})),t},qd.values=function(e){var t=[];return null===e||qd.each(e,(function(e){t[t.length]=e})),t},qd.include=function(e,t){var r=!1;return null===e?r:Bd&&e.indexOf===Bd?-1!=e.indexOf(t):(qd.each(e,(function(e){if(r||(r=e===t))return zd})),r)},qd.includes=function(e,t){return-1!==e.indexOf(t)},qd.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},qd.isObject=function(e){return e===Object(e)&&!qd.isArray(e)},qd.isEmptyObject=function(e){if(qd.isObject(e)){for(var t in e)if(Ad.call(e,t))return!1;return!0}return!1},qd.isUndefined=function(e){return void 0===e},qd.isString=function(e){return"[object String]"==Ed.call(e)},qd.isDate=function(e){return"[object Date]"==Ed.call(e)},qd.isNumber=function(e){return"[object Number]"==Ed.call(e)},qd.isElement=function(e){return!(!e||1!==e.nodeType)},qd.encodeDates=function(e){return qd.each(e,(function(t,r){qd.isDate(t)?e[r]=qd.formatDate(t):qd.isObject(t)&&(e[r]=qd.encodeDates(t))})),e},qd.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},qd.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},qd.strip_empty_properties=function(e){var t={};return qd.each(e,(function(e,r){qd.isString(e)&&e.length>0&&(t[r]=e)})),t},qd.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):qd.isArray(e)?(r=[],qd.each(e,(function(e){r.push(qd.truncate(e,t))}))):qd.isObject(e)?(r={},qd.each(e,(function(e,n){r[n]=qd.truncate(e,t)}))):r=e,r},qd.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===Ed.apply(h)){for(c=h.length,o=0;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)Ad.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},qd.JSONDecode=(md={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},vd=function(e){var t=new SyntaxError(e);throw t.at=pd,t.text=dd,t},yd=function(e){return e&&e!==fd&&vd("Expected '"+e+"' instead of '"+fd+"'"),fd=dd.charAt(pd),pd+=1,fd},_d=function(){var e,t="";for("-"===fd&&(t="-",yd("-"));fd>="0"&&fd<="9";)t+=fd,yd();if("."===fd)for(t+=".";yd()&&fd>="0"&&fd<="9";)t+=fd;if("e"===fd||"E"===fd)for(t+=fd,yd(),"-"!==fd&&"+"!==fd||(t+=fd,yd());fd>="0"&&fd<="9";)t+=fd,yd();if(e=+t,isFinite(e))return e;vd("Bad number")},bd=function(){var e,t,r,n="";if('"'===fd)for(;yd();){if('"'===fd)return yd(),n;if("\\"===fd)if(yd(),"u"===fd){for(r=0,t=0;t<4&&(e=parseInt(yd(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof md[fd])break;n+=md[fd]}else n+=fd}vd("Bad string")},wd=function(){for(;fd&&fd<=" ";)yd()},gd=function(){switch(wd(),fd){case"{":return function(){var e,t={};if("{"===fd){if(yd("{"),wd(),"}"===fd)return yd("}"),t;for(;fd;){if(e=bd(),wd(),yd(":"),Object.hasOwnProperty.call(t,e)&&vd('Duplicate key "'+e+'"'),t[e]=gd(),wd(),"}"===fd)return yd("}"),t;yd(","),wd()}}vd("Bad object")}();case"[":return function(){var e=[];if("["===fd){if(yd("["),wd(),"]"===fd)return yd("]"),e;for(;fd;){if(e.push(gd()),wd(),"]"===fd)return yd("]"),e;yd(","),wd()}}vd("Bad array")}();case'"':return bd();case"-":return _d();default:return fd>="0"&&fd<="9"?_d():function(){switch(fd){case"t":return yd("t"),yd("r"),yd("u"),yd("e"),!0;case"f":return yd("f"),yd("a"),yd("l"),yd("s"),yd("e"),!1;case"n":return yd("n"),yd("u"),yd("l"),yd("l"),null}vd('Unexpected "'+fd+'"')}()}},function(e){var t;return dd=e,pd=0,fd=" ",t=gd(),wd(),fd&&vd("Syntax error"),t}),qd.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=qd.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},qd.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},qd.UUID=function(){try{return r.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",qd.map(e,(function(e){return e.toString(16)})).join("")}};var Yd=["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"];qd.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Yd.length;t++)if(-1!==e.indexOf(Yd[t]))return!0;return!1},qd.HTTPBuildQuery=function(e,t){var r,n,i=[];return qd.isUndefined(t)&&(t="&"),qd.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r})),i.join(t)},qd.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){Vd.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},qd.cookie={get:function(e){for(var t=e+"=",r=Td.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=qd.JSONDecode(qd.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=ug(Td.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),Td.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=ug(Td.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return Td.cookie=p,p},remove:function(e,t,r){qd.cookie.set(e,"",-1,t,!1,!1,r)}};var Zd=function(e){var t=!0;try{var r="__mplss_"+og(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Jd=null,Xd=function(e,t){return null===Jd||t?Jd=Zd(e||r.localStorage):Jd},Kd=null;function Qd(e,t,r){var n=function(e){Vd.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Vd.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return qd.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var eg=null,tg=null;try{eg=r.localStorage,tg=r.sessionStorage}catch(e){}qd.localStorage=Qd(eg,"localStorage",Xd),qd.sessionStorage=Qd(tg,"sessionStorage",(function(e,t){return null===Kd||t?Kd=Zd(e||r.sessionStorage):Kd})),qd.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,i,o,s){if(t)if(t.addEventListener&&!o)t.addEventListener(n,i,!!s);else{var a="on"+n,c=t[a];t[a]=function(t,n,i){var o=function(o){if(o=o||e(r.event)){var s,a,c=!0;return qd.isFunction(i)&&(s=i(o)),a=n.call(t,o),!1!==s&&!1!==a||(c=!1),c}};return o}(t,i,c)}else Vd.error("No valid element provided to register_event")}}();var rg=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');qd.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!Td.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[Td];for(c=0;c<f.length;c++)if((n=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=Td.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];d=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(d=[],p=0,u=0;u<s.length;u++)s[u].className&&qd.isString(s[u].className)&&r(s[u],v)&&(d[p++]=s[u])}else{var y=n.match(rg);if(y){o=y[1];var _,b=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<d.length;u++)for(h="*"==o?e(d[u]):d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(d=[],p=0,w){case"=":_=function(e){return e.getAttribute(b)==k};break;case"~":_=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(d=[],p=0,u=0;u<s.length;u++)_(s[u])&&(d[p++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<d.length;u++)for(h=d[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];d=s}}return d}return function(e){return qd.isElement(e)?[e]:qd.isObject(e)&&!qd.isUndefined(e.length)?e:n.call(this,e)}}();var ng=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],ig=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];qd.info={campaignParams:function(e){var t="",r={};return qd.each(ng,(function(n){(t=qd.getQueryParam(Td.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return qd.each(ig,(function(r){(e=qd.getQueryParam(Td.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return qd.extend(qd.info.campaignParams(),qd.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=qd.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=qd.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||qd.includes(e," OPR/")?qd.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":qd.includes(e,"IEMobile")||qd.includes(e,"WPDesktop")?"Internet Explorer Mobile":qd.includes(e,"SamsungBrowser/")?"Samsung Internet":qd.includes(e,"Edge")||qd.includes(e,"Edg/")?"Microsoft Edge":qd.includes(e,"FBIOS")?"Facebook Mobile":qd.includes(e,"Whale/")?"Whale Browser":qd.includes(e,"Chrome")?"Chrome":qd.includes(e,"CriOS")?"Chrome iOS":qd.includes(e,"UCWEB")||qd.includes(e,"UCBrowser")?"UC Browser":qd.includes(e,"FxiOS")?"Firefox iOS":qd.includes(t,"Apple")?qd.includes(e,"Mobile")?"Mobile Safari":"Safari":qd.includes(e,"Android")?"Android Mobile":qd.includes(e,"Konqueror")?"Konqueror":qd.includes(e,"Firefox")?"Firefox":qd.includes(e,"MSIE")||qd.includes(e,"Trident/")?"Internet Explorer":qd.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"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+)?)/}[qd.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=Ld;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return r.location.href},properties:function(e){return"object"!=typeof e&&(e={}),qd.extend(qd.strip_empty_properties({$os:qd.info.os(),$browser:qd.info.browser(Ld,Rd.vendor,Pd),$referrer:Td.referrer,$referring_domain:qd.info.referringDomain(Td.referrer),$device:qd.info.device(Ld)}),{$current_url:qd.info.currentUrl(),$browser_version:qd.info.browserVersion(Ld,Rd.vendor,Pd),$screen_height:Nd.height,$screen_width:Nd.width,mp_lib:"web",$lib_version:o.LIB_VERSION,$insert_id:og(),time:qd.timestamp()/1e3},qd.strip_empty_properties(e))},people_properties:function(){return qd.extend(qd.strip_empty_properties({$os:qd.info.os(),$browser:qd.info.browser(Ld,Rd.vendor,Pd)}),{$browser_version:qd.info.browserVersion(Ld,Rd.vendor,Pd)})},mpPageViewProperties:function(){return qd.strip_empty_properties({current_page_title:Td.title,current_domain:r.location.hostname,current_url_path:r.location.pathname,current_url_protocol:r.location.protocol,current_url_search:r.location.search})}};var og=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},sg=function(){return"00-"+qd.UUID().replace(/-/g,"")+"-"+qd.UUID().replace(/-/g,"").substring(0,16)+"-01"},ag=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,cg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ug=function(e){var t=cg,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ag);var i=e.match(t);return i?i[0]:""},lg=function(){},hg=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},pg=null,fg=null;"undefined"!=typeof JSON&&(pg=JSON.stringify,fg=JSON.parse),pg=pg||qd.JSONEncode,fg=fg||qd.JSONDecode;qd.info=qd.info,qd.info.browser=qd.info.browser,qd.info.browserVersion=qd.info.browserVersion,qd.info.device=qd.info.device,qd.info.properties=qd.info.properties,qd.isBlockedUA=qd.isBlockedUA,qd.isEmptyObject=qd.isEmptyObject,qd.isObject=qd.isObject,qd.JSONDecode=qd.JSONDecode,qd.JSONEncode=qd.JSONEncode,qd.toArray=qd.toArray,qd.NPO=ud;var dg="mixpanelRecordingEvents",gg="mixpanelRecordingRegistry",mg=[dg,gg],vg=function(e){this.dbPromise=null,this.storeName=e};vg.prototype._openDb=function(){return new ld((function(e,t){var n=r.indexedDB.open("mixpanelBrowserDb",1);n.onerror=function(){t(n.error)},n.onsuccess=function(){e(n.result)},n.onupgradeneeded=function(e){var t=e.target.result;mg.forEach((function(e){t.createObjectStore(e)}))}}))},vg.prototype.init=function(){return r.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then((function(e){return e instanceof r.IDBDatabase?ld.resolve():ld.reject(e)}))):ld.reject("indexedDB is not supported in this browser")},vg.prototype.isInitialized=function(){return!!this.dbPromise},vg.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new ld((function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))}))};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):ld.reject(e)}.bind(this))},vg.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",(function(r){r.put(t,e)}))},vg.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",(function(r){t=r.get(e)})).then((function(){return t.result}))},vg.prototype.removeItem=function(e){return this.makeTransaction("readwrite",(function(t){t.delete(e)}))},vg.prototype.getAll=function(){var e;return this.makeTransaction("readonly",(function(t){e=t.getAll()})).then((function(){return e.result}))};function yg(e,t){Ag(!0,e,t)}function _g(e,t){Ag(!1,e,t)}function bg(e,t){return"1"===Eg(e,t)}function wg(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||r,n=t.navigator||{},i=!1;return qd.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],(function(e){qd.includes([!0,1,"1","yes"],e)&&(i=!0)})),i}(t))return Vd.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 n="0"===Eg(e,t);return n&&Vd.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function kg(e){return Mg(e,(function(e){return this.get_config(e)}))}function Sg(e){return Mg(e,(function(e){return this._get_config(e)}))}function Cg(e){return Mg(e,(function(e){return this._get_config(e)}))}function xg(e,t){Ig(t=t||{}).remove(Og(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Ig(e){return"localStorage"===(e=e||{}).persistenceType?qd.localStorage:qd.cookie}function Og(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Eg(e,t){return Ig(t).get(Og(e,t))}function Ag(e,t,r){qd.isString(t)&&t.length?(Ig(r=r||{}).set(Og(t,r),e?1:0,qd.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):Vd.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function Mg(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=wg(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Vd.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var Rg=Hd("lock"),Tg=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||r.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||ld};Tg.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(qd.bind((function(r,n){var i=t||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),s=this.storageKey,a=this.pollIntervalMS,c=this.timeoutMS,u=this.storage,l=s+":X",h=s+":Y",p=s+":Z",f=function(e){if((new Date).getTime()-o>c)return Rg.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),void m();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},d=function(e,t){e()?t():f((function(){d(e,t)}))},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(Xd(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),d(g,(function(){u.getItem(l)!==i?f((function(){u.getItem(h)===i?d((function(){return!u.getItem(p)}),v):m()})):v()}))},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!Xd(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}}),this))};var Pg=function(e){this.storage=e||r.localStorage};Pg.prototype.init=function(){return ld.resolve()},Pg.prototype.isInitialized=function(){return!0},Pg.prototype.setItem=function(e,t){return new ld(qd.bind((function(r,n){try{this.storage.setItem(e,pg(t))}catch(e){n(e)}r()}),this))},Pg.prototype.getItem=function(e){return new ld(qd.bind((function(t,r){var n;try{n=fg(this.storage.getItem(e))}catch(e){r(e)}t(n)}),this))},Pg.prototype.removeItem=function(e){return new ld(qd.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var Ng=Hd("batch"),Lg=function(e,t){var n,i,o,s;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new Pg,this.lock=new Tg(e,{storage:t.sharedLockStorage||r.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||qd.bind(Ng.error,Ng),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(n=qd.bind(this._enqueuePersisted,this),i=t.enqueueThrottleMs,o=null,s=[],function(e){var t=this;return s.push(e),o||(o=new ld((function(e){setTimeout((function(){var r=n.apply(t,[s]);o=null,s=[],e(r)}),i)}))),o}):this.enqueuePersisted=qd.bind((function(e){return this._enqueuePersisted([e])}),this)};Lg.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?ld.resolve():this.queueStorage.init().then(qd.bind((function(){this.initialized=!0}),this)).catch(qd.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},Lg.prototype.enqueue=function(e,t){var r={id:og(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),ld.resolve(!0))},Lg.prototype._enqueuePersisted=function(e){var t=qd.bind((function(){return this.ensureInit().then(qd.bind((function(){return this.readFromStorage()}),this)).then(qd.bind((function(t){return this.saveToStorage(t.concat(e))}),this)).then(qd.bind((function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t}),this)).catch(qd.bind((function(t){return this.reportError("Error enqueueing items",t,e),!1}),this))}),this);return this.lock.withLock(t,this.pid).catch(qd.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},Lg.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(qd.bind((function(){return this.readFromStorage()}),this)).then(qd.bind((function(r){if(r.length){var n={};qd.each(t,(function(e){n[e.id]=!0}));for(var i=0;i<r.length;i++){var o=r[i];if((new Date).getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t}),this)):ld.resolve(t)};var Dg=function(e,t){var r=[];return qd.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};Lg.prototype.removeItemsByID=function(e){var t={};if(qd.each(e,(function(e){t[e]=!0})),this.memQueue=Dg(this.memQueue,t),this.usePersistence){var r=qd.bind((function(){return this.ensureInit().then(qd.bind((function(){return this.readFromStorage()}),this)).then(qd.bind((function(e){return e=Dg(e,t),this.saveToStorage(e)}),this)).then(qd.bind((function(){return this.readFromStorage()}),this)).then(qd.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(qd.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(qd.bind((function(e){return this.reportError("Error acquiring storage lock",e),!Xd(this.lock.storage,!0)&&r().then(qd.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(qd.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return ld.resolve(!0)};var Fg=function(e,t){var r=[];return qd.each(e,(function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)})),r};Lg.prototype.updatePayloads=function(e){return this.memQueue=Fg(this.memQueue,e),this.usePersistence?this.lock.withLock(qd.bind((function(){return this.ensureInit().then(qd.bind((function(){return this.readFromStorage()}),this)).then(qd.bind((function(t){return t=Fg(t,e),this.saveToStorage(t)}),this)).catch(qd.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(qd.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):ld.resolve(!0)},Lg.prototype.readFromStorage=function(){return this.ensureInit().then(qd.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(qd.bind((function(e){return e&&(qd.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(qd.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},Lg.prototype.saveToStorage=function(e){return this.ensureInit().then(qd.bind((function(){return this.queueStorage.setItem(this.storageKey,e)}),this)).then((function(){return!0})).catch(qd.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},Lg.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(qd.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):ld.resolve()};var Bg=Hd("batch"),Ug=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Lg(e,{errorReporter:qd.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.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=t.flushOnlyOnInterval||!1,this._flushPromise=null};Ug.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Ug.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ug.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ug.prototype.clear=function(){return this.queue.clear()},Ug.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ug.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ug.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(qd.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},Ug.prototype.sendRequestPromise=function(e,t){return new ld(qd.bind((function(r){this.sendRequest(e,t,r)}),this))},Ug.prototype.flush=function(e){if(this.requestInProgress)return Bg.log("Flush: Request already in progress"),ld.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=(new Date).getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(qd.bind((function(s){var a=s.length===i,c=[],u={};if(qd.each(s,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=qd.extend({},t.properties,{mp_sent_by_lib_version:o.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:s.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&c.push(t)}u[e.id]=t}),this),c.length<1)return this.requestInProgress=!1,this.resetFlush(),ld.resolve();var l=qd.bind((function(){return this.queue.removeItemsByID(qd.map(s,(function(e){return e.id}))).then(qd.bind((function(e){return qd.each(s,qd.bind((function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:s.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})}),this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!a?(this.resetFlush(),ld.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),ld.resolve())}),this))}),this),h=qd.bind((function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(u);if(qd.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-n>=t)return this.reportError("Network timeout; retrying"),this.flush();if(qd.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(h=r.navigator.onLine,!qd.isUndefined(h)&&!h)||"timeout"===o.error)){var a=2*this.flushInterval;return o.retryAfter&&(a=1e3*parseInt(o.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),ld.resolve()}if(qd.isObject(o)&&413===o.httpStatusCode){if(s.length>1){var c=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,c,s.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),ld.resolve()}return this.reportError("Single-event request too large; dropping",s),this.resetBatchSize(),l()}return l()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var h}),this),p={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(p.transport="sendBeacon"),Bg.log("MIXPANEL REQUEST:",c),this.sendRequestPromise(c,p).then(h)}),this)).catch(qd.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},Ug.prototype.reportError=function(e,t){if(Bg.error.apply(Bg.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){Bg.error(t)}};var jg=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},zg=function(e,t){if(!qd.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},qg="change",Vg="click",Wg="hashchange",Hg="load",$g="mp_locationchange",Gg="popstate",Yg="scrollend",Zg="scroll",Jg="submit",Xg="visibilitychange",Kg=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Qg=["mp-include"],em=["mp-no-track"],tm=em.concat(["mp-sensitive"]),rm=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],nm={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},im={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},om={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},sm=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],am=Hd("autocapture");function cm(e){for(var t={},r=um(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function um(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function lm(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!mm(e));return e}function hm(e,t,r,n,i,o){var s={$classes:um(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),bm(e,t,i,o)&&qd.each(rm.concat(n),(function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);wm(n)&&(s["$attr-"+t]=n)}}));for(var c=1,u=1,l=e;l=lm(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function pm(e,t){var n=t.allowElementCallback,i=t.allowSelectors||[],o=t.blockAttrs||[],s=t.blockElementCallback,a=t.blockSelectors||[],c=t.captureTextContent||!1,u=t.captureExtraAttrs||[],l=t.capturedForHeatMap||!1,h={};qd.each(o,(function(e){h[e]=!0}));var p=null,f=void 0===e.target?e.srcElement:e.target;if(ym(f)&&(f=f.parentNode),function(e,t){if(!e||vm(e,"html")||!mm(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Jg;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===qg:t.type===Vg;case"select":case"textarea":return t.type===qg;default:return t.type===Vg}}(f,e)&&dm(f,e,n,i)&&!gm(f,e,s,a)){for(var d=[f],g=f;g.parentNode&&!vm(g,"body");)d.push(g.parentNode),g=g.parentNode;var m,v=[],y=!1;if(qd.each(d,(function(t){var r=bm(t,e,n,i);h.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=r&&wm(m)&&m),gm(t,e,s,a)&&(y=!0),v.push(hm(t,e,h,u,n,i))}),this),!y){var _=Td.documentElement;if(p={$event_type:e.type,$host:r.location.host,$pathname:r.location.pathname,$elements:v,$el_attr__href:m,$viewportHeight:Math.max(_.clientHeight,r.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,r.innerWidth||0),$pageHeight:Td.body.offsetHeight||0,$pageWidth:Td.body.offsetWidth||0},qd.each(u,(function(e){if(!h[e]&&f.hasAttribute(e)){var t=f.getAttribute(e);wm(t)&&(p["$el_attr__"+e]=t)}})),c&&(b=fm(f,e,n,i))&&b.length&&(p.$el_text=b),e.type===Vg&&(qd.each(Kg,(function(t){t in e&&(p["$"+t]=e[t])})),l&&(p.$captured_for_heatmap=!0),f=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(vm(i,"a")||vm(i,"button")||vm(i,"input")||vm(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),c){var b=fm(f,e,n,i);b&&b.length&&(p.$el_text=b)}if(f){if(!dm(f,e,n,i)||gm(f,e,s,a))return null;var w=hm(f,e,h,u,n,i);p.$target=w,p.$el_classes=w.$classes,qd.extend(p,qd.strip_empty_properties({$el_id:w.$id,$el_tag_name:w.$tag_name}))}}}return p}function fm(e,t,r,n){var i="";return bm(e,t,r,n)&&e.childNodes&&e.childNodes.length&&qd.each(e.childNodes,(function(e){ym(e)&&e.textContent&&(i+=qd.trim(e.textContent).split(/(\s+)/).filter(wm).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),qd.trim(i)}function dm(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return am.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){am.critical("Error while checking selector: "+o,e)}}return!1}function gm(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return am.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){am.critical("Error while checking selector: "+o,e)}}var s=cm(e);for(i=0;i<em.length;i++)if(s[em[i]])return!0;return!1}function mm(e){return e&&1===e.nodeType}function vm(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function ym(e){return e&&3===e.nodeType}function _m(e){var t=(e.name||e.id||"").toString().toLowerCase();if("string"==typeof t){if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function bm(e,t,r,n){var i;if(!dm(e,t,r,n))return!1;for(var o=e;o.parentNode&&!vm(o,"body");o=o.parentNode){var s=cm(o);for(i=0;i<tm.length;i++)if(s[tm[i]])return!1}var a=cm(e);for(i=0;i<Qg.length;i++)if(a[Qg[i]])return!0;if(vm(e,"input")||vm(e,"select")||vm(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}return!_m(e)}function wm(e){if(null===e||qd.isUndefined(e))return!1;if("string"==typeof e){e=qd.trim(e);if(/^(?:(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}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function km(e){var t="onscrollend"in r,n=$d(e),i=Yg;if(!t){var o=null;n=$d((function(){clearTimeout(o),o=setTimeout(e,100)})),i=Zg}return{listener:n,eventType:i}}function Sm(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<sm.length;t++)if(e.hasAttribute(sm[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return nm[r]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function Cm(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(im[t])return!0;if(Sm(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(Sm(r))return!1;if(r.getRootNode&&r.getRootNode()!==Td){var i=r.getRootNode();if(i.host&&Sm(i.host))return!1}r=r.parentElement,n++}return!!om[t]}function xm(e){return"composedPath"in e?e.composedPath():[]}function Im(e){var t=xm(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var Om=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Em=["password","email","tel","hidden"];function Am(e){return e?Array.isArray(e)?e:[e]:[]}function Mm(e,t){return!!t&&!!e.closest(t)}function Rm(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==Em.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!(!n||""===n||"off"===n)||(!!e.hasAttribute("data-rr-is-password")||(!!_m(e)||(t.input.maskAll?!Mm(e,t.input.unmaskingSelector):!!Mm(e,t.input.maskingSelector)||!!Mm(e,Om))))}function Tm(e,t){return!!e&&(!(!t.text._legacyClassRegex||!Gu(e,t.text._legacyClassRegex))||(t.text.maskAll?!Mm(e,t.text.unmaskingSelector):!!Mm(e,t.text.maskingSelector)||!!Mm(e,Om)))}var Pm=Hd("network-plugin");function Nm(e){return Math.round(Date.now()-e.performance.now())}var Lm={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 Dm(e){return"resource"===e.entryType}function Fm(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}var Bm=1048576;function Um(e){return e&&"string"==typeof e&&e.length>Bm?(Pm.error("Body truncated from "+e.length+" to "+Bm+" characters"),e.substring(0,Bm)+"... [truncated]"):e}function jm(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function zm(e,t,r){return!(!t[e]||0===t[e].length)&&hg(r,t[e])}function qm(e){if(null==e)return null;var t;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=qd.HTTPBuildQuery(e);else{if(!qd.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return Um(t)}function Vm(e){return new Promise((function(t){var r=setTimeout((function(){t("Timeout while trying to read body")}),500);try{e.clone().text().then((function(e){clearTimeout(r),t(Um(e))}),(function(e){clearTimeout(r),t("Failed to read body: "+String(e))}))}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}}))}function Wm(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return Pm.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length-1;r>=0;r-=1)if(t(e[r]))return e[r]}(e.performance.getEntriesByName(r),(function(e){return Dm(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)}));return s?Promise.resolve(s):new Promise((function(e){setTimeout(e,50*o)})).then((function(){return Wm(e,t,r,n,i,o+1)}))}function Hm(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},Lm.recordHeaders,r.recordHeaders||{}),i=Object.assign({},Lm.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},Lm,r),s=function(t){var r=t.requests.filter((function(e){return!hg(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)}));(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return Pm.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter((function(e){return function(e){return"navigation"===e.entryType}(e)||Dm(e)&&r.initiatorTypes.includes(e.initiatorType)}));e({requests:n.map((function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Nm(t)}})),isInitial:!0})}var i=new t.PerformanceObserver((function(n){var i=n.getEntries().filter((function(e){return Dm(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType}));e({requests:i.map((function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Nm(t)}}))})}));return i.observe({entryTypes:["navigation","resource"]}),function(){i.disconnect()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=Fm(t.XMLHttpRequest.prototype,"open",(function(n){return function(i,o,s,a,c){void 0===s&&(s=!0);var u,l,h=this,p=new Request(o,{method:i}),f={},d={},g=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return jm("request",r.recordHeaders,e)&&(d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return zm("request",r.recordBodyUrls,p.url)&&(f.requestBody=qm(e)),u=t.performance.now(),m(e)},h.addEventListener("readystatechange",(function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach((function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&jm("response",r.recordHeaders,i)&&(n[i]=o)}}})),f.responseHeaders=n,zm("response",r.recordBodyUrls,p.url)&&(f.responseBody=qm(h.response)),Wm(t,"xmlhttprequest",p.url,u,l).then((function(r){if(r){var n={url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Nm(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody};e({requests:[n]})}else Pm.error("Failed to get performance entry for XHR request to "+p.url)})).catch((function(e){Pm.error("Error recording XHR request to "+p.url+": "+String(e))}))}})),n.call(h,i,o,s,a,c)}}));return function(){n()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=Fm(t,"fetch",(function(n){return function(){var i,o,s,a,c=new Request(arguments[0],arguments[1]),u={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};c.headers.forEach((function(e,t){jm("request",r.recordHeaders,t)&&(p[t]=e)})),u.requestHeaders=p,zm("request",r.recordBodyUrls,c.url)&&(l=Vm(c).then((function(e){u.requestBody=e}))),o=t.performance.now(),a=n.apply(t,arguments).then((function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach((function(e,t){jm("response",r.recordHeaders,t)&&(n[t]=e)})),u.responseHeaders=n,zm("response",r.recordBodyUrls,c.url)&&(h=Vm(i).then((function(e){u.responseBody=e}))),i}))}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then((function(){return Wm(t,"fetch",c.url,o,s)})).then((function(r){if(r){var n={url:r.name,method:c.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:Nm(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else Pm.error("Failed to get performance entry for fetch request to "+c.url)})).catch((function(e){Pm.error("Error recording fetch request to "+c.url+": "+String(e))})),a}}));return function(){n()}}(s,t,o);return function(){a(),c(),u()}}var $m=Hd("recorder"),Gm=r.CompressionStream,Ym={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Zm=new Set([Pc.MouseMove,Pc.MouseInteraction,Pc.Scroll,Pc.ViewportResize,Pc.Input,Pc.TouchMove,Pc.MediaInteraction,Pc.Drag,Pc.Selection]);var Jm=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||lg,this._onMaxLengthReached=e.onMaxLengthReached||lg,this._onBatchSent=e.onBatchSent||lg,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=kd,this.recordMinMs=0;var t=Xd(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new vg(dg),this.batcher=new Ug(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Ym,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Jm.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},Jm.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))},Jm.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Jm.prototype.get_config=function(e){return this.getConfig(e)},Jm.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>kd&&(this.recordMaxMs=kd,$m.critical("record_max_ms cannot be greater than "+kd+"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=qd.info.currentUrl(),this.replayStartUrl=qd.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r=this.getConfig("record_block_selector");""!==r&&null!==r||(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=Am(r).join(","),t.input.unmaskingSelector=Am(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),c=e.get_config("record_mask_text_class"),u=Am(o);if(c)if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var l="."+c;-1===u.indexOf(l)&&u.push(l)}return t.text.maskingSelector=u.join(","),t.text.unmaskingSelector=Am(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push(function(e){return{name:"rrweb/network@1.mp",observer:Hm,options:e}}(o))}this.getConfig("record_console")&&i.push(function(e){return{name:"rrweb/console@1",observer:Gf,options:e}}({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=zg(this.getConfig("record_allowed_iframe_origins"),$m);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===Tc.IncrementalSnapshot&&Zm.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Rm,n),maskTextFn:this._getMaskFn(Tm,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var c=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)}else $m.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Jm.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},Jm.prototype.isRrwebStopped=function(){return null===this._stopRecording},Jm.prototype.flushEventsWithOptOut=function(e,t,r){var n=function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(e,t,r,n)},Jm.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},Jm.deserialize=function(e,t){return new Jm(qd.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},Jm.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},Jm.prototype._sendRequest=function(e,t,n,i){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=qd.info.currentUrl()),this._onBatchSent(),i({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");r.fetch(s+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:n}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){i({error:e})}))})).catch((function(e){i({error:e,httpStatusCode:0})}))},Jm.prototype._flushEvents=kg((function(e,t,n){var i=e.length;if(i>0){for(var s=this.replayId,a=1/0,c=-1/0,u=!1,l=0;l<i;l++)a=Math.min(a,e[l].timestamp),c=Math.max(c,e[l].timestamp),e[l].type===Tc.FullSnapshot&&(u=!0);if(0===this.seqNo){if(!u)return n({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);this.replayStartTime=a}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=a);var h=c-this.replayStartTime,p={$current_url:this.batchStartUrl,$lib_version:o.LIB_VERSION,batch_start_time:a/1e3,mp_lib:"web",replay_id:s,replay_length_ms:h,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);if(Object.assign(p,this.getUserIdInfo()),function(e,t,n){if(!r.CompressionStream)return!1;var i=qd.info.browser(e,t,n),o=qd.info.browserVersion(e,t,n);return!(("Safari"===i||"Mobile Safari"===i)&&o>=16.4&&o<16.6)}(Ld,Rd.vendor,Pd)){var d=new Blob([f],{type:"application/json"}).stream().pipeThrough(new Gm("gzip"));new Response(d).blob().then(function(e){p.format="gzip",this._sendRequest(s,p,e,n)}.bind(this))}else p.format="body",this._sendRequest(s,p,f,n)}})),Jm.prototype.reportError=function(e,t){$m.error.apply($m.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){$m.error(t)}},Jm.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Jm.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>Sd?($m.critical("record_min_ms cannot be greater than 8000ms. Capping value."),Sd):e},Jm.prototype._getMaskFn=function(e,t){return function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(i){var o=Math.min(r.length,1e4);return"*".repeat(o)}return r}.bind(this)};var Xm=function(e){this.idb=new vg(gg),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Xm.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Xm.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Xm.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return ld.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),ld.resolve())},Xm.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(e){return jg(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):ld.resolve(null)},Xm.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Xm.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}.bind(this)).catch(this.handleError.bind(this))},Xm.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):ld.resolve()},Xm.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(e){var t=e.filter((function(e){return jg(e)})).map(function(e){return Jm.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then(function(){return this.idb.removeItem(e.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return ld.all(t)}.bind(this)).catch(this.handleError.bind(this)):ld.resolve([])};var Km=Hd("recorder"),Qm=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Fu,this.sharedLockStorage=r,this.recordingRegistry=new Xm({mixpanelInstance:this.mixpanelInstance,errorReporter:Km.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Qm.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Km.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Km.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),n=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:qd.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Jm.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Jm(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Km.log("Recording already in progress, skipping startRecording.")},Qm.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))},Qm.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Qm.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return ld.resolve()},Qm.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),ld.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Km.log("No resumable recording found."),null)}.bind(this))},Qm.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Qm.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Qm.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Qm.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),r[a]=Qm;var tv,rv={exports:{}};var nv=(tv||(tv=1,function(e){e.exports=function(){function e(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var t={},r={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!(!t||void 0===t.indexOf)&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)+parseFloat(t,10)}),0)},"*":function(){return Array.prototype.reduce.call(arguments,(function(e,t){return parseFloat(e,10)*parseFloat(t,10)}))},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},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(e,t){return e.concat(t)}),[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++){if(null==n)return r;if(void 0===(n=n[i[o]]))return r}return n},missing:function(){for(var e=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=t.apply({var:i},this);null!==o&&""!==o||e.push(i)}return e},missing_some:function(e,r){var n=t.apply({missing:r},this);return r.length-n.length>=e?[]:n}};return t.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},t.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,n){if(Array.isArray(e))return e.map((function(e){return t.apply(e,n)}));if(!t.is_logic(e))return e;var i,o,s,a,c,u=t.get_operator(e),l=e[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(t.truthy(t.apply(l[i],n)))return t.apply(l[i+1],n);return l.length===i+1?t.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),!t.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=t.apply(l[i],n),t.truthy(o))return o;return o}if("filter"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter((function(e){return t.truthy(t.apply(s,e))})):[];if("map"===u)return a=t.apply(l[0],n),s=l[1],Array.isArray(a)?a.map((function(e){return t.apply(s,e)})):[];if("reduce"===u)return a=t.apply(l[0],n),s=l[1],c=void 0!==l[2]?t.apply(l[2],n):null,Array.isArray(a)?a.reduce((function(e,r){return t.apply(s,{current:r,accumulator:e})}),c):c;if("all"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!t.truthy(t.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=t.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(t.truthy(t.apply(s,a[i])))return!0;return!1}if(l=l.map((function(e){return t.apply(e,n)})),r.hasOwnProperty(u)&&"function"==typeof r[u])return r[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=r;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw new Error("Unrecognized operation "+u+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw new Error("Unrecognized operation "+u)},t.uses_data=function(r){var n=[];if(t.is_logic(r)){var i=t.get_operator(r),o=r[i];Array.isArray(o)||(o=[o]),"var"===i?n.push(o[0]):o.forEach((function(e){n.push.apply(n,t.uses_data(e))}))}return e(n)},t.add_operation=function(e,t){r[e]=t},t.rm_operation=function(e){delete r[e]},t.rule_like=function(e,r){if(r===e)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof e;if("string"===r)return"string"==typeof e;if("array"===r)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(r)){if(t.is_logic(e)){var n=t.get_operator(r),i=t.get_operator(e);if("@"===n||n===i)return t.rule_like(t.get_values(e,!1),t.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(e)){if(r.length!==e.length)return!1;for(var o=0;o<r.length;o+=1)if(!t.rule_like(e[o],r[o]))return!1;return!0}return!1}return!1},t}()}(rv)),rv.exports),iv=ev(nv),ov={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!qd.isEmptyObject(n))try{i=iv.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};r[s]=Promise.resolve(ov);function sv(){this.clicks=[]}function av(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}sv.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only||false){var o=Im(e);if(!o||Cm(o))return!1}var s=Date.now(),a=e.pageX,c=e.pageY,u=this.clicks[this.clicks.length-1];if(u&&s-u.timestamp<n&&Math.sqrt(Math.pow(a-u.x,2)+Math.pow(c-u.y,2))<r){if(this.clicks.push({x:a,y:c,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},av.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Im(e)},av.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=xm(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},av.prototype.observeShadowRoot=function(e){if(this.observedShadowRoots&&!this.observedShadowRoots.has(e)){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver((function(){t.changeCallback()}));r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){am.critical("Error while observing shadow root",e)}}},av.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:am.critical("Shadow DOM observation unavailable: WeakSet not supported"))},av.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){am.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var cv=[qg,"input",Jg,"select","toggle"],uv=[Yg],lv=[Wg],hv={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function pv(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}pv.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||Cm(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},pv.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},pv.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},pv.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},pv.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},pv.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},pv.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout((function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}}),t)}else this.processingActive=!1},pv.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;cv.forEach((function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})})),lv.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})})),uv.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})}));var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver((function(){e.recordChangeEvent()})),this.mutationObserver.observe(document.body||document.documentElement,hv)}catch(e){am.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new av((function(){e.recordChangeEvent()}),hv),this.shadowDOMObserver.start()}catch(e){am.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},pv.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){am.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){am.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){am.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var fv="autocapture",dv="full-url",gv="allow_selectors",mv="allow_url_regexes",vv="block_attrs",yv="block_element_callback",_v="block_selectors",bv="block_url_regexes",wv="capture_extra_attrs",kv="capture_text_content",Sv="scroll_capture_all",Cv="scroll_depth_percent_checkpoints",xv="click",Iv="dead_click",Ov="input",Ev="pageview",Av="rage_click",Mv="scroll",Rv="page_leave",Tv="submit",Pv={};Pv[gv]=[],Pv[mv]=[],Pv[vv]=[],Pv[yv]=null,Pv[_v]=[],Pv[bv]=[],Pv[wv]=[],Pv[kv]=!1,Pv[Sv]=!1,Pv[Cv]=[25,50,75,100],Pv[xv]=!0,Pv[Iv]=!0,Pv[Ov]=!0,Pv[Ev]=dv,Pv[Av]=!0,Pv[Mv]=!0,Pv[Rv]=!1,Pv[Tv]=!0;var Nv={$mp_autocapture:!0},Lv="$mp_click",Dv="$mp_dead_click",Fv="$mp_rage_click",Bv=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Bv.prototype.init=function(){!function(){try{return!!Td.createElement("div").matches}catch(e){return!1}}()?am.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},Bv.prototype.getFullConfig=function(){var e=this.mp.get_config(fv);return e?qd.isObject(e)?qd.extend({},Pv,e):Pv:{}},Bv.prototype.getConfig=function(e){return this.getFullConfig()[e]},Bv.prototype.currentUrlBlocked=function(){var e=qd.info.currentUrl(),t=this.getConfig(mv)||[];if(t.length)try{return!hg(e,t)}catch(e){return am.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(bv)||[];if(!r||!r.length)return!1;try{return hg(e,r)}catch(e){return am.critical("Error while checking block URL regexes: ",e),!0}},Bv.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(fv)?this.getConfig(Ev):this.mp.get_config("track_pageview")},Bv.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===Lv&&!this.getConfig(xv)||t===Fv&&!this._getClickTrackingConfig(Av)||t===Dv&&!this._getClickTrackingConfig(Iv)),n=pm(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(gv),blockAttrs:this.getConfig(vv),blockElementCallback:this.getConfig(yv),blockSelectors:this.getConfig(_v),captureExtraAttrs:this.getConfig(wv),captureTextContent:this.getConfig(kv),capturedForHeatMap:r});n&&(qd.extend(n,Nv),this.mp.track(t,n))}},Bv.prototype.initPageListeners=function(){if(r.removeEventListener(Gg,this.listenerPopstate),r.removeEventListener(Wg,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(Rv)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){r.dispatchEvent(new Event($g))},this.listenerHashchange=function(){r.dispatchEvent(new Event($g))},r.addEventListener(Gg,this.listenerPopstate),r.addEventListener(Wg,this.listenerHashchange);var e=r.history.pushState;"function"==typeof e&&(r.history.pushState=function(t,n,i){e.call(r.history,t,n,i),r.dispatchEvent(new Event($g))});var t=r.history.replaceState;"function"==typeof t&&(r.history.replaceState=function(e,n,i){t.call(r.history,e,n,i),r.dispatchEvent(new Event($g))})}},Bv.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Bv.prototype._trackPageLeave=function(e,t,n){if(!this.hasTrackedScrollSession&&(this.getConfig(Rv)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var i=Math.max(Td.documentElement.clientHeight,r.innerHeight||0),o=Math.round(Math.max(this.maxScrollViewDepth-i,0)/(n-i)*100),s=Math.round(i/n*100);n<=i&&(o=100,s=100);var a=qd.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:o,$fold_line_percentage:s,$scroll_height:n,$event_type:e.type,$current_url:t||qd.info.currentUrl(),$viewportHeight:i,$viewportWidth:Math.max(Td.documentElement.clientWidth,r.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},Nv);this.mp.track("$mp_page_leave",a,{transport:"sendBeacon"})}},Bv.prototype._initScrollDepthTracking=function(){if(r.removeEventListener(Zg,this.listenerScrollDepth),r.removeEventListener(Yg,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){am.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(Td.documentElement.clientHeight,r.innerHeight||0);var e=km(function(){if(!this.currentUrlBlocked()){var e=Math.max(Td.documentElement.clientHeight,r.innerHeight||0)+r.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=Td.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,r.addEventListener(e.eventType,this.listenerScrollDepth)}},Bv.prototype.initClickTracking=function(){r.removeEventListener(Vg,this.listenerClick),(this.getConfig(xv)||this.mp.get_config("record_heatmap_data"))&&(am.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(xv)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Lv)}.bind(this),r.addEventListener(Vg,this.listenerClick))},Bv.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(Iv)||this.mp.get_config("record_heatmap_data")?(am.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new pv(function(e){this.trackDomEvent(e,Dv)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(Iv);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}.bind(this),r.addEventListener(Vg,this.listenerDeadClick))):this.stopDeadClickTracking()},Bv.prototype.initInputTracking=function(){r.removeEventListener(qg,this.listenerChange),this.getConfig(Ov)&&(am.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(Ov)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),r.addEventListener(qg,this.listenerChange))},Bv.prototype.initPageviewTracking=function(){if(r.removeEventListener($g,this.listenerLocationchange),this.pageviewTrackingConfig()){am.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Nv)),t&&(e=qd.info.currentUrl()),this.listenerLocationchange=$d(function(){if(!this.currentUrlBlocked()){var t=qd.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===dv?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r)this.mp.track_pageview(Nv)&&(e=t),n&&(this.lastScrollCheckpoint=0,am.log("Path change: re-initializing scroll depth checkpoints"))}}.bind(this)),r.addEventListener($g,this.listenerLocationchange)}},Bv.prototype.initRageClickTracking=function(){r.removeEventListener(Vg,this.listenerRageClick),(this._getClickTrackingConfig(Av)||this.mp.get_config("record_heatmap_data"))&&(am.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new sv),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(Av);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,Fv))}.bind(this),r.addEventListener(Vg,this.listenerRageClick))},Bv.prototype.initScrollTracking=function(){if(r.removeEventListener(Yg,this.listenerScroll),r.removeEventListener(Zg,this.listenerScroll),this.getConfig(Mv)){am.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=function(){if(this.getConfig(Mv)&&!this.currentUrlBlocked()){var e=this.getConfig(Sv),t=(this.getConfig(Cv)||[]).slice().sort((function(e,t){return e-t})),n=r.scrollY,i=qd.extend({$scroll_top:n},Nv);try{var o=Td.body.scrollHeight,s=Math.round(n/(o-r.innerHeight)*100);if(i.$scroll_height=o,i.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var a=0;a<t.length;a++){var c=t[a];s>=c&&this.lastScrollCheckpoint<c&&(i.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,e=!0)}}catch(e){am.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",i)}}.bind(this),t=km(e);this.listenerScroll=t.listener,r.addEventListener(t.eventType,this.listenerScroll)}},Bv.prototype.initSubmitTracking=function(){r.removeEventListener(Jg,this.listenerSubmit),this.getConfig(Tv)&&(am.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(Tv)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),r.addEventListener(Jg,this.listenerSubmit))},Bv.prototype.initPageLeaveTracking=function(){if(Td.removeEventListener(Xg,this.listenerPageLeaveVisibilitychange),r.removeEventListener($g,this.listenerPageLeaveLocationchange),r.removeEventListener(Hg,this.listenerPageLoad),this.getConfig(Rv)||this.mp.get_config("record_heatmap_data")){am.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=qd.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=Td.body.scrollHeight}.bind(this),r.addEventListener(Hg,this.listenerPageLoad),this.listenerPageLeaveLocationchange=$d(function(t){if(!this.currentUrlBlocked()){var n=qd.info.currentUrl();n!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=n,this.maxScrollViewDepth=Math.max(Td.documentElement.clientHeight,r.innerHeight||0),this.previousScrollHeight=Td.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),r.addEventListener($g,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){Td.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),Td.addEventListener(Xg,this.listenerPageLeaveVisibilitychange)}},Bv.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(r.removeEventListener(Vg,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Gd(Bv);var Uv=function(e,t){return r[s]&&"function"==typeof r[s].then||(r[s]=new Promise((function(r){e(t,r)})).then((function(){var e=r[s];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")})).catch((function(e){throw delete r[s],e}))),r[s]},jv=Hd("flags"),zv="flags",qv="context",Vv={};Vv[qv]={};var Wv=function(e){this.fetch=r.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};Wv.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags().catch((function(){jv.error("Error fetching flags during init")})),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}):jv.critical("Feature Flags unavailable: missing minimum required APIs")},Wv.prototype.getFullConfig=function(){var e=this.getMpConfig(zv);return e?qd.isObject(e)?qd.extend({},Vv,e):Vv:{}},Wv.prototype.getConfig=function(e){return this.getFullConfig()[e]},Wv.prototype.isSystemEnabled=function(){return!!this.getMpConfig(zv)},Wv.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return jv.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(zv);qd.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(qv);r[qv]=qd.extend({},n,e);var i={};return i[zv]=r,this.setMpConfig(i),this.fetchFlags().catch((function(){jv.error("Error fetching flags during updateContext")}))},Wv.prototype.areFlagsReady=function(){return this.isSystemEnabled()||jv.error("Feature Flags not enabled"),!!this.flags},Wv.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),n=sg();jv.log("Fetching flags for distinct ID: "+e);var i=qd.extend({distinct_id:e,device_id:t},this.getConfig(qv)),s=new URLSearchParams;s.set("context",JSON.stringify(i)),s.set("token",this.getMpConfig("token")),s.set("mp_lib","web"),s.set("$lib_version",o.LIB_VERSION);var a=this.getFullApiRoute()+"?"+s.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(r,a,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:n}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(e){var t=e.flags;if(!t)throw new Error("No flags in API response");var r=new Map,i={};qd.each(t,(function(e,t){var n=!1,i=t+":";if(qd.each(this.activatedFirstTimeEvents,(function(e,t){t.startsWith(i)&&(n=!0)})),n){var o=this.flags&&this.flags.get(t);o&&r.set(t,o)}else r.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this);var o=e.pending_first_time_events;o&&o.length>0&&qd.each(o,(function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(i[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})}),this),this.activatedFirstTimeEvents&&qd.each(this.activatedFirstTimeEvents,(function(e,t){var n=function(e){return e.split(":")[0]}(t);e&&!r.has(n)&&this.flags&&this.flags.has(n)&&r.set(n,this.flags.get(n))}),this),this.flags=r,this.pendingFirstTimeEvents=i,this._traceparent=n,this._loadTargetingIfNeeded()}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),jv.error(e),e}.bind(this)),this.fetchPromise},Wv.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(jv.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},Wv.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):jv.error("Fetch in progress started time not set, cannot mark fetch complete")},Wv.prototype._loadTargetingIfNeeded=function(){var e=!1;qd.each(this.pendingFirstTimeEvents,(function(t){t.property_filters&&!qd.isEmptyObject(t.property_filters)&&(e=!0)})),e&&this.getTargeting().then((function(){jv.log("targeting loaded for property filter evaluation")}))},Wv.prototype.getTargeting=function(){return Uv(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){jv.error("Failed to load targeting: "+e)}.bind(this))},Wv.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!qd.isEmptyObject(this.pendingFirstTimeEvents)&&(r[s]&&qd.isFunction(r[s].then)?r[s].then(function(r){this._processFirstTimeEventCheck(e,t,r)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(e,t,null)}.bind(this)):this._processFirstTimeEventCheck(e,t,null))},Wv.prototype._processFirstTimeEventCheck=function(e,t,r){qd.each(this.pendingFirstTimeEvents,(function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||qd.isEmptyObject(n.property_filters)){if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)jv.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){jv.log('First-time event matched for flag "'+s+'": '+e);var c={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,c),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else jv.warn('Skipping event check for "'+s+'" - property filters require targeting library')}}),this)},Wv.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute()+"/"+e+"/first-time-events"},Wv.prototype.recordFirstTimeEvent=function(e,t,n){var i=this.getMpProperty("distinct_id"),s=sg(),a=new URLSearchParams;a.set("mp_lib","web"),a.set("$lib_version",o.LIB_VERSION);var c=this.getFirstTimeEventApiRoute(e)+"?"+a.toString(),u={distinct_id:i,project_id:t,first_time_event_hash:n};jv.log("Recording first-time event for flag: "+e),this.fetch.call(r,c,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:s},body:JSON.stringify(u)}).catch((function(t){jv.error("Failed to record first-time event for flag "+e+": "+t)}))},Wv.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch((function(e){return jv.error(e),t})):new Promise((function(e){jv.critical("Feature Flags not initialized"),e(t)}))},Wv.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return jv.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(jv.log('No flag found: "'+e+'"'),t)},Wv.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then((function(e){return e.value})).catch((function(e){return jv.error(e),t}))},Wv.prototype.getFeatureData=function(e,t){return jv.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},Wv.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Wv.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch((function(e){return jv.error(e),t}))},Wv.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(jv.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Wv.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.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};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},Wv.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},Wv.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Gd(Wv),Wv.prototype.are_flags_ready=Wv.prototype.areFlagsReady,Wv.prototype.get_variant=Wv.prototype.getVariant,Wv.prototype.get_variant_sync=Wv.prototype.getVariantSync,Wv.prototype.get_variant_value=Wv.prototype.getVariantValue,Wv.prototype.get_variant_value_sync=Wv.prototype.getVariantValueSync,Wv.prototype.is_enabled=Wv.prototype.isEnabled,Wv.prototype.is_enabled_sync=Wv.prototype.isEnabledSync,Wv.prototype.load_flags=Wv.prototype.loadFlags,Wv.prototype.update_context=Wv.prototype.updateContext,Wv.prototype.when_ready=Wv.prototype.whenReady,Wv.prototype.get_feature_data=Wv.prototype.getFeatureData,Wv.prototype.getTargeting=Wv.prototype.getTargeting;var Hv=Hd("recorder"),$v="mp_iframe_handshake_request",Gv="mp_iframe_handshake_response",Yv=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Yv.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return Vd.log("Load recorder check skipped due to disable_persistence config"),ld.resolve(!1);var e=new vg(gg),t=this.getTabId();return e.init().then((function(){return e.getAll()})).then((function(e){for(var r=0;r<e.length;r++)if(jg(e[r])||e[r].tabId===t)return!0;return!1})).catch(qd.bind((function(e){return this.reportError("Error checking recording registry",e),!1}),this))},Yv.prototype.checkAndStartSessionRecording=function(e,t){if(!r.MutationObserver)return Vd.critical("Browser does not support MutationObserver; skipping session recording"),ld.resolve();var n=qd.bind((function(e){return new ld(qd.bind((function(t){var n=$d(qd.bind((function(){this._recorder=this._recorder||new r[a](this.mixpanelInstance),this._recorder.resumeRecording(e),t()}),this));if(qd.isUndefined(r[a])){var i=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(i,n)}else n()}),this))}),this),i=zg(this.getMpConfig("record_allowed_iframe_origins"),Hv);if(i.length>0&&(this._setupParentFrameListener(i),r.parent!==r))return this._setupChildFrameListener(i,n),this._sendParentFrameRequestWithRetry(i),ld.resolve();var o=qd.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?n(!0):this.shouldLoadRecorder().then(qd.bind((function(e){return e?n(!1):ld.resolve()}),this))},Yv.prototype.isRecording=function(){if(!this._recorder||!qd.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},Yv.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!qd.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+c;Uv(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){Vd.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch((function(e){Vd.critical("Failed to load targeting library:",e)}))}else this.checkAndStartSessionRecording(!1,o)}}},Yv.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():ld.resolve()},Yv.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():ld.resolve()},Yv.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():ld.resolve()},Yv.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Yv.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},Yv.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();t&&(e="https://mixpanel.com/projects/replay-redirect?"+qd.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")}));return e},Yv.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Yv.prototype.getRecorder=function(){return this._recorder},Yv.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var n=this;this._childFrameMessageHandler=function(i){if(-1!==e.indexOf(i.origin)){var o=i.data;o&&o.type===Gv&&o.token===n.getMpConfig("token")&&o.replayId&&(n._parentReplayId=o.replayId,o.distinctId&&n.mixpanelInstance.identify(o.distinctId),n._parentFrameRetryActive=!1,r.removeEventListener("message",n._childFrameMessageHandler),n._childFrameMessageHandler=null,t(!0))}},r.addEventListener("message",this._childFrameMessageHandler)}},Yv.prototype._sendParentFrameRequest=function(e){var t={};t.type=$v,t.token=this.getMpConfig("token");for(var n=0;n<e.length;n++)try{r.parent.postMessage(t,e[n])}catch(e){}},Yv.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),function i(){setTimeout((function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())}),n)}()},Yv.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===$v&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=Gv,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},r.addEventListener("message",this._parentFrameMessageHandler)}},Gd(Yv);var Zv=function(){};Zv.prototype.create_properties=function(){},Zv.prototype.event_handler=function(){},Zv.prototype.after_track_handler=function(){},Zv.prototype.init=function(e){return this.mp=e,this},Zv.prototype.track=function(e,t,r,n){var i=this,o=qd.dom_query(e);if(0!==o.length)return qd.each(o,(function(e){qd.register_event(e,this.override_event,(function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))}))}),this),!0;Vd.error("The DOM query ("+e+") returned 0 elements")},Zv.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},Zv.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):qd.extend({},e)};var Jv=function(){this.override_event="click"};qd.inherit(Jv,Zv),Jv.prototype.create_properties=function(e,t){var r=Jv.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},Jv.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},Jv.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var Xv=function(){this.override_event="submit"};qd.inherit(Xv,Zv),Xv.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Xv.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var Kv="$set",Qv="$set_once",ey="$unset",ty="$add",ry="$append",ny="$union",iy="$remove",oy={set_action:function(e,t){var r={},n={};return qd.isObject(e)?qd.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Kv]=n,r},unset_action:function(e){var t={},r=[];return qd.isArray(e)||(e=[e]),qd.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[ey]=r,t},set_once_action:function(e,t){var r={},n={};return qd.isObject(e)?qd.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Qv]=n,r},union_action:function(e,t){var r={},n={};return qd.isObject(e)?qd.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=qd.isArray(e)?e:[e])}),this):n[e]=qd.isArray(t)?t:[t],r[ny]=n,r},append_action:function(e,t){var r={},n={};return qd.isObject(e)?qd.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[ry]=n,r},remove_action:function(e,t){var r={},n={};return qd.isObject(e)?qd.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[iy]=n,r},delete_action:function(){var e={$delete:""};return e}},sy=function(){};qd.extend(sy.prototype,oy),sy.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},sy.prototype.set=Cg((function(e,t,r){var n=this.set_action(e,t);return qd.isObject(e)&&(r=t),this._send_request(n,r)})),sy.prototype.set_once=Cg((function(e,t,r){var n=this.set_once_action(e,t);return qd.isObject(e)&&(r=t),this._send_request(n,r)})),sy.prototype.unset=Cg((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),sy.prototype.union=Cg((function(e,t,r){qd.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),sy.prototype.delete=Cg((function(e){var t=this.delete_action();return this._send_request(t,e)})),sy.prototype.remove=Cg((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),sy.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=qd.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},sy.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},sy.prototype._get_config=function(e){return this._mixpanel.get_config(e)},sy.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},sy.prototype.remove=sy.prototype.remove,sy.prototype.set=sy.prototype.set,sy.prototype.set_once=sy.prototype.set_once,sy.prototype.union=sy.prototype.union,sy.prototype.unset=sy.prototype.unset,sy.prototype.toString=sy.prototype.toString;var ay=function(){};qd.extend(ay.prototype,oy),ay.prototype._init=function(e){this._mixpanel=e},ay.prototype.set=Sg((function(e,t,r){var n=this.set_action(e,t);return qd.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Kv]=qd.extend({},qd.info.people_properties(),n[Kv]),this._send_request(n,r)})),ay.prototype.set_once=Sg((function(e,t,r){var n=this.set_once_action(e,t);return qd.isObject(e)&&(r=t),this._send_request(n,r)})),ay.prototype.unset=Sg((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),ay.prototype.increment=Sg((function(e,t,r){var n={},i={};return qd.isObject(e)?(qd.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Vd.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),r=t):(qd.isUndefined(t)&&(t=1),i[e]=t),n[ty]=i,this._send_request(n,r)})),ay.prototype.append=Sg((function(e,t,r){qd.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),ay.prototype.remove=Sg((function(e,t,r){qd.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),ay.prototype.union=Sg((function(e,t,r){qd.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),ay.prototype.track_charge=Sg((function(){Vd.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")})),ay.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},ay.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Vd.error("mixpanel.people.delete_user() requires you to call identify() first")},ay.prototype.toString=function(){return this._mixpanel.toString()+".people"},ay.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=qd.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),qd.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),qd.truncate(o,255))},ay.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ay.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},ay.prototype._enqueue=function(e){Kv in e?this._mixpanel.persistence._add_to_people_queue(Kv,e):Qv in e?this._mixpanel.persistence._add_to_people_queue(Qv,e):ey in e?this._mixpanel.persistence._add_to_people_queue(ey,e):ty in e?this._mixpanel.persistence._add_to_people_queue(ty,e):ry in e?this._mixpanel.persistence._add_to_people_queue(ry,e):iy in e?this._mixpanel.persistence._add_to_people_queue(iy,e):ny in e?this._mixpanel.persistence._add_to_people_queue(ny,e):Vd.error("Invalid call to _enqueue():",e)},ay.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=qd.extend({},this._mixpanel.persistence.load_queue(e)),s=o;qd.isUndefined(o)||!qd.isObject(o)||qd.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mixpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,(function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),qd.isUndefined(r)||r(t,n)})))},ay.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Kv,this.set,e),this._flush_one_queue(Qv,this.set_once,n),this._flush_one_queue(ey,this.unset,o,(function(e){return qd.keys(e)})),this._flush_one_queue(ty,this.increment,t),this._flush_one_queue(ny,this.union,i);var c=this._mixpanel.persistence.load_queue(ry);if(!qd.isUndefined(c)&&qd.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(ry,u),qd.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(ry),u=c.pop(),a._mixpanel.persistence.save(),qd.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(iy);if(!qd.isUndefined(p)&&qd.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(iy,f),qd.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(iy),f=p.pop(),a._mixpanel.persistence.save(),qd.isEmptyObject(f)||a.remove(f,d)},ay.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},ay.prototype.set=ay.prototype.set,ay.prototype.set_once=ay.prototype.set_once,ay.prototype.unset=ay.prototype.unset,ay.prototype.increment=ay.prototype.increment,ay.prototype.append=ay.prototype.append,ay.prototype.remove=ay.prototype.remove,ay.prototype.union=ay.prototype.union,ay.prototype.track_charge=ay.prototype.track_charge,ay.prototype.clear_charges=ay.prototype.clear_charges,ay.prototype.delete_user=ay.prototype.delete_user,ay.prototype.toString=ay.prototype.toString;var cy,uy="__mps",ly="__mpso",hy="__mpus",py="__mpa",fy="__mpap",dy="__mpr",gy="__mpu",my="$people_distinct_id",vy="__alias",yy="__timers",_y=[uy,ly,hy,py,fy,dy,gy,my,vy,yy],by=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(Vd.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&qd.localStorage.is_supported()?this.storage=qd.localStorage:this.storage=qd.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};by.prototype.properties=function(){var e={};return this.load(),qd.each(this.props,(function(t,r){qd.include(_y,r)||(e[r]=t)})),e},by.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=qd.extend({},e))}},by.prototype.upgrade=function(){var e,t;this.storage===qd.localStorage?(e=qd.cookie.parse(this.name),qd.cookie.remove(this.name),qd.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===qd.cookie&&(t=qd.localStorage.parse(this.name),qd.localStorage.remove(this.name),t&&this.register_once(t))},by.prototype.save=function(){this.disabled||this.storage.set(this.name,pg(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},by.prototype.load_prop=function(e){return this.load(),this.props[e]},by.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},by.prototype.clear=function(){this.remove(),this.props={}},by.prototype.register_once=function(e,t,r){return!!qd.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),qd.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},by.prototype.register=function(e,t){return!!qd.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),qd.extend(this.props,e),this.save(),!0)},by.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},by.prototype.update_search_keyword=function(e){this.register(qd.info.searchInfo(e))},by.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:qd.info.referringDomain(e)||"$direct"},"")},by.prototype.get_referrer_info=function(){return qd.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},by.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},by.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},by.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},by.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},by.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},by.prototype.get_cross_subdomain=function(){return this.cross_subdomain},by.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},by.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Kv),o=this._get_or_create_queue(Qv),s=this._get_or_create_queue(ey),a=this._get_or_create_queue(ty),c=this._get_or_create_queue(ny),u=this._get_or_create_queue(iy,[]),l=this._get_or_create_queue(ry,[]);r===uy?(qd.extend(i,n),this._pop_from_people_queue(ty,n),this._pop_from_people_queue(ny,n),this._pop_from_people_queue(ey,n)):r===ly?(qd.each(n,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue(ey,n)):r===hy?qd.each(n,(function(e){qd.each([i,o,a,c],(function(t){e in t&&delete t[e]})),qd.each(l,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===py?(qd.each(n,(function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)}),this),this._pop_from_people_queue(ey,n)):r===gy?(qd.each(n,(function(e,t){qd.isArray(e)&&(t in c||(c[t]=[]),qd.each(e,(function(e){qd.include(c[t],e)||c[t].push(e)})))})),this._pop_from_people_queue(ey,n)):r===dy?(u.push(n),this._pop_from_people_queue(ry,n)):r===fy&&(l.push(n),this._pop_from_people_queue(ey,n)),Vd.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Vd.log(t),this.save()},by.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];qd.isUndefined(r)||qd.each(t,(function(t,n){e===ry||e===iy?qd.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},by.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},by.prototype._get_queue_key=function(e){return e===Kv?uy:e===Qv?ly:e===ey?hy:e===ty?py:e===ry?fy:e===iy?dy:e===ny?gy:void Vd.error("Invalid queue:",e)},by.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=qd.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},by.prototype.set_event_timer=function(e,t){var r=this.load_prop(yy)||{};r[e]=t,this.props[yy]=r,this.save()},by.prototype.remove_event_timer=function(e){var t=(this.load_prop(yy)||{})[e];return qd.isUndefined(t)||(delete this.props[yy][e],this.save()),t};var wy,ky=function(e,t){throw new Error(e+" not available in this build.")},Sy="mixpanel",Cy="base64",xy="$device:",Iy=r.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Oy=!Iy&&-1===Ld.indexOf("MSIE")&&-1===Ld.indexOf("Mozilla"),Ey=null;Rd.sendBeacon&&(Ey=function(){return Rd.sendBeacon.apply(Rd,arguments)});var Ay={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},My={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Ay,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Cy,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:lg,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:lg,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:18e5,record_mask_inputs:!0,record_max_ms:kd,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:"disabled"},Ry=!1,Ty=function(){},Py=function(e,t,n){var i,s=n===Sy?wy:wy[n];if(s&&0===cy)i=s;else{if(s&&!qd.isArray(s))return void Vd.error("You have already initialized "+n);i=new Ty}if(i._cached_groups={},i._init(e,t,n),i.people=new ay,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var a=qd.info.campaignParams(null),c={},u=!1;qd.each(a,(function(e,t){c["initial_"+t]=e,e&&(u=!0)})),u&&i.people.set_once(c)}o.DEBUG=o.DEBUG||i.get_config("debug");var l=0===cy?"module":"snippet";return r.dispatchEvent(new r.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:i,source:l,token:e,name:n,info:qd.info}})),!qd.isUndefined(s)&&qd.isArray(s)&&(i._execute_array.call(i.people,s.people),i._execute_array(s)),i};Ty.prototype.init=function(e,t,r){if(qd.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Sy){var n=Py(e,t,r);return wy[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Ty.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var i={};"api_payload_format"in t||(t.api_host||My.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json");if(this.hooks={},this.set_config(qd.extend({},My,i,t,{name:n,token:e,callback_fn:(n===Sy?n:Sy+"."+n)+"._jsc"})),this.recorderManager=new Yv({mixpanelInstance:this,getConfigFunc:qd.bind(this.get_config,this),setConfigFunc:qd.bind(this.set_config,this),getTabIdFunc:qd.bind(this.get_tab_id,this),reportErrorFunc:qd.bind(this.report_error,this),getDistinctIdFunc:qd.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:ky}),this._jsc=lg,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(qd.localStorage.is_supported(!0)&&Iy){if(this.init_batchers(),Ey&&r.addEventListener){var o=qd.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);r.addEventListener("pagehide",(function(e){e.persisted&&o()})),r.addEventListener("visibilitychange",(function(){"hidden"===Td.visibilityState&&o()}))}}else this._batch_requests=!1,Vd.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),qd.each(this.get_batcher_configs(),(function(e){Vd.log("Clearing batch queue "+e.queue_key),qd.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new by(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=qd.UUID();this.get_distinct_id()||this.register_once({distinct_id:xy+s,$device_id:s},""),this.flags=new Wv({getFullApiRoute:qd.bind((function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags}),this),getConfigFunc:qd.bind(this.get_config,this),setConfigFunc:qd.bind(this.set_config,this),getPropertyFunc:qd.bind(this.get_property,this),trackingFunc:qd.bind(this.track,this),loadExtraBundle:ky,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+c}),this.flags.init(),this.flags=this.flags,this.autocapture=new Bv(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");this.__session_recording_init_promise="strict"===a||"fallback"===a?this._fetch_remote_settings(a).then(qd.bind((function(){return this._check_and_start_session_recording()}),this)):this._check_and_start_session_recording()},Ty.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Vd.log("Tab ID initialization skipped due to disable_persistence config");else if(qd.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,n="mp_gen_new_tab_id_"+e;!qd.sessionStorage.get(n)&&qd.sessionStorage.get(t)||qd.sessionStorage.set(t,"$tab-"+qd.UUID()),qd.sessionStorage.set(n,"1"),this.tab_id=qd.sessionStorage.get(t),r.addEventListener("beforeunload",(function(){qd.sessionStorage.remove(n)}))}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.")},Ty.prototype.get_tab_id=function(){return this.tab_id||null},Ty.prototype._check_and_start_session_recording=kg((function(e){return this.recorderManager.checkAndStartSessionRecording(e)})),Ty.prototype._start_recording_on_event=function(e,t){return this.recorderManager.startRecordingOnEvent(e,t)},Ty.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},Ty.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},Ty.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},Ty.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},Ty.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},Ty.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},Ty.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},Ty.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},Ty.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},Ty.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=qd.info.campaignParams(null);qd.each(e,function(e,t){this.unregister(t)}.bind(this))}},Ty.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Td.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(qd.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Td.referrer)},Ty.prototype._dom_loaded=function(){qd.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||qd.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Ty.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ry)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Ty.prototype._prepare_callback=function(e,t){if(qd.isUndefined(e))return null;if(Iy){return function(r){e(r,t)}}var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},Ty.prototype._send_request=function(e,t,r,n){var i=!0;if(Oy)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;n||!qd.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=qd.extend(o,r||{}),Iy||(r.method="GET");var a="POST"===r.method,c=Ey&&a&&"sendbeacon"===r.transport.toLowerCase(),u=r.verbose;t.verbose&&(u=!0),this.get_config("test")&&(t.test=1),u&&(t.verbose=1),this.get_config("img")&&(t.img=1),Iy||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),qd.extend(t,this.get_config("api_extra_query_params")),e+="?"+qd.HTTPBuildQuery(t);var l=this;if("img"in t){var h=Td.createElement("img");h.src=e,Td.body.appendChild(h)}else if(c){try{i=Ey(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(Iy)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),qd.each(f,(function(e,t){p.setRequestHeader(t,e)})),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var d=(new Date).getTime()}p.withCredentials=!0,p.onreadystatechange=function(){var e;if(4===p.readyState)if(200===p.status){if(n)if(u){var t;try{t=qd.JSONDecode(p.responseText)}catch(e){if(l.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-d>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(e),n)if(u){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=Td.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Td.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Ty.prototype._fetch_remote_settings=function(e){var t=this,n=function(){"strict"===e&&t.set_config({record_sessions_percent:0})};if(!r.AbortController)return Vd.critical("Remote settings unavailable: missing minimum required APIs"),n(),Promise.resolve();var i=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,s={$lib_version:o.LIB_VERSION,mp_lib:"web",sdk_config:"1"},a=i+"?"+qd.HTTPBuildQuery(s),c=new AbortController,u=setTimeout((function(){c.abort()}),500),l={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:c.signal};return r.fetch(a,l).then((function(e){return clearTimeout(u),e.ok?e.json():(Vd.critical("Network response was not ok"),void n())})).then((function(e){if(e&&e.sdk_config&&e.sdk_config.config){var r=e.sdk_config.config,i={};qd.each(r,(function(e,t){My.hasOwnProperty(t)&&(i[t]=e)})),qd.isEmptyObject(i)?(Vd.critical("No valid config keys found in remote settings."),n()):t.set_config(i)}else n()})).catch((function(e){clearTimeout(u),Vd.critical("Failed to fetch remote settings",e),n()}))},Ty.prototype._execute_array=function(e){var t,r=[],n=[],i=[];qd.each(e,(function(e){e&&(t=e[0],qd.isArray(t)?i.push(e):"function"==typeof e?e.call(this):qd.isArray(e)&&"alias"===t?r.push(e):qd.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))}),this);var o=function(e,t){qd.each(e,(function(e){if(qd.isArray(e[0])){var r=t;qd.each(e,(function(e){r=r[e[0]].apply(r,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};o(r,this),o(n,this),o(i,this)},Ty.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Ty.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},Ty.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=qd.bind((function(e){return new Ug(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:qd.bind((function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))}),this),beforeSendHook:qd.bind((function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null}),this),stopAllBatchingFunc:qd.bind(this.stop_batch_senders,this),usePersistence:!0})}),this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},Ty.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,qd.each(this.request_batchers,(function(e){e.start()})))},Ty.prototype.stop_batch_senders=function(){this._batch_requests=!1,qd.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Ty.prototype.push=function(e){this._execute_array([e])},Ty.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(t={},r=[],n=0;n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},Ty.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Ty.prototype._encode_data_for_request=function(e){var t=pg(e);return this.get_config("api_payload_format")===Cy&&(t=qd.base64Encode(t)),{data:t}},Ty.prototype._track_or_batch=function(e,t){var r=qd.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||lg;var a=!0,c=qd.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Vd.log("MIXPANEL REQUEST:"),Vd.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null}),this);return this._batch_requests&&!o?i.enqueue(r).then((function(e){e?t(1,r):c()})):a=c(),a&&r},Ty.prototype.track=kg((function(e,t,r,n){var i;if(!r||!r.skip_hooks){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=lg),qd.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=qd.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!qd.isUndefined(a)){var c=(new Date).getTime()-a;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var u=this.get_config("track_marketing")?qd.info.marketingParams():{};t=qd.extend({},qd.info.properties({mp_loader:this.get_config("mp_loader")}),u,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");qd.isArray(l)?qd.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}n(0)}})),Ty.prototype.set_group=kg((function(e,t,r){qd.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),Ty.prototype.add_group=kg((function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)})),Ty.prototype.remove_group=kg((function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)})),Ty.prototype.track_with_groups=kg((function(e,t,r,n){var i=qd.extend({},t||{});return qd.each(r,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,n)})),Ty.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Ty.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Ty.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return void 0!==n&&n._group_key===e&&n._group_id===t||((n=new sy)._init(this,e,t),this._cached_groups[r]=n),n},Ty.prototype.track_pageview=kg((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=qd.extend(qd.info.mpPageViewProperties(),qd.info.campaignParams(),qd.info.clickParams()),i=qd.extend({},n,e);return this.track(r,i)})),Ty.prototype.track_links=function(){return this._track_dom.call(this,Jv,arguments)},Ty.prototype.track_forms=function(){return this._track_dom.call(this,Xv,arguments)},Ty.prototype.time_event=function(e){qd.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var Ny={persistent:!0},Ly=function(e){var t;return t=qd.isObject(e)?e:qd.isUndefined(e)?{}:{days:e},qd.extend({},Ny,t)};Ty.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0],t=r[1];var n=Ly(t);n.persistent?this.persistence.register(e,n.days):qd.extend(this.unpersisted_superprops,e)}},Ty.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1],r=n[2];var i=Ly(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),qd.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))}},Ty.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=Ly(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},Ty.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Ty.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this._run_hook("before_identify",e);if(null===c)return-1;e=c[0];var u=this.get_distinct_id();if(e&&u!==e){if("string"==typeof e&&0===e.indexOf(xy))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var l=u;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}e!==u&&e!==this.get_property(vy)&&(this.unregister(vy),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==u&&this.track("$identify",{distinct_id:e,$anon_distinct_id:u},{skip_hooks:!0}),e!==u&&this.flags.fetchFlags().catch((function(){Vd.error("[flags] Error fetching flags during identify")}))},Ty.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=qd.UUID();this.register_once({distinct_id:xy+e,$device_id:e},""),this._check_and_start_session_recording()},Ty.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Ty.prototype.alias=function(e,t){if(e===this.get_property(my))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return qd.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(vy,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){r.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Ty.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Ty.prototype.set_config=function(e){qd.isObject(e)&&(qd.extend(this.config,e),e.batch_size&&qd.each(this.request_batchers,(function(e){e.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),o.DEBUG=o.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),qd.isObject(e.hooks)&&(this.hooks={},qd.each(e.hooks,(function(e,t){if(qd.isFunction(e))this.hooks[t]=[e];else if(qd.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)qd.isFunction(e[r])||Vd.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else Vd.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")}),this)))},Ty.prototype.get_config=function(e){return this.config[e]},Ty.prototype._run_hook=function(e){var t=Od.call(arguments,1);return qd.each(this.hooks[e],(function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(qd.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))}),this),t},Ty.prototype.get_property=function(e){return this.persistence.load_prop([e])},Ty.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Ty.prototype.toString=function(){var e=this.get_config("name");return e!==Sy&&(e=Sy+"."+e),e},Ty.prototype._event_is_disabled=function(e){return qd.isBlockedUA(Ld)||this._flags.disable_all_events||qd.include(this.__disabled_events,e)},Ty.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&qd.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")&&!qd.cookie.get("mp_optout")||(qd.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Ty.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},Ty.prototype._gdpr_call_func=function(e,t){return t=qd.extend({track:qd.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")},t),qd.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Ty.prototype.opt_in_tracking=function(e){e=qd.extend({enable_persistence:!0},e),this._gdpr_call_func(yg,e),this._gdpr_update_persistence(e)},Ty.prototype.opt_out_tracking=function(e){(e=qd.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(_g,e),this._gdpr_update_persistence(e)},Ty.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(bg,e)},Ty.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(wg,e)},Ty.prototype.clear_opt_in_out_tracking=function(e){e=qd.extend({enable_persistence:!0},e),this._gdpr_call_func(xg,e),this._gdpr_update_persistence(e)},Ty.prototype.report_error=function(e,t){Vd.error.apply(Vd.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Vd.error(t)}},Ty.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},Ty.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):Vd.log("remove_hook failed. Matching hook was not found"))},Ty.prototype.init=Ty.prototype.init,Ty.prototype.reset=Ty.prototype.reset,Ty.prototype.enable=Ty.prototype.enable,Ty.prototype.disable=Ty.prototype.disable,Ty.prototype.time_event=Ty.prototype.time_event,Ty.prototype.track=Ty.prototype.track,Ty.prototype.track_links=Ty.prototype.track_links,Ty.prototype.track_forms=Ty.prototype.track_forms,Ty.prototype.track_pageview=Ty.prototype.track_pageview,Ty.prototype.register=Ty.prototype.register,Ty.prototype.register_once=Ty.prototype.register_once,Ty.prototype.unregister=Ty.prototype.unregister,Ty.prototype.identify=Ty.prototype.identify,Ty.prototype.alias=Ty.prototype.alias,Ty.prototype.name_tag=Ty.prototype.name_tag,Ty.prototype.set_config=Ty.prototype.set_config,Ty.prototype.get_config=Ty.prototype.get_config,Ty.prototype.get_api_host=Ty.prototype.get_api_host,Ty.prototype.get_property=Ty.prototype.get_property,Ty.prototype.get_distinct_id=Ty.prototype.get_distinct_id,Ty.prototype.toString=Ty.prototype.toString,Ty.prototype.opt_out_tracking=Ty.prototype.opt_out_tracking,Ty.prototype.opt_in_tracking=Ty.prototype.opt_in_tracking,Ty.prototype.has_opted_out_tracking=Ty.prototype.has_opted_out_tracking,Ty.prototype.has_opted_in_tracking=Ty.prototype.has_opted_in_tracking,Ty.prototype.clear_opt_in_out_tracking=Ty.prototype.clear_opt_in_out_tracking,Ty.prototype.get_group=Ty.prototype.get_group,Ty.prototype.set_group=Ty.prototype.set_group,Ty.prototype.add_group=Ty.prototype.add_group,Ty.prototype.remove_group=Ty.prototype.remove_group,Ty.prototype.add_hook=Ty.prototype.add_hook,Ty.prototype.remove_hook=Ty.prototype.remove_hook,Ty.prototype.track_with_groups=Ty.prototype.track_with_groups,Ty.prototype.start_batch_senders=Ty.prototype.start_batch_senders,Ty.prototype.stop_batch_senders=Ty.prototype.stop_batch_senders,Ty.prototype.start_session_recording=Ty.prototype.start_session_recording,Ty.prototype.stop_session_recording=Ty.prototype.stop_session_recording,Ty.prototype.pause_session_recording=Ty.prototype.pause_session_recording,Ty.prototype.resume_session_recording=Ty.prototype.resume_session_recording,Ty.prototype.get_session_recording_properties=Ty.prototype.get_session_recording_properties,Ty.prototype.get_session_replay_url=Ty.prototype.get_session_replay_url,Ty.prototype.get_tab_id=Ty.prototype.get_tab_id,Ty.prototype.DEFAULT_API_ROUTES=Ay,Ty.prototype.__get_recorder=Ty.prototype.__get_recorder,Ty.prototype.__get_recording_init_promise=Ty.prototype.__get_recording_init_promise,by.prototype.properties=by.prototype.properties,by.prototype.update_search_keyword=by.prototype.update_search_keyword,by.prototype.update_referrer_info=by.prototype.update_referrer_info,by.prototype.get_cross_subdomain=by.prototype.get_cross_subdomain,by.prototype.clear=by.prototype.clear;var Dy={},Fy=function(){wy.init=function(e,t,n){if(n)return wy[n]||(wy[n]=Dy[n]=Py(e,t,n),wy[n]._loaded()),wy[n];var i=wy;Dy[Sy]?i=Dy[Sy]:e&&((i=Py(e,t,Sy))._loaded(),Dy[Sy]=i),wy=i,1===cy&&(r[Sy]=wy),qd.each(Dy,(function(e,t){t!==Sy&&(wy[t]=e)})),wy._=qd}};var By=(ky=function(e,t){t()},cy=0,wy=new Ty,Fy(),wy.init(),function(){function e(){e.done||(e.done=!0,Ry=!0,Oy=!1,qd.each(Dy,(function(e){e._dom_loaded()})))}if(Td.addEventListener)"complete"===Td.readyState?e():Td.addEventListener("DOMContentLoaded",e,!1);else if(Td.attachEvent){Td.attachEvent("onreadystatechange",e);var t=!1;try{t=null===r.frameElement}catch(e){}Td.documentElement.doScroll&&t&&function t(){try{Td.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}qd.register_event(r,"load",e,!0)}(),wy);const Uy="rid",jy="rozmovaAnalyticsParams",zy=["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"],qy=["en","uk","pl","es","ru"],Vy=["view_item_list","select_item","view_item","begin_checkout","add_payment_info"],Wy=["rozmova.me","clearly.help","uptech.team"],Hy=e=>new URLSearchParams(window.location.search).get(e);function $y(){const e=navigator.userAgent;return e.indexOf("Edg")>-1?"Microsoft Edge":e.indexOf("Chrome")>-1?"Chrome":e.indexOf("Firefox")>-1?"Firefox":e.indexOf("Safari")>-1?"Safari":e.indexOf("Opera")>-1?"Opera":e.indexOf("Trident")>-1||e.indexOf("MSIE")>-1?"Internet Explorer":"Unknown"}function Gy(){const e=navigator.userAgent;return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)?"Mobile":"Desktop"}function Yy(){const e=navigator.userAgent;return e.includes("Win")?"Windows":e.includes("Mac")?"macOS":e.includes("X11")||e.includes("Linux")?"Linux":e.includes("Android")?"Android":e.includes("like Mac")?"iOS":"Unknown OS"}const Zy=()=>{const e=window.location.hostname.split("."),t=e.length;return 1===e.length?e[0]:e.slice(t-2,t).join(".")},Jy=["accounts.google.com","appleid.apple.com","checkout.stripe.com"],Xy=()=>{const e=document.referrer;if(e){const t=new URL(e);if([...Jy,Zy()].some((e=>t.hostname.includes(e))))return null}return e};function Ky(){const e=Xy();if(!e)return null;const t={"google.com":"q","bing.com":"q","yahoo.com":"p","duckduckgo.com":"q","ask.com":"q","baidu.com":"wd","yandex.com":"text"},r=new URL(e);for(const[e,n]of Object.entries(t))if(r.hostname.includes(e)){const e=r.searchParams.get(n);return e?decodeURIComponent(e):null}return null}const Qy=()=>{const e=n.get("_ga");if(!e)return null;const t=e.split(".");return t.length<4?null:`${t[2]}.${t[3]}`};function e_(){const e=n.get("_ga_GYQLL028VQ");if(!e)return null;const t=e.split("."),r=t[0];if("GS1"===r&&t.length>=3)return t[2];if("GS2"===r){const t=e.match(/s(\d+)/);if(t)return t[1]}return null}const t_=e=>{if(!e)return;const t="GA1.1."+e,r=new Date(Date.now()+63072e6).toUTCString();document.cookie=`_ga=${t}; expires=${r}; path=/; Secure; SameSite=Lax`},r_=e=>{if(!e)return"external";return Wy.some((t=>e.includes(t)))?"internal":"external"};function n_(e){const t=Number(e);return isNaN(t)?null:t}const i_=e=>{const t=n.get(e),r=e_(),i=t!==r;if(i){const t=Zy();r&&n.set(e,r,{domain:t})}return i};const o_=e=>{const t=Zy();n.set(Uy,e,{domain:t}),localStorage.setItem(Uy,e)},s_=()=>{const e=((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),""))();return o_(e),e},a_=()=>{const e=Hy(Uy);return e&&o_(e),e||localStorage.getItem(Uy)||n.get(Uy)||s_()},c_=(e,t,r)=>{const n=t.get("gclid"),i=t.get("wbraid"),o=t.get("gbraid"),s=t.get("utm_source"),a=t.get("utm_medium");return"utm_source"===e?n||i||o?"google":s||(a?"(none)":n||i||o?"google":r?r.includes("google.")?"google":r.includes("bing.")?"bing":r.includes("yahoo.")?"yahoo":r.includes("baidu.")?"baidu":r.includes("duckduckgo.")?"duckduckgo":r.includes("googlesyndication.com")?"google":r.includes("facebook.")?"facebook":r.includes("instagram.")?"instagram":/linkedin\.|lnkd\./.test(r)?"linkedin":r:null):"utm_medium"===e?n||i||o?"cpc":a||(s?"(none)":r?/google\.|bing\.|duckduckgo\.|yahoo\.|baidu\./.test(r)?"organic":r.includes("googlesyndication.com")?"cpc":(r.includes("facebook.")||r.includes("instagram.")||/linkedin\.|lnkd\./.test(r),"referral"):null):t.get(e)},u_="my_profile_id",l_=()=>n.get(u_),h_="my_profile_email",p_=()=>n.get(h_),f_="opt-in",d_="opt-out",g_="show--consent",m_="show--preferences",v_="disable--interaction",y_="data-category",__="div",b_="button",w_="aria-hidden",k_="btn-group",S_="click",C_="data-role",x_="consentModal",I_="preferencesModal";const O_=new class{constructor(){this.t={mode:f_,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",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:[],J:!1,U:!1,$:!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"}}},E_=(e,t)=>e.indexOf(t),A_=(e,t)=>-1!==E_(e,t),M_=e=>Array.isArray(e),R_=e=>"string"==typeof e,T_=e=>!!e&&"object"==typeof e&&!M_(e),P_=e=>"function"==typeof e,N_=e=>Object.keys(e),L_=e=>Array.from(new Set(e)),D_=()=>document.activeElement,F_=e=>e.preventDefault(),B_=(e,t)=>e.querySelectorAll(t),U_=e=>{const t=document.createElement(e);return e===b_&&(t.type=e),t},j_=(e,t,r)=>e.setAttribute(t,r),z_=(e,t,r)=>{e.removeAttribute(r?"data-"+t:t)},q_=(e,t,r)=>e.getAttribute(r?"data-"+t:t),V_=(e,t)=>e.appendChild(t),W_=(e,t)=>e.classList.add(t),H_=(e,t)=>W_(e,"cm__"+t),$_=(e,t)=>W_(e,"pm__"+t),G_=(e,t)=>e.classList.remove(t),Y_=e=>{if("object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());let t=Array.isArray(e)?[]:{};for(let r in e){let n=e[r];t[r]=Y_(n)}return t},Z_=(e,t)=>dispatchEvent(new CustomEvent(e,{detail:t})),J_=(e,t,r,n)=>{e.addEventListener(t,r),n&&O_.o.m.push({pe:e,me:t,ge:r})},X_=(e,t)=>{const r=e||[],n=t||[];return r.filter((e=>!A_(n,e))).concat(n.filter((e=>!A_(r,e))))},K_=e=>{O_.o.R=L_(e),O_.o.F=(()=>{let e="custom";const{R:t,O:r,B:n}=O_.o,i=t.length;return i===r.length?e="all":i===n.length&&(e="necessary"),e})()},Q_=(e,t,r,n)=>{const i="accept-",{show:o,showPreferences:s,hide:a,hidePreferences:c,acceptCategory:u}=t,l=e||document,h=e=>B_(l,`[data-cc="${e}"]`),p=(e,t)=>{F_(e),u(t),c(),a()},f=h("show-preferencesModal"),d=h("show-consentModal"),g=h(i+"all"),m=h(i+"necessary"),v=h(i+"custom"),y=O_.t.lazyHtmlGeneration;for(const e of f)j_(e,"aria-haspopup","dialog"),J_(e,S_,(e=>{F_(e),s()})),y&&(J_(e,"mouseenter",(e=>{F_(e),O_.o.N||r(t,n)}),!0),J_(e,"focus",(()=>{O_.o.N||r(t,n)})));for(let e of d)j_(e,"aria-haspopup","dialog"),J_(e,S_,(e=>{F_(e),o(!0)}),!0);for(let e of g)J_(e,S_,(e=>{p(e,"all")}),!0);for(let e of v)J_(e,S_,(e=>{p(e)}),!0);for(let e of m)J_(e,S_,(e=>{p(e,[])}),!0)},eb=(e,t)=>{e&&(t&&(e.tabIndex=-1),e.focus(),t&&e.removeAttribute("tabindex"))},tb=(e,t)=>{const r=n=>{n.target.removeEventListener("transitionend",r),"opacity"===n.propertyName&&"1"===getComputedStyle(e).opacity&&eb((e=>1===e?O_.ne.be:O_.ne.ve)(t))};J_(e,"transitionend",r)};let rb;const nb=e=>{clearTimeout(rb),e?W_(O_.ne.ye,v_):rb=setTimeout((()=>{G_(O_.ne.ye,v_)}),500)},ib=["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 "],ob=(e=0,t=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${t}"><path d="${ib[e]}"/></svg>`,sb=e=>{const t=O_.ne,r=O_.o;(e=>{const n=e===t.he,i=r.i.disablePageInteraction?t.ye:n?t.Ce:t.ye;J_(i,"keydown",(t=>{if("Tab"!==t.key||!(n?r.k&&!r.A:r.A))return;const i=D_(),o=n?r.q:r.K;0!==o.length&&(t.shiftKey?i!==o[0]&&e.contains(i)||(F_(t),eb(o[1])):i!==o[1]&&e.contains(i)||(F_(t),eb(o[0])))}),!0)})(e)},ab=["[href]",b_,"input","details","[tabindex]"].map((e=>e+':not([tabindex="-1"])')).join(","),cb=e=>{const{o:t,ne:r}=O_,n=(e,t)=>{const r=B_(e,ab);t[0]=r[0],t[1]=r[r.length-1]};1===e&&t.T&&n(r.he,t.q),2===e&&t.N&&n(r.we,t.K)},ub=(e,t,r)=>{const{de:n,le:i,ie:o,_e:s,ue:a,fe:c}=O_.ce,u=O_.re;if(t){const n={modalName:t};return e===u.fe?P_(c)&&c(n):e===u._e?P_(s)&&s(n):(n.modal=r,P_(a)&&a(n)),Z_(e,n)}const l={cookie:O_.o.p};e===u.ie?P_(o)&&o(Y_(l)):e===u.le?P_(i)&&i(Y_(l)):(l.changedCategories=O_.o.L,l.changedServices=O_.o.ee,P_(n)&&n(Y_(l))),Z_(e,Y_(l))},lb=(e,t)=>{try{return e()}catch(e){return!t&&console.warn("CookieConsent:",e),!1}},hb=e=>{const{Y:t,ee:r,O:n,X:i,oe:o,p:s,L:a}=O_.o;for(const e of n){const n=r[e]||t[e]||[];for(const r of n){const n=i[e][r];if(!n)continue;const{onAccept:o,onReject:s}=n;!n.Se&&A_(t[e],r)?(n.Se=!0,P_(o)&&o()):n.Se&&!A_(t[e],r)&&(n.Se=!1,P_(s)&&s())}}if(!O_.t.manageScriptTags)return;const c=o,u=e||s.categories||[],l=(e,n)=>{if(n>=e.length)return;const i=o[n];if(i.xe)return l(e,n+1);const s=i.Me,c=i.De,h=i.Te,p=A_(u,c),f=!!h&&A_(t[c],h);if(!h&&!i.ke&&p||!h&&i.ke&&!p&&A_(a,c)||h&&!i.ke&&f||h&&i.ke&&!f&&A_(r[c]||[],h)){i.xe=!0;const t=q_(s,"type",!0);z_(s,"type",!!t),z_(s,y_);let r=q_(s,"src",!0);r&&z_(s,"src",!0);const o=U_("script");o.textContent=s.innerHTML;for(const{nodeName:e}of s.attributes)j_(o,e,s[e]||q_(s,e));t&&(o.type=t),r?o.src=r:r=s.src;const a=!!r&&(!t||["text/javascript","module"].includes(t));if(a&&(o.onload=o.onerror=()=>{l(e,++n)}),s.replaceWith(o),a)return}l(e,++n)};l(c,0)},pb="bottom",fb="left",db="center",gb="right",mb="inline",vb="wide",yb="pm--",_b=["middle","top",pb],bb=[fb,db,gb],wb={box:{Ee:[vb,mb],Ae:_b,Ne:bb,He:pb,Ve:gb},cloud:{Ee:[mb],Ae:_b,Ne:bb,He:pb,Ve:db},bar:{Ee:[mb],Ae:_b.slice(1),Ne:[],He:pb,Ve:""}},kb={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[vb],Ae:[],Ne:[fb,gb],He:"",Ve:fb}},Sb=e=>{const t=O_.o.i.guiOptions,r=t&&t.consentModal,n=t&&t.preferencesModal;0===e&&Cb(O_.ne.he,wb,r,"cm--","box","cm"),1===e&&Cb(O_.ne.we,kb,n,yb,"box","pm")},Cb=(e,t,r,n,i,o)=>{e.className=o;const s=r&&r.layout,a=r&&r.position,c=r&&r.flipButtons,u=!r||!1!==r.equalWeightButtons,l=s&&s.split(" ")||[],h=l[0],p=l[1],f=h in t?h:i,d=t[f],g=A_(d.Ee,p)&&p,m=a&&a.split(" ")||[],v=m[0],y=n===yb?m[0]:m[1],_=A_(d.Ae,v)?v:d.He,b=A_(d.Ne,y)?y:d.Ve,w=t=>{t&&W_(e,n+t)};w(f),w(g),w(_),w(b),c&&w("flip");const k=o+"__btn--secondary";if("cm"===o){const{Ie:e,Le:t}=O_.ne;e&&(u?G_(e,k):W_(e,k)),t&&(u?G_(t,k):W_(t,k))}else{const{je:e}=O_.ne;e&&(u?G_(e,k):W_(e,k))}},xb=(e,t)=>{const r=O_.o,n=O_.ne,{hide:i,hidePreferences:o,acceptCategory:s}=e,a=e=>{s(e),o(),i()},c=r.u&&r.u.preferencesModal;if(!c)return;const u=c.title,l=c.closeIconLabel,h=c.acceptAllBtn,p=c.acceptNecessaryBtn,f=c.savePreferencesBtn,d=c.sections||[],g=h||p||f;if(n.Fe)n.Pe=U_(__),$_(n.Pe,"body");else{n.Fe=U_(__),W_(n.Fe,"pm-wrapper");const e=U_("div");W_(e,"pm-overlay"),V_(n.Fe,e),J_(e,S_,o),n.we=U_(__),W_(n.we,"pm"),j_(n.we,"role","dialog"),j_(n.we,w_,!0),j_(n.we,"aria-modal",!0),j_(n.we,"aria-labelledby","pm__title"),J_(n.ye,"keydown",(e=>{27===e.keyCode&&o()}),!0),n.Oe=U_(__),$_(n.Oe,"header"),n.Re=U_("h2"),$_(n.Re,"title"),n.Re.id="pm__title",n.Be=U_(b_),$_(n.Be,"close-btn"),j_(n.Be,"aria-label",c.closeIconLabel||""),J_(n.Be,S_,o),n.Ge=U_("span"),n.Ge.innerHTML=ob(),V_(n.Be,n.Ge),n.Je=U_(__),$_(n.Je,"body"),n.Ue=U_(__),$_(n.Ue,"footer");var m=U_(__);W_(m,"btns");var v=U_(__),y=U_(__);$_(v,k_),$_(y,k_),V_(n.Ue,v),V_(n.Ue,y),V_(n.Oe,n.Re),V_(n.Oe,n.Be),n.ve=U_(__),j_(n.ve,"tabIndex",-1),V_(n.we,n.ve),V_(n.we,n.Oe),V_(n.we,n.Je),g&&V_(n.we,n.Ue),V_(n.Fe,n.we)}let _;u&&(n.Re.innerHTML=u,l&&j_(n.Be,"aria-label",l)),d.forEach(((e,t)=>{const i=e.title,o=e.description,s=e.linkedCategory,a=s&&r.P[s],u=e.cookieTable,l=u&&u.body,h=u&&u.caption,p=l&&l.length>0,f=!!a,d=f&&r.X[s],g=T_(d)&&N_(d)||[],m=f&&(!!o||!!p||N_(d).length>0);var v=U_(__);if($_(v,"section"),m||o){var y=U_(__);$_(y,"section-desc-wrapper")}let b=g.length;if(m&&b>0){const e=U_(__);$_(e,"section-services");for(const t of g){const r=d[t],n=r&&r.label||t,i=U_(__),o=U_(__),c=U_(__),u=U_(__);$_(i,"service"),$_(u,"service-title"),$_(o,"service-header"),$_(c,"service-icon");const l=Ib(n,t,a,!0,s);u.innerHTML=n,V_(o,c),V_(o,u),V_(i,o),V_(i,l),V_(e,i)}V_(y,e)}if(i){var w=U_(__),k=U_(f?b_:__);if($_(w,"section-title-wrapper"),$_(k,"section-title"),k.innerHTML=i,V_(w,k),f){const e=U_("span");e.innerHTML=ob(2,3.5),$_(e,"section-arrow"),V_(w,e),v.className+="--toggle";const t=Ib(i,s,a);let r=c.serviceCounterLabel;if(b>0&&R_(r)){let e=U_("span");$_(e,"badge"),$_(e,"service-counter"),j_(e,w_,!0),j_(e,"data-servicecounter",b),r&&(r=r.split("|"),r=r.length>1&&b>1?r[1]:r[0],j_(e,"data-counterlabel",r)),e.innerHTML=b+(r?" "+r:""),V_(k,e)}if(m){$_(v,"section--expandable");var S=s+"-desc";j_(k,"aria-expanded",!1),j_(k,"aria-controls",S)}V_(w,t)}else j_(k,"role","heading"),j_(k,"aria-level","3");V_(v,w)}if(o){var C=U_("p");$_(C,"section-desc"),C.innerHTML=o,V_(y,C)}if(m&&(j_(y,w_,"true"),y.id=S,((e,t,r)=>{J_(k,S_,(()=>{t.classList.contains("is-expanded")?(G_(t,"is-expanded"),j_(r,"aria-expanded","false"),j_(e,w_,"true")):(W_(t,"is-expanded"),j_(r,"aria-expanded","true"),j_(e,w_,"false"))}))})(y,v,k),p)){const e=U_("table"),r=U_("thead"),i=U_("tbody");if(h){const t=U_("caption");$_(t,"table-caption"),t.innerHTML=h,e.appendChild(t)}$_(e,"section-table"),$_(r,"table-head"),$_(i,"table-body");const o=u.headers,s=N_(o),a=n.$e.createDocumentFragment(),c=U_("tr");for(const e of s){const r=o[e],n=U_("th");n.id="cc__row-"+r+t,j_(n,"scope","col"),$_(n,"table-th"),n.innerHTML=r,V_(a,n)}V_(c,a),V_(r,c);const p=n.$e.createDocumentFragment();for(const e of l){const r=U_("tr");$_(r,"table-tr");for(const n of s){const i=o[n],s=e[n],a=U_("td"),c=U_(__);$_(a,"table-td"),j_(a,"data-column",i),j_(a,"headers","cc__row-"+i+t),c.insertAdjacentHTML("beforeend",s),V_(a,c),V_(r,a)}V_(p,r)}V_(i,p),V_(e,r),V_(e,i),V_(y,e)}(m||o)&&V_(v,y);const x=n.Pe||n.Je;f?(_||(_=U_(__),$_(_,"section-toggles")),_.appendChild(v)):_=null,V_(x,_||v)})),h&&(n.ze||(n.ze=U_(b_),$_(n.ze,"btn"),j_(n.ze,C_,"all"),V_(v,n.ze),J_(n.ze,S_,(()=>a("all")))),n.ze.innerHTML=h),p&&(n.je||(n.je=U_(b_),$_(n.je,"btn"),j_(n.je,C_,"necessary"),V_(v,n.je),J_(n.je,S_,(()=>a([])))),n.je.innerHTML=p),f&&(n.qe||(n.qe=U_(b_),$_(n.qe,"btn"),$_(n.qe,"btn--secondary"),j_(n.qe,C_,"save"),V_(y,n.qe),J_(n.qe,S_,(()=>a()))),n.qe.innerHTML=f),n.Pe&&(n.we.replaceChild(n.Pe,n.Je),n.Je=n.Pe),Sb(1),r.N||(r.N=!0,ub(O_.re.ue,I_,n.we),t(e),V_(n.Ce,n.Fe),sb(n.we),setTimeout((()=>W_(n.Fe,"cc--anim")),100)),cb(2)};function Ib(e,t,r,n,i){const o=O_.o,s=O_.ne,a=U_("label"),c=U_("input"),u=U_("span"),l=U_("span"),h=U_("span"),p=U_("span"),f=U_("span");if(p.innerHTML=ob(1,3),f.innerHTML=ob(0,3),c.type="checkbox",W_(a,"section__toggle-wrapper"),W_(c,"section__toggle"),W_(p,"toggle__icon-on"),W_(f,"toggle__icon-off"),W_(u,"toggle__icon"),W_(l,"toggle__icon-circle"),W_(h,"toggle__label"),j_(u,w_,"true"),n?(W_(a,"toggle-service"),j_(c,y_,i),s.se[i][t]=c):s.ae[t]=c,n?(e=>{J_(c,"change",(()=>{const t=s.se[e],r=s.ae[e];o.Z[e]=[];for(let r in t){const n=t[r];n.checked&&o.Z[e].push(n.value)}r.checked=o.Z[e].length>0}))})(i):(e=>{J_(c,S_,(()=>{const t=s.se[e],r=c.checked;o.Z[e]=[];for(let n in t)t[n].checked=r,r&&o.Z[e].push(n)}))})(t),c.value=t,h.textContent=e.replace(/<.*>.*<\/.*>/gm,""),V_(l,f),V_(l,p),V_(u,l),o.D)(r.readOnly||r.enabled)&&(c.checked=!0);else if(n){const e=o.Y[i];c.checked=r.readOnly||A_(e,t)}else A_(o.R,t)&&(c.checked=!0);return r.readOnly&&(c.disabled=!0),V_(a,c),V_(a,u),V_(a,h),a}const Ob=()=>{const e=U_("span");return O_.ne.Ke||(O_.ne.Ke=e),e},Eb=(e,t)=>{const r=O_.o,n=O_.ne,{hide:i,showPreferences:o,acceptCategory:s}=e,a=r.u&&r.u.consentModal;if(!a)return;const c=a.acceptAllBtn,u=a.acceptNecessaryBtn,l=a.showPreferencesBtn,h=a.closeIconLabel,p=a.footer,f=a.label,d=a.title,g=e=>{i(),s(e)};if(!n.Qe){n.Qe=U_(__),n.he=U_(__),n.We=U_(__),n.Xe=U_(__),n.Ye=U_(__),W_(n.Qe,"cm-wrapper"),W_(n.he,"cm"),H_(n.We,"body"),H_(n.Xe,"texts"),H_(n.Ye,"btns"),j_(n.he,"role","dialog"),j_(n.he,"aria-modal","true"),j_(n.he,w_,"false"),j_(n.he,"aria-describedby","cm__desc"),f?j_(n.he,"aria-label",f):d&&j_(n.he,"aria-labelledby","cm__title");const e="box",t=r.i.guiOptions,i=t&&t.consentModal,o=(i&&i.layout||e).split(" ")[0]===e;d&&h&&o&&(n.Le||(n.Le=U_(b_),n.Le.innerHTML=ob(),H_(n.Le,"btn"),H_(n.Le,"btn--close"),J_(n.Le,S_,(()=>{g([])})),V_(n.We,n.Le)),j_(n.Le,"aria-label",h)),V_(n.We,n.Xe),(c||u||l)&&V_(n.We,n.Ye),n.be=U_(__),j_(n.be,"tabIndex",-1),V_(n.he,n.be),V_(n.he,n.We),V_(n.Qe,n.he)}d&&(n.Ze||(n.Ze=U_("h2"),n.Ze.className=n.Ze.id="cm__title",V_(n.Xe,n.Ze)),n.Ze.innerHTML=d);let m=a.description;if(m&&(r.V&&(m=m.replace("{{revisionMessage}}",r.I?"":a.revisionMessage||"")),n.et||(n.et=U_("p"),n.et.className=n.et.id="cm__desc",V_(n.Xe,n.et)),n.et.innerHTML=m),c&&(n.tt||(n.tt=U_(b_),V_(n.tt,Ob()),H_(n.tt,"btn"),j_(n.tt,C_,"all"),J_(n.tt,S_,(()=>{g("all")}))),n.tt.firstElementChild.innerHTML=c),u&&(n.Ie||(n.Ie=U_(b_),V_(n.Ie,Ob()),H_(n.Ie,"btn"),j_(n.Ie,C_,"necessary"),J_(n.Ie,S_,(()=>{g([])}))),n.Ie.firstElementChild.innerHTML=u),l&&(n.ot||(n.ot=U_(b_),V_(n.ot,Ob()),H_(n.ot,"btn"),H_(n.ot,"btn--secondary"),j_(n.ot,C_,"show"),J_(n.ot,"mouseenter",(()=>{r.N||xb(e,t)})),J_(n.ot,S_,o)),n.ot.firstElementChild.innerHTML=l),n.nt||(n.nt=U_(__),H_(n.nt,k_),c&&V_(n.nt,n.tt),u&&V_(n.nt,n.Ie),(c||u)&&V_(n.We,n.nt),V_(n.Ye,n.nt)),n.ot&&!n.st&&(n.st=U_(__),n.Ie&&n.tt?(H_(n.st,k_),V_(n.st,n.ot),V_(n.Ye,n.st)):(V_(n.nt,n.ot),H_(n.nt,k_+"--uneven"))),p){if(!n.ct){let e=U_(__),t=U_(__);n.ct=U_(__),H_(e,"footer"),H_(t,"links"),H_(n.ct,"link-group"),V_(t,n.ct),V_(e,t),V_(n.he,e)}n.ct.innerHTML=p}Sb(0),r.T||(r.T=!0,ub(O_.re.ue,x_,n.he),t(e),V_(n.Ce,n.Qe),sb(n.he),setTimeout((()=>W_(n.Qe,"cc--anim")),100)),cb(1),Q_(n.We,e,xb,t)},Ab=e=>{if(!R_(e))return null;if(e in O_.o._)return e;let t=e.slice(0,2);return t in O_.o._?t:null},Mb=()=>O_.o.l||O_.o.i.language.default,Rb=e=>{e&&(O_.o.l=e)},Tb=()=>{const e=O_.ne;if(e.Ce)return;e.Ce=U_(__),e.Ce.id="cc-main",e.Ce.setAttribute("data-nosnippet",""),(()=>{let e=O_.o.i.language.rtl,t=O_.ne.Ce;e&&t&&(M_(e)||(e=[e]),A_(e,O_.o.l)?W_(t,"cc--rtl"):G_(t,"cc--rtl"))})();let t=O_.o.i.root;t&&R_(t)&&(t=document.querySelector(t)),(t||e.$e.body).appendChild(e.Ce)},Pb=(e,t)=>{if(t instanceof RegExp)return e.filter((e=>t.test(e)));{const r=E_(e,t);return r>-1?[e[r]]:[]}},Nb=e=>{const{hostname:t,protocol:r}=location,{name:n,path:i,domain:o,sameSite:s,useLocalStorage:a}=O_.t.cookie,c=864e5*(()=>{const e=O_.t.cookie.expiresAfterDays;return P_(e)?e(O_.o.F):e})(),u=new Date;u.setTime(u.getTime()+c),O_.o.p.expirationTime=u.getTime();const l=JSON.stringify(O_.o.p);let h=n+"="+encodeURIComponent(l)+(0!==c?"; expires="+u.toUTCString():"")+"; Path="+i+"; SameSite="+s;A_(t,".")&&(h+="; Domain="+o),"https:"===r&&(h+="; Secure"),a?((e,t)=>{lb((()=>localStorage.setItem(e,t)))})(n,l):document.cookie=h,O_.o.p},Lb=(e,t,r)=>{if(0===e.length)return;const n=r||O_.t.cookie.domain,i=t||O_.t.cookie.path,o="www."===n.slice(0,4),s=o&&n.substring(4),a=(e,t)=>{document.cookie=e+"=; path="+i+(t?"; domain=."+t:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const t of e)a(t),a(t,n),o&&a(t,s)},Db=(e,t)=>{const r=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return r?r.pop():""},Fb=e=>{const t=O_.o.D?[]:O_.o.R;return A_(t,e)},Bb=(e,t)=>{const r=O_.o.D?[]:O_.o.Y[t]||[];return A_(r,e)},Ub=e=>{const{ne:t,o:r}=O_;if(!r.k){if(!r.T){if(!e)return;Eb(jb,Tb)}r.k=!0,r.U=D_(),r.v&&nb(!0),tb(t.he,1),W_(t.ye,g_),j_(t.he,w_,"false"),setTimeout((()=>{eb(O_.ne.be)}),100),ub(O_.re.fe,x_)}};var jb={show:Ub,hide:()=>{const{ne:e,o:t,re:r}=O_;t.k&&(t.k=!1,t.v&&nb(),eb(e.Ke,!0),G_(e.ye,g_),j_(e.he,w_,"true"),eb(t.U),t.U=null,ub(r._e,x_))},showPreferences:()=>{const e=O_.o;e.A||(e.N||xb(jb,Tb),e.A=!0,e.k?e.$=D_():e.U=D_(),tb(O_.ne.we,2),W_(O_.ne.ye,m_),j_(O_.ne.we,w_,"false"),setTimeout((()=>{eb(O_.ne.ve)}),100),ub(O_.re.fe,I_))},hidePreferences:()=>{const e=O_.o;e.A&&(e.A=!1,(()=>{const e=zb(),t=O_.o.P,r=O_.ne.ae,n=O_.ne.se,i=e=>A_(O_.o.G,e);for(const o in r){const s=!!t[o].readOnly;r[o].checked=s||(e?Fb(o):i(o));for(const t in n[o])n[o][t].checked=s||(e?Bb(t,o):i(o))}})(),eb(O_.ne.Ge,!0),G_(O_.ne.ye,m_),j_(O_.ne.we,w_,"true"),e.k?(eb(e.$),e.$=null):(eb(e.U),e.U=null),ub(O_.re._e,I_))},acceptCategory:(e,t=[])=>{((e,t)=>{const{O:r,R:n,B:i,N:o,Z:s,G:a,X:c}=O_.o;let u=[];if(e){M_(e)?u.push(...e):R_(e)&&(u="all"===e?r:[e]);for(const e of r)s[e]=A_(u,e)?N_(c[e]):[]}else u=[...n,...a],o&&(u=(()=>{const e=O_.ne.ae;if(!e)return[];let t=[];for(let r in e)e[r].checked&&t.push(r);return t})());u=u.filter((e=>!A_(r,e)||!A_(t,e))),u.push(...i),K_(u)})(e,t),(()=>{const e=O_.o,{Z:t,B:r,Y:n,X:i,O:o}=e,s=o;e.te=Y_(n);for(const o of s){const s=i[o],a=N_(s),c=t[o]&&t[o].length>0,u=A_(r,o);if(0!==a.length){if(n[o]=[],u)n[o].push(...a);else if(c){const e=t[o];n[o].push(...e)}else n[o]=e.Z[o];n[o]=L_(n[o])}}})(),(()=>{const e=O_.o;e.L=O_.t.mode===d_&&e.D?X_(e.G,e.R):X_(e.R,e.p.categories);let t=e.L.length>0,r=!1;for(const t of e.O)e.ee[t]=X_(e.Y[t],e.te[t]),e.ee[t].length>0&&(r=!0);const n=O_.ne.ae;for(const t in n)n[t].checked=A_(e.R,t);for(const t of e.O){const r=O_.ne.se[t],n=e.Y[t];for(const e in r)r[e].checked=A_(n,e)}e.C||(e.C=new Date),e.M||(e.M=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)))),e.p={categories:Y_(e.R),revision:O_.t.revision,data:e.h,consentTimestamp:e.C.toISOString(),consentId:e.M,services:Y_(e.Y)};let i=!1;const o=t||r;(e.D||o)&&(e.D&&(e.D=!1,i=!0),e.S=e.S?new Date:e.C,e.p.lastConsentTimestamp=e.S.toISOString(),Nb(),O_.t.autoClearCookies&&(i||o)&&(e=>{const t=O_.o,r=(()=>{const e=document.cookie.split(/;\s*/),t=[];for(const r of e){let e=r.split("=")[0];t.push(e)}return t})(),n=(e=>{const t=O_.o;return(e?t.O:t.L).filter((e=>{const r=t.P[e];return!!r&&!r.readOnly&&!!r.autoClear}))})(e);for(const e in t.ee)for(const n of t.ee[e]){const i=t.X[e][n].cookies;if(!A_(t.Y[e],n)&&i)for(const e of i){const t=Pb(r,e.name);Lb(t,e.path,e.domain)}}for(const i of n){const n=t.P[i].autoClear,o=n&&n.cookies||[],s=A_(t.L,i),a=!A_(t.R,i),c=s&&a;if(e?a:c){n.reloadPage&&c&&(t.j=!0);for(const e of o){const t=Pb(r,e.name);Lb(t,e.path,e.domain)}}}})(i),hb()),i&&(ub(O_.re.ie),ub(O_.re.le),O_.t.mode===f_)||(o&&ub(O_.re.de),e.j&&(e.j=!1,location.reload()))})()}};const zb=()=>!O_.o.D,qb=async e=>{const{o:t,t:r,re:n}=O_,i=window;if(!i._ccRun){if(i._ccRun=!0,(e=>{const{ne:t,t:r,o:n}=O_,i=r,o=n,{cookie:s}=i,a=O_.ce,c=e.cookie,u=e.categories,l=N_(u)||[],h=navigator,p=document;t.$e=p,t.ye=p.documentElement,s.domain=location.hostname,o.i=e,o.P=u,o.O=l,o._=e.language.translations,o.v=!!e.disablePageInteraction,a.ie=e.onFirstConsent,a.le=e.onConsent,a.de=e.onChange,a._e=e.onModalHide,a.fe=e.onModalShow,a.ue=e.onModalReady;const{mode:f,autoShow:d,lazyHtmlGeneration:g,autoClearCookies:m,revision:v,manageScriptTags:y,hideFromBots:_}=e;f===d_&&(i.mode=f),"boolean"==typeof m&&(i.autoClearCookies=m),"boolean"==typeof y&&(i.manageScriptTags=y),"number"==typeof v&&v>=0&&(i.revision=v,o.V=!0),"boolean"==typeof d&&(i.autoShow=d),"boolean"==typeof g&&(i.lazyHtmlGeneration=g),!1===_&&(i.hideFromBots=!1),!0===i.hideFromBots&&h&&(o.J=h.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(h.userAgent)||h.webdriver),T_(c)&&(i.cookie={...s,...c}),i.autoClearCookies,o.V,i.manageScriptTags,(e=>{const{P:t,X:r,Y:n,Z:i,B:o}=O_.o;for(let s of e){const e=t[s],a=e.services||{},c=T_(a)&&N_(a)||[];r[s]={},n[s]=[],i[s]=[],e.readOnly&&(o.push(s),n[s]=c),O_.ne.se[s]={};for(let e of c){const t=a[e];t.Se=!1,r[s][e]=t}}})(l),(()=>{if(!O_.t.manageScriptTags)return;const e=O_.o,t=B_(document,"script["+y_+"]");for(const r of t){let t=q_(r,y_),n=r.dataset.service||"",i=!1;if(t&&"!"===t.charAt(0)&&(t=t.slice(1),i=!0),"!"===n.charAt(0)&&(n=n.slice(1),i=!0),A_(e.O,t)&&(e.oe.push({Me:r,xe:!1,ke:i,De:t,Te:n}),n)){const r=e.X[t];r[n]||(r[n]={Se:!1})}}})(),Rb((()=>{const e=O_.o.i.language.autoDetect;if(e){const t={browser:navigator.language,document:document.documentElement.lang},r=Ab(t[e]);if(r)return r}return Mb()})())})(e),t.J)return;(()=>{const e=O_.o,t=O_.t,r=(()=>{const e=O_.t.cookie.name,t=O_.t.cookie.useLocalStorage;return((e,t)=>{let r;return r=lb((()=>JSON.parse(t?e:decodeURIComponent(e))),!0)||{},r})(t?(r=e,lb((()=>localStorage.getItem(r)))||""):Db(e),t);var r})(),{categories:n,services:i,consentId:o,consentTimestamp:s,lastConsentTimestamp:a,data:c,revision:u}=r,l=M_(n);e.p=r,e.M=o;const h=!!o&&R_(o);e.C=s,e.C&&(e.C=new Date(s)),e.S=a,e.S&&(e.S=new Date(a)),e.h=void 0!==c?c:null,e.V&&h&&u!==t.revision&&(e.I=!1),e.D=!(h&&e.I&&e.C&&e.S&&l),t.cookie.useLocalStorage&&!e.D&&(e.D=(new Date).getTime()>(r.expirationTime||0),e.D&&(e=>{lb((()=>localStorage.removeItem(e)))})(t.cookie.name)),e.D,(()=>{const e=O_.o;for(const t of e.O){const r=e.P[t];if(r.readOnly||r.enabled){e.G.push(t);const r=e.X[t]||{};for(let n in r)e.Z[t].push(n),e.i.mode===d_&&e.Y[t].push(n)}}})(),e.D?t.mode===d_&&(e.R=[...e.G]):(e.Z={...e.Y},e.Y={...e.Y,...i},K_([...e.B,...n]))})();const s=zb();if(!await(async e=>{const t=O_.o;let r=Ab(e)?e:Mb(),n=t._[r];return R_(n)?n=await(async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error(e),!1}})(n):P_(n)&&(n=await n()),!!n&&(t.u=n,Rb(r),!0)})())return!1;if(Q_(null,o=jb,xb,Tb),O_.o.D&&Eb(o,Tb),O_.t.lazyHtmlGeneration||xb(o,Tb),r.autoShow&&!s&&Ub(!0),s)return hb(),ub(n.le);r.mode===d_&&hb(t.G)}var o},Vb=e=>({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:${e?"hello@clearly.help":"hello@rozmova.me"}">contact us</a>`}]}},pl:{consentModal:{title:"Używamy plików cookie",description:"Nasza strona internetowa używa niezbędnych plików cookie do jej prawidłowego działania oraz plików śledzących, aby zrozumieć, jak z niej korzystasz. Śledzenie zostanie włączone tylko po Twojej wyraźnej zgodzie.",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",showPreferencesBtn:"Zarządzaj ustawieniami"},preferencesModal:{title:"Centrum preferencji zgody",acceptAllBtn:"Akceptuj wszystkie",acceptNecessaryBtn:"Odrzuć wszystkie",savePreferencesBtn:"Akceptuj bieżący wybór",closeIconLabel:"Zamknij okno",sections:[{title:"Technologie śledzenia i Twoja zgoda",description:"Pliki cookie to małe pliki, które strony internetowe umieszczają na urządzeniach użytkowników, aby zbierać dane i poprawiać doświadczenie użytkownika. Mogą zapamiętywać preferencje i śledzić nawyki przeglądania. Możesz zmienić swoje preferencje dotyczące plików cookie i śledzenia w dowolnym momencie."},{title:"Niezbędne pliki cookie",description:"Te pliki cookie są niezbędne do prawidłowego funkcjonowania strony internetowej i nie można ich wyłączyć.",linkedCategory:"necessary"},{title:"Pliki cookie analityczne",description:"Te pliki cookie zbierają informacje o tym, jak korzystasz z naszej strony internetowej. Wszystkie dane są anonimizowane i nie mogą zostać wykorzystane do Twojej identyfikacji.",linkedCategory:"analytics"},{title:"Więcej informacji",description:`W przypadku pytań dotyczących naszej polityki plików cookie i Twoich wyborów, prosimy <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">skontaktować się 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ómo interactúas con él. El seguimiento solo se habilitará con tu consentimiento explícito.",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ón actual",closeIconLabel:"Cerrar ventana",sections:[{title:"Tecnologías de seguimiento y tu consentimiento",description:"Las cookies son pequeños 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ábitos de navegación. 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álisis",description:"Estas cookies recopilan información sobre cómo usas nuestro sitio web. Todos los datos están anonimizados y no pueden utilizarse para identificarte.",linkedCategory:"analytics"},{title:"Más información",description:`Para cualquier consulta sobre nuestra política de cookies y tus elecciones, por favor <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">contáctanos</a>.`}]}},uk:{consentModal:{title:"Ми використовуємо файли cookie",description:"Наш вебсайт використовує необхідні файли cookie для забезпечення його належної роботи, а також файли відстеження, щоб зрозуміти, як ви з ним взаємодієте. Відстеження буде увімкнено лише після вашої явної згоди.",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",showPreferencesBtn:"Керувати налаштуваннями"},preferencesModal:{title:"Центр налаштувань згоди",acceptAllBtn:"Прийняти всі",acceptNecessaryBtn:"Відхилити всі",savePreferencesBtn:"Прийняти поточний вибір",closeIconLabel:"Закрити вікно",sections:[{title:"Технології відстеження та ваша згода",description:"Файли cookie – це невеликі файли, які вебсайти зберігають на пристроях користувачів для збору даних і покращення взаємодії. Вони можуть запам'ятовувати вподобання та відстежувати поведінку перегляду. Ви можете змінити свої налаштування щодо файлів cookie та відстеження у будь-який час."},{title:"Строго необхідні файли cookie",description:"Ці файли cookie є необхідними для належного функціонування вебсайту і їх не можна вимкнути.",linkedCategory:"necessary"},{title:"Аналітичні файли cookie",description:"Ці файли cookie збирають інформацію про те, як ви використовуєте наш вебсайт. Усі дані анонімізовані і не можуть бути використані для ідентифікації вас.",linkedCategory:"analytics"},{title:"Додаткова інформація",description:`Якщо у вас є запитання щодо нашої політики використання файлів cookie та ваших налаштувань, будь ласка, <a href="mailto:${e?"hello@clearly.help":"hello@rozmova.me"}">зв'яжіться з нами</a>.`}]}}}),Wb=(e,t)=>{const r=document.createElement("link");r.rel="stylesheet",r.href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.css",document.head.appendChild(r);const n=document.createElement("style");n.innerHTML='\n :root {\n /** Change font **/\n --cc-font-family: "Inter", sans-serif;\n\n /** Change button primary color to black **/\n --cc-btn-primary-bg: #4C6EF5;\n --cc-btn-primary-border-color: #4C6EF5;\n }\n',document.head.appendChild(n),qb(((e,t)=>{const r=Zy();return{language:{default:e,translations:Vb(t)},cookie:{domain:r},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"})}}}}}}})(e,t))};var Hb=new class{initialized=!1;locale="uk";platform="web";isProd=!0;dataLayer=[];lastGConfig={};mxDistinctId=null;async init({isProd:e,locale:t,platform:r,isClearly:i,config:o,trackPageScroll:s=!0,mixpanelConfig:a={}}={}){!function(){const e=document.createElement("script");e.type="text/javascript",e.text='\n (function(){\n var analytics = window.analytics = window.analytics || [];\n if (!analytics.initialize) \n if (analytics.invoked) \n window.console && console.error && console.error("Snippet included twice.");\n else {\n analytics.invoked = !0;\n analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"];\n analytics.factory = function(e) {\n return function() {\n var t = Array.prototype.slice.call(arguments);\n t.unshift(e);\n analytics.push(t);\n return analytics;\n }\n };\n for (var e = 0; e < analytics.methods.length; e++) {\n var key = analytics.methods[e];\n analytics[key] = analytics.factory(key);\n }\n analytics.load = function(key, e) {\n var t = document.createElement("script");\n t.type = "text/javascript";\n t.async = !0;\n t.src = "https://cdp-eu.customer.io/v1/analytics-js/snippet/" + key + "/analytics.min.js";\n var n = document.getElementsByTagName("script")[0];\n n.parentNode.insertBefore(t, n);\n analytics._writeKey = key;\n analytics._loadOptions = e;\n };\n analytics.SNIPPET_VERSION = "4.15.3";\n analytics.load("e6d009719c77519432c3");\n analytics.page();\n }\n })();\n ',document.head.appendChild(e)}(),(()=>{const e=Hy("geo");if(e){const t=Zy();n.set("geo",e,{domain:t})}})();const c=a_();var u;(navigator.userAgent||navigator.vendor||window.opera).match(/FBAN|FBAV|Instagram/i)&&((e,t)=>{const r=new URL(window.location.href);r.searchParams.set(e,t),window.history.replaceState({path:r.toString()},"",r.toString())})(Uy,c),"boolean"==typeof e&&(this.isProd=e),this.locale=t||(e=>{const t=window.location.pathname.split("/")[1];return qy.includes(t)?t:e?"en":"uk"})(i),r&&(this.platform=r),"web"===this.platform&&i&&Wb(this.locale,i),By.init("9d4cb3d213e5aee689ea01dd68ad65ad",{debug:!1,track_pageview:"url-with-path",persistence:"cookie",batch_requests:!1,loaded:e=>this.mxDistinctId=e.get_distinct_id(),...a}),this.setConfig(o),this.trackPageView(),u=this.trackEvent.bind(this),i_("prev_session_id")&&u("login",{logged:"no"},{ga:!0}),s&&this.trackPageScroll(),this.initialized=!0,this.processDataLayer()}processDataLayer(){const e=["g_config","page_view"];for(const t of e){const e=this.dataLayer.findIndex((e=>e.eventName===t));if(-1!==e){const t=this.dataLayer.splice(e,1)[0];this.trackEvent(t.eventName,t.eventParams)}}for(;this.dataLayer.length>0;){const e=this.dataLayer.shift();this.trackEvent(e?.eventName,e?.eventParams)}}async getGAClientId(){return await new Promise((e=>{let t=!1;const r=()=>{t||(t=!0,e(Qy()))};if("undefined"!=typeof window&&"function"==typeof gtag)try{gtag("get","G-GYQLL028VQ","client_id",(r=>{t||(t=!0,e(r||Qy()))})),setTimeout(r,1e3)}catch{r()}else r()}))}setGAClientId=t_;async trackEvent(e,t,r={ga:!0,mixpanel:!0,customerIO:!0}){if(!this.initialized)return void this.dataLayer.push({eventName:e,eventParams:t});const n=this.getCommonParams(),i={...n,...t};if(r.mixpanel)try{By.track(e,i)}catch(e){console.log(e)}if(r.ga)try{const r={funnel_name:n.funnel_name,...t};Vy.includes(e)&&window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:e,...r})}catch(e){console.log(e)}if(r.customerIO)try{window.analytics.track(e,i)}catch(e){console.log(e)}}setConfig(e={userId:l_(),email:p_()}){if(function(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every((r=>e[r]===t[r]))}(e,this.lastGConfig))return;this.lastGConfig=e;const{userId:t,email:r}=e,n={user_id:t,is_logged:t?"yes":"no",locale:this.locale,platform:this.platform,user_type:r_(r),rid:a_()},i=this.getCommonParams();By.track("g_config",{...i,...n}),window.dataLayer.push({event:"g_config",...n})}trackPageView({referrer:e}={}){const t={page_title:document.title,page_location:window.location.href,page_referrer:e||document.referrer},r=this.getCommonParams();By.track("page_view",{...r,...t}),window.dataLayer.push({event:"page_view",...t})}setUser(e,t){const{email:r,name:i,phone:o,isB2B:s,CIOParams:a={},mixpanelParams:c={}}=t;this.setConfig({userId:e,email:r}),By.identify(e),By.people.set({$email:r,name:i,phone:o,isB2B:s,...c}),window.analytics.identify(e,{...t,...a}),(e=>{const t=Zy();n.set(u_,e,{domain:t})})(e),(e=>{const t=Zy();n.set(h_,e,{domain:t})})(r),this.trackEvent("login",{logged:"yes",uid:e})}getCommonParams(){const e=(()=>{const e=n.get(jy),t=e?JSON.parse(e):{},r=new URLSearchParams(window.location.search),i=Xy(),o=zy.reduce(((e,t)=>({...e,[t]:c_(t,r,i)})),{}),s={...i_("utm_params_prev_session_id")&&zy.some((e=>o[e]&&o[e]!==t[e]))?o:t,referrer:i||t.referrer,search_query:Ky()||t.search_query,landing_page_url:t.landing_page_url||window.location.href};return n.set(jy,JSON.stringify(s),{domain:Zy()}),s})(),t=Qy();return{...e,fbc:n.get("_fbc"),fbp:n.get("_fbp"),session_id:e_(),user_pseudo_id:t,rid:a_(),funnel_name:n.get("funnel_name"),language:window.navigator.language,platform:this.platform,url:window.location.href,device:Gy(),browser:$y(),system:Yy(),locale:this.locale,logged_in:!!l_(),user_id:l_()}}setLocale(e){this.locale=e}resetUser(){By.reset(),window.analytics.reset(),(()=>{const e=Zy();n.remove(u_,{domain:e})})(),(()=>{const e=Zy();n.remove(h_,{domain:e})})(),this.setConfig(),this.trackEvent("login",{logged:"no"}),this.init()}getUserId=a_;async getAttributionProperties(e){const t=await this.getGAClientId(),{listName:r,index:n}={listName:localStorage.getItem("listName"),index:localStorage.getItem("index")},i=localStorage.getItem("createTherapyPlacementPage"),o=sessionStorage.getItem("rankingSessionId"),s=this.getCommonParams();return{funnelInfo:{funnelName:e?.funnelName||s.funnel_name,funnelType:null,listName:r,platform:this.platform,index:n_(n),placement:i,rankingSessionId:o},trackingParams:{source:s.utm_source,medium:s.utm_medium,advertiserId:s.utm_advertiser_id,campaignId:s.utm_campaign_id,campaignName:s.utm_campaign,adsetId:s.utm_adset_id,adId:s.utm_ad_id,adName:s.utm_ad_name,keyword:s.utm_keyword,searchQuery:s.search_query,referrer:s.referrer,landingPageUrl:s.landing_page_url},externalAnalyticsUserInfo:{gaClientId:t,gaSessionId:s.session_id,rid:a_(),fbp:s.fbp,fbc:s.fbc,mxDistinctId:this.mxDistinctId,cioAnonId:window.analytics?.user?.().anonymousId?.()}}}trackPageScroll(e){const t=()=>{const t=e?e.scrollTop:window.scrollY||document.documentElement.scrollTop,r=e?e.scrollHeight:document.documentElement.scrollHeight;t+(e?e.clientHeight:window.innerHeight)>=r&&this.trackEvent("page_scroll",{page_path:location.pathname,page_title:document.title,scroll_depth:100},{mixpanel:!0})},r=e||window;return r.addEventListener("scroll",t),()=>r.removeEventListener("scroll",t)}start_session_recording=()=>By.start_session_recording();stop_session_recording=()=>By.stop_session_recording();async trackFirstPartyEvent(e,t,r){const n=await this.getAttributionProperties(r),i=JSON.stringify(n),o=btoa(encodeURIComponent(i).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})));const s=new Headers({"X-Attribution":o,"Content-Type":"application/json"}),a=((e,t)=>(e?"https://trp.rozmova.me":"https://stage.trp.rozmova.me")+t)(this.isProd,"/api/analytics/track");return await fetch(a,{body:JSON.stringify({eventName:e,eventParams:t}),method:"POST",headers:s})}};return Hb}));
|
|
1
|
+
"use strict";var Analytics=(()=>{var cs=Object.defineProperty;var gg=Object.getOwnPropertyDescriptor;var mg=Object.getOwnPropertyNames;var yg=Object.prototype.hasOwnProperty;var _g=(t,n)=>{for(var i in n)cs(t,i,{get:n[i],enumerable:!0})},wg=(t,n,i,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of mg(n))!yg.call(t,r)&&r!==i&&cs(t,r,{get:()=>n[r],enumerable:!(e=gg(n,r))||e.enumerable});return t};var bg=t=>wg(cs({},"__esModule",{value:!0}),t);var CI={};_g(CI,{default:()=>SI});function ri(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 Sg={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 ls(t,n){function i(r,o,s){if(!(typeof document>"u")){s=ri({},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,"",ri({},o,{expires:-1}))},withAttributes:function(r){return ls(this.converter,ri({},this.attributes,r))},withConverter:function(r){return ls(ri({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}var Te=ls(Sg,{path:"/"});var E;typeof window>"u"?(fs={hostname:""},E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:fs,referrer:""},screen:{width:0,height:0},location:fs,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}):E=window;var fs,nt={DEBUG:!1,LIB_VERSION:"2.78.0"},pt="__mp_targeting",qs="__mp_recorder",Cg="__MP_RECORDER_FILENAME__",kf="__MP_TARGETING_FILENAME__";function $c(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 Lc(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 Mo(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var o=t.apply(n,i);function s(u){Lc(o,e,r,s,a,"next",u)}function a(u){Lc(o,e,r,s,a,"throw",u)}s(void 0)})}}function Ui(t,n,i){return Of()?Ui=Reflect.construct:Ui=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&Cn(c,s.prototype),c},Ui.apply(null,arguments)}function Eg(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&&Eg(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 js(t){return js=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},js(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&&Cn(t,n)}function N(t,n){return n!=null&&typeof Symbol<"u"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Ig(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 Cn(t,n){return Cn=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Cn(t,n)}function D(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function kg(t,n){if(t){if(typeof t=="string")return $c(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 $c(t,n)}}function En(t){var n=typeof Map=="function"?new Map:void 0;return En=function(e){if(e===null||!Ig(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 Ui(e,arguments,js(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Cn(r,e)},En(t)}function Of(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Of=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=kg(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 nu(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 Og=Object.defineProperty,xg=function(t,n,i){return n in t?Og(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},R=function(t,n,i){return xg(t,(typeof n>"u"?"undefined":D(n))!=="symbol"?n+"":n,i)},Nc,Rg=Object.defineProperty,Ag=function(t,n,i){return n in t?Rg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Dc=function(t,n,i){return Ag(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||{}),Fc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Uc={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ni={},Mg=function(){return!!globalThis.Zone};function iu(t){if(ni[t])return ni[t];var n=globalThis[t],i=n.prototype,e=t in Fc?Fc[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 Uc?Uc[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&&!Mg())return ni[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?ni[t]=c:i}catch{return i}}var hs={};function Qt(t,n,i){var e,r=t+"."+String(i);if(hs[r])return hs[r].call(n);var o=iu(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(hs[r]=s,s.call(n)):n[i]}var ps={};function xf(t,n,i){var e=t+"."+String(i);if(ps[e])return ps[e].bind(n);var r=iu(t),o=r[i];return typeof o!="function"?n[i]:(ps[e]=o,o.bind(n))}function Tg(t){return Qt("Node",t,"childNodes")}function Pg(t){return Qt("Node",t,"parentNode")}function $g(t){return Qt("Node",t,"parentElement")}function Lg(t){return Qt("Node",t,"textContent")}function Ng(t,n){return xf("Node",t,"contains")(n)}function Dg(t){return xf("Node",t,"getRootNode")()}function Fg(t){return!t||!("host"in t)?null:Qt("ShadowRoot",t,"host")}function Ug(t){return t.styleSheets}function Bg(t){return!t||!("shadowRoot"in t)?null:Qt("Element",t,"shadowRoot")}function zg(t,n){return Qt("Element",t,"querySelector")(n)}function qg(t,n){return Qt("Element",t,"querySelectorAll")(n)}function jg(){return iu("MutationObserver").constructor}function Gg(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 He={childNodes:Tg,parentNode:Pg,parentElement:$g,textContent:Lg,contains:Ng,getRootNode:Dg,host:Fg,styleSheets:Ug,shadowRoot:Bg,querySelector:zg,querySelectorAll:qg,mutationObserver:jg,patch:Gg};function Rf(t){return t.nodeType===t.ELEMENT_NODE}function gn(t){var n=t&&"host"in t&&"mode"in t&&He.host(t)||null;return!!(n&&"shadowRoot"in n&&He.shadowRoot(n)===t)}function mn(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Wg(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 Vg(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 Gs(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 Af(r,i)}).join("");return Wg(e)}catch{return null}}function Af(t,n){if(Yg(t)){var i;try{i=Gs(t.styleSheet)||Vg(t)}catch{i=t.cssText}return t.styleSheet.href?Xi(i,t.styleSheet.href):i}else{var e=t.cssText;return Kg(t)&&t.selectorText.includes(":")&&(e=Hg(e)),n?Xi(e,n):e}}function Hg(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function Yg(t){return"styleSheet"in t}function Kg(t){return"selectorText"in t}var Mf=(function(){function t(){Dc(this,"idNodeMap",new Map),Dc(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 Jg(){return new Mf}function Ki(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 Bc="__rrweb_original__";function Xg(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=Bc in o?o[Bc]: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 Ji(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?yr(n):null}function Tf(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 Zg(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var Qg=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,em=/^(?:[a-z+]+:)?\/\//i,tm=/^www\..*/i,rm=/^(data:)([^,]*),(.*)/i;function Xi(t,n){return(t||"").replace(Qg,function(i,e,r,o,s,a){var u=r||s||a,c=e||o||"";if(!u)return i;if(em.test(u)||tm.test(u)||rm.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(Zg(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 ii(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function nm(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=ii(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=ii(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=ii(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 _=ii(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 im(t,n){return nm(t,n).join("/* rr_split */")}var om=1,sm=new RegExp("[^a-z0-9-_:]"),In=-2;function Pf(){return om++}function am(t){if(N(t,HTMLFormElement))return"form";var n=yr(t.tagName);return sm.test(n)?"div":n}var Rr,zc,um=/^[^ \t\n\r\u000c]+/,cm=/^[, \t\n\r\u000c]+/;function lm(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(cm),!(i>=n.length);){var o=e(um);if(o.slice(-1)===",")o=$r(t,o.substring(0,o.length-1)),r.push(o);else{var s="";o=$r(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 qc=new WeakMap;function $r(t,n){return!n||n.trim()===""?n:ou(t,n)}function fm(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function ou(t,n){var i=qc.get(t);if(i||(i=t.createElement("a"),qc.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function $f(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")?$r(t,e):i==="srcset"?lm(t,e):i==="style"?Xi(e,ou(t)):n==="object"&&i==="data"?$r(t,e):e)}function Lf(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function hm(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 Zi(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?Zi(He.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?Zi(He.parentNode(t),n,i):!1}function Nf(t,n,i,e){var r;if(Rf(t)){if(r=t,!He.childNodes(r).length)return!1}else{if(He.parentElement(t)===null)return!1;r=He.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(Zi(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 pm(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 dm(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 vm(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=gm(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 ym(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 mm(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:He.textContent(t)||"",rootId:C};default:return!1}}function gm(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function mm(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=He.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=He.textContent(t),c&&u&&(u=Xi(u,ou(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,He.parentElement(t)):u.replace(/[\S]/g,"*")),{type:ze.Text,textContent:u||"",rootId:r}}function ym(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=hm(t,e,r),_=am(t),w={},b=t.attributes.length,C=0;C<b;C++){var k=t.attributes[C];Lf(_,k.name,k.value)||(w[k.name]=$f(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=Gs(x)),A&&(delete w.rel,delete w.href,w._cssText=A)}if(_==="style"&&t.sheet){var P=Gs(t.sheet);P&&(t.childNodes.length>1&&(P=im(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=Ki({element:t,type:Ji(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")Xg(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){Rr||(Rr=i.createElement("canvas"),zc=Rr.getContext("2d"));var B=t,Ae=B.currentSrc||B.getAttribute("src")||"<unknown-src>",ie=B.crossOrigin,se=function(){B.removeEventListener("load",se);try{Rr.width=B.naturalWidth,Rr.height=B.naturalHeight,zc.drawImage(B,0,0),w.rr_dataURL=Rr.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:fm(t)||void 0,needBlock:y,rootId:v,isCustom:yt}}function ve(t){return t==null?"":t.toLowerCase()}function _m(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"&&Tf(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 Lr(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=Nf(t,s,a,yt)}var Ge=vm(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):_m(Ge,v)||!Se&&Ge.type===ze.Text&&!Ge.textContent.replace(/^\s+|\s+$/gm,"").length?_t=In:_t=Pf();var z=Object.assign(Ge,{id:_t});if(e.add(t,z),_t===In)return null;x&&x(t);var Fe=!c;if(z.type===ze.Element){Fe=Fe&&!z.needBlock,delete z.needBlock;var le=He.shadowRoot(t);le&&mn(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(He.childNodes(t))),et;!(et=ot()).done;){var wt=et.value,ft=Lr(wt,xe);ft&&z.childNodes.push(ft)}}var Ke=null;if(Rf(t)&&(Ke=He.shadowRoot(t)))for(var tt=O(Array.from(He.childNodes(Ke))),We;!(We=tt()).done;){var bt=We.value,Lt=Lr(bt,xe);Lt&&(mn(Ke)&&(Lt.isShadow=!0),z.childNodes.push(Lt))}}var it=He.parentNode(t);return it&&gn(it)&&mn(it)&&(z.isShadow=!0),z.type===ze.Element&&z.tagName==="iframe"&&pm(t,function(){var st=t.contentDocument;if(st&&A){var xr=Lr(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});xr&&A(t,xr)}},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"&&Tf(z.attributes.href)==="css")&&dm(t,function(){if(ee){var st=Lr(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 wm(t,n){var i=n||{},e=i.mirror,r=e===void 0?new Mf: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 Lr(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 bm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Sm(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 su={exports:{}},me=String,Df=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}};su.exports=Df();su.exports.createColors=Df;var Cm=su.exports,Em={},Im=Object.freeze(Object.defineProperty({__proto__:null,default:Em},Symbol.toStringTag,{value:"Module"})),$e=Sm(Im),jc=Cm,Gc=$e,Ws=(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=jc.isColorSupported),Gc&&r&&(s=Gc(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=jc.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})(En(Error)),au=Ws;Ws.default=Ws;var er={};er.isClean=Symbol("isClean");er.my=Symbol("my");var Wc={after:`
|
|
7
|
+
`,beforeClose:`
|
|
8
|
+
`,beforeComment:`
|
|
9
|
+
`,beforeDecl:`
|
|
10
|
+
`,beforeOpen:" ",beforeRule:`
|
|
11
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function km(t){return t[0].toUpperCase()+t.slice(1)}var Vs=(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 Wc[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"+km(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=Wc[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})(),Ff=Vs;Vs.default=Vs;var Om=Ff;function Hs(t,n){var i=new Om(n);i.stringify(t)}var To=Hs;Hs.default=Hs;var oi=er.isClean,xm=er.my,Rm=au,Am=Ff,Mm=To;function Ys(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 Ys(s,i)}):(o==="object"&&r!==null&&(r=Ys(r)),i[e]=r)}return i}var Ks=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[oi]=!1,this[xm]=!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=Ys(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 Rm(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[oi]){this[oi]=!1;for(var e=this;e=e.parent;)e[oi]=!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 Am;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=Mm),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})(),Po=Ks;Ks.default=Ks;var Tm=Po,Js=(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})(Tm),$o=Js;Js.default=Js;var Pm="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",$m=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Pm[Math.random()*64|0];return n},Lm={nanoid:$m},Vc=$e.SourceMapConsumer,Hc=$e.SourceMapGenerator,Nm=$e.existsSync,Dm=$e.readFileSync,ds=$e.dirname,Fm=$e.join;function Um(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Xs=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=ds(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Vc(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 Um(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=ds(e),Nm(e))return this.mapFile=e,Dm(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,Vc))return Hc.fromSourceMap(r).toString();if(N(r,Hc))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=Fm(ds(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})(),Uf=Xs;Xs.default=Xs;var Bm=$e.SourceMapConsumer,zm=$e.SourceMapGenerator,Yc=$e.fileURLToPath,si=$e.pathToFileURL,Zs=$e.isAbsolute,Qs=$e.resolve,qm=Lm.nanoid,vs=$e,Kc=au,jm=Uf,gs=Symbol("fromOffsetCache"),Gm=!!(Bm&&zm),Jc=!!(Qs&&Zs),Qi=(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&&(!Jc||/^\w+:\/\//.test(e.from)||Zs(e.from)?this.file=e.from:this.file=Qs(e.from)),Jc&&Gm){var r=new jm(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 "+qm(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 Kc(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 Kc(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&&(si&&(a.input.url=si(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[gs])o=this[gs];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[gs]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Qs(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Zs(u.source)?l=si(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||si(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(Yc)f.file=Yc(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})(),Lo=Qi;Qi.default=Qi;vs&&vs.registerInput&&vs.registerInput(Qi);var Bf=$e.SourceMapConsumer,Bi=$e.SourceMapGenerator,zi=$e.dirname,zf=$e.relative,qf=$e.resolve,jf=$e.sep,Xc=$e.pathToFileURL,Wm=Lo,Vm=!!(Bf&&Bi),Hm=!!(zi&&qf&&zf&&jf),Ym=(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||zi(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Bf(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(),Hm&&Vm&&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=Bi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Bi({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 Bi({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?zi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=zi(qf(o,this.mapOpts.annotation)));var s=zf(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 Wm(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(Xc){var o=Xc(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})(),Gf=Ym,Km=Po,ea=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Km),No=ea;ea.default=ea;var Wf=er.isClean,Vf=er.my,Hf=$o,Yf=No,Jm=Po,Kf,uu,cu,Jf;function Xf(t){return t.map(function(n){return n.nodes&&(n.nodes=Xf(n.nodes)),delete n.source,n})}function Zf(t){if(t[Wf]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Zf(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=Xf(Kf(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 Hf(r)]}else if(r.selector)r=[new uu(r)];else if(r.name)r=[new cu(r)];else if(r.text)r=[new Yf(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Vf]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Wf]&&Zf(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})(Jm);Bt.registerParse=function(t){Kf=t};Bt.registerRule=function(t){uu=t};Bt.registerAtRule=function(t){cu=t};Bt.registerRoot=function(t){Jf=t};var Sr=Bt;Bt.default=Bt;Bt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,cu.prototype):t.type==="rule"?Object.setPrototypeOf(t,uu.prototype):t.type==="decl"?Object.setPrototypeOf(t,Hf.prototype):t.type==="comment"?Object.setPrototypeOf(t,Yf.prototype):t.type==="root"&&Object.setPrototypeOf(t,Jf.prototype),t[Vf]=!0,t.nodes&&t.nodes.forEach(function(n){Bt.rebuild(n)})};var Xm=Sr,Qf,eh,kn=(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 Qf(new eh,this,r);return o.stringify()},n})(Xm);kn.registerLazyResult=function(t){Qf=t};kn.registerProcessor=function(t){eh=t};var lu=kn;kn.default=kn;var ta=(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})(),th=ta;ta.default=ta;var Zm=th,ra=(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 Zm(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})(),fu=ra;ra.default=ra;var ms=39,Zc=34,ai=92,Qc=47,ui=10,un=32,ci=12,li=9,fi=13,Qm=91,ey=93,ty=40,ry=41,ny=123,iy=125,oy=59,sy=42,ay=58,uy=64,hi=/[\t\n\f\r "#'()/;[\\\]{}]/g,pi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,cy=/.[\r\n"'(/\\]/,el=/[\da-f]/i,ly=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 ui:case un:case li:case fi:case ci:{s=v;do s+=1,o=e.charCodeAt(s);while(o===un||o===ui||o===li||o===fi||o===ci);d=["space",e.slice(v,s)],v=s-1;break}case Qm:case ey:case ny:case iy:case ay:case oy:case ry:{var q=String.fromCharCode(o);d=[q,q,v];break}case ty:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==ms&&g!==Zc&&g!==un&&g!==ui&&g!==li&&g!==ci&&g!==fi){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)===ai;)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||cy.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case ms:case Zc:{a=o===ms?"'":'"',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)===ai;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case uy:{hi.lastIndex=v+1,hi.test(e),hi.lastIndex===0?s=e.length-1:s=hi.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case ai:{for(s=v,c=!0;e.charCodeAt(s+1)===ai;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Qc&&o!==un&&o!==ui&&o!==li&&o!==fi&&o!==ci&&(s+=1,el.test(e.charAt(s)))){for(;el.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===un&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===Qc&&e.charCodeAt(v+1)===sy?(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):(pi.lastIndex=v+1,pi.test(e),pi.lastIndex===0?s=e.length-1:s=pi.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}},rh=Sr,eo=(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})(rh),hu=eo;eo.default=eo;rh.registerAtRule(eo);var nh=Sr,ih,oh,Br=(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 ih(new oh,this,r);return o.stringify()},n})(nh);Br.registerLazyResult=function(t){ih=t};Br.registerProcessor=function(t){oh=t};var jn=Br;Br.default=Br;nh.registerRoot(Br);var On={comma:function(n){return On.split(n,[","],!0)},space:function(n){var i=[" ",`
|
|
24
|
+
`," "];return On.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}},sh=On;On.default=On;var ah=Sr,fy=sh,to=(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 fy.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})(ah),pu=to;to.default=to;ah.registerRule(to);var hy=$o,py=ly,dy=No,vy=hu,gy=jn,tl=pu,rl={empty:!0,space:!0};function my(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var yy=(function(){function t(i){this.input=i,this.root=new gy,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 vy;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 dy;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=py(this.input)},n.decl=function(e,r){var o=new hy;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]||my(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 tl;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",!rl[g]&&!rl[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 tl;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})(),_y=yy,wy=Sr,by=_y,Sy=Lo;function ro(t,n){var i=new Sy(t,n),e=new by(i);try{e.parse()}catch(r){throw r}return e.root}var du=ro;ro.default=ro;wy.registerParse(ro);var St=er.isClean,Cy=er.my,Ey=Gf,Iy=To,ky=Sr,Oy=lu;var nl=fu,xy=du,Ry=jn,Ay={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},My={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},Ty={Once:!0,postcssPlugin:!0,prepare:!0},zr=0;function cn(t){return(typeof t>"u"?"undefined":D(t))==="object"&&typeof t.then=="function"}function uh(t){var n=!1,i=Ay[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,zr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,zr,i+"Exit"]:[i,i+"Exit"]}function il(t){var n;return t.type==="document"?n=["Document",zr,"DocumentExit"]:t.type==="root"?n=["Root",zr,"RootExit"]:n=uh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function na(t){return t[St]=!1,t.nodes&&t.nodes.forEach(function(n){return na(n)}),t}var ia={},qr=(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=na(e);else if(N(e,t)||N(e,nl))s=na(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=xy;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[Cy]&&ky.rebuild(s)}this.result=new nl(i,s,r),this.helpers=J({},ia,{postcss:ia,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&&0)var s,a,u,c,l}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(!My[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Ty[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 Mo(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),!cn(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=[il(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!cn(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,nu(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 cn(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=Iy;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new Ey(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(cn(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 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(cn(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(il(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===zr){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=uh(e),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===zr)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})();qr.registerPostcss=function(t){ia=t};var ch=qr;qr.default=qr;Ry.registerLazyResult(qr);Oy.registerLazyResult(qr);var Py=Gf,$y=To;var Ly=du,Ny=fu,oa=(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=$y;this.result=new Ny(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 Py(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 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=Ly;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})(),Dy=oa;oa.default=oa;var Fy=Dy,Uy=ch,By=lu,zy=jn,xn=(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)))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 Fy(this,e,r):new Uy(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),qy=xn;xn.default=xn;zy.registerProcessor(xn);By.registerProcessor(xn);var jy=$o,Gy=Uf,Wy=No,Vy=hu,Hy=Lo,Yy=jn,Ky=pu;function Rn(t,n){if(Array.isArray(t))return t.map(function(f){return Rn(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__:Hy.prototype});a.map&&(a.map=J({},a.map,{__proto__:Gy.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Rn(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 Yy(e);if(e.type==="decl")return new jy(e);if(e.type==="rule")return new Ky(e);if(e.type==="comment")return new Wy(e);if(e.type==="atrule")return new Vy(e);throw new Error("Unknown node type: "+t.type)}var Jy=Rn;Rn.default=Rn;var Xy=au,lh=$o,Zy=ch,Qy=Sr,vu=qy,e_=To,t_=Jy,fh=lu,r_=th,hh=No,ph=hu,n_=fu,i_=Lo,o_=du,s_=sh,dh=pu,vh=jn,a_=Po;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 vu(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:
|
|
25
|
+
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:
|
|
26
|
+
https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new vu().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=e_;ae.parse=o_;ae.fromJSON=t_;ae.list=s_;ae.comment=function(t){return new hh(t)};ae.atRule=function(t){return new ph(t)};ae.decl=function(t){return new lh(t)};ae.rule=function(t){return new dh(t)};ae.root=function(t){return new vh(t)};ae.document=function(t){return new fh(t)};ae.CssSyntaxError=Xy;ae.Declaration=lh;ae.Container=Qy;ae.Processor=vu;ae.Document=fh;ae.Comment=hh;ae.Warning=r_;ae.AtRule=ph;ae.Result=n_;ae.Input=i_;ae.Rule=dh;ae.Root=vh;ae.Node=a_;Zy.registerPostcss(ae);var u_=ae;ae.default=ae;var Ie=bm(u_);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 c_=Object.defineProperty,l_=function(t,n,i){return n in t?c_(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},at=function(t,n,i){return l_(t,(typeof n>"u"?"undefined":D(n))!=="symbol"?n+"":n,i)};function f_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h_(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 gu={exports:{}},ye=String,gh=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}};gu.exports=gh();gu.exports.createColors=gh;var p_=gu.exports,d_={},v_=Object.freeze(Object.defineProperty({__proto__:null,default:d_},Symbol.toStringTag,{value:"Module"})),Le=h_(v_),ol=p_,sl=Le,sa=(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=ol.isColorSupported),sl&&r&&(s=sl(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=ol.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+`
|
|
27
|
+
`+C+f("^")}return" "+h(b)+y}).join(`
|
|
28
|
+
`)},i.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
29
|
+
|
|
30
|
+
`+r+`
|
|
31
|
+
`),this.name+": "+this.message+r},n})(En(Error)),mu=sa;sa.default=sa;var tr={};tr.isClean=Symbol("isClean");tr.my=Symbol("my");var al={after:`
|
|
32
|
+
`,beforeClose:`
|
|
33
|
+
`,beforeComment:`
|
|
34
|
+
`,beforeDecl:`
|
|
35
|
+
`,beforeOpen:" ",beforeRule:`
|
|
36
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function g_(t){return t[0].toUpperCase()+t.slice(1)}var aa=(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(`
|
|
37
|
+
`)){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 al[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"+g_(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=al[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(`
|
|
38
|
+
`)&&(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(`
|
|
39
|
+
`)&&(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(`
|
|
40
|
+
`)&&(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(`
|
|
41
|
+
`)&&(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(`
|
|
42
|
+
`);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})(),mh=aa;aa.default=aa;var m_=mh;function ua(t,n){var i=new m_(n);i.stringify(t)}var Do=ua;ua.default=ua;var di=tr.isClean,y_=tr.my,__=mu,w_=mh,b_=Do;function ca(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 ca(s,i)}):(o==="object"&&r!==null&&(r=ca(r)),i[e]=r)}return i}var la=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[di]=!1,this[y_]=!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=ca(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[di]){this[di]=!1;for(var e=this;e=e.parent;)e[di]=!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]===`
|
|
43
|
+
`?(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 w_;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=b_),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})(),Fo=la;la.default=la;var S_=Fo,fa=(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})(S_),Uo=fa;fa.default=fa;var C_="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",E_=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=C_[Math.random()*64|0];return n},I_={nanoid:E_},ul=Le.SourceMapConsumer,cl=Le.SourceMapGenerator,k_=Le.existsSync,O_=Le.readFileSync,ys=Le.dirname,x_=Le.join;function R_(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var ha=(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=ys(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new ul(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return R_(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e>"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=ys(e),k_(e))return this.mapFile=e,O_(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,ul))return cl.fromSourceMap(r).toString();if(N(r,cl))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=x_(ys(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})(),yh=ha;ha.default=ha;var A_=Le.SourceMapConsumer,M_=Le.SourceMapGenerator,ll=Le.fileURLToPath,vi=Le.pathToFileURL,pa=Le.isAbsolute,da=Le.resolve,T_=I_.nanoid,_s=Le,fl=mu,P_=yh,ws=Symbol("fromOffsetCache"),$_=!!(A_&&M_),hl=!!(da&&pa),no=(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&&(!hl||/^\w+:\/\//.test(e.from)||pa(e.from)?this.file=e.from:this.file=da(e.from)),hl&&$_){var r=new P_(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+T_(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 fl(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 fl(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&&(vi&&(a.input.url=vi(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[ws])o=this[ws];else{var s=this.css.split(`
|
|
44
|
+
`);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[ws]=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:da(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;pa(u.source)?l=vi(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||vi(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(ll)f.file=ll(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})(),Bo=no;no.default=no;_s&&_s.registerInput&&_s.registerInput(no);var _h=Le.SourceMapConsumer,qi=Le.SourceMapGenerator,ji=Le.dirname,wh=Le.relative,bh=Le.resolve,Sh=Le.sep,pl=Le.pathToFileURL,L_=Bo,N_=!!(_h&&qi),D_=!!(ji&&bh&&wh&&Sh),F_=(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=`
|
|
45
|
+
`;this.css.includes(`\r
|
|
46
|
+
`)&&(r=`\r
|
|
47
|
+
`),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 _h(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(),D_&&N_&&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=qi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qi({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 qi({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(`
|
|
48
|
+
`),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(bh(o,this.mapOpts.annotation)));var s=wh(o,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new L_(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(pl){var o=pl(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;Sh==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Ch=F_,U_=Fo,va=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(U_),zo=va;va.default=va;var Eh=tr.isClean,Ih=tr.my,kh=Uo,Oh=zo,B_=Fo,xh,yu,_u,Rh;function Ah(t){return t.map(function(n){return n.nodes&&(n.nodes=Ah(n.nodes)),delete n.source,n})}function Mh(t){if(t[Eh]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Mh(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=Ah(xh(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 kh(r)]}else if(r.selector)r=[new yu(r)];else if(r.name)r=[new _u(r)];else if(r.text)r=[new Oh(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Ih]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Eh]&&Mh(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})(B_);zt.registerParse=function(t){xh=t};zt.registerRule=function(t){yu=t};zt.registerAtRule=function(t){_u=t};zt.registerRoot=function(t){Rh=t};var Cr=zt;zt.default=zt;zt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,_u.prototype):t.type==="rule"?Object.setPrototypeOf(t,yu.prototype):t.type==="decl"?Object.setPrototypeOf(t,kh.prototype):t.type==="comment"?Object.setPrototypeOf(t,Oh.prototype):t.type==="root"&&Object.setPrototypeOf(t,Rh.prototype),t[Ih]=!0,t.nodes&&t.nodes.forEach(function(n){zt.rebuild(n)})};var z_=Cr,Th,Ph,An=(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 Th(new Ph,this,r);return o.stringify()},n})(z_);An.registerLazyResult=function(t){Th=t};An.registerProcessor=function(t){Ph=t};var wu=An;An.default=An;var ga=(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})(),$h=ga;ga.default=ga;var q_=$h,ma=(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 q_(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})(),bu=ma;ma.default=ma;var bs=39,dl=34,gi=92,vl=47,mi=10,ln=32,yi=12,_i=9,wi=13,j_=91,G_=93,W_=40,V_=41,H_=123,Y_=125,K_=59,J_=42,X_=58,Z_=64,bi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Si=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Q_=/.[\r\n"'(/\\]/,gl=/[\da-f]/i,ew=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 mi:case ln:case _i:case wi:case yi:{s=v;do s+=1,o=e.charCodeAt(s);while(o===ln||o===mi||o===_i||o===wi||o===yi);d=["space",e.slice(v,s)],v=s-1;break}case j_:case G_:case H_:case Y_:case X_:case K_:case V_:{var q=String.fromCharCode(o);d=[q,q,v];break}case W_:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==bs&&g!==dl&&g!==ln&&g!==mi&&g!==_i&&g!==yi&&g!==wi){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)===gi;)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||Q_.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case bs:case dl:{a=o===bs?"'":'"',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)===gi;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case Z_:{bi.lastIndex=v+1,bi.test(e),bi.lastIndex===0?s=e.length-1:s=bi.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case gi:{for(s=v,c=!0;e.charCodeAt(s+1)===gi;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==vl&&o!==ln&&o!==mi&&o!==_i&&o!==wi&&o!==yi&&(s+=1,gl.test(e.charAt(s)))){for(;gl.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===vl&&e.charCodeAt(v+1)===J_?(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):(Si.lastIndex=v+1,Si.test(e),Si.lastIndex===0?s=e.length-1:s=Si.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=Cr,io=(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),Su=io;io.default=io;Lh.registerAtRule(io);var Nh=Cr,Dh,Fh,jr=(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 Dh(new Fh,this,r);return o.stringify()},n})(Nh);jr.registerLazyResult=function(t){Dh=t};jr.registerProcessor=function(t){Fh=t};var Gn=jr;jr.default=jr;Nh.registerRoot(jr);var Mn={comma:function(n){return Mn.split(n,[","],!0)},space:function(n){var i=[" ",`
|
|
49
|
+
`," "];return Mn.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}},Uh=Mn;Mn.default=Mn;var Bh=Cr,tw=Uh,oo=(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 tw.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})(Bh),Cu=oo;oo.default=oo;Bh.registerRule(oo);var rw=Uo,nw=ew,iw=zo,ow=Su,sw=Gn,ml=Cu,yl={empty:!0,space:!0};function aw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var uw=(function(){function t(i){this.input=i,this.root=new sw,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 ow;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 iw;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=nw(this.input)},n.decl=function(e,r){var o=new rw;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]||aw(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 ml;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",!yl[g]&&!yl[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 ml;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})(),cw=uw,lw=Cr,fw=cw,hw=Bo;function so(t,n){var i=new hw(t,n),e=new fw(i);try{e.parse()}catch(r){throw r}return e.root}var Eu=so;so.default=so;lw.registerParse(so);var Ct=tr.isClean,pw=tr.my,dw=Ch,vw=Do,gw=Cr,mw=wu;var _l=bu,yw=Eu,_w=Gn,ww={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},bw={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},Sw={Once:!0,postcssPlugin:!0,prepare:!0},Gr=0;function fn(t){return(typeof t>"u"?"undefined":D(t))==="object"&&typeof t.then=="function"}function zh(t){var n=!1,i=ww[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Gr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Gr,i+"Exit"]:[i,i+"Exit"]}function wl(t){var n;return t.type==="document"?n=["Document",Gr,"DocumentExit"]:t.type==="root"?n=["Root",Gr,"RootExit"]:n=zh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ya(t){return t[Ct]=!1,t.nodes&&t.nodes.forEach(function(n){return ya(n)}),t}var _a={},Wr=(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=ya(e);else if(N(e,t)||N(e,_l))s=ya(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=yw;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[pw]&&gw.rebuild(s)}this.result=new _l(i,s,r),this.helpers=J({},_a,{postcss:_a,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&&0)var s,a,u,c,l}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(!bw[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Sw[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 Mo(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[Ct])return[3,14];u[Ct]=!0,c=[wl(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,nu(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=vw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new dw(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[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 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[Ct]){f[Ct]=!0,e.push(wl(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===Gr){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=zh(e),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===Gr)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})();Wr.registerPostcss=function(t){_a=t};var qh=Wr;Wr.default=Wr;_w.registerLazyResult(Wr);mw.registerLazyResult(Wr);var Cw=Ch,Ew=Do;var Iw=Eu,kw=bu,wa=(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=Ew;this.result=new kw(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 Cw(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 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=Iw;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})(),Ow=wa;wa.default=wa;var xw=Ow,Rw=qh,Aw=wu,Mw=Gn,Tn=(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)))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 xw(this,e,r):new Rw(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),Tw=Tn;Tn.default=Tn;Mw.registerProcessor(Tn);Aw.registerProcessor(Tn);var Pw=Uo,$w=yh,Lw=zo,Nw=Su,Dw=Bo,Fw=Gn,Uw=Cu;function Pn(t,n){if(Array.isArray(t))return t.map(function(f){return Pn(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__:Dw.prototype});a.map&&(a.map=J({},a.map,{__proto__:$w.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Pn(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 Fw(e);if(e.type==="decl")return new Pw(e);if(e.type==="rule")return new Uw(e);if(e.type==="comment")return new Lw(e);if(e.type==="atrule")return new Nw(e);throw new Error("Unknown node type: "+t.type)}var Bw=Pn;Pn.default=Pn;var zw=mu,jh=Uo,qw=qh,jw=Cr,Iu=Tw,Gw=Do,Ww=Bw,Gh=wu,Vw=$h,Wh=zo,Vh=Su,Hw=bu,Yw=Bo,Kw=Eu,Jw=Uh,Hh=Cu,Yh=Gn,Xw=Fo;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 Iu(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:
|
|
50
|
+
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:
|
|
51
|
+
https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Iu().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=Gw;ue.parse=Kw;ue.fromJSON=Ww;ue.list=Jw;ue.comment=function(t){return new Wh(t)};ue.atRule=function(t){return new Vh(t)};ue.decl=function(t){return new jh(t)};ue.rule=function(t){return new Hh(t)};ue.root=function(t){return new Yh(t)};ue.document=function(t){return new Gh(t)};ue.CssSyntaxError=zw;ue.Declaration=jh;ue.Container=jw;ue.Processor=Iu;ue.Document=Gh;ue.Comment=Wh;ue.Warning=Vw;ue.AtRule=Vh;ue.Result=Hw;ue.Input=Yw;ue.Rule=Hh;ue.Root=Yh;ue.Node=Xw;qw.registerPostcss(ue);var Zw=ue;ue.default=ue;var ke=f_(Zw);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 Qw=(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})(),bl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Sl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ci={},eb=function(){return!!globalThis.Zone};function ku(t){if(Ci[t])return Ci[t];var n=globalThis[t],i=n.prototype,e=t in bl?bl[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 Sl?Sl[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&&!eb())return Ci[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?Ci[t]=c:i}catch{return i}}var Ss={};function rr(t,n,i){var e,r=t+"."+String(i);if(Ss[r])return Ss[r].call(n);var o=ku(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(Ss[r]=s,s.call(n)):n[i]}var Cs={};function Kh(t,n,i){var e=t+"."+String(i);if(Cs[e])return Cs[e].bind(n);var r=ku(t),o=r[i];return typeof o!="function"?n[i]:(Cs[e]=o,o.bind(n))}function tb(t){return rr("Node",t,"childNodes")}function rb(t){return rr("Node",t,"parentNode")}function nb(t){return rr("Node",t,"parentElement")}function ib(t){return rr("Node",t,"textContent")}function ob(t,n){return Kh("Node",t,"contains")(n)}function sb(t){return Kh("Node",t,"getRootNode")()}function ab(t){return!t||!("host"in t)?null:rr("ShadowRoot",t,"host")}function ub(t){return t.styleSheets}function cb(t){return!t||!("shadowRoot"in t)?null:rr("Element",t,"shadowRoot")}function lb(t,n){return rr("Element",t,"querySelector")(n)}function fb(t,n){return rr("Element",t,"querySelectorAll")(n)}function Jh(){return ku("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:tb,parentNode:rb,parentElement:nb,textContent:ib,contains:ob,getRootNode:sb,host:ab,styleSheets:ub,shadowRoot:cb,querySelector:lb,querySelectorAll:fb,mutationObserver:Jh,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 Tr=`Please stop import mirror directly. Instead of that,\r
|
|
52
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
53
|
+
or you can use record.mirror to access the mirror instance during recording.`,Cl={map:{},getId:function(){return console.error(Tr),-1},getNode:function(){return console.error(Tr),null},removeNodeFromMap:function(){console.error(Tr)},has:function(){return console.error(Tr),!1},reset:function(){console.error(Tr)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Cl=new Proxy(Cl,{get:function(n,i,e){return i==="map"&&console.error(Tr),Reflect.get(n,i,e)}}));function $n(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 qo(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 qo(t,n,o||{},!0)}}var ao=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ao=function(){return new Date().getTime()});function Xh(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 Zh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Qh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ep(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=ep(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(Zi(r,n,e))return!0}catch{}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function hb(t,n){return n.getId(t)!==-1}function Es(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===In}function tp(t,n){if(gn(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?tp(e,n):!0}function ba(t){return!!t.changedTouches}function pb(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 rp(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function np(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Sa(t){return t?N(t,Qw)&&"shadowRoot"in t?!!t.shadowRoot:!!Q.shadowRoot(t):!1}var db=(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 ip(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 vb(t){for(var n=t,i;i=ip(n);)n=i;return n}function gb(t){var n=t.ownerDocument;if(!n)return!1;var i=vb(t);return Q.contains(n,i)}function op(t){var n=t.ownerDocument;return n?Q.contains(n,t)||gb(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||{}),Pr=(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})(Pr||{}),sp=(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})(sp||{});function El(t){return"__ln"in t}var mb=(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&&El(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&&El(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})(),Il=function(t,n){return t+"@"+n},yb=(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 mb,s=function($){for(var U=$,K=In;K===In;)U=U&&U.nextSibling,K=U&&i.mirror.getId(U);return K},a=function($){var U=Q.parentNode($);if(!(!U||!op($))){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=gn(U)?i.mirror.getId(ip($)):i.mirror.getId(U),ie=s($);if(Ae===-1||ie===-1)return o.addNode($);var se=Lr($,{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){rp(Z,i.mirror)&&i.iframeManager.addIframe(Z),np(Z,i.mirror)&&i.stylesheetManager.trackLinkElement(Z),Sa($)&&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;kl(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;!Ol(i.droppedSet,d)&&!kl(i.removesSubTreeCache,d,i.mirror)||Ol(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=Ki({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:Ji(e),value:o,maskInputFn:i.maskInputFn})}),R(this,"processMutation",function(e){if(!Es(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:Nf(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,ep(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=Ji(o);a=Ki({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"),!Lf(o.tagName,s))if(c.attributes[s]=$f(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=gn(e.target)?i.mirror.getId(Q.host(e.target)):i.mirror.getId(e.target);Ze(e.target,i.blockClass,i.blockSelector,!1)||Es(w,i.mirror,i.slimDOMOptions)||!hb(w,i.mirror)||(i.addedSet.has(w)?(Ca(i.addedSet,w),i.droppedSet.add(w)):i.addedSet.has(e.target)&&b===-1||tp(e.target,i.mirror)||(i.movedSet.has(w)&&i.movedMap[Il(b,C)]?Ca(i.movedSet,w):(i.removes.push({parentId:C,id:b,isShadow:gn(e.target)&&mn(e.target)?!0:void 0}),_b(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(Es(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[Il(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)}),Sa(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 Ca(t,n){t.delete(n),Q.childNodes(n).forEach(function(i){return Ca(t,i)})}function _b(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 kl(t,n,i){return t.size===0?!1:wb(t,n)}function wb(t,n,i){var e=Q.parentNode(n);return e?t.has(e):!1}function Ol(t,n){return t.size===0?!1:ap(t,n)}function ap(t,n){var i=Q.parentNode(n);return i?t.has(i)?!0:ap(t,i):!1}var yn;function bb(t){yn=t}function Sb(){yn=void 0}var re=function(t){if(!yn)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(yn&&yn(o)===!0)return;throw o}};return n},kt=[];function Wn(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 up(t,n){var i=new yb;kt.push(i),i.init(t);var e=new(Jh())(re(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Cb(t){for(var n=kt.length-1;n>=0;n--){var i=kt[n];i.getDoc()===t&&kt.splice(n,1)}}function Eb(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=$n(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($n(re(function(h){var g=Wn(h),d=ba(h)?h.changedTouches[0]:h,m=d.clientX,v=d.clientY;u||(u=ao()),a.push({x:m,y:v,id:r.getId(g),timeOffset:ao()-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 Ib(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=Wn(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 ba(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=ba(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 cp(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling,a=re($n(re(function(u){var c=Wn(u);if(!(!c||Ze(c,r,o,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=Xh(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 kb(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,o=-1,s=re($n(re(function(){var a=Zh(),u=Qh();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Xe("resize",s,e)}var Ob=["INPUT","TEXTAREA","SELECT"],xl=new WeakMap;function xb(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=Wn(b),k=b.isTrusted,x=C&&C.tagName;if(C&&x==="OPTION"&&(C=Q.parentElement(C)),!(!C||!x||Ob.indexOf(x)<0||Ze(C,r,o,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var A=C.value,P=!1,q=Ji(C)||"";q==="radio"||q==="checkbox"?P=C.checked:(u[x.toLowerCase()]||u[q])&&(A=Ki({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=xl.get(b);if(!k||k.text!==C.text||k.isChecked!==C.isChecked){xl.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 qo(b[0],b[1],{set:function(){re(h)({target:this,isTrusted:!1})}},!1,v)})))}return re(function(){m.forEach(function(b){return b()})})}function uo(t){var n=[];function i(e,r){if(Ei("CSSGroupingRule")&&N(e.parentRule,CSSGroupingRule)||Ei("CSSMediaRule")&&N(e.parentRule,CSSMediaRule)||Ei("CSSSupportsRule")&&N(e.parentRule,CSSSupportsRule)||Ei("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 Ht(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function Rb(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=Ht(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=Ht(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=Ht(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=Ht(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={};Ii("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Ii("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Ii("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Ii("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=Ht(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(uo(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=Ht(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(uo(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 lp(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 Ab(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=Ht((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:uo(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=Ht((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:uo(l.parentRule)}),c.apply(l,f)})}),re(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Mb(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 $n(re(function(l){var f=Wn(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(Pr.Play),s),Xe("pause",a(Pr.Pause),s),Xe("seeked",a(Pr.Seeked),s),Xe("volumechange",a(Pr.VolumeChange),s),Xe("ratechange",a(Pr.RateChange),s)];return re(function(){u.forEach(function(c){return c()})})}function Tb(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 Pb(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 $b(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 Lb(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 Nb(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};Lb(t,n);var e;t.recordDOM&&(e=up(t,t.doc));var r=Eb(t),o=Ib(t),s=cp(t),a=kb(t,{win:i}),u=xb(t),c=Mb(t),l=function(){},f=function(){},h=function(){},g=function(){};t.recordDOM&&(l=Rb(t,{win:i}),f=lp(t,t.doc),h=Ab(t,{win:i}),t.collectFonts&&(g=Tb(t)));for(var d=Pb(t),m=$b(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 Ei(t){return typeof window[t]<"u"}function Ii(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}var Rl=(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})(),Db=(function(){function t(i){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new Rl(Pf)),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 Rl(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!==sp.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},t})(),Fb=(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(mn(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=up(J({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(cp(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(lp({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&&op(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),Nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ub=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(hn=0;hn<Nr.length;hn++)Ub[Nr.charCodeAt(hn)]=hn;var hn,Bb=function(n){var i=new Uint8Array(n),e,r=i.length,o="";for(e=0;e<r;e+=3)o+=Nr[i[e]>>2],o+=Nr[(i[e]&3)<<4|i[e+1]>>4],o+=Nr[(i[e+1]&15)<<2|i[e+2]>>6],o+=Nr[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},Al=new Map;function zb(t,n){var i=Al.get(t);return i||(i=new Map,Al.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var fp=function(t,n,i){if(!(!t||!(pp(t,n)||(typeof t>"u"?"undefined":D(t))==="object"))){var e=t.constructor.name,r=zb(i,e),o=r.indexOf(t);return o===-1&&(o=r.length,r.push(t)),o}};function Gi(t,n,i){if(N(t,Array))return t.map(function(d){return Gi(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=Bb(t);return{rr_type:r,base64:o}}else if(N(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[Gi(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:[Gi(t.data,n,i),t.width,t.height]}}else if(pp(t,n)||(typeof t>"u"?"undefined":D(t))==="object"){var h=t.constructor.name,g=fp(t,n,i);return{rr_type:h,index:g}}return t}var hp=function(t,n,i){return t.map(function(e){return Gi(e,n,i)})},pp=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 qb(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=hp(m,n,g);t(g.canvas,{type:Vr["2D"],property:c,args:y})},0),h.apply(this,m)}});o.push(l)}catch{var f=qo(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 jb(t){return t==="experimental-webgl"?"webgl":t}function Ml(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=jb(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 Tl(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(fp(_,o,this),"tagName"in this.canvas&&!Ze(this.canvas,e,r,!0)){var w=hp(v,o,this),b={type:n,property:f,args:w};i(this.canvas,b)}return _}});a.push(h)}catch{var g=qo(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 Gb(t,n,i,e){var r,o=[];if((r=o).push.apply(r,[].concat(Tl(n.WebGLRenderingContext.prototype,Vr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext<"u"){var s;(s=o).push.apply(s,[].concat(Tl(n.WebGL2RenderingContext.prototype,Vr.WebGL2,t,i,e,n)))}return function(){o.forEach(function(a){return a()})}}var dp="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Wb=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},Pl=typeof window<"u"&&window.Blob&&new Blob([Wb(dp)],{type:"text/javascript;charset=utf-8"});function Vb(t){var n;try{if(n=Pl&&(window.URL||window.webkitURL).createObjectURL(Pl),!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,"+dp,{name:t?.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var Hb=(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=Ml(r,o,s,!0),l=new Map,f=new Vb;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(Mo(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=Ml(e,r,o,!1),a=qb(this.processMutation.bind(this),e,r,o),u=Gb(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})(),Yb=(function(){function t(i){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new db),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:Af(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})(),Kb=(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 Jb(t){try{var n=new URL(t).origin;return n!=="null"?n:null}catch{return null}}function Xb(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=Jb(e);r&&n.add(r)}return Object.freeze(n)}var Me,Wi,Is,co=!1;try{Array.from([1],function(t){return t*2})[0]!==2&&(ki=document.createElement("iframe"),document.body.appendChild(ki),Array.from=((Nc=ki.contentWindow)==null?void 0:Nc.Array.from)||Array.from,document.body.removeChild(ki))}catch(t){console.debug("Unable to override Array.from",t)}var ki,ht=Jg();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;bb(Ke);var tt;Z&&he&&he.length>0&&(tt=Xb(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||{};pb();var st,xr=0,Oc=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=ao(),(L=kt[0])!=null&&L.isFrozen()&&de.type!==te.FullSnapshot&&!(de.type===te.IncrementalSnapshot&&de.data.source===G.Mutation)&&kt.forEach(function(vg){return vg.unfreeze()}),We)n?.(Oc(de),Je);else if(bt){var dr={type:"rrweb",event:Oc(de),origin:window.location.origin,isCheckout:Je};if(tt)for(var us=O(tt),Pc;!(Pc=us()).done;){var hg=Pc.value;window.parent.postMessage(dr,hg)}else window.parent.postMessage(dr,"*")}if(de.type===te.FullSnapshot)st=de,xr=0;else if(de.type===te.IncrementalSnapshot){if(de.data.source===G.Mutation&&de.data.isAttachIframe)return;xr++;var pg=e&&xr>=e,dg=i&&de.timestamp-st.timestamp>i;(pg||dg)&&Wi(!0)}};for(var ei=function(oe){Me({type:te.IncrementalSnapshot,data:J({source:G.Mutation},oe)})},xc=function(oe){return Me({type:te.IncrementalSnapshot,data:J({source:G.Scroll},oe)})},Rc=function(oe){return Me({type:te.IncrementalSnapshot,data:J({source:G.CanvasMutation},oe)})},lg=function(oe){return Me({type:te.IncrementalSnapshot,data:J({source:G.AdoptedStyleSheet},oe)})},hr=new Yb({mutationCb:ei,adoptedStyleSheetCb:lg}),Nt=new Db({mirror:ht,mutationCb:ei,stylesheetManager:hr,recordCrossOriginIframes:Z,wrappedEmit:Me}),fg=O(xe||[]),Ac;!(Ac=fg()).done;){var Mc=Ac.value;Mc.getMirror&&Mc.getMirror({nodeMirror:ht,crossOriginIframeMirror:Nt.crossOriginIframeMirror,crossOriginIframeStyleMirror:Nt.crossOriginIframeStyleMirror})}var ss=new Kb;Is=new Hb({recordCanvas:ie,mutationCb:Rc,win:window,blockClass:o,blockSelector:a,mirror:ht,sampling:q.canvas,dataURLOptions:$});var ti=new Fb({mutationCb:ei,scrollCb:xc,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:Is,keepIframeSrcFn:et,processedNodeManager:ss},mirror:ht});Wi=function(oe){if(oe===void 0&&(oe=!1),!!B){Me({type:te.Meta,data:{href:window.location.href,width:Qh(),height:Zh()}},oe),hr.reset(),ti.init(),kt.forEach(function(L){return L.lock()});var Je=wm(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){rp(L,ht)&&Nt.addIframe(L),np(L,ht)&&hr.trackLinkElement(L),Sa(L)&&ti.addShadowRoot(Q.shadowRoot(L),document)},onIframeLoad:function(L,de){Nt.attachIframe(L,de),ti.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:Xh(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=[],Tc=function(oe){var Je;return re(Nb)({mutationCb:ei,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:xc,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:Rc,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:ti,processedNodeManager:ss,canvasManager:Is,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=Tc(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),Cb(Je)}catch{}})}catch(dr){console.warn(dr)}});var as=function(){Wi(),pr.push(Tc(document)),co=!0};return document.readyState==="interactive"||document.readyState==="complete"?as():(pr.push(Xe("DOMContentLoaded",function(){Me({type:te.DomContentLoaded,data:{}}),Se==="DOMContentLoaded"&&as()})),pr.push(Xe("load",function(){Me({type:te.Load,data:{}}),Se==="load"&&as()},window))),function(){pr.forEach(function(oe){try{oe()}catch(L){var Je=String(L).toLowerCase();Je.includes("cross-origin")||console.warn(L)}}),ss.destroy(),co=!1,Sb()}}catch(oe){console.warn(oe)}}nr.addCustomEvent=function(t,n){if(!co)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(!co)throw new Error("please take full snapshot after start recording");Wi(t)};nr.mirror=ht;var $l;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})($l||($l={}));nr.addCustomEvent;nr.freezePage;nr.takeFullSnapshot;var Ll={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Nl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Oi={},Zb=function(){return!!globalThis.Zone};function Ou(t){if(Oi[t])return Oi[t];var n=globalThis[t],i=n.prototype,e=t in Ll?Ll[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in Nl?Nl[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&&!Zb())return Oi[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?Oi[t]=c:i}catch{return i}}var ks={};function ir(t,n,i){var e,r=t+"."+String(i);if(ks[r])return ks[r].call(n);var o=Ou(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(ks[r]=s,s.call(n)):n[i]}var Os={};function vp(t,n,i){var e=t+"."+String(i);if(Os[e])return Os[e].bind(n);var r=Ou(t),o=r[i];return typeof o!="function"?n[i]:(Os[e]=o,o.bind(n))}function Qb(t){return ir("Node",t,"childNodes")}function eS(t){return ir("Node",t,"parentNode")}function tS(t){return ir("Node",t,"parentElement")}function rS(t){return ir("Node",t,"textContent")}function nS(t,n){return vp("Node",t,"contains")(n)}function iS(t){return vp("Node",t,"getRootNode")()}function oS(t){return!t||!("host"in t)?null:ir("ShadowRoot",t,"host")}function sS(t){return t.styleSheets}function aS(t){return!t||!("shadowRoot"in t)?null:ir("Element",t,"shadowRoot")}function uS(t,n){return ir("Element",t,"querySelector")(n)}function cS(t,n){return ir("Element",t,"querySelectorAll")(n)}function lS(){return Ou("MutationObserver").constructor}function fS(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 Dl={childNodes:Qb,parentNode:eS,parentElement:tS,textContent:rS,contains:nS,getRootNode:iS,host:oS,styleSheets:sS,shadowRoot:aS,querySelector:uS,querySelectorAll:cS,mutationObserver:lS,patch:fS};function Ea(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Ea(Dl.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return Ea(Dl.parentNode(t),n)}function hS(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function pS(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 xu={exports:{}},_e=String,gp=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}};xu.exports=gp();xu.exports.createColors=gp;var dS=xu.exports,vS={},gS=Object.freeze(Object.defineProperty({__proto__:null,default:vS},Symbol.toStringTag,{value:"Module"})),Ne=pS(gS),Fl=dS,Ul=Ne,Ia=(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=Fl.isColorSupported),Ul&&r&&(s=Ul(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=Fl.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+`
|
|
54
|
+
`+C+f("^")}return" "+h(b)+y}).join(`
|
|
55
|
+
`)},i.toString=function(){var r=this.showSourceCode();return r&&(r=`
|
|
56
|
+
|
|
57
|
+
`+r+`
|
|
58
|
+
`),this.name+": "+this.message+r},n})(En(Error)),Ru=Ia;Ia.default=Ia;var or={};or.isClean=Symbol("isClean");or.my=Symbol("my");var Bl={after:`
|
|
59
|
+
`,beforeClose:`
|
|
60
|
+
`,beforeComment:`
|
|
61
|
+
`,beforeDecl:`
|
|
62
|
+
`,beforeOpen:" ",beforeRule:`
|
|
63
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function mS(t){return t[0].toUpperCase()+t.slice(1)}var ka=(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(`
|
|
64
|
+
`)){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 Bl[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"+mS(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=Bl[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(`
|
|
65
|
+
`)&&(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(`
|
|
66
|
+
`)&&(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(`
|
|
67
|
+
`)&&(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(`
|
|
68
|
+
`)&&(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(`
|
|
69
|
+
`);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})(),mp=ka;ka.default=ka;var yS=mp;function Oa(t,n){var i=new yS(n);i.stringify(t)}var jo=Oa;Oa.default=Oa;var xi=or.isClean,_S=or.my,wS=Ru,bS=mp,SS=jo;function xa(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 xa(s,i)}):(o==="object"&&r!==null&&(r=xa(r)),i[e]=r)}return i}var Ra=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[xi]=!1,this[_S]=!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=xa(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 wS(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[xi]){this[xi]=!1;for(var e=this;e=e.parent;)e[xi]=!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]===`
|
|
70
|
+
`?(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 bS;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=SS),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})(),Go=Ra;Ra.default=Ra;var CS=Go,Aa=(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})(CS),Wo=Aa;Aa.default=Aa;var ES="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",IS=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=ES[Math.random()*64|0];return n},kS={nanoid:IS},zl=Ne.SourceMapConsumer,ql=Ne.SourceMapGenerator,OS=Ne.existsSync,xS=Ne.readFileSync,xs=Ne.dirname,RS=Ne.join;function AS(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Ma=(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=xs(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new zl(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 AS(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=xs(e),OS(e))return this.mapFile=e,xS(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,zl))return ql.fromSourceMap(r).toString();if(N(r,ql))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=RS(xs(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})(),yp=Ma;Ma.default=Ma;var MS=Ne.SourceMapConsumer,TS=Ne.SourceMapGenerator,jl=Ne.fileURLToPath,Ri=Ne.pathToFileURL,Ta=Ne.isAbsolute,Pa=Ne.resolve,PS=kS.nanoid,Rs=Ne,Gl=Ru,$S=yp,As=Symbol("fromOffsetCache"),LS=!!(MS&&TS),Wl=!!(Pa&&Ta),lo=(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&&(!Wl||/^\w+:\/\//.test(e.from)||Ta(e.from)?this.file=e.from:this.file=Pa(e.from)),Wl&&LS){var r=new $S(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 "+PS(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&&(Ri&&(a.input.url=Ri(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[As])o=this[As];else{var s=this.css.split(`
|
|
71
|
+
`);o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[As]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Pa(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;Ta(u.source)?l=Ri(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Ri(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(jl)f.file=jl(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})(),Vo=lo;lo.default=lo;Rs&&Rs.registerInput&&Rs.registerInput(lo);var _p=Ne.SourceMapConsumer,Vi=Ne.SourceMapGenerator,Hi=Ne.dirname,wp=Ne.relative,bp=Ne.resolve,Sp=Ne.sep,Vl=Ne.pathToFileURL,NS=Vo,DS=!!(_p&&Vi),FS=!!(Hi&&bp&&wp&&Sp),US=(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=`
|
|
72
|
+
`;this.css.includes(`\r
|
|
73
|
+
`)&&(r=`\r
|
|
74
|
+
`),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 _p(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(),FS&&DS&&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=Vi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Vi({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 Vi({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(`
|
|
75
|
+
`),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(bp(o,this.mapOpts.annotation)));var s=wp(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 NS(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(Vl){var o=Vl(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;Sp==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Cp=US,BS=Go,$a=(function(t){Ee(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(BS),Ho=$a;$a.default=$a;var Ep=or.isClean,Ip=or.my,kp=Wo,Op=Ho,zS=Go,xp,Au,Mu,Rp;function Ap(t){return t.map(function(n){return n.nodes&&(n.nodes=Ap(n.nodes)),delete n.source,n})}function Mp(t){if(t[Ep]=!1,t.proxyOf.nodes)for(var n=O(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Mp(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=Ap(xp(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 kp(r)]}else if(r.selector)r=[new Au(r)];else if(r.name)r=[new Mu(r)];else if(r.text)r=[new Op(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Ip]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Ep]&&Mp(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})(zS);qt.registerParse=function(t){xp=t};qt.registerRule=function(t){Au=t};qt.registerAtRule=function(t){Mu=t};qt.registerRoot=function(t){Rp=t};var Ir=qt;qt.default=qt;qt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Mu.prototype):t.type==="rule"?Object.setPrototypeOf(t,Au.prototype):t.type==="decl"?Object.setPrototypeOf(t,kp.prototype):t.type==="comment"?Object.setPrototypeOf(t,Op.prototype):t.type==="root"&&Object.setPrototypeOf(t,Rp.prototype),t[Ip]=!0,t.nodes&&t.nodes.forEach(function(n){qt.rebuild(n)})};var qS=Ir,Tp,Pp,Ln=(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 Tp(new Pp,this,r);return o.stringify()},n})(qS);Ln.registerLazyResult=function(t){Tp=t};Ln.registerProcessor=function(t){Pp=t};var Tu=Ln;Ln.default=Ln;var La=(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})(),$p=La;La.default=La;var jS=$p,Na=(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 jS(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=Na;Na.default=Na;var Ms=39,Hl=34,Ai=92,Yl=47,Mi=10,pn=32,Ti=12,Pi=9,$i=13,GS=91,WS=93,VS=40,HS=41,YS=123,KS=125,JS=59,XS=42,ZS=58,QS=64,Li=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ni=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,eC=/.[\r\n"'(/\\]/,Kl=/[\da-f]/i,tC=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 Mi:case pn:case Pi:case $i:case Ti:{s=v;do s+=1,o=e.charCodeAt(s);while(o===pn||o===Mi||o===Pi||o===$i||o===Ti);d=["space",e.slice(v,s)],v=s-1;break}case GS:case WS:case YS:case KS:case ZS:case JS:case HS:{var q=String.fromCharCode(o);d=[q,q,v];break}case VS:{if(h=y.length?y.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==Ms&&g!==Hl&&g!==pn&&g!==Mi&&g!==Pi&&g!==Ti&&g!==$i){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)===Ai;)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||eC.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case Ms:case Hl:{a=o===Ms?"'":'"',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)===Ai;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case QS:{Li.lastIndex=v+1,Li.test(e),Li.lastIndex===0?s=e.length-1:s=Li.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case Ai:{for(s=v,c=!0;e.charCodeAt(s+1)===Ai;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Yl&&o!==pn&&o!==Mi&&o!==Pi&&o!==$i&&o!==Ti&&(s+=1,Kl.test(e.charAt(s)))){for(;Kl.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===pn&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===Yl&&e.charCodeAt(v+1)===XS?(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):(Ni.lastIndex=v+1,Ni.test(e),Ni.lastIndex===0?s=e.length-1:s=Ni.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}},Lp=Ir,fo=(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})(Lp),$u=fo;fo.default=fo;Lp.registerAtRule(fo);var Np=Ir,Dp,Fp,Hr=(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 Dp(new Fp,this,r);return o.stringify()},n})(Np);Hr.registerLazyResult=function(t){Dp=t};Hr.registerProcessor=function(t){Fp=t};var Vn=Hr;Hr.default=Hr;Np.registerRoot(Hr);var Nn={comma:function(n){return Nn.split(n,[","],!0)},space:function(n){var i=[" ",`
|
|
76
|
+
`," "];return Nn.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}},Up=Nn;Nn.default=Nn;var Bp=Ir,rC=Up,ho=(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 rC.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})(Bp),Lu=ho;ho.default=ho;Bp.registerRule(ho);var nC=Wo,iC=tC,oC=Ho,sC=$u,aC=Vn,Jl=Lu,Xl={empty:!0,space:!0};function uC(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var cC=(function(){function t(i){this.input=i,this.root=new aC,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 sC;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 oC;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=iC(this.input)},n.decl=function(e,r){var o=new nC;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]||uC(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 Jl;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",!Xl[g]&&!Xl[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 Jl;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})(),lC=cC,fC=Ir,hC=lC,pC=Vo;function po(t,n){var i=new pC(t,n),e=new hC(i);try{e.parse()}catch(r){throw r}return e.root}var Nu=po;po.default=po;fC.registerParse(po);var Et=or.isClean,dC=or.my,vC=Cp,gC=jo,mC=Ir,yC=Tu;var Zl=Pu,_C=Nu,wC=Vn,bC={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},SC={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},CC={Once:!0,postcssPlugin:!0,prepare:!0},Yr=0;function dn(t){return(typeof t>"u"?"undefined":D(t))==="object"&&typeof t.then=="function"}function zp(t){var n=!1,i=bC[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,Yr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,Yr,i+"Exit"]:[i,i+"Exit"]}function Ql(t){var n;return t.type==="document"?n=["Document",Yr,"DocumentExit"]:t.type==="root"?n=["Root",Yr,"RootExit"]:n=zp(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Da(t){return t[Et]=!1,t.nodes&&t.nodes.forEach(function(n){return Da(n)}),t}var Fa={},Kr=(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=Da(e);else if(N(e,t)||N(e,Zl))s=Da(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=_C;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[dC]&&mC.rebuild(s)}this.result=new Zl(i,s,r),this.helpers=J({},Fa,{postcss:Fa,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&&0)var s,a,u,c,l}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(!SC[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!CC[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 Mo(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),!dn(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=[Ql(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!dn(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,nu(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 dn(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=gC;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new vC(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(dn(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 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(dn(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(Ql(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===Yr){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=zp(e),s=O(o),a;!(a=s()).done;){var u=a.value;if(u===Yr)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})();Kr.registerPostcss=function(t){Fa=t};var qp=Kr;Kr.default=Kr;wC.registerLazyResult(Kr);yC.registerLazyResult(Kr);var EC=Cp,IC=jo;var kC=Nu,OC=Pu,Ua=(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=IC;this.result=new OC(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 EC(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 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=kC;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})(),xC=Ua;Ua.default=Ua;var RC=xC,AC=qp,MC=Tu,TC=Vn,Dn=(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)))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 RC(this,e,r):new AC(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),PC=Dn;Dn.default=Dn;TC.registerProcessor(Dn);MC.registerProcessor(Dn);var $C=Wo,LC=yp,NC=Ho,DC=$u,FC=Vo,UC=Vn,BC=Lu;function Fn(t,n){if(Array.isArray(t))return t.map(function(f){return Fn(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__:FC.prototype});a.map&&(a.map=J({},a.map,{__proto__:LC.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Fn(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 UC(e);if(e.type==="decl")return new $C(e);if(e.type==="rule")return new BC(e);if(e.type==="comment")return new NC(e);if(e.type==="atrule")return new DC(e);throw new Error("Unknown node type: "+t.type)}var zC=Fn;Fn.default=Fn;var qC=Ru,jp=Wo,jC=qp,GC=Ir,Du=PC,WC=jo,VC=zC,Gp=Tu,HC=$p,Wp=Ho,Vp=$u,YC=Pu,KC=Vo,JC=Nu,XC=Up,Hp=Lu,Yp=Vn,ZC=Go;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 Du(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:
|
|
77
|
+
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:
|
|
78
|
+
https://www.w3ctech.com/topic/2226`));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Du().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=WC;ce.parse=JC;ce.fromJSON=VC;ce.list=XC;ce.comment=function(t){return new Wp(t)};ce.atRule=function(t){return new Vp(t)};ce.decl=function(t){return new jp(t)};ce.rule=function(t){return new Hp(t)};ce.root=function(t){return new Yp(t)};ce.document=function(t){return new Gp(t)};ce.CssSyntaxError=qC;ce.Declaration=jp;ce.Container=GC;ce.Processor=Du;ce.Document=Gp;ce.Comment=Wp;ce.Warning=HC;ce.AtRule=Vp;ce.Result=YC;ce.Input=KC;ce.Rule=Hp;ce.Root=Yp;ce.Node=ZC;jC.registerPostcss(ce);var QC=ce;ce.default=ce;var Oe=hS(QC);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 eE=Object.defineProperty,tE=function(t,n,i){return n in t?eE(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Di=function(t,n,i){return tE(t,(typeof n>"u"?"undefined":D(n))!=="symbol"?n+"":n,i)};function rE(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 Ar=(function(){function t(i){Di(this,"fileName"),Di(this,"functionName"),Di(this,"lineNumber"),Di(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})(),nE=/(^|@)\S+:\d+/,ef=/^\s*at .*(\S+:\d+|\(native\))/m,iE=/^(eval@)?(\[native code])?$/,Ts={parse:function(n){return n?typeof n.stacktrace<"u"||typeof n["opera#sourceloc"]<"u"?this.parseOpera(n):n.stack&&n.stack.match(ef)?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(`
|
|
79
|
+
`).filter(function(e){return!!e.match(ef)},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 Ar({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split(`
|
|
80
|
+
`).filter(function(e){return!e.match(iE)},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 Ar({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,a=this.extractLocation(e.replace(r,""));return new Ar({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf(`
|
|
81
|
+
`)>-1&&n.message.split(`
|
|
82
|
+
`).length>n.stacktrace.split(`
|
|
83
|
+
`).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(`
|
|
84
|
+
`),r=[],o=2,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new Ar({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(`
|
|
85
|
+
`),r=[],o=0,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new Ar({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split(`
|
|
86
|
+
`).filter(function(e){return!!e.match(nE)&&!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 Ar({functionName:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function oE(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 Ba(t){return Object.prototype.toString.call(t)==="[object Object]"}function Kp(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(Ba(t[o])&&Kp(t[o],n-1))return!0}return!1}function Mr(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]=oE(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+`
|
|
87
|
+
End of stack for Error object`:u.name+": "+u.message}return u});function o(a){return!!(Ba(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||Ba(a)&&Kp(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 tf={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 sE(t,n,i){var e=i?Object.assign({},tf,i):tf,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,_=Ts.parse(y).map(function(b){return b.toString()}),w=[Mr(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=[Mr("Uncaught (in promise) "+v.name+": "+v.message,e.stringifyOptions)]):(v=new Error,y=[Mr("Uncaught (in promise)",e.stringifyOptions),Mr(m.reason,e.stringifyOptions)]);var _=Ts.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]?rE(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=Ts.parse(new Error).map(function(q){return q.toString()}).splice(1),A=v==="assert"?C.slice(1):C,P=A.map(function(q){return Mr(q,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:v,trace:x,payload:P}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[Mr("The number of log records reached the threshold.")]})}catch(q){_.apply(void 0,[].concat(["rrweb logger error:",q],C))}finally{a=!1}}}}):function(){}}}var aE="rrweb/console@1",uE=function(t){return{name:aE,observer:sE,options:t}},rf=E.setImmediate,Xt,za,qa,Jp=Object.prototype.toString,cE=typeof rf<"u"?function(n){return rf(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}}qa=(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=za=void 0;s;)s.fn.call(s.self),s=s.next}}})();function vo(t,n){qa.add(t,n),za||(za=cE(qa.drain))}function Xp(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function Fu(){for(var t=0;t<this.chain.length;t++)lE(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function lE(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=Xp(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(o){i.reject(o)}}function Zp(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=Xp(t))?vo(function(){var e=new nf(i);try{n.call(t,function(){Zp.apply(e,arguments)},function(){_n.apply(e,arguments)})}catch(r){_n.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&vo(Fu,i))}catch(e){_n.call(new nf(i),e)}}}function _n(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&vo(Fu,n))}function Qp(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 nf(t){this.def=t,this.triggered=!1}function fE(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 fE(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&&vo(Fu,n),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){Zp.call(n,e)},function(e){_n.call(n,e)})}catch(i){_n.call(n,i)}}var ed=Xt({},"constructor",sr,!1);sr.prototype=ed;Xt(ed,"__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 Jp.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;Qp(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})});Xt(sr,"race",function(n){var i=this;return Jp.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");Qp(i,n,function(a,u){r(u)},o)})});var H;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?H=Promise:H=sr;var wn=1440*60*1e3,Ps=8*1e3,Yo=Array.prototype,hE=Function.prototype,td=Object.prototype,Yt=Yo.slice,Hn=td.toString,Ko=td.hasOwnProperty,Ue=E.console,Ft=E.navigator,W=E.document,vn=E.opera,of=E.screen,It=Ft.userAgent,$s=hE.bind,sf=Yo.forEach,af=Yo.indexOf,uf=Yo.map,pE=Array.isArray,ja={},p={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},V={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)})}}}},Ls=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(V,arguments)}},Gt=function(t){return{log:Ls(V.log,t),error:Ls(V.error,t),critical:Ls(V.critical,t)}},Jr=function(t){return function(){try{return t.apply(this,arguments)}catch(n){V.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),nt.DEBUG&&V.critical(n)}}},Uu=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Jr(n[i]))};p.bind=function(t,n){var i,e;if($s&&t.bind===$s)return $s.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(sf&&t.forEach===sf)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)===ja)return}else for(var o in t)if(Ko.call(t,o)&&n.call(i,t[o],o,t)===ja)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=pE||function(t){return Hn.call(t)==="[object Array]"};p.isFunction=function(t){return typeof t=="function"};p.isArguments=function(t){return!!(t&&Ko.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(uf&&t.map===uf)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:af&&t.indexOf===af?t.indexOf(n)!=-1:(p.each(t,function(e){if(i||(i=e===n))return ja}),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(Ko.call(t,n))return!1;return!0}return!1};p.isUndefined=function(t){return t===void 0};p.isString=function(t){return Hn.call(t)=="[object String]"};p.isDate=function(t){return Hn.call(t)=="[object Date]"};p.isNumber=function(t){return Hn.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=[],Hn.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?`[
|
|
88
|
+
`+s+g.join(`,
|
|
89
|
+
`+s)+`
|
|
90
|
+
`+h+"]":"["+g.join(",")+"]",s=h,l}for(c in d)Ko.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:`
|
|
91
|
+
`,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,`
|
|
92
|
+
`).replace(/\r/g,`
|
|
93
|
+
`);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 cf=["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<cf.length;n++)if(t.indexOf(cf[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{V.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=lf(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=lf(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 rd=function(t){var n=!0;try{var i="__mplss_"+Bu(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch{n=!1}return n},Ns=null,Un=function(t,n){return Ns!==null&&!n?Ns:Ns=rd(t||E.localStorage)},Ds=null,dE=function(t,n){return Ds!==null&&!n?Ds:Ds=rd(t||E.sessionStorage)};function nd(t,n,i){var e=function(r){V.error(n+" error: "+r)};return{is_supported:function(r){var o=i(t,r);return o||V.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 id=null,od=null;try{id=E.localStorage,od=E.sessionStorage}catch{}p.localStorage=nd(id,"localStorage",Un);p.sessionStorage=nd(od,"sessionStorage",dE);p.register_event=(function(){var t=function(e,r,o,s,a){if(!e){V.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 vE=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(vE);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 gE=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],mE=["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(gE,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(mE,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,vn),$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,vn),$screen_height:of.height,$screen_width:of.width,mp_lib:"web",$lib_version:nt.LIB_VERSION,$insert_id:Bu(),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,vn)}),{$browser_version:p.info.browserVersion(It,Ft.vendor,vn)})},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 yE=function(t,n){var i=null,e=[];return function(r){var o=this;return e.push(r),i||(i=new H(function(s){setTimeout(function(){var a=t.apply(o,[e]);i=null,e=[],s(a)},n)})),i}},Bu=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},sd=function(){var t=p.UUID().replace(/-/g,""),n=p.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},_E=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,wE=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,lf=function(t){var n=wE,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=_E);var r=t.match(n);return r?r[0]:""},bE=function(){var t=E.navigator.onLine;return p.isUndefined(t)||t},Jt=function(){},go=function(t,n){for(var i=!1,e=0;e<n.length;e++)if(t.match(n[e])){i=!0;break}return i},Xr=null,mo=null;typeof JSON<"u"&&(Xr=JSON.stringify,mo=JSON.parse);Xr=Xr||p.JSONEncode;mo=mo||p.JSONDecode;var SE=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 CE="mixpanelBrowserDb",ad="mixpanelRecordingEvents",zu="mixpanelRecordingRegistry",EE=1,IE=[ad,zu],vt=function(t){this.dbPromise=null,this.storeName=t};vt.prototype._openDb=function(){return new H(function(t,n){var i=E.indexedDB.open(CE,EE);i.onerror=function(){n(i.error)},i.onsuccess=function(){t(i.result)},i.onupgradeneeded=function(e){var r=e.target.result;IE.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?H.resolve():H.reject(t)})):H.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 H(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)):H.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 kE="__mp_opt_in_out_";function OE(t,n){ld(!0,t,n)}function xE(t,n){ld(!1,t,n)}function RE(t,n){return cd(t,n)==="1"}function ud(t,n){if(ME(n))return V.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=cd(t,n)==="0";return i&&V.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function ar(t){return Gu(t,function(n){return this.get_config(n)})}function ur(t){return Gu(t,function(n){return this._get_config(n)})}function en(t){return Gu(t,function(n){return this._get_config(n)})}function AE(t,n){n=n||{},qu(n).remove(ju(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function qu(t){return t=t||{},t.persistenceType==="localStorage"?p.localStorage:p.cookie}function ju(t,n){return n=n||{},(n.persistencePrefix||kE)+t}function cd(t,n){return qu(n).get(ju(t,n))}function ME(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 ld(t,n,i){if(!p.isString(n)||!n.length){V.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},qu(i).set(ju(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 Gu(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=ud(e,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){V.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 TE=Gt("lock"),fd=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||H};fd.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){TE.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:(Un(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(Un(l,!0))y();else throw new Error("localStorage support check failed")}catch(w){r(w)}},this))};var tn=function(t){this.storage=t||E.localStorage};tn.prototype.init=function(){return H.resolve()};tn.prototype.isInitialized=function(){return!0};tn.prototype.setItem=function(t,n){return new H(p.bind(function(i,e){try{this.storage.setItem(t,Xr(n))}catch(r){e(r)}i()},this))};tn.prototype.getItem=function(t){return new H(p.bind(function(n,i){var e;try{e=mo(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))};tn.prototype.removeItem=function(t){return new H(p.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var ff=Gt("batch"),Rt=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new tn,this.lock=new fd(t,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||p.bind(ff.error,ff),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=yE(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?H.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:Bu(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),H.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)):H.resolve(n)};var hf=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=hf(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=hf(e,n),this.saveToStorage(e)},this)).then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){for(var r=0;r<e.length;r++){var o=e[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(p.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(p.bind(function(e){return this.reportError("Error acquiring storage lock",e),Un(this.lock.storage,!0)?!1:i().then(p.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(p.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return H.resolve(!0)};var pf=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=pf(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=pf(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)):H.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)):H.resolve()};var PE=600*1e3,bn=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 H(p.bind(function(i){this.sendRequest(t,n,i)},this))};ct.prototype.flush=function(t){if(this.requestInProgress)return bn.log("Flush: Request already in progress"),H.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(),H.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(),H.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),H.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(PE,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),H.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(),H.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"),bn.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(bn.error.apply(bn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){bn.error(i)}};var Wu=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},$E=250,hd=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},Bn="change",jt="click",Ga="hashchange",LE="input",df="load",Kt="mp_locationchange",vf="popstate",Jo="scrollend",Vu="scroll",NE="select",yo="submit",DE="toggle",gf="visibilitychange",FE=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],mf=["mp-include"],Wa=["mp-no-track"],yf=Wa.concat(["mp-sensitive"]),UE=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],BE={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},zE={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},qE={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},_f=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],jE=5,ge=Gt("autocapture");function Va(t){for(var n={},i=pd(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function pd(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function GE(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!dd(t));return t}function wf(t,n,i,e,r,o){var s={$classes:pd(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(s.$id=a),Hu(t,n,r,o)&&p.each(UE.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var h=t.getAttribute(f);_o(h)&&(s["$attr-"+f]=h)}});for(var u=1,c=1,l=t;l=GE(l);)u++,l.tagName===t.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function WE(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(vd(h)&&(h=h.parentNode),KE(h,t)&&Ha(h,t,i,e)&&!Fs(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=Hu(C,t,i,e);!l.href&&C.tagName.toLowerCase()==="a"&&(v=C.getAttribute("href"),v=k&&_o(v)&&v),Fs(C,t,o,s)&&(y=!0),m.push(wf(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);_o(k)&&(f["$el_attr__"+C]=k)}}),a&&(w=bf(h,t,i,e),w&&w.length&&(f.$el_text=w)),t.type===jt&&(p.each(FE,function(C){C in t&&(f["$"+C]=t[C])}),c&&(f.$captured_for_heatmap=!0),h=VE(t)),a){var w=bf(h,t,i,e);w&&w.length&&(f.$el_text=w)}if(h){if(!Ha(h,t,i,e)||Fs(h,t,o,s))return null;var b=wf(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 bf(t,n,i,e){var r="";return Hu(t,n,i,e)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,function(o){vd(o)&&o.textContent&&(r+=p.trim(o.textContent).split(/(\s+)/).filter(_o).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),p.trim(r)}function VE(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 Ha(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 Fs(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=Va(t);for(r=0;r<Wa.length;r++)if(s[Wa[r]])return!0;return!1}function dd(t){return t&&t.nodeType===1}function Ot(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function vd(t){return t&&t.nodeType===3}function HE(){try{var t=W.createElement("div");return!!t.matches}catch{return!1}}function YE(){return typeof WeakSet<"u"}function KE(t,n){if(!t||Ot(t,"html")||!dd(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===yo;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===Bn:n.type===jt;case"select":case"textarea":return n.type===Bn;default:return n.type===jt}}function gd(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 Hu(t,n,i,e){var r;if(!Ha(t,n,i,e))return!1;for(var o=t;o.parentNode&&!Ot(o,"body");o=o.parentNode){var s=Va(o);for(r=0;r<yf.length;r++)if(s[yf[r]])return!1}var a=Va(t);for(r=0;r<mf.length;r++)if(a[mf[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!gd(t)}function _o(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 md(t){var n="onscrollend"in E,i=Jr(t),e=Jo;if(!n){var r=null,o=100;i=Jr(function(){clearTimeout(r),r=setTimeout(t,o)}),e=Vu}return{listener:i,eventType:e}}function JE(t){for(var n=0;n<_f.length;n++)if(t.hasAttribute(_f[n]))return!0;return!1}function XE(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return BE[i]}function Us(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||JE(t)||XE(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function yd(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(zE[n])return!0;if(Us(t))return!1;for(var i=t.parentElement,e=0;i&&e<jE;){if(Us(i))return!1;if(i.getRootNode&&i.getRootNode()!==W){var r=i.getRootNode();if(r.host&&Us(r.host))return!1}i=i.parentElement,e++}return!!qE[n]}function _d(t){return"composedPath"in t?t.composedPath():[]}function wd(t){var n=_d(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var bd=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",ZE="data-rr-is-password",QE=["password","email","tel","hidden"];function Fi(t){return t?Array.isArray(t)?t:[t]:[]}function e0(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=Fi(i).join(","),n.input.unmaskingSelector=Fi(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=Fi(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=Fi(s).join(","),a===void 0&&o!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function Fr(t,n){return n?!!t.closest(n):!1}function t0(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(QE.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(ZE)||gd(t)?!0:n.input.maskAll?!Fr(t,n.input.unmaskingSelector):!!(Fr(t,n.input.maskingSelector)||Fr(t,bd))}function r0(t,n){return t?n.text._legacyClassRegex&&Ea(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!Fr(t,n.text.unmaskingSelector):!!(Fr(t,n.text.maskingSelector)||Fr(t,bd)):!1}var _r=Gt("network-plugin");function wo(t){return Math.round(Date.now()-t.performance.now())}var Bs={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 n0(t){return t.entryType==="navigation"}function Ya(t){return t.entryType==="resource"}function i0(t,n){for(var i=t.length,e=i-1;e>=0;e-=1)if(n(t[e]))return t[e]}function Sd(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 zs=1024*1024;function Cd(t){return!t||typeof t!="string"?t:t.length>zs?(_r.error("Body truncated from "+t.length+" to "+zs+" characters"),t.substring(0,zs)+"... [truncated]"):t}function o0(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 n0(o)||Ya(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:wo(n)}}),isInitial:!0})}var r=new n.PerformanceObserver(function(o){var s=o.getEntries().filter(function(a){return Ya(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:wo(n)}})})});return r.observe({entryTypes:["navigation","resource"]}),function(){r.disconnect()}}function bo(t,n,i){return!n[t]||n[t].length===0?!1:n[t].includes(i.toLowerCase())}function So(t,n,i){return!n[t]||n[t].length===0?!1:go(i,n[t])}function Sf(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 Cd(n)}function Cf(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(Cd(e))},function(e){clearTimeout(i),n("Failed to read body: "+String(e))})}catch(e){clearTimeout(i),n("Failed to read body: "+String(e))}})}function Yu(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=i0(s,function(u){return Ya(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 Yu(t,n,i,e,r,o+1)})}function s0(t,n,i){if(!i.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=Sd(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 bo("request",i.recordHeaders,_)&&(m[_]=w),v(_,w)},h.requestHeaders=m;var y=l.send.bind(l);l.send=function(_){return So("request",i.recordBodyUrls,f.url)&&(h.requestBody=Sf(_)),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&&bo("response",i.recordHeaders,x)&&(_[x]=A)}}})}h.responseHeaders=_,So("response",i.recordBodyUrls,f.url)&&(h.responseBody=Sf(l.response)),Yu(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:wo(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 a0(t,n,i){if(!i.initiatorTypes.includes("fetch"))return function(){};var e=Sd(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){bo("request",i.recordHeaders,m)&&(g[m]=d)}),a.requestHeaders=g,So("request",i.recordBodyUrls,o.url)&&(f=Cf(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){bo("response",i.recordHeaders,y)&&(m[y]=v)}),a.responseHeaders=m,So("response",i.recordBodyUrls,o.url)&&(h=Cf(s).then(function(v){a.responseBody=v})),s})}catch(d){l=Promise.reject(d)}return Promise.all([f,h,l]).then(function(){return Yu(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:wo(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 u0(t,n,i){if(!("performance"in n))return function(){};var e=Object.assign({},Bs.recordHeaders,i.recordHeaders||{}),r=Object.assign({},Bs.recordBodyUrls,i.recordBodyUrls||{});i=Object.assign({},i,{recordHeaders:e,recordBodyUrls:r});var o=Object.assign({},Bs,i),s=function(l){var f=l.requests.filter(function(h){var g=go(h.url,o.ignoreRequestUrls||[]);return!g&&!o.ignoreRequestFn(h)});(f.length>0||l.isInitial)&&t(Object.assign({},l,{requests:f}))},a=o0(s,n,o),u=s0(s,n,o),c=a0(s,n,o);return function(){a(),u(),c()}}var c0="rrweb/network@1.mp",l0=function(t){return{name:c0,observer:u0,options:t}},vr=Gt("recorder"),f0=E.CompressionStream,h0={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},p0=new Set([G.MouseMove,G.MouseInteraction,G.Scroll,G.ViewportResize,G.Input,G.TouchMove,G.MediaInteraction,G.Drag,G.Selection]);function d0(t){return t.type===te.IncrementalSnapshot&&p0.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=wn,this.recordMinMs=0;var n=Un(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new vt(ad),this.batcher=new ct(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:h0,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:$E,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>wn&&(this.recordMaxMs=wn,vr.critical("record_max_ms cannot be greater than "+wn+"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=e0(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(l0(o))}this.getConfig("record_console")&&r.push(uE({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=hd(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}d0(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(t0,e),maskTextFn:this._getMaskFn(r0,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()),SE(It,Ft.vendor,vn)){var h=new Blob([f],{type:"application/json"}).stream(),g=h.pipeThrough(new f0("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>Ps?(vr.critical("record_min_ms cannot be greater than "+Ps+"ms. Capping value."),Ps):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(zu),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 H.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."),H.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 Wu(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):H.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)):H.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 Wu(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 H.all(n)}.bind(this)).catch(this.handleError.bind(this)):H.resolve([])};var Sn=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:Sn.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()){Sn.log("Recording already in progress, skipping startRecording.");return}var n=function(){Sn.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){Sn.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 H.resolve()};At.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),H.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(Sn.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[qs]=At;function v0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yi={exports:{}},g0=Yi.exports,Ef;function m0(){return Ef||(Ef=1,(function(t,n){(function(i,e){t.exports=e()})(g0,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})})(Yi)),Yi.exports}var y0=m0(),_0=v0(y0),w0=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=_0.apply(e,n||{})}catch(o){return{matches:!1,error:o.toString()}}return{matches:r}},Ed={};Ed.eventMatchesCriteria=w0;E[pt]=Promise.resolve(Ed);var b0=30,S0=1e3,C0=4,E0=!1;function Id(){this.clicks=[]}Id.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||b0,e=n.timeout_ms||S0,r=n.click_count||C0,o=n.interactive_elements_only||E0;if(o){var s=wd(t);if(!s||yd(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 rn(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}rn.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return wd(t)};rn.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=_d(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}};rn.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)}}};rn.prototype.start=function(){if(!this.observedShadowRoots){if(!YE()){ge.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}};rn.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 I0=500,k0=[Bn,LE,yo,NE,DE],O0=[Jo],x0=[Ga],If={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||yd(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;k0.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}})}),x0.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),O0.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,If)}catch(i){ge.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new rn(function(){t.recordChangeEvent()},If),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 kd="autocapture",R0="track_pageview",Od="full-url",A0="url-with-path-and-query-string",M0="url-with-path",T0="allow_element_callback",xd="allow_selectors",Rd="allow_url_regexes",Ad="block_attrs",Md="block_element_callback",Td="block_selectors",Pd="block_url_regexes",$d="capture_extra_attrs",Ld="capture_text_content",Nd="scroll_capture_all",Dd="scroll_depth_percent_checkpoints",Co="click",Eo="dead_click",Ka="input",Fd="pageview",Io="rage_click",Ja="scroll",Xo="page_leave",Xa="submit",Be={};Be[xd]=[];Be[Rd]=[];Be[Ad]=[];Be[Md]=null;Be[Td]=[];Be[Pd]=[];Be[$d]=[];Be[Ld]=!1;Be[Nd]=!1;Be[Dd]=[25,50,75,100];Be[Co]=!0;Be[Eo]=!0;Be[Ka]=!0;Be[Fd]=Od;Be[Io]=!0;Be[Ja]=!0;Be[Xo]=!1;Be[Xa]=!0;var zn={$mp_autocapture:!0},Ud="$mp_click",Bd="$mp_dead_click",P0="$mp_input_change",zd="$mp_rage_click",$0="$mp_scroll",L0="$mp_submit",N0="$mp_page_leave",De=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};De.prototype.init=function(){if(!HE()){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(kd);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(Rd)||[];if(n.length)try{return!go(t,n)}catch(e){return ge.critical("Error while checking block URL regexes: ",e),!0}var i=this.getConfig(Pd)||[];if(!i||!i.length)return!1;try{return go(t,i)}catch(e){return ge.critical("Error while checking block URL regexes: ",e),!0}};De.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(kd)?this.getConfig(Fd):this.mp.get_config(R0)};De.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===Ud&&!this.getConfig(Co)||n===zd&&!this._getClickTrackingConfig(Io)||n===Bd&&!this._getClickTrackingConfig(Eo)),e=WE(t,{allowElementCallback:this.getConfig(T0),allowSelectors:this.getConfig(xd),blockAttrs:this.getConfig(Ad),blockElementCallback:this.getConfig(Md),blockSelectors:this.getConfig(Td),captureExtraAttrs:this.getConfig($d),captureTextContent:this.getConfig(Ld),capturedForHeatMap:i});e&&(p.extend(e,zn),this.mp.track(n,e))}};De.prototype.initPageListeners=function(){if(E.removeEventListener(vf,this.listenerPopstate),E.removeEventListener(Ga,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(Xo)&&!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(vf,this.listenerPopstate),E.addEventListener(Ga,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(Xo)&&!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()},zn);this.mp.track(N0,s,{transport:"sendBeacon"})}};De.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(Vu,this.listenerScrollDepth),E.removeEventListener(Jo,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=md(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}};De.prototype.initClickTracking=function(){E.removeEventListener(jt,this.listenerClick),!(!this.getConfig(Co)&&!this.mp.get_config("record_heatmap_data"))&&(ge.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(Co)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Ud)}.bind(this),E.addEventListener(jt,this.listenerClick))};De.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(Eo);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,Bd)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(Eo);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=I0),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(jt,this.listenerDeadClick))};De.prototype.initInputTracking=function(){E.removeEventListener(Bn,this.listenerChange),this.getConfig(Ka)&&(ge.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(Ka)&&this.trackDomEvent(t,P0)}.bind(this),E.addEventListener(Bn,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(zn)),n&&(t=p.info.currentUrl()),this.listenerLocationchange=Jr(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===Od?e=i!==t:o===A0?e=i.split("#")[0]!==t.split("#")[0]:o===M0&&(e=r),e){var s=this.mp.track_pageview(zn);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(Io);!t&&!this.mp.get_config("record_heatmap_data")||(ge.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Id),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(Io);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,zd)}.bind(this),E.addEventListener(jt,this.listenerRageClick))};De.prototype.initScrollTracking=function(){if(E.removeEventListener(Jo,this.listenerScroll),E.removeEventListener(Vu,this.listenerScroll),!!this.getConfig(Ja)){ge.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(Ja)&&!this.currentUrlBlocked()){var i=this.getConfig(Nd),e=(this.getConfig(Dd)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,o=p.extend({$scroll_top:r},zn);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($0,o)}}.bind(this),n=md(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}};De.prototype.initSubmitTracking=function(){E.removeEventListener(yo,this.listenerSubmit),this.getConfig(Xa)&&(ge.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(Xa)&&this.trackDomEvent(t,L0)}.bind(this),E.addEventListener(yo,this.listenerSubmit))};De.prototype.initPageLeaveTracking=function(){if(W.removeEventListener(gf,this.listenerPageLeaveVisibilitychange),E.removeEventListener(Kt,this.listenerPageLeaveLocationchange),E.removeEventListener(df,this.listenerPageLoad),!(!this.getConfig(Xo)&&!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(df,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Jr(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(gf,this.listenerPageLeaveVisibilitychange)}};De.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(jt,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)};Uu(De);var qd=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"),ko="flags",Oo="context",Za={};Za[Oo]={};var D0=function(t,n){return t+":"+n},F0=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(ko);return t?p.isObject(t)?p.extend({},Za,t):Za:{}};F.prototype.getConfig=function(t){return this.getFullConfig()[t]};F.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ko)};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(ko);p.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(Oo);i[Oo]=p.extend({},e,t);var r={};return r[ko]=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=sd();Ce.log("Fetching flags for distinct ID: "+t);var e=p.extend({distinct_id:t,device_id:n},this.getConfig(Oo)),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=D0(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=F0(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 qd(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=sd(),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"};Uu(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 U0=Gt("recorder"),jd="mp_iframe_handshake_request",Gd="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 V.log("Load recorder check skipped due to disable_persistence config"),H.resolve(!1);var t=new vt(zu),n=this.getTabId();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(Wu(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 V.critical("Browser does not support MutationObserver; skipping session recording"),H.resolve();var i=p.bind(function(a){return new H(p.bind(function(u){var c=Jr(p.bind(function(){this._recorder=this._recorder||new E[qs](this.mixpanelInstance),this._recorder.resumeRecording(a),u()},this));if(p.isUndefined(E[qs])){var l=this.recorderSrc||this.libBasePath+Cg;this.loadExtraBundle(l,c)}else c()},this))},this),e=hd(this.getMpConfig("record_allowed_iframe_origins"),U0),r=e.length>0;if(r&&(this._setupParentFrameListener(e),E.parent!==E))return this._setupChildFrameListener(e,i),this._sendParentFrameRequestWithRetry(e),H.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):H.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+kf;qd(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){V.critical("Could not parse recording event trigger properties logic:",l)}}.bind(this)).catch(function(u){V.critical("Failed to load targeting library:",u)})}else this.checkAndStartSessionRecording(!1,o)}}};qe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():H.resolve()};qe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():H.resolve()};qe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():H.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===Gd&&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=jd,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===jd&&e.token===n.getMpConfig("token")){var r=n.getSessionReplayId();if(r){var o={};o.type=Gd,o.token=n.getMpConfig("token"),o.replayId=r,o.distinctId=n.getDistinctId(),i.source.postMessage(o,i.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}};Uu(qe);var Vt=function(){};Vt.prototype.create_properties=function(){};Vt.prototype.event_handler=function(){};Vt.prototype.after_track_handler=function(){};Vt.prototype.init=function(t){return this.mp=t,this};Vt.prototype.track=function(t,n,i,e){var r=this,o=p.dom_query(t);if(o.length===0){V.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};Vt.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))}};Vt.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=p.extend({},t),i};var Zr=function(){this.override_event="click"};p.inherit(Zr,Vt);Zr.prototype.create_properties=function(t,n){var i=Zr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i};Zr.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()};Zr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var Zo=function(){this.override_event="submit"};p.inherit(Zo,Vt);Zo.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()};Zo.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var Zt="$set",Qr="$set_once",dt="$unset",wr="$add",xt="$append",br="$union",Ut="$remove",B0="$delete",Wd={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[Qr]=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[B0]="",t}},we=function(){};p.extend(we.prototype,Wd);we.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i};we.prototype.set=en(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=en(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=en(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)});we.prototype.union=en(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=en(function(t){var n=this.delete_action();return this._send_request(n,t)});we.prototype.remove=en(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,Wd);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))){V.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(){V.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()){V.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):Qr in t?this._mixpanel.persistence._add_to_people_queue(Qr,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):V.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(Qr,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 Ku="__mps",Ju="__mpso",Xu="__mpus",Zu="__mpa",Qu="__mpap",ec="__mpr",tc="__mpu",Vd="$people_distinct_id",xo="__alias",qn="__timers",z0=[Ku,Ju,Xu,Zu,Qu,ec,tc,Vd,xo,qn],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"&&(V.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(z0,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,Xr(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(Qr),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===Ku?(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===Ju?(p.each(e,function(f,h){h in o||(o[h]=f)}),this._pop_from_people_queue(dt,e)):i===Xu?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===Zu?(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===tc?(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===ec?(c.push(e),this._pop_from_people_queue(xt,e)):i===Qu&&(l.push(e),this._pop_from_people_queue(dt,e)),V.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),V.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 Ku;if(t===Qr)return Ju;if(t===dt)return Xu;if(t===wr)return Zu;if(t===xt)return Qu;if(t===Ut)return ec;if(t===br)return tc;V.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(qn)||{};i[t]=n,this.props[qn]=i,this.save()};X.prototype.remove_event_timer=function(t){var n=this.load_prop(qn)||{},i=n[t];return p.isUndefined(i)||(delete this.props[qn][t],this.save()),i};var Ro,Qa=function(t,n){throw new Error(t+" not available in this build.")},Ve,eu=0,q0=1,ut="mixpanel",Hd="base64",j0="json",rc="$device:",G0="strict",W0="fallback",V0="disabled",Ur=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Yd=!Ur&&It.indexOf("MSIE")===-1&&It.indexOf("Mozilla")===-1,Ao=null;Ft.sendBeacon&&(Ao=function(){return Ft.sendBeacon.apply(Ft,arguments)});var Kd={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},tu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Kd,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Hd,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:wn,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:V0},Jd=!1,S=function(){},ru=function(t,n,i){var e,r=i===ut?Ve:Ve[i];if(r&&Ro===eu)e=r;else{if(r&&!p.isArray(r)){V.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=Ro===eu?"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=ru(t,n,i);return Ve[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||tu.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=j0)}if(this.hooks={},this.set_config(p.extend({},tu,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:Qa}),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)||!Ur)this._batch_requests=!1,V.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),p.each(this.get_batcher_configs(),function(u){V.log("Clearing batch queue "+u.queue_key),p.localStorage.remove(u.queue_key)});else if(this.init_batchers(),Ao&&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:rc+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:Qa,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+kf}),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===G0||a===W0?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"))V.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(!Jd)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(Ur){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(Yd)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||{}),Ur||(i.method="GET");var a=i.method==="POST",u=Ao&&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),Ur||(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=Ao(t,s)}catch(y){l.report_error(y),r=!1}try{e&&e(r?1:0)}catch(y){l.report_error(y)}}else if(Ur)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 V.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){V.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){tu.hasOwnProperty(d)&&(h[d]=g)}),p.isEmptyObject(h)?(V.critical("No valid config keys found in remote settings."),i()):n.set_config(h)}else i()}).catch(function(l){clearTimeout(u),V.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=Xr(t);return this.get_config("api_payload_format")===Hd&&(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?(V.log("MIXPANEL REQUEST:"),V.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,Zr,arguments)};S.prototype.track_forms=function(){return this._track_dom.call(this,Zo,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 H0={persistent:!0},nc=function(t){var n;return p.isObject(t)?n=t:p.isUndefined(t)?n={}:n={days:t},p.extend({},H0,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=nc(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=nc(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=nc(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(rc)===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(xo)&&(this.unregister(xo),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(){V.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:rc+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(Vd))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(xo,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])||V.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else V.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(OE,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(xE,t),this._gdpr_update_persistence(t)};S.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(RE,t)};S.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(ud,t)};S.prototype.clear_opt_in_out_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(AE,t),this._gdpr_update_persistence(t)};S.prototype.report_error=function(t,n){V.error.apply(V.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){V.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):V.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=Kd;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 Dr={},Y0=function(){p.each(Dr,function(t,n){n!==ut&&(Ve[n]=t)}),Ve._=p},K0=function(){Ve.init=function(t,n,i){if(i)return Ve[i]||(Ve[i]=Dr[i]=ru(t,n,i),Ve[i]._loaded()),Ve[i];var e=Ve;Dr[ut]?e=Dr[ut]:t&&(e=ru(t,n,ut),e._loaded(),Dr[ut]=e),Ve=e,Ro===q0&&(E[ut]=Ve),Y0()}},J0=function(){function t(){t.done||(t.done=!0,Jd=!0,Yd=!1,p.each(Dr,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 X0(t){return Qa=t,Ro=eu,Ve=new S,K0(),Ve.init(),J0(),Ve}function Z0(t,n){n()}var cr=X0(Z0);var Xd=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((n,i)=>(i&=63,i<36?n+=i.toString(36):i<62?n+=(i-26).toString(36).toUpperCase():i>62?n+="-":n+="_",n),"");var ic="rozmovaAnalyticsParams",oc=["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"],Zd="G-GYQLL028VQ";var Qd="9d4cb3d213e5aee689ea01dd68ad65ad",ev="e6d009719c77519432c3",tv=["en","uk","pl","es","ru"],rv=["view_item_list","select_item","view_item","begin_checkout","add_payment_info"],nv=["rozmova.me","clearly.help","uptech.team"],iv="createTherapyPlacementPage",ov="rankingSessionId";var sv=(t,n)=>{let i=new URL(window.location.href);i.searchParams.set(t,n),window.history.replaceState({path:i.toString()},"",i.toString())},sc=t=>new URLSearchParams(window.location.search).get(t),av=()=>(navigator.userAgent||navigator.vendor||window.opera).match(/FBAN|FBAV|Instagram/i),uv=()=>window.navigator.language;function cv(){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 lv(){let t=navigator.userAgent;return/Mobi|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)?"Mobile":"Desktop"}function fv(){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(".")},Q0=["accounts.google.com","appleid.apple.com","checkout.stripe.com"],ac=()=>{let t=document.referrer;if(t){let n=new URL(t);if([...Q0,lt()].some(i=>n.hostname.includes(i)))return null}return t};function hv(){let t=ac();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 Qo=()=>{let t=Te.get("_ga");if(!t)return null;let n=t.split(".");return n.length<4?null:`${n[2]}.${n[3]}`},pv=()=>new Promise(t=>{let n=!1,i=()=>{n||(n=!0,t(Qo()))};if(typeof window<"u"&&typeof gtag=="function")try{gtag("get",Zd,"client_id",e=>{n||(n=!0,t(e||Qo()))}),setTimeout(i,1e3)}catch{i()}else i()});function uc(){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 dv=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`},vv=t=>{let i=window.location.pathname.split("/")[1];return tv.includes(i)?i:t?"en":"uk"},gv=t=>t&&nv.some(i=>t.includes(i))?"internal":"external";function mv(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 yv(t){let n=Number(t);return isNaN(n)?null:n}function _v(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(n,i)=>String.fromCharCode(parseInt(i,16))))}var wv=(t,n)=>(t?"https://trp.rozmova.me":"https://stage.trp.rozmova.me")+n,cc=t=>{let n=Te.get(t),i=uc(),e=n!==i;if(e){let r=lt();i&&Te.set(t,i,{domain:r})}return e};function bv(){let t=`
|
|
94
|
+
(function(){
|
|
95
|
+
var analytics = window.analytics = window.analytics || [];
|
|
96
|
+
if (!analytics.initialize)
|
|
97
|
+
if (analytics.invoked)
|
|
98
|
+
window.console && console.error && console.error("Snippet included twice.");
|
|
99
|
+
else {
|
|
100
|
+
analytics.invoked = !0;
|
|
101
|
+
analytics.methods = ["trackSubmit", "trackClick", "trackLink", "trackForm", "pageview", "identify", "reset", "group", "track", "ready", "alias", "debug", "page", "once", "off", "on", "addSourceMiddleware", "addIntegrationMiddleware", "setAnonymousId", "addDestinationMiddleware"];
|
|
102
|
+
analytics.factory = function(e) {
|
|
103
|
+
return function() {
|
|
104
|
+
var t = Array.prototype.slice.call(arguments);
|
|
105
|
+
t.unshift(e);
|
|
106
|
+
analytics.push(t);
|
|
107
|
+
return analytics;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
for (var e = 0; e < analytics.methods.length; e++) {
|
|
111
|
+
var key = analytics.methods[e];
|
|
112
|
+
analytics[key] = analytics.factory(key);
|
|
113
|
+
}
|
|
114
|
+
analytics.load = function(key, e) {
|
|
115
|
+
var t = document.createElement("script");
|
|
116
|
+
t.type = "text/javascript";
|
|
117
|
+
t.async = !0;
|
|
118
|
+
t.src = "https://cdp-eu.customer.io/v1/analytics-js/snippet/" + key + "/analytics.min.js";
|
|
119
|
+
var n = document.getElementsByTagName("script")[0];
|
|
120
|
+
n.parentNode.insertBefore(t, n);
|
|
121
|
+
analytics._writeKey = key;
|
|
122
|
+
analytics._loadOptions = e;
|
|
123
|
+
};
|
|
124
|
+
analytics.SNIPPET_VERSION = "4.15.3";
|
|
125
|
+
analytics.load("${ev}");
|
|
126
|
+
analytics.page();
|
|
127
|
+
}
|
|
128
|
+
})();
|
|
129
|
+
`,n=document.createElement("script");n.type="text/javascript",n.text=t,document.head.appendChild(n)}var Sv=t=>{let n=lt();Te.set("rid",t,{domain:n}),localStorage.setItem("rid",t)},eI=()=>{let t=Xd();return Sv(t),t},nn=()=>{let t=sc("rid");return t&&Sv(t),t||localStorage.getItem("rid")||Te.get("rid")||eI()},tI=(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)},Cv=()=>{let t=Te.get(ic),n=t?JSON.parse(t):{},i=new URLSearchParams(window.location.search),e=ac(),r=oc.reduce((u,c)=>({...u,[c]:tI(c,i,e)}),{}),o=()=>oc.some(u=>r[u]&&r[u]!==n[u]),a={...cc("utm_params_prev_session_id")&&o()?r:n,referrer:e||n.referrer,search_query:hv()||n.search_query,landing_page_url:n.landing_page_url||window.location.href};return Te.set(ic,JSON.stringify(a),{domain:lt()}),a},Ev=()=>{let t=sc("geo");if(t){let n=lt();Te.set("geo",t,{domain:n})}},Iv=t=>{cc("prev_session_id")&&t("login",{logged:"no"},{ga:!0})},lc="my_profile_id",kv=t=>{let n=lt();Te.set(lc,t,{domain:n})},es=()=>Te.get(lc),Ov=()=>{let t=lt();Te.remove(lc,{domain:t})},fc="my_profile_email",xv=t=>{let n=lt();Te.set(fc,t,{domain:n})},Rv=()=>Te.get(fc),Av=()=>{let t=lt();Te.remove(fc,{domain:t})},Mv=()=>({listName:localStorage.getItem("listName"),index:localStorage.getItem("index")});var zv="opt-in",Yn="opt-out",qv="show--consent",jv="show--preferences",Tv="disable--interaction",ns="data-category";var gt="button",mt="aria-hidden",Kn="btn-group",Ye="click",sn="data-role",bc="consentModal",Sc="preferencesModal",mc=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 mc,Gv=(t,n)=>t.indexOf(n),fe=(t,n)=>Gv(t,n)!==-1,os=t=>Array.isArray(t),an=t=>typeof t=="string",yc=t=>!!t&&typeof t=="object"&&!os(t),Tt=t=>typeof t=="function",Or=t=>Object.keys(t),Wv=t=>Array.from(new Set(t)),is=()=>document.activeElement,on=t=>t.preventDefault(),Cc=(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),hc=(t,n,i)=>{t.removeAttribute(i?"data-"+n:n)},ts=(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 Pv=(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})},$v=()=>{let t=I.t.cookie.expiresAfterDays;return Tt(t)?t(I.o.F):t},pc=(t,n)=>{let i=t||[],e=n||[];return i.filter((r=>!fe(e,r))).concat(e.filter((r=>!fe(i,r))))},Vv=t=>{I.o.R=Wv(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})()},Hv=(t,n,i,e)=>{let r="accept-",{show:o,showPreferences:s,hide:a,hidePreferences:u,acceptCategory:c}=n,l=t||document,f=w=>Cc(l,`[data-cc="${w}"]`),h=(w,b)=>{on(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=>{on(b),s()})),_&&(Re(w,"mouseenter",(b=>{on(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=>{on(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"))},Yv=(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)},Lv,Kv=t=>{clearTimeout(Lv),t?pe(I.ne.ye,Tv):Lv=setTimeout((()=>{fr(I.ne.ye,Tv)}),500)},rI=["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 "],Xn=(t=0,n=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${n}"><path d="${rI[t]}"/></svg>`,Jv=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=is(),u=r?i.q:i.K;u.length!==0&&(s.shiftKey?a!==u[0]&&e.contains(a)||(on(s),Pt(u[1])):a!==u[1]&&e.contains(a)||(on(s),Pt(u[0])))}),!0)})(t)},nI=["[href]",gt,"input","details","[tabindex]"].map((t=>t+':not([tabindex="-1"])')).join(","),Xv=t=>{let{o:n,ne:i}=I,e=(r,o)=>{let s=Cc(r,nI);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)),Pv(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))),Pv(t,lr(l))},Zn=(t,n)=>{try{return t()}catch(i){return!n&&console.warn("CookieConsent:",i),!1}},_c=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=ts(d,"type",!0);hc(d,"type",!!w),hc(d,ns);let b=ts(d,"src",!0);b&&hc(d,"src",!0);let C=T("script");C.textContent=d.innerHTML;for(let{nodeName:x}of d.attributes)j(C,x,d[x]||ts(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)},rs="bottom",wc="left",Zv="center",Ec="right",dc="inline",Qv="wide",eg="pm--",vc=["middle","top",rs],Nv=[wc,Zv,Ec],iI={box:{Ee:[Qv,dc],Ae:vc,Ne:Nv,He:rs,Ve:Ec},cloud:{Ee:[dc],Ae:vc,Ne:Nv,He:rs,Ve:Zv},bar:{Ee:[dc],Ae:vc.slice(1),Ne:[],He:rs,Ve:""}},oI={box:{Ee:[],Ae:[],Ne:[],He:"",Ve:""},bar:{Ee:[Qv],Ae:[],Ne:[wc,Ec],He:"",Ve:wc}},tg=t=>{let n=I.o.i.guiOptions,i=n&&n.consentModal,e=n&&n.preferencesModal;t===0&&Dv(I.ne.he,iI,i,"cm--","box","cm"),t===1&&Dv(I.ne.we,oI,e,eg,"box","pm")},Dv=(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===eg?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))}},Qn=(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=Xn(),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,Kn),ne(_,Kn),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=yc(B)&&Or(B)||[],ie=K&&(!!x||!!U||Or(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=Fv(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=Xn(2,3.5),ne(z,"section-arrow"),M(je,z),se.className+="--toggle";let Fe=Fv(k,A,P),le=u.serviceCounterLabel;if(he>0&&an(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=Or(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,sn,"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,sn,"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,sn,"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),tg(1),i.N||(i.N=!0,$t(I.re.ue,Sc,e.we),n(t),M(e.Ce,e.Fe),Jv(e.we),setTimeout((()=>pe(e.Fe,"cc--anim")),100)),Xv(2)};function Fv(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=Xn(1,3),g.innerHTML=Xn(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,ns,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 gc=()=>{let t=T("span");return I.ne.Ke||(I.ne.Ke=t),t},rg=(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=Xn(),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,gc()),Qe(e.tt,"btn"),j(e.tt,sn,"all"),Re(e.tt,Ye,(()=>{m("all")}))),e.tt.firstElementChild.innerHTML=u),c&&(e.Ie||(e.Ie=T(gt),M(e.Ie,gc()),Qe(e.Ie,"btn"),j(e.Ie,sn,"necessary"),Re(e.Ie,Ye,(()=>{m([])}))),e.Ie.firstElementChild.innerHTML=c),l&&(e.ot||(e.ot=T(gt),M(e.ot,gc()),Qe(e.ot,"btn"),Qe(e.ot,"btn--secondary"),j(e.ot,sn,"show"),Re(e.ot,"mouseenter",(()=>{i.N||Qn(t,n)})),Re(e.ot,Ye,o)),e.ot.firstElementChild.innerHTML=l),e.nt||(e.nt=T("div"),Qe(e.nt,Kn),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,Kn),M(e.st,e.ot),M(e.Ye,e.st)):(M(e.nt,e.ot),Qe(e.nt,Kn+"--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}tg(0),i.T||(i.T=!0,$t(I.re.ue,bc,e.he),n(t),M(e.Ce,e.Qe),Jv(e.he),setTimeout((()=>pe(e.Qe,"cc--anim")),100)),Xv(1),Hv(e.We,t,Qn,n)},ng=t=>{if(!an(t))return null;if(t in I.o._)return t;let n=t.slice(0,2);return n in I.o._?n:null},ig=()=>I.o.l||I.o.i.language.default,og=t=>{t&&(I.o.l=t)},sI=async t=>{let n=I.o,i=ng(t)?t:ig(),e=n._[i];if(an(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,og(i),!0},aI=()=>{let t=I.o.i.language.rtl,n=I.ne.Ce;t&&n&&(os(t)||(t=[t]),fe(t,I.o.l)?pe(n,"cc--rtl"):fr(n,"cc--rtl"))},Jn=()=>{let t=I.ne;if(t.Ce)return;t.Ce=T("div"),t.Ce.id="cc-main",t.Ce.setAttribute("data-nosnippet",""),aI();let n=I.o.i.root;n&&an(n)&&(n=document.querySelector(n)),(n||t.Ue.body).appendChild(t.Ce)},uI=t=>Zn((()=>localStorage.removeItem(t))),Uv=(t,n)=>{if(n instanceof RegExp)return t.filter((i=>n.test(i)));{let i=Gv(t,n);return i>-1?[t[i]]:[]}},cI=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*$v()-d})():864e5*$v(),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)=>{Zn((()=>localStorage.setItem(g,d)))})(e,f):document.cookie=h,I.o.p},Bv=(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)},lI=t=>{let n=t||I.t.cookie.name,i=I.t.cookie.useLocalStorage;return((r,o)=>{let s;return s=Zn((()=>JSON.parse(o?r:decodeURIComponent(r))),!0)||{},s})(i?(e=n,Zn((()=>localStorage.getItem(e)))||""):fI(n,!0),i);var e},fI=(t,n)=>{let i=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)");return i?n?i.pop():t:""},hI=t=>{let n=document.cookie.split(/;\s*/),i=[];for(let e of n){let r=e.split("=")[0];t?Zn((()=>{t.test(r)&&i.push(r)})):i.push(r)}return i},pI=(t,n=[])=>{((i,e)=>{let{O:r,R:o,B:s,N:a,Z:u,$:c,X:l}=I.o,f=[];if(i){os(i)?f.push(...i):an(i)&&(f=i==="all"?r:[i]);for(let h of r)u[h]=fe(f,h)?Or(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),Vv(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=Or(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]=Wv(o[c])}}})(),(()=>{let i=I.o;i.L=I.t.mode===Yn&&i.D?pc(i.$,i.R):pc(i.R,i.p.categories);let e=i.L.length>0,r=!1;for(let u of i.O)i.ee[u]=pc(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(),cI(),I.t.autoClearCookies&&(s||a)&&(u=>{let c=I.o,l=hI(),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=Uv(l,m.name);Bv(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=Uv(l,_.name);Bv(w,_.path,_.domain)}}}})(s),_c()),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()))})()},dI=t=>{let n=I.o.D?[]:I.o.R;return fe(n,t)};var vI=(t,n)=>{let i=I.o.D?[]:I.o.Y[n]||[];return fe(i,t)};var sg=t=>{let{ne:n,o:i}=I;if(!i.k){if(!i.T){if(!t)return;rg(Ic,Jn)}i.k=!0,i.J=is(),i.v&&Kv(!0),Yv(n.he,1),pe(n.ye,qv),j(n.he,mt,"false"),setTimeout((()=>{Pt(I.ne.be)}),100),$t(I.re.fe,bc)}},gI=()=>{let{ne:t,o:n,re:i}=I;n.k&&(n.k=!1,n.v&&Kv(),Pt(t.Ke,!0),fr(t.ye,qv),j(t.he,mt,"true"),Pt(n.J),n.J=null,$t(i._e,bc))},mI=()=>{let t=I.o;t.A||(t.N||Qn(Ic,Jn),t.A=!0,t.k?t.U=is():t.J=is(),Yv(I.ne.we,2),pe(I.ne.ye,jv),j(I.ne.we,mt,"false"),setTimeout((()=>{Pt(I.ne.ve)}),100),$t(I.re.fe,Sc))},yI=()=>{let t=I.o;t.A&&(t.A=!1,(()=>{let n=ag(),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?dI(s):o(s));for(let u in r[s])r[s][u].checked=a||(n?vI(u,s):o(s))}})(),Pt(I.ne.$e,!0),fr(I.ne.ye,jv),j(I.ne.we,mt,"true"),t.k?(Pt(t.U),t.U=null):(Pt(t.J),t.J=null),$t(I.re._e,Sc))},Ic={show:sg,hide:gI,showPreferences:mI,hidePreferences:yI,acceptCategory:pI};var ag=()=>!I.o.D,ug=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=Or(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===Yn&&(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),yc(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=yc(Z)&&Or(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,$=Cc(document,"script["+ns+"]");for(let U of $){let K=ts(U,ns),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})}}})(),og((()=>{let ee=I.o.i.language.autoDetect;if(ee){let $={browser:navigator.language,document:document.documentElement.lang},U=ng($[ee]);if(U)return U}return ig()})())})(t),n.G)return;(()=>{let a=I.o,u=I.t,c=lI(),{categories:l,services:f,consentId:h,consentTimestamp:g,lastConsentTimestamp:d,data:m,revision:v}=c,y=os(l);a.p=c,a.M=h;let _=!!h&&an(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&&uI(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===Yn&&w.Y[b].push(x)}}})(),a.D?u.mode===Yn&&(a.R=[...a.$]):(a.Y={...a.Y,...f},a.Z={...a.Y},Vv([...a.B,...l]))})();let s=ag();if(!await sI())return!1;if(Hv(null,o=Ic,Qn,Jn),I.o.D&&rg(o,Jn),I.t.lazyHtmlGeneration||Qn(o,Jn),i.autoShow&&!s&&sg(!0),s)return _c(),$t(e.le);i.mode===Yn&&_c(n.$)}var o};var wI=(t,n)=>{let i=lt();return{language:{default:t,translations:bI(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"})}}}}}}},bI=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>.`}]}}}),cg=(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=`
|
|
130
|
+
:root {
|
|
131
|
+
/** Change font **/
|
|
132
|
+
--cc-font-family: "Inter", sans-serif;
|
|
133
|
+
|
|
134
|
+
/** Change button primary color to black **/
|
|
135
|
+
--cc-btn-primary-bg: #4C6EF5;
|
|
136
|
+
--cc-btn-primary-border-color: #4C6EF5;
|
|
137
|
+
}
|
|
138
|
+
`,document.head.appendChild(e),ug(wI(t,n))};var kc=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={}}={}){bv(),Ev();let u=nn();av()&&sv("rid",u),typeof n=="boolean"&&(this.isProd=n),i?this.locale=i:this.locale=vv(r),e&&(this.platform=e),this.platform==="web"&&r&&cg(this.locale,r),cr.init(Qd,{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(),Iv(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 pv()}setGAClientId=dv;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};rv.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:es(),email:Rv()}){if(mv(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:gv(e),rid:nn()},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}),kv(n),xv(e),this.trackEvent("login",{logged:"yes",uid:n},{ga:!0})}getCommonParams(){let n=Cv(),i=Qo();return{...n,fbc:Te.get("_fbc"),fbp:Te.get("_fbp"),session_id:uc(),user_pseudo_id:i,rid:nn(),funnel_name:Te.get("funnel_name"),language:uv(),platform:this.platform,url:window.location.href,device:lv(),browser:cv(),system:fv(),locale:this.locale,logged_in:!!es(),user_id:es()}}setLocale(n){this.locale=n}resetUser(){cr.reset(),window.analytics.reset(),Ov(),Av(),this.setConfig(),this.trackEvent("login",{logged:"no"},{ga:!0}),this.init()}getUserId=nn;async getAttributionProperties(n){let i=await this.getGAClientId(),{listName:e,index:r}=Mv(),o=localStorage.getItem(iv),s=sessionStorage.getItem(ov),a=this.getCommonParams();return{funnelInfo:{funnelName:n?.funnelName||a.funnel_name,funnelType:null,listName:e,platform:this.platform,index:yv(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:nn(),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=_v(o),a=new Headers({"X-Attribution":s,"Content-Type":"application/json"}),u=wv(this.isProd,"/api/analytics/track");return await fetch(u,{body:JSON.stringify({eventName:n,eventParams:i}),method:"POST",headers:a})}},SI=new kc;return bg(CI);})();
|
|
139
|
+
/*! Bundled license information:
|
|
140
|
+
|
|
141
|
+
js-cookie/dist/js.cookie.mjs:
|
|
142
|
+
(*! js-cookie v3.0.5 | MIT *)
|
|
143
|
+
|
|
144
|
+
vanilla-cookieconsent/dist/cookieconsent.esm.js:
|
|
145
|
+
(*!
|
|
146
|
+
* CookieConsent 3.1.0
|
|
147
|
+
* https://github.com/orestbida/cookieconsent
|
|
148
|
+
* Author Orest Bida
|
|
149
|
+
* Released under the MIT License
|
|
150
|
+
*)
|
|
151
|
+
*/
|