403Webshell
Server IP : 3.93.235.159  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64
User : bitnami ( 1000)
PHP Version : 8.2.9
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/pojo-accessibility/assets/build/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/pojo-accessibility/assets/build/lib-mixpanel-browser.js
"use strict";(globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[]).push([[7522],{76751(e,t,r){var n;if(r.d(t,{default:()=>My}),"undefined"==typeof window){var i={hostname:""};n={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 n=window;var o={DEBUG:!1,LIB_VERSION:"2.80.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=(i=s.trys).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)},M=Object.defineProperty,A=function(e,t,r){return function(e,t,r){return t in e?M(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"]},F={};function L(e){if(F[e])return F[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 F[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?F[e]=u:r}catch(e){return r}}var N={};function D(e,t,r){var n,i=e+"."+String(r);if(N[i])return N[i].call(t);var o=L(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(N[i]=s,s.call(t)):t[r]}var U=function(e){return D("Node",e,"childNodes")},B=function(e){return D("Node",e,"parentNode")},j=function(e){return D("Node",e,"parentElement")},q=function(e){return D("Node",e,"textContent")},z=function(e){return e&&"host"in e?D("ShadowRoot",e,"host"):null},W=function(e){return e&&"shadowRoot"in e?D("Element",e,"shadowRoot"):null};function V(e){return e.nodeType===e.ELEMENT_NODE}function $(e){var t=e&&"host"in e&&"mode"in e&&z(e)||null;return Boolean(t&&"shadowRoot"in t&&W(t)===e)}function H(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function G(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return Y(e,r)}).join("")).includes(" background-clip: text;")&&!n.includes(" -webkit-background-clip: text;")&&(n=n.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),n}catch(e){return null}var n}function Y(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=G(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?oe(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?oe(i,t):i}var J=function(){function e(){A(this,"idNodeMap",new Map),A(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 Z(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&K(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function K(e){return e.toLowerCase()}var X="__rrweb_original__";function Q(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?K(t):null}function ee(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 te=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,re=/^(?:[a-z+]+:)?\/\//i,ne=/^www\..*/i,ie=/^(data:)([^,]*),(.*)/i;function oe(e,t){return(e||"").replace(te,function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(re.test(c)||ne.test(c))return"url("+u+c+u+")";if(ie.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 se(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ae,ce,ue=1,le=new RegExp("[^a-z0-9-_:]");function he(){return ue++}var pe=/^[^ \t\n\r\u000c]+/,fe=/^[, \t\n\r\u000c]+/,de=new WeakMap;function ge(e,t){return t&&""!==t.trim()?me(e,t):t}function me(e,t){var r=de.get(e);if(r||(r=e.createElement("a"),de.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function ve(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?ge(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(fe),!(r>=t.length);){var o=n(pe);if(","===o.slice(-1))o=ge(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ge(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?oe(n,me(e)):"object"===t&&"data"===r?ge(e,n):n:ge(e,n):n}function ye(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function _e(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&_e(B(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&_e(B(e),t,r)}function be(e,t,r,n){var i;if(V(e)){if(!U(i=e).length)return!1}else{if(null===j(e))return!1;i=j(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(_e(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 we(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)){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.inlineStylesheet,o=t.maskInputOptions,s=void 0===o?{}:o,a=t.maskInputFn,c=t.dataURLOptions,u=void 0===c?{}:c,l=t.inlineImages,h=t.recordCanvas,p=t.keepIframeSrcFn,f=t.newlyAddedElement,d=void 0!==f&&f,g=t.rootId,m=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,t.blockClass,t.blockSelector),y=function(e){if(v(e,HTMLFormElement))return"form";var t=K(e.tagName);return le.test(t)?"div":t}(e),_={},b=e.attributes.length,w=0;w<b;w++){var k=e.attributes[w];ye(y,k.name,k.value)||(_[k.name]=ve(n,y,K(k.name),k.value))}if("link"===y&&i){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;S&&(C=G(S)),C&&(delete _.rel,delete _.href,_._cssText=C)}if("style"===y&&e.sheet){var x=G(e.sheet);x&&(e.childNodes.length>1&&(x=function(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=se(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=se(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=se(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=se(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 */")}(x,e)),_._cssText=x)}if("input"===y||"textarea"===y||"select"===y){var I=e.value,O=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&I?_.value=Z({element:e,type:Q(e),tagName:y,value:I,maskInputOptions:s,maskInputFn:a}):O&&(_.checked=O)}if("option"===y&&(e.selected&&!s.select?_.selected=!0:delete _.selected),"dialog"===y&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&h)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=X in i?i[X]: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)||(_.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){var E=e.toDataURL(u.type,u.quality),M=n.createElement("canvas");M.width=e.width,M.height=e.height,E!==M.toDataURL(u.type,u.quality)&&(_.rr_dataURL=E)}if("img"===y&&l){ae||(ae=n.createElement("canvas"),ce=ae.getContext("2d"));var A=e,T=A.currentSrc||A.getAttribute("src")||"<unknown-src>",P=A.crossOrigin,F=function(){A.removeEventListener("load",F);try{ae.width=A.naturalWidth,ae.height=A.naturalHeight,ce.drawImage(A,0,0),_.rr_dataURL=ae.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==A.crossOrigin)return A.crossOrigin="anonymous",void(A.complete&&0!==A.naturalWidth?F():A.addEventListener("load",F));console.warn("Cannot inline img src="+T+"! Error: "+e)}"anonymous"===A.crossOrigin&&(P?_.crossOrigin=P:A.removeAttribute("crossorigin"))};A.complete&&0!==A.naturalWidth?F():A.addEventListener("load",F)}if("audio"===y||"video"===y){var L=_;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}if(d||(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop)),m){var N=e.getBoundingClientRect(),D=N.width,U=N.height;_={class:_.class,rr_width:D+"px",rr_height:U+"px"}}"iframe"!==y||p(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:R.Element,tagName:y,attributes:_,childNodes:[],isSVG:(B=e,Boolean("svg"===B.tagName||B.ownerSVGElement)||void 0),needBlock:m,rootId:g,isCustom:r};var B}(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=B(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=q(e),u&&c&&(c=oe(c,me(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,j(e)):c.replace(/[\S]/g,"*")),{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:q(e)||"",rootId:k};default:return!1}}function ke(e){return null==e?"":e.toLowerCase()}function Se(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,M=t.stylesheetLoadTimeout,A=void 0===M?5e3:M,T=t.keepIframeSrcFn,P=void 0===T?function(){return!1}:T,F=t.newlyAddedElement,L=void 0!==F&&F,N=t.cssCaptured,D=void 0!==N&&N,j=t.needsMask,q=t.preserveWhiteSpace,z=void 0===q||q;j||(j=be(e,s,a,void 0===j));var G,Y=we(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:j,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:P,newlyAddedElement:L,cssCaptured:D});if(!Y)return console.warn(e,"not serialized"),null;G=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"===ee(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ke(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ke(e.attributes.name)||"icon"===ke(e.attributes.rel)||"apple-touch-icon"===ke(e.attributes.rel)||"shortcut icon"===ke(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ke(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ke(e.attributes.property).match(/^(og|twitter|fb):/)||ke(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ke(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ke(e.attributes.name)||"googlebot"===ke(e.attributes.name)||"bingbot"===ke(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ke(e.attributes.name)||"generator"===ke(e.attributes.name)||"framework"===ke(e.attributes.name)||"publisher"===ke(e.attributes.name)||"progid"===ke(e.attributes.name)||ke(e.attributes.property).match(/^article:/)||ke(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ke(e.attributes.name)||"yandex-verification"===ke(e.attributes.name)||"csrf-token"===ke(e.attributes.name)||"p:domain_verify"===ke(e.attributes.name)||"verify-v1"===ke(e.attributes.name)||"verification"===ke(e.attributes.name)||"shopify-checkout-api-token"===ke(e.attributes.name)))return!0}}return!1}(Y,m)||!z&&Y.type===R.Text&&!Y.textContent.replace(/^\s+|\s+$/gm,"").length?-2:he();var J=Object.assign(Y,{id:G});if(n.add(e,J),-2===G)return null;C&&C(e);var Z=!u;if(J.type===R.Element){Z=Z&&!J.needBlock,delete J.needBlock;var K=W(e);K&&H(K)&&(J.isShadowHost=!0)}if((J.type===R.Document||J.type===R.Element)&&Z){m.headWhitespace&&J.type===R.Element&&"head"===J.tagName&&(z=!1);var X={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:j,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:z,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:P,cssCaptured:!1};if(J.type===R.Element&&"textarea"===J.tagName&&void 0!==J.attributes.value);else{J.type===R.Element&&void 0!==J.attributes._cssText&&"string"==typeof J.attributes._cssText&&(X.cssCaptured=!0);for(var Q,te=S(Array.from(U(e)));!(Q=te()).done;){var re=Se(Q.value,X);re&&J.childNodes.push(re)}}var ne=null;if(V(e)&&(ne=W(e)))for(var ie,oe=S(Array.from(U(ne)));!(ie=oe()).done;){var se=Se(ie.value,X);se&&(H(ne)&&(se.isShadow=!0),J.childNodes.push(se))}}var ae=B(e);return ae&&$(ae)&&H(ae)&&(J.isShadow=!0),J.type===R.Element&&"iframe"===J.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=Se(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:j,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:z,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:P});r&&x(e,r)}},O),J.type===R.Element&&"link"===J.tagName&&"string"==typeof J.attributes.rel&&("stylesheet"===J.attributes.rel||"preload"===J.attributes.rel&&"string"==typeof J.attributes.href&&"css"===ee(J.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=Se(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:j,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:z,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:E,stylesheetLoadTimeout:A,keepIframeSrcFn:P});t&&E(e,t)}},A),J}function Ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xe(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 Ie={exports:{}},Oe=String,Ee=function(){return{isColorSupported:!1,reset:Oe,bold:Oe,dim:Oe,italic:Oe,underline:Oe,inverse:Oe,hidden:Oe,strikethrough:Oe,black:Oe,red:Oe,green:Oe,yellow:Oe,blue:Oe,magenta:Oe,cyan:Oe,white:Oe,gray:Oe,bgBlack:Oe,bgRed:Oe,bgGreen:Oe,bgYellow:Oe,bgBlue:Oe,bgMagenta:Oe,bgCyan:Oe,bgWhite:Oe}};Ie.exports=Ee(),Ie.exports.createColors=Ee;var Me=Ie.exports,Ae=xe(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Re=Me,Te=Ae,Pe=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=Re.isColorSupported),Te&&e&&(r=Te(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=Re.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)),Fe=Pe;Pe.default=Pe;var Le={};Le.isClean=Symbol("isClean"),Le.my=Symbol("my");var Ne={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},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 Ne[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=Ne[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}(),Ue=De;De.default=De;var Be=Ue;function je(e,t){new Be(t).stringify(e)}var qe=je;je.default=je;var ze=Le.isClean,We=Le.my,Ve=Fe,$e=Ue,He=qe;function Ge(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 Ge(e,r)}):("object"===o&&null!==i&&(i=Ge(i)),r[n]=i)}return r}var Ye=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ze]=!1,this[We]=!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=Ge(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 $e).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}(),Je=Ye;Ye.default=Ye;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}(Je),Ke=Ze;Ze.default=Ze;var Xe=Ae.SourceMapConsumer,Qe=Ae.SourceMapGenerator,et=Ae.existsSync,tt=Ae.readFileSync,rt=Ae.dirname,nt=Ae.join,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 Xe(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,Xe))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=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},ft=Ae,dt=Fe,gt=ot,mt=Symbol("fromOffsetCache"),vt=Boolean(st&&at),yt=Boolean(ht&&lt),_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,Mt=Boolean(wt&&kt),At=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(),At&&Mt&&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=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(Je),Pt=Tt;Tt.default=Tt;var Ft,Lt,Nt,Dt,Ut=Le.isClean,Bt=Le.my,jt=Ke,qt=Pt;function zt(e){return e.map(function(e){return e.nodes&&(e.nodes=zt(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 Vt=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=zt(Ft(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 jt(e)]}else if(e.selector)e=[new Lt(e)];else if(e.name)e=[new Nt(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[Bt]||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}(Je);Vt.registerParse=function(e){Ft=e},Vt.registerRule=function(e){Lt=e},Vt.registerAtRule=function(e){Nt=e},Vt.registerRoot=function(e){Dt=e};var $t=Vt;Vt.default=Vt,Vt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Nt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Lt.prototype):"decl"===e.type?Object.setPrototypeOf(e,jt.prototype):"comment"===e.type?Object.setPrototypeOf(e,qt.prototype):"root"===e.type&&Object.setPrototypeOf(e,Dt.prototype),e[Bt]=!0,e.nodes&&e.nodes.forEach(function(e){Vt.rebuild(e)})};var Ht,Gt,Yt=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 Ht(new Gt,this,e).stringify()},t}($t);Yt.registerLazyResult=function(e){Ht=e},Yt.registerProcessor=function(e){Gt=e};var Jt=Yt;Yt.default=Yt;var Zt=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}(),Kt=Zt;Zt.default=Zt;var Xt=Kt,Qt=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 Xt(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}(),er=Qt;Qt.default=Qt;var tr="'".charCodeAt(0),rr='"'.charCodeAt(0),nr="\\".charCodeAt(0),ir="/".charCodeAt(0),or="\n".charCodeAt(0),sr=" ".charCodeAt(0),ar="\f".charCodeAt(0),cr="\t".charCodeAt(0),ur="\r".charCodeAt(0),lr="[".charCodeAt(0),hr="]".charCodeAt(0),pr="(".charCodeAt(0),fr=")".charCodeAt(0),dr="{".charCodeAt(0),gr="}".charCodeAt(0),mr=";".charCodeAt(0),vr="*".charCodeAt(0),yr=":".charCodeAt(0),_r="@".charCodeAt(0),br=/[\t\n\f\r "#'()/;[\\\]{}]/g,wr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,kr=/.[\r\n"'(/\\]/,Sr=/[\da-f]/i,Cr=$t,xr=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}(Cr),Ir=xr;xr.default=xr,Cr.registerAtRule(xr);var Or,Er,Mr=$t,Ar=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 Or(new Er,this,e).stringify()},t}(Mr);Ar.registerLazyResult=function(e){Or=e},Ar.registerProcessor=function(e){Er=e};var Rr=Ar;Ar.default=Ar,Mr.registerRoot(Ar);var Tr={comma:function(e){return Tr.split(e,[","],!0)},space:function(e){return Tr.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}},Pr=Tr;Tr.default=Tr;var Fr=$t,Lr=Pr,Nr=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 Lr.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),Dr=Nr;Nr.default=Nr,Fr.registerRule(Nr);var Ur=Ke,Br=Pt,jr=Ir,qr=Rr,zr=Dr,Wr={empty:!0,space:!0},Vr=function(){function e(e){this.input=e,this.root=new qr,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 jr;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 Br;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=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 or:case sr:case cr:case ur:case ar:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===sr||r===or||r===cr||r===ur||r===ar);h=["space",p.slice(g,n)],g=n-1;break;case lr:case hr:case dr:case gr:case yr:case mr:case fr:var _=String.fromCharCode(r);h=[_,_,g];break;case pr:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==tr&&l!==rr&&l!==sr&&l!==or&&l!==cr&&l!==ar&&l!==ur){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)===nr;)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||kr.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case tr:case rr:i=r===tr?"'":'"',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)===nr;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case _r:br.lastIndex=g+1,br.test(p),n=0===br.lastIndex?p.length-1:br.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case nr:for(n=g,s=!0;p.charCodeAt(n+1)===nr;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==ir&&r!==sr&&r!==or&&r!==cr&&r!==ur&&r!==ar&&(n+=1,Sr.test(p.charAt(n)))){for(;Sr.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===sr&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===ir&&p.charCodeAt(g+1)===vr?(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):(wr.lastIndex=g+1,wr.test(p),n=0===wr.lastIndex?p.length-1:wr.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new Ur;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 zr;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",Wr[a]||Wr[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 zr;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}(),$r=$t,Hr=Vr,Gr=bt;function Yr(e,t){var r=new Gr(e,t),n=new Hr(r);try{n.parse()}catch(e){throw e}return n.root}var Jr=Yr;Yr.default=Yr,$r.registerParse(Yr);var Zr=Le.isClean,Kr=Le.my,Xr=Rt,Qr=qe,en=$t,tn=Jt,rn=er,nn=Jr,on=Rr,sn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},an={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},cn={Once:!0,postcssPlugin:!0,prepare:!0};function un(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function ln(e){var t=!1,r=sn[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 hn(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ln(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function pn(e){return e[Zr]=!1,e.nodes&&e.nodes.forEach(function(e){return pn(e)}),e}var fn={},dn=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,rn))i=pn(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=nn;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[Kr]&&en.rebuild(i)}else i=pn(r);this.result=new rn(t,i,n),this.helpers=d({},fn,{postcss:fn,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{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(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(!an[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!cn[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],!un(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[Zr])return[3,14];o[Zr]=!0,s=[hn(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!un(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 un(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=Qr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Xr(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(un(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Zr];)n[Zr]=!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 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(un(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[Zr])return a[Zr]=!0,void e.push(hn(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[Zr]=!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[Zr]=!0;for(var r,n=S(ln(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[Zr]||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}();dn.registerPostcss=function(e){fn=e};var gn=dn;dn.default=dn,on.registerLazyResult(dn),tn.registerLazyResult(dn);var mn=Rt,vn=qe,yn=Jr,bn=er,wn=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=vn;this.result=new bn(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 mn(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 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=yn;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}(),kn=wn;wn.default=wn;var Sn=kn,Cn=gn,xn=Jt,In=Rr,On=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")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Cn(this,e,t):new Sn(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),En=On;On.default=On,In.registerProcessor(On),xn.registerProcessor(On);var Mn=Ke,An=ot,Rn=Pt,Tn=Ir,Pn=bt,Fn=Rr,Ln=Dr;function Nn(e,t){if(Array.isArray(e))return e.map(function(e){return Nn(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__:Pn.prototype});s.map&&(s.map=d({},s.map,{__proto__:An.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Nn(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 Fn(n);if("decl"===n.type)return new Mn(n);if("rule"===n.type)return new Ln(n);if("comment"===n.type)return new Rn(n);if("atrule"===n.type)return new Tn(n);throw new Error("Unknown node type: "+e.type)}var Dn=Nn;Nn.default=Nn;var Un=Fe,Bn=Ke,jn=gn,qn=$t,zn=En,Wn=qe,Vn=Dn,$n=Jt,Hn=Kt,Gn=Pt,Yn=Ir,Jn=er,Zn=bt,Kn=Jr,Xn=Pr,Qn=Dr,ei=Rr,ti=Je;function ri(){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 zn(t)}ri.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 zn).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ri([i(r)]).process(e,t)},i},ri.stringify=Wn,ri.parse=Kn,ri.fromJSON=Vn,ri.list=Xn,ri.comment=function(e){return new Gn(e)},ri.atRule=function(e){return new Yn(e)},ri.decl=function(e){return new Bn(e)},ri.rule=function(e){return new Qn(e)},ri.root=function(e){return new ei(e)},ri.document=function(e){return new $n(e)},ri.CssSyntaxError=Un,ri.Declaration=Bn,ri.Container=qn,ri.Processor=zn,ri.Document=$n,ri.Comment=Gn,ri.Warning=Hn,ri.AtRule=Yn,ri.Result=Jn,ri.Input=Zn,ri.Rule=Qn,ri.Root=ei,ri.Node=ti,jn.registerPostcss(ri);var ni=ri;ri.default=ri;var ii=Ce(ni);ii.stringify,ii.fromJSON,ii.plugin,ii.parse,ii.list,ii.document,ii.comment,ii.atRule,ii.rule,ii.decl,ii.root,ii.CssSyntaxError,ii.Declaration,ii.Container,ii.Processor,ii.Document,ii.Comment,ii.Warning,ii.AtRule,ii.Result,ii.Input,ii.Rule,ii.Root,ii.Node;var oi=Object.defineProperty,si=function(e,t,r){return function(e,t,r){return t in e?oi(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 ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ci(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 ui={exports:{}},li=String,hi=function(){return{isColorSupported:!1,reset:li,bold:li,dim:li,italic:li,underline:li,inverse:li,hidden:li,strikethrough:li,black:li,red:li,green:li,yellow:li,blue:li,magenta:li,cyan:li,white:li,gray:li,bgBlack:li,bgRed:li,bgGreen:li,bgYellow:li,bgBlue:li,bgMagenta:li,bgCyan:li,bgWhite:li}};ui.exports=hi(),ui.exports.createColors=hi;var pi=ui.exports,fi=ci(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),di=pi,gi=fi,mi=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=di.isColorSupported),gi&&e&&(r=gi(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=di.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)),vi=mi;mi.default=mi;var yi={};yi.isClean=Symbol("isClean"),yi.my=Symbol("my");var _i={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},bi=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 _i[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=_i[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}(),wi=bi;bi.default=bi;var ki=wi;function Si(e,t){new ki(t).stringify(e)}var Ci=Si;Si.default=Si;var xi=yi.isClean,Ii=yi.my,Oi=vi,Ei=wi,Mi=Ci;function Ai(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 Ai(e,r)}):("object"===o&&null!==i&&(i=Ai(i)),r[n]=i)}return r}var Ri=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[xi]=!1,this[Ii]=!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=Ai(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 Oi(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[xi]){this[xi]=!1;for(var e=this;e=e.parent;)e[xi]=!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 Ei).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=Mi),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}(),Ti=Ri;Ri.default=Ri;var Pi=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}(Ti),Fi=Pi;Pi.default=Pi;var Li=fi.SourceMapConsumer,Ni=fi.SourceMapGenerator,Di=fi.existsSync,Ui=fi.readFileSync,Bi=fi.dirname,ji=fi.join,qi=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=Bi(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new Li(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=Bi(e),Di(e))return this.mapFile=e,Ui(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,Li))return Ni.fromSourceMap(t).toString();if(v(t,Ni))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=ji(Bi(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}(),zi=qi;qi.default=qi;var Wi=fi.SourceMapConsumer,Vi=fi.SourceMapGenerator,$i=fi.fileURLToPath,Hi=fi.pathToFileURL,Gi=fi.isAbsolute,Yi=fi.resolve,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=fi,Ki=vi,Xi=zi,Qi=Symbol("fromOffsetCache"),eo=Boolean(Wi&&Vi),to=Boolean(Yi&&Gi),ro=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&&(!to||/^\w+:\/\//.test(t.from)||Gi(t.from)?this.file=t.from:this.file=Yi(t.from)),to&&eo){var r=new Xi(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 "+Ji(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 Ki(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 Ki(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&&(Hi&&(i.input.url=Hi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Qi])t=this[Qi];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[Qi]=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:Yi(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=Gi(a.source)?Hi(a.source):new URL(a.source,this.map.consumer().sourceRoot||Hi(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(!$i)throw new Error("file: protocol is not available in this PostCSS build");c.file=$i(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}(),no=ro;ro.default=ro,Zi&&Zi.registerInput&&Zi.registerInput(ro);var io=fi.SourceMapConsumer,oo=fi.SourceMapGenerator,so=fi.dirname,ao=fi.relative,co=fi.resolve,uo=fi.sep,lo=fi.pathToFileURL,ho=no,po=Boolean(io&&oo),fo=Boolean(so&&co&&ao&&uo),go=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||so(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new io(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(),fo&&po&&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=oo.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new oo({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 oo({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?so(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=so(co(r,this.mapOpts.annotation)));var n=ao(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 ho(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(lo){var r=lo(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;"\\"===uo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),mo=go,vo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(Ti),yo=vo;vo.default=vo;var _o,bo,wo,ko,So=yi.isClean,Co=yi.my,xo=Fi,Io=yo;function Oo(e){return e.map(function(e){return e.nodes&&(e.nodes=Oo(e.nodes)),delete e.source,e})}function Eo(e){if(e[So]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;)Eo(t.value)}var Mo=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=Oo(_o(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 xo(e)]}else if(e.selector)e=[new bo(e)];else if(e.name)e=[new wo(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Io(e)]}var l=e.map(function(e){return e[Co]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[So]&&Eo(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}(Ti);Mo.registerParse=function(e){_o=e},Mo.registerRule=function(e){bo=e},Mo.registerAtRule=function(e){wo=e},Mo.registerRoot=function(e){ko=e};var Ao=Mo;Mo.default=Mo,Mo.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,wo.prototype):"rule"===e.type?Object.setPrototypeOf(e,bo.prototype):"decl"===e.type?Object.setPrototypeOf(e,xo.prototype):"comment"===e.type?Object.setPrototypeOf(e,Io.prototype):"root"===e.type&&Object.setPrototypeOf(e,ko.prototype),e[Co]=!0,e.nodes&&e.nodes.forEach(function(e){Mo.rebuild(e)})};var Ro,To,Po=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 Ro(new To,this,e).stringify()},t}(Ao);Po.registerLazyResult=function(e){Ro=e},Po.registerProcessor=function(e){To=e};var Fo=Po;Po.default=Po;var Lo=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}(),No=Lo;Lo.default=Lo;var Do=No,Uo=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 Do(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}(),Bo=Uo;Uo.default=Uo;var jo="'".charCodeAt(0),qo='"'.charCodeAt(0),zo="\\".charCodeAt(0),Wo="/".charCodeAt(0),Vo="\n".charCodeAt(0),$o=" ".charCodeAt(0),Ho="\f".charCodeAt(0),Go="\t".charCodeAt(0),Yo="\r".charCodeAt(0),Jo="[".charCodeAt(0),Zo="]".charCodeAt(0),Ko="(".charCodeAt(0),Xo=")".charCodeAt(0),Qo="{".charCodeAt(0),es="}".charCodeAt(0),ts=";".charCodeAt(0),rs="*".charCodeAt(0),ns=":".charCodeAt(0),is="@".charCodeAt(0),os=/[\t\n\f\r "#'()/;[\\\]{}]/g,ss=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,as=/.[\r\n"'(/\\]/,cs=/[\da-f]/i,us=Ao,ls=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}(us),hs=ls;ls.default=ls,us.registerAtRule(ls);var ps,fs,ds=Ao,gs=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 ps(new fs,this,e).stringify()},t}(ds);gs.registerLazyResult=function(e){ps=e},gs.registerProcessor=function(e){fs=e};var ms=gs;gs.default=gs,ds.registerRoot(gs);var vs={comma:function(e){return vs.split(e,[","],!0)},space:function(e){return vs.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}},ys=vs;vs.default=vs;var _s=Ao,bs=ys,ws=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 bs.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}(_s),ks=ws;ws.default=ws,_s.registerRule(ws);var Ss=Fi,Cs=yo,xs=hs,Is=ms,Os=ks,Es={empty:!0,space:!0},Ms=function(){function e(e){this.input=e,this.root=new Is,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 xs;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 Cs;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=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 Vo:case $o:case Go:case Yo:case Ho:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===$o||r===Vo||r===Go||r===Yo||r===Ho);h=["space",p.slice(g,n)],g=n-1;break;case Jo:case Zo:case Qo:case es:case ns:case ts:case Xo:var _=String.fromCharCode(r);h=[_,_,g];break;case Ko:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==jo&&l!==qo&&l!==$o&&l!==Vo&&l!==Go&&l!==Ho&&l!==Yo){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)===zo;)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||as.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case jo:case qo:i=r===jo?"'":'"',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)===zo;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case is:os.lastIndex=g+1,os.test(p),n=0===os.lastIndex?p.length-1:os.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case zo:for(n=g,s=!0;p.charCodeAt(n+1)===zo;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Wo&&r!==$o&&r!==Vo&&r!==Go&&r!==Yo&&r!==Ho&&(n+=1,cs.test(p.charAt(n)))){for(;cs.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===$o&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Wo&&p.charCodeAt(g+1)===rs?(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):(ss.lastIndex=g+1,ss.test(p),n=0===ss.lastIndex?p.length-1:ss.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new Ss;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 Os;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",Es[a]||Es[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 Os;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}(),As=Ao,Rs=Ms,Ts=no;function Ps(e,t){var r=new Ts(e,t),n=new Rs(r);try{n.parse()}catch(e){throw e}return n.root}var Fs=Ps;Ps.default=Ps,As.registerParse(Ps);var Ls=yi.isClean,Ns=yi.my,Ds=mo,Us=Ci,Bs=Ao,js=Fo,qs=Bo,zs=Fs,Ws=ms,Vs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},$s={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},Hs={Once:!0,postcssPlugin:!0,prepare:!0};function Gs(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function Ys(e){var t=!1,r=Vs[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 Js(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Ys(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Zs(e){return e[Ls]=!1,e.nodes&&e.nodes.forEach(function(e){return Zs(e)}),e}var Ks={},Xs=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,qs))i=Zs(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=zs;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[Ns]&&Bs.rebuild(i)}else i=Zs(r);this.result=new qs(t,i,n),this.helpers=d({},Ks,{postcss:Ks,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{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(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(!$s[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Hs[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],!Gs(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[Ls])return[3,14];o[Ls]=!0,s=[Js(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Gs(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 Gs(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=Us;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ds(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(Gs(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Ls];)n[Ls]=!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 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(Gs(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[Ls])return a[Ls]=!0,void e.push(Js(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[Ls]=!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[Ls]=!0;for(var r,n=S(Ys(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[Ls]||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}();Xs.registerPostcss=function(e){Ks=e};var Qs=Xs;Xs.default=Xs,Ws.registerLazyResult(Xs),js.registerLazyResult(Xs);var ea=mo,ta=Ci,ra=Fs,na=Bo,ia=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=ta;this.result=new na(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 ea(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 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=ra;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}(),oa=ia;ia.default=ia;var sa=oa,aa=Qs,ca=Fo,ua=ms,la=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")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new aa(this,e,t):new sa(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ha=la;la.default=la,ua.registerProcessor(la),ca.registerProcessor(la);var pa=Fi,fa=zi,da=yo,ga=hs,ma=no,va=ms,ya=ks;function _a(e,t){if(Array.isArray(e))return e.map(function(e){return _a(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__:ma.prototype});s.map&&(s.map=d({},s.map,{__proto__:fa.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return _a(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 va(n);if("decl"===n.type)return new pa(n);if("rule"===n.type)return new ya(n);if("comment"===n.type)return new da(n);if("atrule"===n.type)return new ga(n);throw new Error("Unknown node type: "+e.type)}var ba=_a;_a.default=_a;var wa=vi,ka=Fi,Sa=Qs,Ca=Ao,xa=ha,Ia=Ci,Oa=ba,Ea=Fo,Ma=No,Aa=yo,Ra=hs,Ta=Bo,Pa=no,Fa=Fs,La=ys,Na=ks,Da=ms,Ua=Ti;function Ba(){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 xa(t)}Ba.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 xa).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return Ba([i(r)]).process(e,t)},i},Ba.stringify=Ia,Ba.parse=Fa,Ba.fromJSON=Oa,Ba.list=La,Ba.comment=function(e){return new Aa(e)},Ba.atRule=function(e){return new Ra(e)},Ba.decl=function(e){return new ka(e)},Ba.rule=function(e){return new Na(e)},Ba.root=function(e){return new Da(e)},Ba.document=function(e){return new Ea(e)},Ba.CssSyntaxError=wa,Ba.Declaration=ka,Ba.Container=Ca,Ba.Processor=xa,Ba.Document=Ea,Ba.Comment=Aa,Ba.Warning=Ma,Ba.AtRule=Ra,Ba.Result=Ta,Ba.Input=Pa,Ba.Rule=Na,Ba.Root=Da,Ba.Node=Ua,Sa.registerPostcss(Ba);var ja=Ba;Ba.default=Ba;var qa=ai(ja);qa.stringify,qa.fromJSON,qa.plugin,qa.parse,qa.list,qa.document,qa.comment,qa.atRule,qa.rule,qa.decl,qa.root,qa.CssSyntaxError,qa.Declaration,qa.Container,qa.Processor,qa.Document,qa.Comment,qa.Warning,qa.AtRule,qa.Result,qa.Input,qa.Rule,qa.Root,qa.Node;var za=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];si(this,"parentElement",null),si(this,"parentNode",null),si(this,"ownerDocument"),si(this,"firstChild",null),si(this,"lastChild",null),si(this,"previousSibling",null),si(this,"nextSibling",null),si(this,"ELEMENT_NODE",1),si(this,"TEXT_NODE",3),si(this,"nodeType"),si(this,"nodeName"),si(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}(),Wa={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Va={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},$a={};function Ha(e){if($a[e])return $a[e];var t=globalThis[e],r=t.prototype,n=e in Wa?Wa[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 Va?Va[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 $a[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?$a[e]=u:r}catch(e){return r}}var Ga={};function Ya(e,t,r){var n,i=e+"."+String(r);if(Ga[i])return Ga[i].call(t);var o=Ha(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Ga[i]=s,s.call(t)):t[r]}var Ja={};function Za(e,t,r){var n=e+"."+String(r);if(Ja[n])return Ja[n].bind(t);var i=Ha(e)[r];return"function"!=typeof i?t[r]:(Ja[n]=i,i.bind(t))}function Ka(){return Ha("MutationObserver").constructor}function Xa(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 Qa=function(e){return Ya("Node",e,"childNodes")},ec=function(e){return Ya("Node",e,"parentNode")},tc=function(e){return Ya("Node",e,"parentElement")},rc=function(e){return Ya("Node",e,"textContent")},nc=function(e,t){return Za("Node",e,"contains")(t)},ic=function(e){return Za("Node",e,"getRootNode")()},oc=function(e){return e&&"host"in e?Ya("ShadowRoot",e,"host"):null},sc=function(e){return e&&"shadowRoot"in e?Ya("Element",e,"shadowRoot"):null};function ac(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 cc="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.",uc={map:{},getId:function(){return console.error(cc),-1},getNode:function(){return console.error(cc),null},removeNodeFromMap:function(){console.error(cc)},has:function(){return console.error(cc),!1},reset:function(){console.error(cc)}};function lc(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 hc(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 hc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(uc=new Proxy(uc,{get:function(e,t,r){return"map"===t&&console.error(cc),Reflect.get(e,t,r)}}));var pc=Date.now;function fc(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=tc(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=tc(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function dc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function gc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function mc(e){return e?e.nodeType===e.ELEMENT_NODE?e:tc(e):null}function vc(e,t,r,n){if(!e)return!1;var i=mc(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(_e(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 yc(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function _c(e,t){if($(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=ec(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||_c(n,t))}function bc(e){return Boolean(e.changedTouches)}function wc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function kc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Sc(e){return!!e&&(v(e,za)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(sc(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(pc=function(){return(new Date).getTime()});var Cc=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 xc(e){var t,r=null;return"getRootNode"in e&&(null==(t=ic(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&oc(ic(e))&&(r=oc(ic(e))),r}function Ic(e){var t=e.ownerDocument;return!!t&&(nc(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=xc(r);)r=t;return r}(e);return nc(t,r)}(e))}var Oc=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}(Oc||{}),Ec=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}(Ec||{}),Mc=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}(Mc||{}),Ac=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(Ac||{}),Rc=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Rc||{}),Tc=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}(Tc||{}),Pc=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}(Pc||{});function Fc(e){return"__ln"in e}var Lc,Nc=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&&Fc(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&&Fc(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}(),Dc=function(e,t){return e+"@"+t},Uc=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 Nc,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=ec(o);if(s&&Ic(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=$(s)?e.mirror.getId(xc(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=Se(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){wc(t,e.mirror)&&e.iframeManager.addIframe(t),kc(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Sc(o)&&e.shadowDomManager.addShadowRoot(sc(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;jc(e.removesSubTreeCache,u,e.mirror)&&!e.movedSet.has(ec(u))||o(u)}for(var l,h=S(e.addedSet);!(l=h()).done;){var p=l.value;qc(e.droppedSet,p)||jc(e.removesSubTreeCache,p,e.mirror)?qc(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(ec(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(ec(y.value));if(-1===i(y.value))continue;if(-1!==_){d=y;break}var b=y.value,w=ec(b);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=oc(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=ec(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(Qa(t),function(e){return rc(e)||""}).join("");r.attributes.value=Z({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Q(t),value:n,maskInputFn:e.maskInputFn})}),E(this,"processMutation",function(t){if(!yc(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=rc(t.target);vc(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:be(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,mc(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=Q(n);o=Z({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(vc(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"),!ye(n.tagName,i))if(a.attributes[i]=ve(e.doc,K(n.tagName),K(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(vc(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=$(t.target)?e.mirror.getId(oc(t.target)):e.mirror.getId(t.target);vc(t.target,e.blockClass,e.blockSelector,!1)||yc(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Bc(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||_c(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Dc(n,i)]?Bc(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!$(t.target)||!H(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),Qa(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(yc(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[Dc(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);vc(t,e.blockClass,e.blockSelector,!1)||(Qa(t).forEach(function(t){return e.genAdds(t)}),Sc(t)&&Qa(sc(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 Bc(e,t){e.delete(t),Qa(t).forEach(function(t){return Bc(e,t)})}function jc(e,t,r){return 0!==e.size&&function(e,t){var r=ec(t);return!!r&&e.has(r)}(e,t)}function qc(e,t){return 0!==e.size&&zc(e,t)}function zc(e,t){var r=ec(t);return!!r&&(!!e.has(r)||zc(e,r))}var Wc=function(e){return Lc?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(Lc&&!0===Lc(e))return;throw e}}:e},Vc=[];function $c(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 Hc(e,t){var r=new Uc;Vc.push(r),r.init(e);var n=new(Ka())(Wc(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Gc(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return ac("scroll",Wc(lc(Wc(function(e){var s=$c(e);if(s&&!vc(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=fc(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 Yc=["INPUT","TEXTAREA","SELECT"],Jc=new WeakMap;function Zc(e){return function(e,t){if(eu("CSSGroupingRule")&&v(e.parentRule,CSSGroupingRule)||eu("CSSMediaRule")&&v(e.parentRule,CSSMediaRule)||eu("CSSSupportsRule")&&v(e.parentRule,CSSSupportsRule)||eu("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 Kc(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Xc(e,t){var r,n,i,o,s=e.mirror,a=e.stylesheetManager;o="#document"===t.nodeName?s.getId(t):s.getId(oc(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!==o&&-1!==o&&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!==o&&-1!==o)try{a.adoptStyleSheets(e,o)}catch(e){}return r}}),Wc(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function Qc(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=Hc(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=lc(Wc(function(e){var r=Date.now()-o;t(c.map(function(e){return e.timeOffset-=r,e}),e),c=[],o=null}),a),l=Wc(lc(Wc(function(e){var t=$c(e),r=bc(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=pc()),c.push({x:n,y:s,id:i.getId(t),timeOffset:pc()-o}),u("undefined"!=typeof DragEvent&&v(e,DragEvent)?Ec.Drag:v(e,MouseEvent)?Ec.MouseMove:Ec.TouchMove)}),s,{trailing:!1})),h=[ac("mousemove",l,n),ac("touchmove",l,n),ac("drag",l,n)];return Wc(function(){h.forEach(function(e){return e()})})}(e),g=function(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(Mc).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=K(e),a=function(e){return function(r){var s=$c(r);if(!vc(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=Ac.Mouse;break;case"touch":a=Ac.Touch;break;case"pen":a=Ac.Pen}a===Ac.Touch?Mc[e]===Mc.MouseDown?c="TouchStart":Mc[e]===Mc.MouseUp&&(c="TouchEnd"):Ac.Pen}else bc(r)&&(a=Ac.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===Ac.Touch||c.startsWith("Mouse")&&a===Ac.Mouse)&&(a=null)):Mc[e]===Mc.Click&&(a=u,u=null);var l=bc(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,f=l.clientY;Wc(t)(d({type:Mc[c],id:h,x:p,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(Mc[e]){case Mc.MouseDown:case Mc.MouseUp:s=s.replace("mouse","pointer");break;case Mc.TouchStart:case Mc.TouchEnd:return}c.push(ac(s,a,r))}),Wc(function(){c.forEach(function(e){return e()})})}(e),m=Gc(e),y=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return ac("resize",Wc(lc(Wc(function(){var e=dc(),t=gc();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=$c(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=tc(t)),t&&l&&!(Yc.indexOf(l)<0)&&!vc(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,d=!1,g=Q(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(p=Z({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=Jc.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Jc.set(e,r);var o=n.getId(e);Wc(t)(d({},r,{id:o}))}}var g=("last"===l.input?["change"]:["input","change"]).map(function(e){return ac(e,Wc(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 hc(e[0],e[1],{set:function(){Wc(p)({target:this,isTrusted:!1})}},!1,m)}))),Wc(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=Wc(function(e){return lc(Wc(function(t){var r=$c(t);if(r&&!vc(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=[ac("play",h(Tc.Play),l),ac("pause",h(Tc.Pause),l),ac("seeked",h(Tc.Seeked),l),ac("volumechange",h(Tc.VolumeChange),l),ac("ratechange",h(Tc.RateChange),l)],Wc(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:Wc(function(e,t,o){var s=o[0],a=o[1],c=Kc(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:Wc(function(e,t,o){var s=o[0],a=Kc(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:Wc(function(e,t,o){var s=o[0],a=Kc(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:Wc(function(e,t,o){var s=o[0],a=Kc(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={};tu("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(tu("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),tu("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),tu("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:Wc(function(e,t,o){var s=o[0],a=o[1],c=Kc(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(Zc(t),[a||0])}]}),e.apply(t,o)})}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Wc(function(e,t,o){var s=o[0],a=Kc(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(Zc(t),[s])}]}),e.apply(t,o)})})}),Wc(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=Xc(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:Wc(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=Kc(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:Zc(t.parentRule)}),e.apply(t,s)})});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Wc(function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Kc(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:Zc(t.parentRule)}),e.apply(t,s)})}),Wc(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=Xa(r.fonts,"add",function(e){return function(r){return setTimeout(Wc(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),Wc(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=Wc(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;vc(h,n,i,!0)||vc(f,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(f),endOffset:d})}o({ranges:a})}});return a(),ac("selectionchange",a)}(e),E=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Xa(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),M=[],A=S(e.plugins);!(I=A()).done;){var R=I.value;M.push(R.observer(R.callback,n,R.options))}return Wc(function(){Vc.forEach(function(e){return e.reset()}),null==r||r.disconnect(),f(),g(),m(),y(),_(),b(),w(),k(),C(),x(),O(),E(),M.forEach(function(e){return e()})})}function eu(e){return void 0!==window[e]}function tu(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var ru=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);return"number"!=typeof t?t:n.get(t)||-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}(),nu=function(){function e(e){E(this,"iframes",new WeakMap),E(this,"crossOriginIframeMap",new WeakMap),E(this,"crossOriginIframeMirror",new ru(he)),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 ru(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 Oc.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:Oc.IncrementalSnapshot,data:{source:Ec.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case Oc.Meta:case Oc.Load:case Oc.DomContentLoaded:return!1;case Oc.Plugin:return t;case Oc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case Oc.IncrementalSnapshot:switch(t.data.source){case Ec.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 Ec.Drag:case Ec.TouchMove:case Ec.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Ec.ViewportResize:return!1;case Ec.MediaInteraction:case Ec.MouseInteraction:case Ec.Scroll:case Ec.CanvasMutation:case Ec.Input:return this.replaceIds(t.data,e,["id"]),t;case Ec.StyleSheetRule:case Ec.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Ec.Font:return t;case Ec.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Ec.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===Pc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),iu=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(H(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=Hc(d({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(Gc(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(oc(e))),r.restoreHandlers.push(Xc({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(Xa(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=sc(this);return o&&Ic(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}(),ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",su="undefined"==typeof Uint8Array?[]:new Uint8Array(256),au=0;au<64;au++)su[ou.charCodeAt(au)]=au;var cu=new Map,uu=function(e,t,r){if(e&&(pu(e,t)||"object"===(void 0===e?"undefined":b(e)))){var n=function(e,t){var r=cu.get(e);return r||(r=new Map,cu.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 lu(e,t,r){return v(e,Array)?e.map(function(e){return lu(e,t,r)}):null===e?e: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)?{rr_type:e.constructor.name,args:[Object.values(e)]}:v(e,ArrayBuffer)?{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+=ou[r[t]>>2],i+=ou[(3&r[t])<<4|r[t+1]>>4],i+=ou[(15&r[t+1])<<2|r[t+2]>>6],i+=ou[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)}:v(e,DataView)?{rr_type:e.constructor.name,args:[lu(e.buffer,t,r),e.byteOffset,e.byteLength]}:v(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:v(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:v(e,ImageData)?{rr_type:e.constructor.name,args:[lu(e.data,t,r),e.width,e.height]}:pu(e,t)||"object"===(void 0===e?"undefined":b(e))?{rr_type:e.constructor.name,index:uu(e,t,r)}:e}var hu=function(e,t,r){return e.map(function(e){return lu(e,t,r)})},pu=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 fu(e,t,r,n){var i=[];try{var o=Xa(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(!vc(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 du(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=Xa(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(uu(l,o,this),"tagName"in this.canvas&&!vc(this.canvas,n,i,!0)){var h=hu(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}});c.push(u)}catch(n){var l=hc(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 gu,mu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",vu="undefined"!=typeof window&&window.Blob&&new Blob([(gu=mu,Uint8Array.from(atob(gu),function(e){return e.charCodeAt(0)}))],{type:"text/javascript;charset=utf-8"});function yu(e){var t;try{if(!(t=vu&&(window.URL||window.webkitURL).createObjectURL(vu)))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,"+mu,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var _u,bu,wu,ku=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=fu(t,r,n,!0),a=new Map,c=new yu;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:Rc["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){vc(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)||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=fu(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=Xa(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 vc(this.canvas,r,n,!0)||setTimeout(function(){var r=hu(c,t,s);e(s.canvas,{type:Rc["2D"],property:o,args:r})},0),i.apply(this,c)}});s.push(a)}catch(r){var c=hc(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:Rc["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(du(t.WebGLRenderingContext.prototype,Rc.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(du(t.WebGL2RenderingContext.prototype,Rc.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}(),Su=function(){function e(e){E(this,"trackedLinkElements",new WeakSet),E(this,"mutationCb"),E(this,"adoptedStyleSheetCb"),E(this,"styleMirror",new Cc),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:Y(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}(),Cu=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 xu(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}var Iu=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var Ou=document.createElement("iframe");document.body.appendChild(Ou),Array.from=(null==(I=Ou.contentWindow)?void 0:I.Array.from)||Array.from,document.body.removeChild(Ou)}}catch(e){console.debug("Unable to override Array.from",e)}var Eu,Mu,Au=new J;function Ru(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,M=e.sampling,A=void 0===M?{}:M,R=e.dataURLOptions,T=void 0===R?{}:R,P=e.mousemoveWait,F=e.recordDOM,L=void 0===F||F,N=e.recordCanvas,D=void 0!==N&&N,U=e.recordCrossOriginIframes,B=void 0!==U&&U,j=e.allowedIframeOrigins,q=e.recordAfter,z=void 0===q?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":q,W=e.userTriggeredOnInput,V=void 0!==W&&W,$=e.collectFonts,H=void 0!==$&&$,G=e.inlineImages,Y=void 0!==G&&G,Z=e.plugins,K=e.keepIframeSrcFn,X=void 0===K?function(){return!1}:K,Q=e.ignoreCSSAttributes,ee=void 0===Q?new Set([]):Q,te=e.errorHandler;Lc=te,B&&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=xu(n);i&&t.add(i)}return Object.freeze(t)}(j)).size&&(t=void 0);var re=!B||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===A.mousemove&&(A.mousemove=P),Au.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(Z||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return E&&!ne&&(e=E(e)),e};_u=function(e,o){var s,a=e;if(a.timestamp=pc(),!(null==(s=Vc[0])?void 0:s.isFrozen())||a.type===Oc.FullSnapshot||a.type===Oc.IncrementalSnapshot&&a.data.source===Ec.Mutation||Vc.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===Oc.FullSnapshot)ie=a,ae=0;else if(a.type===Oc.IncrementalSnapshot){if(a.data.source===Ec.Mutation&&a.data.isAttachIframe)return;ae++;var p=i&&ae>=i,f=n&&a.timestamp-ie.timestamp>n;(p||f)&&bu(!0)}};for(var ue,le=function(e){_u({type:Oc.IncrementalSnapshot,data:d({source:Ec.Mutation},e)})},he=function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.Scroll},e)})},pe=function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.CanvasMutation},e)})},fe=new Su({mutationCb:le,adoptedStyleSheetCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.AdoptedStyleSheet},e)})}}),de=new nu({mirror:Au,mutationCb:le,stylesheetManager:fe,recordCrossOriginIframes:B,wrappedEmit:_u}),ge=S(Z||[]);!(ue=ge()).done;){var me=ue.value;me.getMirror&&me.getMirror({nodeMirror:Au,crossOriginIframeMirror:de.crossOriginIframeMirror,crossOriginIframeStyleMirror:de.crossOriginIframeStyleMirror})}var ve=new Cu;wu=new ku({recordCanvas:D,mutationCb:pe,win:window,blockClass:s,blockSelector:c,mirror:Au,sampling:A.canvas,dataURLOptions:T});var ye=new iu({mutationCb:le,scrollCb:he,bypassOptions:{blockClass:s,blockSelector:c,maskTextClass:g,maskTextSelector:v,inlineStylesheet:_,maskInputOptions:oe,dataURLOptions:T,maskTextFn:I,maskInputFn:x,recordCanvas:D,inlineImages:Y,sampling:A,slimDOMOptions:se,iframeManager:de,stylesheetManager:fe,canvasManager:wu,keepIframeSrcFn:X,processedNodeManager:ve},mirror:Au});bu=function(e){if(void 0===e&&(e=!1),L){_u({type:Oc.Meta,data:{href:window.location.href,width:gc(),height:dc()}},e),fe.reset(),ye.init(),Vc.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new J:n,o=r.blockClass,s=r.blockSelector,a=r.maskTextClass,c=r.maskTextSelector,u=r.inlineStylesheet,l=r.inlineImages,h=r.recordCanvas,p=r.maskAllInputs,f=void 0!==p&&p,d=r.slimDOM,g=void 0!==d&&d,m=r.keepIframeSrcFn;return Se(e,{doc:e,mirror:i,blockClass:void 0===o?"rr-block":o,blockSelector:void 0===s?null:s,maskTextClass:void 0===a?"rr-mask":a,maskTextSelector:void 0===c?null:c,skipChild:!1,inlineStylesheet:void 0===u||u,maskInputOptions:!0===f?{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===f?{password:!0}:f,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:!0===g||"all"===g?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===g,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===g?{}:g,dataURLOptions:r.dataURLOptions,inlineImages:void 0!==l&&l,recordCanvas:void 0!==h&&h,preserveWhiteSpace:r.preserveWhiteSpace,onSerialize:r.onSerialize,onIframeLoad:r.onIframeLoad,iframeLoadTimeout:r.iframeLoadTimeout,onStylesheetLoad:r.onStylesheetLoad,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===m?function(){return!1}:m,newlyAddedElement:!1})}(document,{mirror:Au,blockClass:s,blockSelector:c,maskTextClass:g,maskTextSelector:v,inlineStylesheet:_,maskAllInputs:oe,maskTextFn:I,maskInputFn:x,slimDOM:se,dataURLOptions:T,recordCanvas:D,inlineImages:Y,onSerialize:function(e){wc(e,Au)&&de.addIframe(e),kc(e,Au)&&fe.trackLinkElement(e),Sc(e)&&ye.addShadowRoot(sc(e),document)},onIframeLoad:function(e,t){de.attachIframe(e,t),ye.observeAttachShadow(e)},onStylesheetLoad:function(e,t){fe.attachLinkElement(e,t)},keepIframeSrcFn:X});if(!t)return console.warn("Failed to snapshot the document");_u({type:Oc.FullSnapshot,data:{node:t,initialOffset:fc(window)}},e),Vc.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&fe.adoptStyleSheets(document.adoptedStyleSheets,Au.getId(document))}};try{var _e=[],be=function(e){var t;return Wc(Qc)({mutationCb:le,mousemoveCb:function(e,t){return _u({type:Oc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.MouseInteraction},e)})},scrollCb:he,viewportResizeCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.ViewportResize},e)})},inputCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.Input},e)})},mediaInteractionCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.MediaInteraction},e)})},styleSheetRuleCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.StyleSheetRule},e)})},styleDeclarationCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.StyleDeclaration},e)})},canvasMutationCb:pe,fontCb:function(e){return _u({type:Oc.IncrementalSnapshot,data:d({source:Ec.Font},e)})},selectionCb:function(e){_u({type:Oc.IncrementalSnapshot,data:d({source:Ec.Selection},e)})},customElementCb:function(e){_u({type:Oc.IncrementalSnapshot,data:d({source:Ec.CustomElement},e)})},blockClass:s,ignoreClass:l,ignoreSelector:p,maskTextClass:g,maskTextSelector:v,maskInputOptions:oe,inlineStylesheet:_,sampling:A,recordDOM:L,recordCanvas:D,inlineImages:Y,userTriggeredOnInput:V,collectFonts:H,doc:e,maskInputFn:x,maskTextFn:I,keepIframeSrcFn:X,blockSelector:c,slimDOMOptions:se,dataURLOptions:T,mirror:Au,iframeManager:de,stylesheetManager:fe,shadowDomManager:ye,processedNodeManager:ve,canvasManager:wu,ignoreCSSAttributes:ee,plugins:(null==(t=null==Z?void 0:Z.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return _u({type:Oc.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=Vc.length-1;t>=0;t--)Vc[t].getDoc()===e&&Vc.splice(t,1)}(t)}catch(e){}})}catch(e){console.warn(e)}});var we=function(){bu(),_e.push(be(document)),Iu=!0};return"interactive"===document.readyState||"complete"===document.readyState?we():(_e.push(ac("DOMContentLoaded",function(){_u({type:Oc.DomContentLoaded,data:{}}),"DOMContentLoaded"===z&&we()})),_e.push(ac("load",function(){_u({type:Oc.Load,data:{}}),"load"===z&&we()},window))),function(){_e.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),ve.destroy(),Iu=!1,Lc=void 0}}catch(e){console.warn(e)}}Ru.addCustomEvent=function(e,t){if(!Iu)throw new Error("please add custom event after start recording");_u({type:Oc.Custom,data:{tag:e,payload:t}})},Ru.freezePage=function(){Vc.forEach(function(e){return e.freeze()})},Ru.takeFullSnapshot=function(e){if(!Iu)throw new Error("please take full snapshot after start recording");bu(e)},Ru.mirror=Au,(Mu=Eu||(Eu={}))[Mu.NotStarted=0]="NotStarted",Mu[Mu.Running=1]="Running",Mu[Mu.Stopped=2]="Stopped",Ru.addCustomEvent,Ru.freezePage,Ru.takeFullSnapshot;var Tu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Pu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Fu={};function Lu(e){if(Fu[e])return Fu[e];var t=globalThis[e],r=t.prototype,n=e in Tu?Tu[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 Pu?Pu[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 Fu[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?Fu[e]=u:r}catch(e){return r}}var Nu={};function Du(e,t,r){var n,i=e+"."+String(r);if(Nu[i])return Nu[i].call(t);var o=Lu(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(Nu[i]=s,s.call(t)):t[r]}var Uu=function(e){return Du("Node",e,"parentNode")};function Bu(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Bu(Uu(e),t);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return Bu(Uu(e),t)}function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qu(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 zu={exports:{}},Wu=String,Vu=function(){return{isColorSupported:!1,reset:Wu,bold:Wu,dim:Wu,italic:Wu,underline:Wu,inverse:Wu,hidden:Wu,strikethrough:Wu,black:Wu,red:Wu,green:Wu,yellow:Wu,blue:Wu,magenta:Wu,cyan:Wu,white:Wu,gray:Wu,bgBlack:Wu,bgRed:Wu,bgGreen:Wu,bgYellow:Wu,bgBlue:Wu,bgMagenta:Wu,bgCyan:Wu,bgWhite:Wu}};zu.exports=Vu(),zu.exports.createColors=Vu;var $u=zu.exports,Hu=qu(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Gu=$u,Yu=Hu,Ju=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=Gu.isColorSupported),Yu&&e&&(r=Yu(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=Gu.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)),Zu=Ju;Ju.default=Ju;var Ku={};Ku.isClean=Symbol("isClean"),Ku.my=Symbol("my");var Xu={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1},Qu=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 Xu[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=Xu[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}(),el=Qu;Qu.default=Qu;var tl=el;function rl(e,t){new tl(t).stringify(e)}var nl=rl;rl.default=rl;var il=Ku.isClean,ol=Ku.my,sl=Zu,al=el,cl=nl;function ul(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 ul(e,r)}):("object"===o&&null!==i&&(i=ul(i)),r[n]=i)}return r}var ll=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[il]=!1,this[ol]=!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=ul(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 sl(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[il]){this[il]=!1;for(var e=this;e=e.parent;)e[il]=!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 al).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=cl),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}(),hl=ll;ll.default=ll;var pl=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}(hl),fl=pl;pl.default=pl;var dl=Hu.SourceMapConsumer,gl=Hu.SourceMapGenerator,ml=Hu.existsSync,vl=Hu.readFileSync,yl=Hu.dirname,_l=Hu.join,bl=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=yl(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new dl(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=yl(e),ml(e))return this.mapFile=e,vl(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,dl))return gl.fromSourceMap(t).toString();if(v(t,gl))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=_l(yl(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}(),wl=bl;bl.default=bl;var kl=Hu.SourceMapConsumer,Sl=Hu.SourceMapGenerator,Cl=Hu.fileURLToPath,xl=Hu.pathToFileURL,Il=Hu.isAbsolute,Ol=Hu.resolve,El=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Ml=Hu,Al=Zu,Rl=wl,Tl=Symbol("fromOffsetCache"),Pl=Boolean(kl&&Sl),Fl=Boolean(Ol&&Il),Ll=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&&(!Fl||/^\w+:\/\//.test(t.from)||Il(t.from)?this.file=t.from:this.file=Ol(t.from)),Fl&&Pl){var r=new Rl(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 "+El(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 Al(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 Al(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&&(xl&&(i.input.url=xl(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Tl])t=this[Tl];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[Tl]=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:Ol(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=Il(a.source)?xl(a.source):new URL(a.source,this.map.consumer().sourceRoot||xl(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(!Cl)throw new Error("file: protocol is not available in this PostCSS build");c.file=Cl(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}(),Nl=Ll;Ll.default=Ll,Ml&&Ml.registerInput&&Ml.registerInput(Ll);var Dl=Hu.SourceMapConsumer,Ul=Hu.SourceMapGenerator,Bl=Hu.dirname,jl=Hu.relative,ql=Hu.resolve,zl=Hu.sep,Wl=Hu.pathToFileURL,Vl=Nl,$l=Boolean(Dl&&Ul),Hl=Boolean(Bl&&ql&&jl&&zl),Gl=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||Bl(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new Dl(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(),Hl&&$l&&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=Ul.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ul({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 Ul({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?Bl(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=Bl(ql(r,this.mapOpts.annotation)));var n=jl(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 Vl(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(Wl){var r=Wl(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;"\\"===zl&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Yl=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(hl),Jl=Yl;Yl.default=Yl;var Zl,Kl,Xl,Ql,eh=Ku.isClean,th=Ku.my,rh=fl,nh=Jl;function ih(e){return e.map(function(e){return e.nodes&&(e.nodes=ih(e.nodes)),delete e.source,e})}function oh(e){if(e[eh]=!1,e.proxyOf.nodes)for(var t,r=S(e.proxyOf.nodes);!(t=r()).done;)oh(t.value)}var sh=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=ih(Zl(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 rh(e)]}else if(e.selector)e=[new Kl(e)];else if(e.name)e=[new Xl(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new nh(e)]}var l=e.map(function(e){return e[th]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[eh]&&oh(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}(hl);sh.registerParse=function(e){Zl=e},sh.registerRule=function(e){Kl=e},sh.registerAtRule=function(e){Xl=e},sh.registerRoot=function(e){Ql=e};var ah=sh;sh.default=sh,sh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Xl.prototype):"rule"===e.type?Object.setPrototypeOf(e,Kl.prototype):"decl"===e.type?Object.setPrototypeOf(e,rh.prototype):"comment"===e.type?Object.setPrototypeOf(e,nh.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ql.prototype),e[th]=!0,e.nodes&&e.nodes.forEach(function(e){sh.rebuild(e)})};var ch,uh,lh=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 ch(new uh,this,e).stringify()},t}(ah);lh.registerLazyResult=function(e){ch=e},lh.registerProcessor=function(e){uh=e};var hh=lh;lh.default=lh;var ph=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}(),fh=ph;ph.default=ph;var dh=fh,gh=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 dh(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}(),mh=gh;gh.default=gh;var vh="'".charCodeAt(0),yh='"'.charCodeAt(0),_h="\\".charCodeAt(0),bh="/".charCodeAt(0),wh="\n".charCodeAt(0),kh=" ".charCodeAt(0),Sh="\f".charCodeAt(0),Ch="\t".charCodeAt(0),xh="\r".charCodeAt(0),Ih="[".charCodeAt(0),Oh="]".charCodeAt(0),Eh="(".charCodeAt(0),Mh=")".charCodeAt(0),Ah="{".charCodeAt(0),Rh="}".charCodeAt(0),Th=";".charCodeAt(0),Ph="*".charCodeAt(0),Fh=":".charCodeAt(0),Lh="@".charCodeAt(0),Nh=/[\t\n\f\r "#'()/;[\\\]{}]/g,Dh=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Uh=/.[\r\n"'(/\\]/,Bh=/[\da-f]/i,jh=ah,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}(jh),zh=qh;qh.default=qh,jh.registerAtRule(qh);var Wh,Vh,$h=ah,Hh=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 Wh(new Vh,this,e).stringify()},t}($h);Hh.registerLazyResult=function(e){Wh=e},Hh.registerProcessor=function(e){Vh=e};var Gh=Hh;Hh.default=Hh,$h.registerRoot(Hh);var Yh={comma:function(e){return Yh.split(e,[","],!0)},space:function(e){return Yh.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}},Jh=Yh;Yh.default=Yh;var Zh=ah,Kh=Jh,Xh=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 Kh.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}(Zh),Qh=Xh;Xh.default=Xh,Zh.registerRule(Xh);var ep=fl,tp=Jl,rp=zh,np=Gh,ip=Qh,op={empty:!0,space:!0},sp=function(){function e(e){this.input=e,this.root=new np,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 rp;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 tp;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=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 wh:case kh:case Ch:case xh:case Sh:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===kh||r===wh||r===Ch||r===xh||r===Sh);h=["space",p.slice(g,n)],g=n-1;break;case Ih:case Oh:case Ah:case Rh:case Fh:case Th:case Mh:var _=String.fromCharCode(r);h=[_,_,g];break;case Eh:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==vh&&l!==yh&&l!==kh&&l!==wh&&l!==Ch&&l!==Sh&&l!==xh){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)===_h;)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||Uh.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case vh:case yh:i=r===vh?"'":'"',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)===_h;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Lh:Nh.lastIndex=g+1,Nh.test(p),n=0===Nh.lastIndex?p.length-1:Nh.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case _h:for(n=g,s=!0;p.charCodeAt(n+1)===_h;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==bh&&r!==kh&&r!==wh&&r!==Ch&&r!==xh&&r!==Sh&&(n+=1,Bh.test(p.charAt(n)))){for(;Bh.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===kh&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===bh&&p.charCodeAt(g+1)===Ph?(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):(Dh.lastIndex=g+1,Dh.test(p),n=0===Dh.lastIndex?p.length-1:Dh.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}}(this.input)},t.decl=function(e,t){var r=new ep;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 ip;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",op[a]||op[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 ip;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}(),ap=ah,cp=sp,up=Nl;function lp(e,t){var r=new up(e,t),n=new cp(r);try{n.parse()}catch(e){throw e}return n.root}var hp=lp;lp.default=lp,ap.registerParse(lp);var pp=Ku.isClean,fp=Ku.my,dp=Gl,gp=nl,mp=ah,vp=hh,yp=mh,_p=hp,bp=Gh,wp={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},kp={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},Sp={Once:!0,postcssPlugin:!0,prepare:!0};function Cp(e){return"object"===(void 0===e?"undefined":b(e))&&"function"==typeof e.then}function xp(e){var t=!1,r=wp[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 Ip(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:xp(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Op(e){return e[pp]=!1,e.nodes&&e.nodes.forEach(function(e){return Op(e)}),e}var Ep={},Mp=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,yp))i=Op(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=_p;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[fp]&&mp.rebuild(i)}else i=Op(r);this.result=new yp(t,i,n),this.helpers=d({},Ep,{postcss:Ep,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{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(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(!kp[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Sp[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],!Cp(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[pp])return[3,14];o[pp]=!0,s=[Ip(o)],f.label=8;case 8:if(!(s.length>0))return[3,13];if(!Cp(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 Cp(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=gp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new dp(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(Cp(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[pp];)n[pp]=!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 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(Cp(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[pp])return a[pp]=!0,void e.push(Ip(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[pp]=!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[pp]=!0;for(var r,n=S(xp(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each(function(e){e[pp]||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}();Mp.registerPostcss=function(e){Ep=e};var Ap=Mp;Mp.default=Mp,bp.registerLazyResult(Mp),vp.registerLazyResult(Mp);var Rp=Gl,Tp=nl,Pp=hp,Fp=mh,Lp=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=Tp;this.result=new Fp(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 Rp(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 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=Pp;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}(),Np=Lp;Lp.default=Lp;var Dp=Np,Up=Ap,Bp=hh,jp=Gh,qp=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")}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new Up(this,e,t):new Dp(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),zp=qp;qp.default=qp,jp.registerProcessor(qp),Bp.registerProcessor(qp);var Wp=fl,Vp=wl,$p=Jl,Hp=zh,Gp=Nl,Yp=Gh,Jp=Qh;function Zp(e,t){if(Array.isArray(e))return e.map(function(e){return Zp(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__:Gp.prototype});s.map&&(s.map=d({},s.map,{__proto__:Vp.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return Zp(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 Yp(n);if("decl"===n.type)return new Wp(n);if("rule"===n.type)return new Jp(n);if("comment"===n.type)return new $p(n);if("atrule"===n.type)return new Hp(n);throw new Error("Unknown node type: "+e.type)}var Kp=Zp;Zp.default=Zp;var Xp=Zu,Qp=fl,ef=Ap,tf=ah,rf=zp,nf=nl,of=Kp,sf=hh,af=fh,cf=Jl,uf=zh,lf=mh,hf=Nl,pf=hp,ff=Jh,df=Qh,gf=Gh,mf=hl;function vf(){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 rf(t)}vf.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 rf).version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return vf([i(r)]).process(e,t)},i},vf.stringify=nf,vf.parse=pf,vf.fromJSON=of,vf.list=ff,vf.comment=function(e){return new cf(e)},vf.atRule=function(e){return new uf(e)},vf.decl=function(e){return new Qp(e)},vf.rule=function(e){return new df(e)},vf.root=function(e){return new gf(e)},vf.document=function(e){return new sf(e)},vf.CssSyntaxError=Xp,vf.Declaration=Qp,vf.Container=tf,vf.Processor=rf,vf.Document=sf,vf.Comment=cf,vf.Warning=af,vf.AtRule=uf,vf.Result=lf,vf.Input=hf,vf.Rule=df,vf.Root=gf,vf.Node=mf,ef.registerPostcss(vf);var yf=vf;vf.default=vf;var _f=ju(yf);_f.stringify,_f.fromJSON,_f.plugin,_f.parse,_f.list,_f.document,_f.comment,_f.atRule,_f.rule,_f.decl,_f.root,_f.CssSyntaxError,_f.Declaration,_f.Container,_f.Processor,_f.Document,_f.Comment,_f.Warning,_f.AtRule,_f.Result,_f.Input,_f.Rule,_f.Root,_f.Node;var bf=Object.defineProperty,wf=function(e,t,r){return function(e,t,r){return t in e?bf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":b(t))?t+"":t,r)},kf=function(){function e(e){wf(this,"fileName"),wf(this,"functionName"),wf(this,"lineNumber"),wf(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}(),Sf=/(^|@)\S+:\d+/,Cf=/^\s*at .*(\S+:\d+|\(native\))/m,xf=/^(eval@)?(\[native code])?$/,If={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Cf)?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(Cf)},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 kf({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(xf)},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 kf({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new kf({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 kf({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 kf({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(Sf)&&!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 kf({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Of(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 Ef(e){return"[object Object]"===Object.prototype.toString.call(e)}function Mf(e,t){if(0===t)return!0;for(var r,n=S(Object.keys(e));!(r=n()).done;){var i=r.value;if(Ef(e[i])&&Mf(e[i],t-1))return!0}return!1}function Af(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(Ef(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||Ef(s)&&Mf(s,r.depthOfLimit))return function(e){var t=e.toString();return r.stringLengthLimit&&t.length>r.stringLengthLimit&&(t=t.slice(0,r.stringLengthLimit)+"..."),t}(t);var s;if("bigint"===(void 0===t?"undefined":b(t)))return t.toString()+"n";if(v(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=Of(u.length?u[0]:null):a[c]=u}return a}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 Rf={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 Tf(e,t,r){var n,i=r?Object.assign({},Rf,r):Rf,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=If.parse(n).map(function(e){return e.toString()}),s=[Af(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=[Af("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Af("Uncaught (in promise)",i.stringifyOptions),Af(t.reason,i.stringifyOptions)]);var o=If.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(t,o){try{if(!(o in t))return function(){};var c=t[o],u=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=If.parse(new Error).map(function(e){return e.toString()}).splice(1),h=("assert"===r?c.slice(1):c).map(function(e){return Af(e,i.stringifyOptions)});++s<i.lengthThreshold?e({level:r,trace:l,payload:h}):s===i.lengthThreshold&&e({level:"warn",trace:[],payload:[Af("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],c))}finally{a=!1}}}}(c);return"function"==typeof u&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__rrweb_original__:{enumerable:!1,value:c}})),t[o]=u,function(){t[o]=c}}catch(e){return function(){}}}(t,r):function(){}}}var Pf,Ff,Lf,Nf=n.setImmediate,Df=Object.prototype.toString,Uf=void 0!==Nf?function(e){return Nf(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Pf=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){Pf=function(e,t,r){return e[t]=r,e}}function Bf(e,t){Lf.add(e,t),Ff||(Ff=Uf(Lf.drain))}function jf(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function qf(){for(var e=0;e<this.chain.length;e++)zf(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function zf(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=jf(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function Wf(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=jf(e))?Bf(function(){var n=new Hf(r);try{t.call(e,function(){Wf.apply(n,arguments)},function(){Vf.apply(n,arguments)})}catch(e){Vf.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&Bf(qf,r))}catch(e){Vf.call(new Hf(r),e)}}}function Vf(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Bf(qf,t))}function $f(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 Hf(e){this.def=e,this.triggered=!1}function Gf(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Yf(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 Gf(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&&Bf(qf,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){Wf.call(t,e)},function(e){Vf.call(t,e)})}catch(e){Vf.call(t,e)}}Lf=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=Ff=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Jf,Zf=Pf({},"constructor",Yf,!1);Yf.prototype=Zf,Pf(Zf,"__NPO__",0,!1),Pf(Yf,"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)})}),Pf(Yf,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),Pf(Yf,"all",function(e){var t=this;return"[object Array]"!==Df.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;$f(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),Pf(Yf,"race",function(e){var t=this;return"[object Array]"!==Df.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");$f(t,e,function(e,t){r(t)},n)})}),Jf="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Yf;var Kf,Xf,Qf,ed,td,rd,nd,id,od,sd,ad=864e5,cd=Array.prototype,ud=Function.prototype,ld=Object.prototype,hd=cd.slice,pd=ld.toString,fd=ld.hasOwnProperty,dd=n.console,gd=n.navigator,md=n.document,vd=n.opera,yd=n.screen,_d=gd.userAgent,bd=ud.bind,wd=cd.forEach,kd=cd.indexOf,Sd=cd.map,Cd=Array.isArray,xd={},Id={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Od={log:function(){if(o.DEBUG&&!Id.isUndefined(dd)&&dd)try{dd.log.apply(dd,arguments)}catch(e){Id.each(arguments,function(e){dd.log(e)})}},warn:function(){if(o.DEBUG&&!Id.isUndefined(dd)&&dd){var e=["Mixpanel warning:"].concat(Id.toArray(arguments));try{dd.warn.apply(dd,e)}catch(t){Id.each(e,function(e){dd.warn(e)})}}},error:function(){if(o.DEBUG&&!Id.isUndefined(dd)&&dd){var e=["Mixpanel error:"].concat(Id.toArray(arguments));try{dd.error.apply(dd,e)}catch(t){Id.each(e,function(e){dd.error(e)})}}},critical:function(){if(!Id.isUndefined(dd)&&dd){var e=["Mixpanel error:"].concat(Id.toArray(arguments));try{dd.error.apply(dd,e)}catch(t){Id.each(e,function(e){dd.error(e)})}}}},Ed=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Od,arguments)}},Md=function(e){return{log:Ed(Od.log,e),warn:Ed(Od.warn,e),error:Ed(Od.error,e),critical:Ed(Od.critical,e)}},Ad=function(e){return function(){try{return e.apply(this,arguments)}catch(e){Od.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),o.DEBUG&&Od.critical(e)}}},Rd=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=Ad(t[r]))};Id.bind=function(e,t){var r,n;if(bd&&e.bind===bd)return bd.apply(e,hd.call(arguments,1));if(!Id.isFunction(e))throw new TypeError;return r=hd.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(hd.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(hd.call(arguments)));return Object(s)===s?s:o},n},Id.each=function(e,t,r){if(null!=e)if(wd&&e.forEach===wd)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)===xd)return}else for(var o in e)if(fd.call(e,o)&&t.call(r,e[o],o,e)===xd)return},Id.extend=function(e){return Id.each(hd.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},Id.isArray=Cd||function(e){return"[object Array]"===pd.call(e)},Id.isFunction=function(e){return"function"==typeof e},Id.isArguments=function(e){return!(!e||!fd.call(e,"callee"))},Id.toArray=function(e){return e?e.toArray?e.toArray():Id.isArray(e)||Id.isArguments(e)?hd.call(e):Id.values(e):[]},Id.map=function(e,t,r){if(Sd&&e.map===Sd)return e.map(t,r);var n=[];return Id.each(e,function(e){n.push(t.call(r,e))}),n},Id.keys=function(e){var t=[];return null===e||Id.each(e,function(e,r){t[t.length]=r}),t},Id.values=function(e){var t=[];return null===e||Id.each(e,function(e){t[t.length]=e}),t},Id.include=function(e,t){var r=!1;return null===e?r:kd&&e.indexOf===kd?-1!=e.indexOf(t):(Id.each(e,function(e){if(r||(r=e===t))return xd}),r)},Id.includes=function(e,t){return-1!==e.indexOf(t)},Id.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},Id.isObject=function(e){return e===Object(e)&&!Id.isArray(e)},Id.isEmptyObject=function(e){if(Id.isObject(e)){for(var t in e)if(fd.call(e,t))return!1;return!0}return!1},Id.isUndefined=function(e){return void 0===e},Id.isString=function(e){return"[object String]"==pd.call(e)},Id.isDate=function(e){return"[object Date]"==pd.call(e)},Id.isNumber=function(e){return"[object Number]"==pd.call(e)},Id.isElement=function(e){return!(!e||1!==e.nodeType)},Id.encodeDates=function(e){return Id.each(e,function(t,r){Id.isDate(t)?e[r]=Id.formatDate(t):Id.isObject(t)&&(e[r]=Id.encodeDates(t))}),e},Id.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},Id.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())},Id.strip_empty_properties=function(e){var t={};return Id.each(e,function(e,r){Id.isString(e)&&e.length>0&&(t[r]=e)}),t},Id.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Id.isArray(e)?(r=[],Id.each(e,function(e){r.push(Id.truncate(e,t))})):Id.isObject(e)?(r={},Id.each(e,function(e,n){r[n]=Id.truncate(e,t)})):r=e,r},Id.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]"===pd.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)fd.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})},Id.JSONDecode=(td={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},rd=function(e){var t=new SyntaxError(e);throw t.at=Kf,t.text=Qf,t},nd=function(e){return e&&e!==Xf&&rd("Expected '"+e+"' instead of '"+Xf+"'"),Xf=Qf.charAt(Kf),Kf+=1,Xf},id=function(){var e,t="";for("-"===Xf&&(t="-",nd("-"));Xf>="0"&&Xf<="9";)t+=Xf,nd();if("."===Xf)for(t+=".";nd()&&Xf>="0"&&Xf<="9";)t+=Xf;if("e"===Xf||"E"===Xf)for(t+=Xf,nd(),"-"!==Xf&&"+"!==Xf||(t+=Xf,nd());Xf>="0"&&Xf<="9";)t+=Xf,nd();if(e=+t,isFinite(e))return e;rd("Bad number")},od=function(){var e,t,r,n="";if('"'===Xf)for(;nd();){if('"'===Xf)return nd(),n;if("\\"===Xf)if(nd(),"u"===Xf){for(r=0,t=0;t<4&&(e=parseInt(nd(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof td[Xf])break;n+=td[Xf]}else n+=Xf}rd("Bad string")},sd=function(){for(;Xf&&Xf<=" ";)nd()},ed=function(){switch(sd(),Xf){case"{":return function(){var e,t={};if("{"===Xf){if(nd("{"),sd(),"}"===Xf)return nd("}"),t;for(;Xf;){if(e=od(),sd(),nd(":"),Object.hasOwnProperty.call(t,e)&&rd('Duplicate key "'+e+'"'),t[e]=ed(),sd(),"}"===Xf)return nd("}"),t;nd(","),sd()}}rd("Bad object")}();case"[":return function(){var e=[];if("["===Xf){if(nd("["),sd(),"]"===Xf)return nd("]"),e;for(;Xf;){if(e.push(ed()),sd(),"]"===Xf)return nd("]"),e;nd(","),sd()}}rd("Bad array")}();case'"':return od();case"-":return id();default:return Xf>="0"&&Xf<="9"?id():function(){switch(Xf){case"t":return nd("t"),nd("r"),nd("u"),nd("e"),!0;case"f":return nd("f"),nd("a"),nd("l"),nd("s"),nd("e"),!1;case"n":return nd("n"),nd("u"),nd("l"),nd("l"),null}rd('Unexpected "'+Xf+'"')}()}},function(e){var t;return Qf=e,Kf=0,Xf=" ",t=ed(),sd(),Xf&&rd("Syntax error"),t}),Id.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=Id.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},Id.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},Id.UUID=function(){try{return n.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]="-",Id.map(e,function(e){return e.toString(16)}).join("")}};var Td=["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"];Id.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Td.length;t++)if(-1!==e.indexOf(Td[t]))return!0;return!1},Id.HTTPBuildQuery=function(e,t){var r,n,i=[];return Id.isUndefined(t)&&(t="&"),Id.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},Id.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){Od.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},Id.cookie={get:function(e){for(var t=e+"=",r=md.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=Id.JSONDecode(Id.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=Hd(md.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"),md.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=Hd(md.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 md.cookie=p,p},remove:function(e,t,r){Id.cookie.set(e,"",-1,t,!1,!1,r)}};var Pd=function(e){var t=!0;try{var r="__mplss_"+zd(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},Fd=null,Ld=function(e,t){return null===Fd||t?Fd=Pd(e):Fd},Nd=null;function Dd(e,t,r){var n=function(e){Od.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||Od.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 Id.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 Ud=function(){try{return n.localStorage}catch(e){return null}};Id.localStorage=Dd(Ud(),"localStorage",Ld),Id.sessionStorage=Dd(function(){try{return n.sessionStorage}catch(e){return null}}(),"sessionStorage",function(e,t){return null===Nd||t?Nd=Pd(e):Nd}),Id.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,r,i,o,s){if(t)if(t.addEventListener&&!o)t.addEventListener(r,i,!!s);else{var a="on"+r,c=t[a];t[a]=function(t,r,i){return function(o){if(o=o||e(n.event)){var s,a,c=!0;return Id.isFunction(i)&&(s=i(o)),a=r.call(t,o),!1!==s&&!1!==a||(c=!1),c}}}(t,i,c)}else Od.error("No valid element provided to register_event")}}();var Bd=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');Id.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(!md.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[md];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=md.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&&Id.isString(s[u].className)&&r(s[u],v)&&(d[p++]=s[u])}else{var y=n.match(Bd);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 Id.isElement(e)?[e]:Id.isObject(e)&&!Id.isUndefined(e.length)?e:n.call(this,e)}}();var jd=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],qd=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];Id.info={campaignParams:function(e){var t="",r={};return Id.each(jd,function(n){(t=Id.getQueryParam(md.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return Id.each(qd,function(r){(e=Id.getQueryParam(md.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return Id.extend(Id.info.campaignParams(),Id.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=Id.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=Id.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||Id.includes(e," OPR/")?Id.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Id.includes(e,"IEMobile")||Id.includes(e,"WPDesktop")?"Internet Explorer Mobile":Id.includes(e,"SamsungBrowser/")?"Samsung Internet":Id.includes(e,"Edge")||Id.includes(e,"Edg/")?"Microsoft Edge":Id.includes(e,"FBIOS")?"Facebook Mobile":Id.includes(e,"Whale/")?"Whale Browser":Id.includes(e,"Chrome")?"Chrome":Id.includes(e,"CriOS")?"Chrome iOS":Id.includes(e,"UCWEB")||Id.includes(e,"UCBrowser")?"UC Browser":Id.includes(e,"FxiOS")?"Firefox iOS":Id.includes(t,"Apple")?Id.includes(e,"Mobile")?"Mobile Safari":"Safari":Id.includes(e,"Android")?"Android Mobile":Id.includes(e,"Konqueror")?"Konqueror":Id.includes(e,"Firefox")?"Firefox":Id.includes(e,"MSIE")||Id.includes(e,"Trident/")?"Internet Explorer":Id.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+)?)/}[Id.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=_d;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 n.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Id.extend(Id.strip_empty_properties({$os:Id.info.os(),$browser:Id.info.browser(_d,gd.vendor,vd),$referrer:md.referrer,$referring_domain:Id.info.referringDomain(md.referrer),$device:Id.info.device(_d)}),{$current_url:Id.info.currentUrl(),$browser_version:Id.info.browserVersion(_d,gd.vendor,vd),$screen_height:yd.height,$screen_width:yd.width,mp_lib:"web",$lib_version:o.LIB_VERSION,$insert_id:zd(),time:Id.timestamp()/1e3},Id.strip_empty_properties(e))},people_properties:function(){return Id.extend(Id.strip_empty_properties({$os:Id.info.os(),$browser:Id.info.browser(_d,gd.vendor,vd)}),{$browser_version:Id.info.browserVersion(_d,gd.vendor,vd)})},mpPageViewProperties:function(){return Id.strip_empty_properties({current_page_title:md.title,current_domain:n.location.hostname,current_url_path:n.location.pathname,current_url_protocol:n.location.protocol,current_url_search:n.location.search})}};var zd=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},Wd=function(){return"00-"+Id.UUID().replace(/-/g,"")+"-"+Id.UUID().replace(/-/g,"").substring(0,16)+"-01"},Vd=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,$d=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Hd=function(e){var t=$d,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Vd);var i=e.match(t);return i?i[0]:""},Gd=function(){},Yd=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},Jd=null,Zd=null;"undefined"!=typeof JSON&&(Jd=JSON.stringify,Zd=JSON.parse),Jd=Jd||Id.JSONEncode,Zd=Zd||Id.JSONDecode,Id.info=Id.info,Id.info.browser=Id.info.browser,Id.info.browserVersion=Id.info.browserVersion,Id.info.device=Id.info.device,Id.info.properties=Id.info.properties,Id.isBlockedUA=Id.isBlockedUA,Id.isEmptyObject=Id.isEmptyObject,Id.isObject=Id.isObject,Id.JSONDecode=Id.JSONDecode,Id.JSONEncode=Id.JSONEncode,Id.toArray=Id.toArray,Id.NPO=Yf;var Kd=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};Kd.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new Jf(function(i,o){var s=n.indexedDB.open(e,t);s.onerror=function(){o(s.error)},s.onsuccess=function(){i(s.result)},s.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},Kd.prototype.init=function(){return n.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n.IDBDatabase?Jf.resolve():Jf.reject(e)})):Jf.reject("indexedDB is not supported in this browser")},Kd.prototype.isInitialized=function(){return!!this.dbPromise},Kd.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Jf(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)):Jf.reject(e)}.bind(this))},Kd.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},Kd.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},Kd.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},Kd.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var Xd="mixpanelBrowserDb",Qd="mixpanelRecordingEvents",eg="mixpanelRecordingRegistry",tg={version:1,storeNames:[Qd,eg]};function rg(e,t){fg(!0,e,t)}function ng(e,t){fg(!1,e,t)}function ig(e,t){return"1"===pg(e,t)}function og(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n,r=t.navigator||{},i=!1;return Id.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){Id.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return Od.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 r="0"===pg(e,t);return r&&Od.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function sg(e){return dg(e,function(e){return this.get_config(e)})}function ag(e){return dg(e,function(e){return this._get_config(e)})}function cg(e){return dg(e,function(e){return this._get_config(e)})}function ug(e,t){lg(t=t||{}).remove(hg(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function lg(e){return"localStorage"===(e=e||{}).persistenceType?Id.localStorage:Id.cookie}function hg(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function pg(e,t){return lg(t).get(hg(e,t))}function fg(e,t,r){Id.isString(t)&&t.length?(lg(r=r||{}).set(hg(t,r),e?1:0,Id.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})):Od.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function dg(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=og(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Od.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 gg=Md("lock"),mg=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||Ud(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Jf};mg.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Id.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 gg.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&&(Ld(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(!Ld(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var vg=function(e){this.storage=e||Ud()};vg.prototype.init=function(){return this.storage?Jf.resolve():Jf.reject(new Error("localStorage is not available"))},vg.prototype.isInitialized=function(){return!0},vg.prototype.setItem=function(e,t){return new Jf(Id.bind(function(r,n){try{this.storage.setItem(e,Jd(t))}catch(e){n(e)}r()},this))},vg.prototype.getItem=function(e){return new Jf(Id.bind(function(t,r){var n;try{n=Zd(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},vg.prototype.removeItem=function(e){return new Jf(Id.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var yg=Md("batch"),_g=function(e,t){var r,n,i,o;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new vg,this.lock=new mg(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Id.bind(yg.error,yg),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=Id.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,i=null,o=[],function(e){var t=this;return o.push(e),i||(i=new Jf(function(e){setTimeout(function(){var n=r.apply(t,[o]);i=null,o=[],e(n)},n)})),i}):this.enqueuePersisted=Id.bind(function(e){return this._enqueuePersisted([e])},this)};_g.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Jf.resolve():this.queueStorage.init().then(Id.bind(function(){this.initialized=!0},this)).catch(Id.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},_g.prototype.enqueue=function(e,t){var r={id:zd(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Jf.resolve(!0))},_g.prototype._enqueuePersisted=function(e){var t=Id.bind(function(){return this.ensureInit().then(Id.bind(function(){return this.readFromStorage()},this)).then(Id.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(Id.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(Id.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(Id.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},_g.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(Id.bind(function(){return this.readFromStorage()},this)).then(Id.bind(function(r){if(r.length){var n={};Id.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)):Jf.resolve(t)};var bg=function(e,t){var r=[];return Id.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};_g.prototype.removeItemsByID=function(e){var t={};if(Id.each(e,function(e){t[e]=!0}),this.memQueue=bg(this.memQueue,t),this.usePersistence){var r=Id.bind(function(){return this.ensureInit().then(Id.bind(function(){return this.readFromStorage()},this)).then(Id.bind(function(e){return e=bg(e,t),this.saveToStorage(e)},this)).then(Id.bind(function(){return this.readFromStorage()},this)).then(Id.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(Id.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(Id.bind(function(e){return this.reportError("Error acquiring storage lock",e),!Ld(this.lock.storage,!0)&&r().then(Id.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(Id.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))}return Jf.resolve(!0)};var wg=function(e,t){var r=[];return Id.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};_g.prototype.updatePayloads=function(e){return this.memQueue=wg(this.memQueue,e),this.usePersistence?this.lock.withLock(Id.bind(function(){return this.ensureInit().then(Id.bind(function(){return this.readFromStorage()},this)).then(Id.bind(function(t){return t=wg(t,e),this.saveToStorage(t)},this)).catch(Id.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(Id.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):Jf.resolve(!0)},_g.prototype.readFromStorage=function(){return this.ensureInit().then(Id.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(Id.bind(function(e){return e&&(Id.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(Id.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},_g.prototype.saveToStorage=function(e){return this.ensureInit().then(Id.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(Id.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},_g.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(Id.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Jf.resolve()};var kg=Md("batch"),Sg=function(e,t){this.errorReporter=t.errorReporter,this.queue=new _g(e,{errorReporter:Id.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};Sg.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},Sg.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Sg.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Sg.prototype.clear=function(){return this.queue.clear()},Sg.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Sg.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Sg.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(Id.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Sg.prototype.sendRequestPromise=function(e,t){return new Jf(Id.bind(function(r){this.sendRequest(e,t,r)},this))},Sg.prototype.flush=function(e){if(this.requestInProgress)return kg.log("Flush: Request already in progress"),Jf.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(Id.bind(function(s){var a=s.length===i,c=[],u={};if(Id.each(s,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=Id.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(),Jf.resolve();var l=Id.bind(function(){return this.queue.removeItemsByID(Id.map(s,function(e){return e.id})).then(Id.bind(function(e){return Id.each(s,Id.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(),Jf.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Jf.resolve())},this))},this),h=Id.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(u);if(Id.isObject(o)&&"timeout"===o.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Id.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&(h=n.navigator.onLine,!Id.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),Jf.resolve()}if(Id.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(),Jf.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"),kg.log("MIXPANEL REQUEST:",c),this.sendRequestPromise(c,p).then(h)},this)).catch(Id.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Sg.prototype.reportError=function(e,t){if(kg.error.apply(kg.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){kg.error(t)}};var Cg=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},xg=function(e,t){if(!Id.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},Ig="change",Og="click",Eg="hashchange",Mg="load",Ag="mp_locationchange",Rg="popstate",Tg="scrollend",Pg="scroll",Fg="submit",Lg="visibilitychange",Ng=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Dg=["mp-include"],Ug=["mp-no-track"],Bg=Ug.concat(["mp-sensitive"]),jg=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],qg={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},zg={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},Wg={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Vg=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],$g=Md("autocapture");function Hg(e){for(var t={},r=Gg(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function Gg(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Yg(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Qg(e));return e}function Jg(e,t,r,n,i,o){var s={$classes:Gg(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),nm(e,t,i,o)&&Id.each(jg.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);im(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=Yg(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function Zg(e,t,r,n){var i="";return nm(e,t,r,n)&&e.childNodes&&e.childNodes.length&&Id.each(e.childNodes,function(e){tm(e)&&e.textContent&&(i+=Id.trim(e.textContent).split(/(\s+)/).filter(im).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Id.trim(i)}function Kg(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return $g.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){$g.critical("Error while checking selector: "+o,e)}}return!1}function Xg(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return $g.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){$g.critical("Error while checking selector: "+o,e)}}var s=Hg(e);for(i=0;i<Ug.length;i++)if(s[Ug[i]])return!0;return!1}function Qg(e){return e&&1===e.nodeType}function em(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function tm(e){return e&&3===e.nodeType}function rm(e){var t=(e.name||e.id||"").toString().toLowerCase();return!("string"!=typeof t||!/^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,"")))}function nm(e,t,r,n){var i;if(!Kg(e,t,r,n))return!1;for(var o=e;o.parentNode&&!em(o,"body");o=o.parentNode){var s=Hg(o);for(i=0;i<Bg.length;i++)if(s[Bg[i]])return!1}var a=Hg(e);for(i=0;i<Dg.length;i++)if(a[Dg[i]])return!0;if(em(e,"input")||em(e,"select")||em(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!rm(e)}function im(e){if(null===e||Id.isUndefined(e))return!1;if("string"==typeof e){if(e=Id.trim(e),/^(?:(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 om(e){var t="onscrollend"in n,r=Ad(e),i=Tg;if(!t){var o=null;r=Ad(function(){clearTimeout(o),o=setTimeout(e,100)}),i=Pg}return{listener:r,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<Vg.length;t++)if(e.hasAttribute(Vg[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 qg[r]}(e)||"a"===t&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function am(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(zg[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()!==md){var i=r.getRootNode();if(i.host&&sm(i.host))return!1}r=r.parentElement,n++}return!!Wg[t]}function cm(e){return"composedPath"in e?e.composedPath():[]}function um(e){var t=cm(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var lm=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",hm=["password","email","tel","hidden"];function pm(e){return e?Array.isArray(e)?e:[e]:[]}function fm(e,t){return!!t&&!!e.closest(t)}function dm(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==hm.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!((!n||""===n||"off"===n)&&!e.hasAttribute("data-rr-is-password")&&!rm(e)&&(t.input.maskAll?fm(e,t.input.unmaskingSelector):!fm(e,t.input.maskingSelector)&&!fm(e,lm)))}function gm(e,t){return!(!e||(!t.text._legacyClassRegex||!Bu(e,t.text._legacyClassRegex))&&(t.text.maskAll?fm(e,t.text.unmaskingSelector):!fm(e,t.text.maskingSelector)&&!fm(e,lm)))}var mm=Md("network-plugin");function vm(e){return Math.round(Date.now()-e.performance.now())}var ym={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 _m(e){return"resource"===e.entryType}function bm(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 wm=1048576;function km(e){return e&&"string"==typeof e&&e.length>wm?(mm.error("Body truncated from "+e.length+" to "+wm+" characters"),e.substring(0,wm)+"... [truncated]"):e}function Sm(e,t,r){return!(!t[e]||0===t[e].length)&&t[e].includes(r.toLowerCase())}function Cm(e,t,r){return!(!t[e]||0===t[e].length)&&Yd(r,t[e])}function xm(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=Id.HTTPBuildQuery(e);else{if(!Id.isObject(e))return"Cannot read body of type "+typeof e;try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}}return km(t)}function Im(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(km(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function Om(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return mm.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 _m(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 Om(e,t,r,n,i,o+1)})}function Em(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},ym.recordHeaders,r.recordHeaders||{}),i=Object.assign({},ym.recordBodyUrls,r.recordBodyUrls||{});r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i});var o=Object.assign({},ym,r),s=function(t){var r=t.requests.filter(function(e){return!Yd(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 mm.error("PerformanceObserver not supported"),function(){};if(r.recordInitialRequests){var n=t.performance.getEntries().filter(function(e){return function(e){return"navigation"===e.entryType}(e)||_m(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:vm(t)}}),isInitial:!0})}var i=new t.PerformanceObserver(function(n){var i=n.getEntries().filter(function(e){return _m(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:vm(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=bm(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 Sm("request",r.recordHeaders,e)&&(d[e]=t),g(e,t)},f.requestHeaders=d;var m=h.send.bind(h);h.send=function(e){return Cm("request",r.recordBodyUrls,p.url)&&(f.requestBody=xm(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&&Sm("response",r.recordHeaders,i)&&(n[i]=o)}}}),f.responseHeaders=n,Cm("response",r.recordBodyUrls,p.url)&&(f.responseBody=xm(h.response)),Om(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:vm(t),requestHeaders:f.requestHeaders,requestBody:f.requestBody,responseHeaders:f.responseHeaders,responseBody:f.responseBody};e({requests:[n]})}else mm.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){mm.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=bm(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){Sm("request",r.recordHeaders,t)&&(p[t]=e)}),u.requestHeaders=p,Cm("request",r.recordBodyUrls,c.url)&&(l=Im(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){Sm("response",r.recordHeaders,t)&&(n[t]=e)}),u.responseHeaders=n,Cm("response",r.recordBodyUrls,c.url)&&(h=Im(i).then(function(e){u.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return Om(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:vm(t),requestHeaders:u.requestHeaders,requestBody:u.requestBody,responseHeaders:u.responseHeaders,responseBody:u.responseBody};e({requests:[n]})}else mm.error("Failed to get performance entry for fetch request to "+c.url)}).catch(function(e){mm.error("Error recording fetch request to "+c.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),c(),u()}}var Mm=Md("recorder"),Am=n.CompressionStream,Rm={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Tm=new Set([Ec.MouseMove,Ec.MouseInteraction,Ec.Scroll,Ec.ViewportResize,Ec.Input,Ec.TouchMove,Ec.MediaInteraction,Ec.Drag,Ec.Selection]),Pm=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Gd,this._onMaxLengthReached=e.onMaxLengthReached||Gd,this._onBatchSent=e.onBatchSent||Gd,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=ad,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=Ld(e.sharedLockStorage||Ud(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Kd(Xd,Qd,tg),this.batcher=new Sg(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Rm,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Pm.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},Pm.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))},Pm.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},Pm.prototype.get_config=function(e){return this.getConfig(e)},Pm.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>ad&&(this.recordMaxMs=ad,Mm.critical("record_max_ms cannot be greater than "+ad+"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=Id.info.currentUrl(),this.replayStartUrl=Id.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):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=pm(r).join(","),t.input.unmaskingSelector=pm(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=pm(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=pm(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:Em,options:e}}(o))}this.getConfig("record_console")&&i.push({name:"rrweb/console@1",observer:Tf,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=xg(this.getConfig("record_allowed_iframe_origins"),Mm);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),function(e){return e.type===Oc.IncrementalSnapshot&&Tm.has(e.data.source)}(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=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(dm,n),maskTextFn:this._getMaskFn(gm,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 Mm.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Pm.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},Pm.prototype.isRrwebStopped=function(){return null===this._stopRecording},Pm.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)},Pm.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}},Pm.deserialize=function(e,t){return new Pm(Id.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}))},Pm.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},Pm.prototype._sendRequest=function(e,t,r,i){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Id.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");n.fetch(s+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).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})})},Pm.prototype._flushEvents=sg(function(e,t,r){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===Oc.FullSnapshot&&(u=!0);if(0===this.seqNo){if(!u)return r({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,r){if(!n.CompressionStream)return!1;var i=Id.info.browser(e,t,r),o=Id.info.browserVersion(e,t,r);return!(("Safari"===i||"Mobile Safari"===i)&&o>=16.4&&o<16.6)}(_d,gd.vendor,vd)){var d=new Blob([f],{type:"application/json"}).stream().pipeThrough(new Am("gzip"));new Response(d).blob().then(function(e){p.format="gzip",this._sendRequest(s,p,e,r)}.bind(this))}else p.format="body",this._sendRequest(s,p,f,r)}}),Pm.prototype.reportError=function(e,t){Mm.error.apply(Mm.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Mm.error(t)}},Pm.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Pm.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Mm.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},Pm.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 Fm=function(e){this.idb=new Kd(Xd,eg,tg),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Fm.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Fm.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Fm.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Jf.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."),Jf.resolve())},Fm.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 Cg(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Jf.resolve(null)},Fm.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Fm.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))},Fm.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Jf.resolve()},Fm.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 Cg(e)}).map(function(e){return Pm.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 Jf.all(t)}.bind(this)).catch(this.handleError.bind(this)):Jf.resolve([])};var Lm=Md("recorder"),Nm=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||Ru,this.sharedLockStorage=r,this.recordingRegistry=new Fm({mixpanelInstance:this.mixpanelInstance,errorReporter:Lm.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};function Dm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Nm.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Lm.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Lm.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:Id.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Pm.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Pm(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Lm.log("Recording already in progress, skipping startRecording.")},Nm.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))},Nm.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Nm.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Jf.resolve()},Nm.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Jf.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Lm.log("No resumable recording found."),null)}.bind(this))},Nm.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Nm.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Nm.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Nm.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n[a]=Nm;var Um,Bm={exports:{}},jm=(Um||(Um=1,Bm.exports=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var 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){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(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":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 t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);null!==o&&""!==o||t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map(function(t){return e.apply(t,n)});if(!e.is_logic(r))return r;var i,o,s,a,c,u=e.get_operator(r),l=r[u];if(Array.isArray(l)||(l=[l]),"if"===u||"?:"==u){for(i=0;i<l.length-1;i+=2)if(e.truthy(e.apply(l[i],n)))return e.apply(l[i+1],n);return l.length===i+1?e.apply(l[i],n):null}if("and"===u){for(i=0;i<l.length;i+=1)if(o=e.apply(l[i],n),!e.truthy(o))return o;return o}if("or"===u){for(i=0;i<l.length;i+=1)if(o=e.apply(l[i],n),e.truthy(o))return o;return o}if("filter"===u)return a=e.apply(l[0],n),s=l[1],Array.isArray(a)?a.filter(function(t){return e.truthy(e.apply(s,t))}):[];if("map"===u)return a=e.apply(l[0],n),s=l[1],Array.isArray(a)?a.map(function(t){return e.apply(s,t)}):[];if("reduce"===u)return a=e.apply(l[0],n),s=l[1],c=void 0!==l[2]?e.apply(l[2],n):null,Array.isArray(a)?a.reduce(function(t,r){return e.apply(s,{current:r,accumulator:t})},c):c;if("all"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(s,a[i])))return!1;return!0}if("none"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!1;return!0}if("some"===u){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!0;return!1}if(l=l.map(function(t){return e.apply(t,n)}),t.hasOwnProperty(u)&&"function"==typeof t[u])return t[u].apply(n,l);if(u.indexOf(".")>0){var h=String(u).split("."),p=t;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)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach(function(t){r.push.apply(r,e.uses_data(t))})}return function(e){for(var t=[],r=0,n=e.length;r<n;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r)},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t)return!0;if("@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)){if(Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1}return!1},e}()),Bm.exports),qm=Dm(jm),zm={eventMatchesCriteria:function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!Id.isEmptyObject(n))try{i=qm.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}}};function Wm(){this.clicks=[]}function Vm(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}n[s]=Promise.resolve(zm),Wm.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){var o=um(e);if(!o||am(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},Vm.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return um(e)},Vm.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=cm(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},Vm.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){$g.critical("Error while observing shadow root",e)}}},Vm.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:$g.critical("Shadow DOM observation unavailable: WeakSet not supported"))},Vm.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){$g.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var $m=[Ig,"input",Fg,"select","toggle"],Hm=[Tg],Gm=[Eg],Ym={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Jm(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}Jm.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||am(t)||(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),0))},Jm.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},Jm.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},Jm.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},Jm.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Jm.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},Jm.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},Jm.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;$m.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}})}),Gm.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),Hm.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,Ym)}catch(e){$g.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new Vm(function(){e.recordChangeEvent()},Ym),this.shadowDOMObserver.start()}catch(e){$g.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},Jm.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){$g.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){$g.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){$g.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var Zm="autocapture",Km="full-url",Xm="allow_selectors",Qm="allow_url_regexes",ev="block_attrs",tv="block_element_callback",rv="block_selectors",nv="block_url_regexes",iv="capture_extra_attrs",ov="capture_text_content",sv="scroll_capture_all",av="scroll_depth_percent_checkpoints",cv="click",uv="dead_click",lv="input",hv="pageview",pv="rage_click",fv="scroll",dv="page_leave",gv="submit",mv={};mv[Xm]=[],mv[Qm]=[],mv[ev]=[],mv[tv]=null,mv[rv]=[],mv[nv]=[],mv[iv]=[],mv[ov]=!1,mv[sv]=!1,mv[av]=[25,50,75,100],mv[cv]=!0,mv[uv]=!0,mv[lv]=!0,mv[hv]=Km,mv[pv]=!0,mv[fv]=!0,mv[dv]=!1,mv[gv]=!0;var vv={$mp_autocapture:!0},yv="$mp_click",_v="$mp_dead_click",bv="$mp_rage_click",wv=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};wv.prototype.init=function(){!function(){try{return!!md.createElement("div").matches}catch(e){return!1}}()?$g.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())},wv.prototype.getFullConfig=function(){var e=this.mp.get_config(Zm);return e?Id.isObject(e)?Id.extend({},mv,e):mv:{}},wv.prototype.getConfig=function(e){return this.getFullConfig()[e]},wv.prototype.currentUrlBlocked=function(){var e=Id.info.currentUrl(),t=this.getConfig(Qm)||[];if(t.length)try{return!Yd(e,t)}catch(e){return $g.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(nv)||[];if(!r||!r.length)return!1;try{return Yd(e,r)}catch(e){return $g.critical("Error while checking block URL regexes: ",e),!0}},wv.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Zm)?this.getConfig(hv):this.mp.get_config("track_pageview")},wv.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===yv&&!this.getConfig(cv)||t===bv&&!this._getClickTrackingConfig(pv)||t===_v&&!this._getClickTrackingConfig(uv)),i=function(e,t){var r=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={};Id.each(o,function(e){h[e]=!0});var p=null,f=void 0===e.target?e.srcElement:e.target;if(tm(f)&&(f=f.parentNode),function(e,t){if(!e||em(e,"html")||!Qg(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Fg;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===Ig:t.type===Og;case"select":case"textarea":return t.type===Ig;default:return t.type===Og}}(f,e)&&Kg(f,e,r,i)&&!Xg(f,e,s,a)){for(var d=[f],g=f;g.parentNode&&!em(g,"body");)d.push(g.parentNode),g=g.parentNode;var m,v=[],y=!1;if(Id.each(d,function(t){var n=nm(t,e,r,i);h.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=n&&im(m)&&m),Xg(t,e,s,a)&&(y=!0),v.push(Jg(t,e,h,u,r,i))},this),!y){var _=md.documentElement;if(p={$event_type:e.type,$host:n.location.host,$pathname:n.location.pathname,$elements:v,$el_attr__href:m,$viewportHeight:Math.max(_.clientHeight,n.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,n.innerWidth||0),$pageHeight:md.body.offsetHeight||0,$pageWidth:md.body.offsetWidth||0},Id.each(u,function(e){if(!h[e]&&f.hasAttribute(e)){var t=f.getAttribute(e);im(t)&&(p["$el_attr__"+e]=t)}}),c&&(b=Zg(f,e,r,i))&&b.length&&(p.$el_text=b),e.type===Og&&(Id.each(Ng,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(em(i,"a")||em(i,"button")||em(i,"input")||em(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),c){var b=Zg(f,e,r,i);b&&b.length&&(p.$el_text=b)}if(f){if(!Kg(f,e,r,i)||Xg(f,e,s,a))return null;var w=Jg(f,e,h,u,r,i);p.$target=w,p.$el_classes=w.$classes,Id.extend(p,Id.strip_empty_properties({$el_id:w.$id,$el_tag_name:w.$tag_name}))}}}return p}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(Xm),blockAttrs:this.getConfig(ev),blockElementCallback:this.getConfig(tv),blockSelectors:this.getConfig(rv),captureExtraAttrs:this.getConfig(iv),captureTextContent:this.getConfig(ov),capturedForHeatMap:r});i&&(Id.extend(i,vv),this.mp.track(t,i))}},wv.prototype.initPageListeners=function(){if(n.removeEventListener(Rg,this.listenerPopstate),n.removeEventListener(Eg,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(dv)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){n.dispatchEvent(new Event(Ag))},this.listenerHashchange=function(){n.dispatchEvent(new Event(Ag))},n.addEventListener(Rg,this.listenerPopstate),n.addEventListener(Eg,this.listenerHashchange);var e=n.history.pushState;"function"==typeof e&&(n.history.pushState=function(t,r,i){e.call(n.history,t,r,i),n.dispatchEvent(new Event(Ag))});var t=n.history.replaceState;"function"==typeof t&&(n.history.replaceState=function(e,r,i){t.call(n.history,e,r,i),n.dispatchEvent(new Event(Ag))})}},wv.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},wv.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(dv)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var i=Math.max(md.documentElement.clientHeight,n.innerHeight||0),o=Math.round(Math.max(this.maxScrollViewDepth-i,0)/(r-i)*100),s=Math.round(i/r*100);r<=i&&(o=100,s=100);var a=Id.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:o,$fold_line_percentage:s,$scroll_height:r,$event_type:e.type,$current_url:t||Id.info.currentUrl(),$viewportHeight:i,$viewportWidth:Math.max(md.documentElement.clientWidth,n.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},vv);this.mp.track("$mp_page_leave",a,{transport:"sendBeacon"})}},wv.prototype._initScrollDepthTracking=function(){if(n.removeEventListener(Pg,this.listenerScrollDepth),n.removeEventListener(Tg,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){$g.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(md.documentElement.clientHeight,n.innerHeight||0);var e=om(function(){if(!this.currentUrlBlocked()){var e=Math.max(md.documentElement.clientHeight,n.innerHeight||0)+n.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=md.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,n.addEventListener(e.eventType,this.listenerScrollDepth)}},wv.prototype.initClickTracking=function(){n.removeEventListener(Og,this.listenerClick,!0),(this.getConfig(cv)||this.mp.get_config("record_heatmap_data"))&&($g.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(cv)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,yv)}.bind(this),n.addEventListener(Og,this.listenerClick,!0))},wv.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(uv)||this.mp.get_config("record_heatmap_data")?($g.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Jm(function(e){this.trackDomEvent(e,_v)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(uv);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),n.addEventListener(Og,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},wv.prototype.initInputTracking=function(){n.removeEventListener(Ig,this.listenerChange,!0),this.getConfig(lv)&&($g.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(lv)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),n.addEventListener(Ig,this.listenerChange,!0))},wv.prototype.initPageviewTracking=function(){if(n.removeEventListener(Ag,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){$g.log("Initializing pageview tracking");var e="",t=!1;!this.pageviewTrackingConfig()&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||(t=this.mp.track_pageview(vv)),t&&(e=Id.info.currentUrl()),this.listenerLocationchange=Ad(function(){if(!this.currentUrlBlocked()){var t=Id.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();!i&&this.mp.is_recording_heatmap_data()&&(i=Km),i===Km?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(vv)&&(e=t),n&&(this.lastScrollCheckpoint=0,$g.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),n.addEventListener(Ag,this.listenerLocationchange)}},wv.prototype.initRageClickTracking=function(){n.removeEventListener(Og,this.listenerRageClick,!0),(this._getClickTrackingConfig(pv)||this.mp.get_config("record_heatmap_data"))&&($g.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Wm),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(pv);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,bv))}.bind(this),n.addEventListener(Og,this.listenerRageClick,!0))},wv.prototype.initScrollTracking=function(){if(n.removeEventListener(Tg,this.listenerScroll),n.removeEventListener(Pg,this.listenerScroll),this.getConfig(fv)){$g.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=om(function(){if(this.getConfig(fv)&&!this.currentUrlBlocked()){var e=this.getConfig(sv),t=(this.getConfig(av)||[]).slice().sort(function(e,t){return e-t}),r=n.scrollY,i=Id.extend({$scroll_top:r},vv);try{var o=md.body.scrollHeight,s=Math.round(r/(o-n.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){$g.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",i)}}.bind(this));this.listenerScroll=e.listener,n.addEventListener(e.eventType,this.listenerScroll)}},wv.prototype.initSubmitTracking=function(){n.removeEventListener(Fg,this.listenerSubmit,!0),this.getConfig(gv)&&($g.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(gv)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),n.addEventListener(Fg,this.listenerSubmit,!0))},wv.prototype.initPageLeaveTracking=function(){if(md.removeEventListener(Lg,this.listenerPageLeaveVisibilitychange),n.removeEventListener(Ag,this.listenerPageLeaveLocationchange),n.removeEventListener(Mg,this.listenerPageLoad),this.getConfig(dv)||this.mp.get_config("record_heatmap_data")){$g.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=Id.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=md.body.scrollHeight}.bind(this),n.addEventListener(Mg,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Ad(function(t){if(!this.currentUrlBlocked()){var r=Id.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(md.documentElement.clientHeight,n.innerHeight||0),this.previousScrollHeight=md.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),n.addEventListener(Ag,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){md.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),md.addEventListener(Lg,this.listenerPageLeaveVisibilitychange)}},wv.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(n.removeEventListener(Og,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Rd(wv);var kv=function(e,t){return n[s]&&"function"==typeof n[s].then||(n[s]=new Promise(function(r){e(t,r)}).then(function(){var e=n[s];if(e&&"function"==typeof e.then)return e;throw new Error("targeting failed to load")}).catch(function(e){throw delete n[s],e})),n[s]},Sv=Md("flags"),Cv="mixpanelFlags",xv={version:1,storeNames:[Cv]},Iv=864e5,Ov=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),Ev=[Ov.NETWORK_ONLY,Ov.NETWORK_FIRST,Ov.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Mv=function(e,t,r){this.idb=new Kd("mixpanelFlagsDb",Cv,xv),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};Mv.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?Ov.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},Mv.prototype.getTtlMs=function(){return this._isConfigValid()?this.persistenceConfig.persistenceTtlMs??Iv:Iv},Mv.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!(!e||(-1===Ev.indexOf(e.variantLookupPolicy)?(Sv.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),1):void 0!==e.persistenceTtlMs&&null!==e.persistenceTtlMs&&e.persistenceTtlMs<=0&&(Sv.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),1)))},Mv.prototype.loadFlagsFromStorage=function(e){var t=Id.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===Ov.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(Id.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(Id.bind(function(n){if(!n)return Sv.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n.persistedAt>=r)return Sv.log("Persisted variants are expiring"),null;if(!e||n.distinctId!==e.distinct_id)return Sv.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return Id.each(n.flagVariants,function(e,t){i.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,variant_source:"persistence",persisted_at_in_ms:n.persistedAt,ttl_in_ms:r})}),Sv.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n.distinctId),{flags:i,pendingFirstTimeEvents:n.pendingFirstTimeEvents||{},persistedAtMs:n.persistedAt,ttlMs:r}},this)).catch(Id.bind(function(e){return Sv.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},Mv.prototype.save=function(e,t,r){if(this.getPolicy()===Ov.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(Id.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){Sv.log("Saved",t.size,"variants to IndexedDB for distinct_id",i.distinctId)}).catch(function(e){Sv.error("Failed to persist variants to IndexedDB:",e)})},Mv.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(Id.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){Sv.log("Cleared persisted variants from IndexedDB")}).catch(function(e){Sv.error("Failed to clear persisted variants from IndexedDB:",e)})};var Av=Md("flags"),Rv="flags",Tv="context",Pv={};Pv[Tv]={};var Fv=function(e){return Id.isObject(e)?Id.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},Lv=function(e){this.fetch=n.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||""};function Nv(e){return null!=e}Lv.prototype.init=function(){if(this.minApisSupported())return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Mv(this.getConfig("persistence"),this.getMpConfig("token"),Id.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(Id.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(Id.bind(function(){return this.fetchFlags()},this)).catch(function(){Av.error("Error initializing feature flags")});Av.critical("Feature Flags unavailable: missing minimum required APIs")},Lv.prototype._buildContext=function(){return Id.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(Tv))},Lv.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(Id.bind(function(){return this.fetchFlags()},this)).catch(function(){Av.error("Error during flags reset")})):Promise.resolve()},Lv.prototype.getFullConfig=function(){var e=this.getMpConfig(Rv);return e?Id.isObject(e)?Id.extend({},Pv,e):Pv:{}},Lv.prototype.getConfig=function(e){return this.getFullConfig()[e]},Lv.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Rv)},Lv.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Av.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Rv);Id.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Tv);r[Tv]=Id.extend({},n,e);var i={};return i[Rv]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){Av.error("Error fetching flags during updateContext")})},Lv.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Av.error("Feature Flags not enabled"),!!this.flags},Lv.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=Wd();Av.log("Fetching flags for distinct ID: "+t);var i=new URLSearchParams;i.set("context",JSON.stringify(e)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",o.LIB_VERSION);var s=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(n,s,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(t){var n=t.flags;if(!n)throw new Error("No flags in API response");var i=new Map,o={};Id.each(n,function(e,t){var r=!1,n=t+":";if(Id.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.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,variant_source:"network"})},this);var s=t.pending_first_time_events;s&&s.length>0&&Id.each(s,function(e){var t=e.flag_key,r=function(e,t){return e+":"+t}(t,e.first_time_event_hash);this.activatedFirstTimeEvents[r]||(o[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&&Id.each(this.activatedFirstTimeEvents,function(e,t){var r=function(e){return e.split(":")[0]}(t);e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),Av.error(e),e}.bind(this)),this.fetchPromise},Lv.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(Av.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},Lv.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Av.error("Fetch in progress started time not set, cannot mark fetch complete")},Lv.prototype._loadTargetingIfNeeded=function(){var e=!1;Id.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!Id.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){Av.log("targeting loaded for property filter evaluation")})},Lv.prototype.getTargeting=function(){return kv(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){Av.error("Failed to load targeting: "+e)}.bind(this))},Lv.prototype.checkFirstTimeEvents=function(e,t){this.pendingFirstTimeEvents&&!Id.isEmptyObject(this.pendingFirstTimeEvents)&&(n[s]&&Id.isFunction(n[s].then)?n[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))},Lv.prototype._processFirstTimeEventCheck=function(e,t,r){Id.each(this.pendingFirstTimeEvents,function(n,i){if(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(r||!n.property_filters||Id.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)Av.error('Error checking first-time event for flag "'+s+'": '+o.error);else if(o.matches){Av.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.trackedFeatures.delete(s),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}else Av.warn('Skipping event check for "'+s+'" - property filters require targeting library')}},this)},Lv.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},Lv.prototype.recordFirstTimeEvent=function(e,t,r){var i=this.getMpProperty("distinct_id"),s=Wd(),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:r};Av.log("Recording first-time event for flag: "+e),this.fetch.call(n,c,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:s},body:JSON.stringify(u)}).catch(function(t){Av.error("Failed to record first-time event for flag "+e+": "+t)})},Lv.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){Av.critical("Feature Flags not initialized"),e(Fv(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(Id.bind(function(){if(r===Ov.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(Id.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return Av.error(e),Fv(t)}):Fv(t);var n=Id.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):Fv(t)},this))},Lv.prototype._loadedPersistenceIsStale=function(){return!(!this._loadedPersistedAtMs||!this._loadedTtlMs)&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},Lv.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return Av.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),Fv(t);if(!this.areFlagsReady())return Av.log("Flags not loaded yet"),Fv(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Av.log('No flag found: "'+e+'"'),Fv(t))},Lv.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return Av.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(Id.bind(function(){if(e===Ov.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(Id.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return Av.error(e),new Map}):new Map;var t=Id.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},Lv.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(Av.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},Lv.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return Av.error(e),t})},Lv.prototype.getFeatureData=function(e,t){return Av.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)},Lv.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Lv.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return Av.error(e),t})},Lv.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Av.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Lv.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":Nv(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":Nv(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};Nv(t.experiment_id)&&(r.$experiment_id=t.experiment_id),Nv(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),Nv(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),Nv(t.variant_source)&&(r.$variant_source=t.variant_source),Nv(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),Nv(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},Lv.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},Lv.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Rd(Lv),Lv.prototype.are_flags_ready=Lv.prototype.areFlagsReady,Lv.prototype.get_variant=Lv.prototype.getVariant,Lv.prototype.get_variant_sync=Lv.prototype.getVariantSync,Lv.prototype.get_all_variants=Lv.prototype.getAllVariants,Lv.prototype.get_all_variants_sync=Lv.prototype.getAllVariantsSync,Lv.prototype.get_variant_value=Lv.prototype.getVariantValue,Lv.prototype.get_variant_value_sync=Lv.prototype.getVariantValueSync,Lv.prototype.is_enabled=Lv.prototype.isEnabled,Lv.prototype.is_enabled_sync=Lv.prototype.isEnabledSync,Lv.prototype.load_flags=Lv.prototype.loadFlags,Lv.prototype.update_context=Lv.prototype.updateContext,Lv.prototype.when_ready=Lv.prototype.whenReady,Lv.prototype.get_feature_data=Lv.prototype.getFeatureData,Lv.prototype.getTargeting=Lv.prototype.getTargeting;var Dv=Md("recorder"),Uv="mp_iframe_handshake_request",Bv="mp_iframe_handshake_response",jv=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};jv.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return Od.log("Load recorder check skipped due to disable_persistence config"),Jf.resolve(!1);var e=new Kd(Xd,eg,tg),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(Cg(e[r])||e[r].tabId===t)return!0;return!1}).catch(Id.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},jv.prototype.checkAndStartSessionRecording=function(e,t){if(!n.MutationObserver)return Od.critical("Browser does not support MutationObserver; skipping session recording"),Jf.resolve();var r=Id.bind(function(e){return new Jf(Id.bind(function(t){var r=Ad(Id.bind(function(){this._recorder=this._recorder||new n[a](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(Id.isUndefined(n[a])){var i=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(i,r)}else r()},this))},this),i=xg(this.getMpConfig("record_allowed_iframe_origins"),Dv);if(i.length>0&&(this._setupParentFrameListener(i),n.parent!==n))return this._setupChildFrameListener(i,r),this._sendParentFrameRequestWithRetry(i),Jf.resolve();var o=Id.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,s=o>0&&100*Math.random()<=o;return e||s?r(!0):this.shouldLoadRecorder().then(Id.bind(function(e){return e?r(!1):Jf.resolve()},this))},jv.prototype.isRecording=function(){if(!this._recorder||!Id.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},jv.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&&!Id.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+c;kv(this.loadExtraBundle,a).then(function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){Od.critical("Could not parse recording event trigger properties logic:",e)}}.bind(this)).catch(function(e){Od.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},jv.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():Jf.resolve()},jv.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():Jf.resolve()},jv.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():Jf.resolve()},jv.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},jv.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},jv.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Id.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},jv.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},jv.prototype.getRecorder=function(){return this._recorder},jv.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(i){if(-1!==e.indexOf(i.origin)){var o=i.data;o&&o.type===Bv&&o.token===r.getMpConfig("token")&&o.replayId&&(r._parentReplayId=o.replayId,o.distinctId&&r.mixpanelInstance.identify(o.distinctId),r._parentFrameRetryActive=!1,n.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},n.addEventListener("message",this._childFrameMessageHandler)}},jv.prototype._sendParentFrameRequest=function(e){var t={};t.type=Uv,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{n.parent.postMessage(t,e[r])}catch(e){}},jv.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)}()},jv.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===Uv&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=Bv,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},n.addEventListener("message",this._parentFrameMessageHandler)}},Rd(jv);var qv=function(){};qv.prototype.create_properties=function(){},qv.prototype.event_handler=function(){},qv.prototype.after_track_handler=function(){},qv.prototype.init=function(e){return this.mp=e,this},qv.prototype.track=function(e,t,r,n){var i=this,o=Id.dom_query(e);if(0!==o.length)return Id.each(o,function(e){Id.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;Od.error("The DOM query ("+e+") returned 0 elements")},qv.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))}},qv.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):Id.extend({},e)};var zv=function(){this.override_event="click"};Id.inherit(zv,qv),zv.prototype.create_properties=function(e,t){var r=zv.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},zv.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()},zv.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Wv=function(){this.override_event="submit"};Id.inherit(Wv,qv),Wv.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},Wv.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Vv="$set",$v="$set_once",Hv="$unset",Gv="$add",Yv="$append",Jv="$union",Zv="$remove",Kv={set_action:function(e,t){var r={},n={};return Id.isObject(e)?Id.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Vv]=n,r},unset_action:function(e){var t={},r=[];return Id.isArray(e)||(e=[e]),Id.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[Hv]=r,t},set_once_action:function(e,t){var r={},n={};return Id.isObject(e)?Id.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[$v]=n,r},union_action:function(e,t){var r={},n={};return Id.isObject(e)?Id.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=Id.isArray(e)?e:[e])},this):n[e]=Id.isArray(t)?t:[t],r[Jv]=n,r},append_action:function(e,t){var r={},n={};return Id.isObject(e)?Id.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Yv]=n,r},remove_action:function(e,t){var r={},n={};return Id.isObject(e)?Id.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[Zv]=n,r},delete_action:function(){return{$delete:""}}},Xv=function(){};Id.extend(Xv.prototype,Kv),Xv.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Xv.prototype.set=cg(function(e,t,r){var n=this.set_action(e,t);return Id.isObject(e)&&(r=t),this._send_request(n,r)}),Xv.prototype.set_once=cg(function(e,t,r){var n=this.set_once_action(e,t);return Id.isObject(e)&&(r=t),this._send_request(n,r)}),Xv.prototype.unset=cg(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Xv.prototype.union=cg(function(e,t,r){Id.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Xv.prototype.delete=cg(function(e){var t=this.delete_action();return this._send_request(t,e)}),Xv.prototype.remove=cg(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),Xv.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=Id.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)},Xv.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Xv.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Xv.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Xv.prototype.remove=Xv.prototype.remove,Xv.prototype.set=Xv.prototype.set,Xv.prototype.set_once=Xv.prototype.set_once,Xv.prototype.union=Xv.prototype.union,Xv.prototype.unset=Xv.prototype.unset,Xv.prototype.toString=Xv.prototype.toString;var Qv=function(){};Id.extend(Qv.prototype,Kv),Qv.prototype._init=function(e){this._mixpanel=e},Qv.prototype.set=ag(function(e,t,r){var n=this.set_action(e,t);return Id.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Vv]=Id.extend({},Id.info.people_properties(),n[Vv]),this._send_request(n,r)}),Qv.prototype.set_once=ag(function(e,t,r){var n=this.set_once_action(e,t);return Id.isObject(e)&&(r=t),this._send_request(n,r)}),Qv.prototype.unset=ag(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),Qv.prototype.increment=ag(function(e,t,r){var n={},i={};return Id.isObject(e)?(Id.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void Od.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}},this),r=t):(Id.isUndefined(t)&&(t=1),i[e]=t),n[Gv]=i,this._send_request(n,r)}),Qv.prototype.append=ag(function(e,t,r){Id.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),Qv.prototype.remove=ag(function(e,t,r){Id.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),Qv.prototype.union=ag(function(e,t,r){Id.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),Qv.prototype.track_charge=ag(function(){Od.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),Qv.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Qv.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}Od.error("mixpanel.people.delete_user() requires you to call identify() first")},Qv.prototype.toString=function(){return this._mixpanel.toString()+".people"},Qv.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=Id.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),Id.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),Id.truncate(o,255))},Qv.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Qv.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Qv.prototype._enqueue=function(e){Vv in e?this._mixpanel.persistence._add_to_people_queue(Vv,e):$v in e?this._mixpanel.persistence._add_to_people_queue($v,e):Hv in e?this._mixpanel.persistence._add_to_people_queue(Hv,e):Gv in e?this._mixpanel.persistence._add_to_people_queue(Gv,e):Yv in e?this._mixpanel.persistence._add_to_people_queue(Yv,e):Zv in e?this._mixpanel.persistence._add_to_people_queue(Zv,e):Jv in e?this._mixpanel.persistence._add_to_people_queue(Jv,e):Od.error("Invalid call to _enqueue():",e)},Qv.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=Id.extend({},this._mixpanel.persistence.load_queue(e)),s=o;Id.isUndefined(o)||!Id.isObject(o)||Id.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),Id.isUndefined(r)||r(t,n)}))},Qv.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Vv,this.set,e),this._flush_one_queue($v,this.set_once,n),this._flush_one_queue(Hv,this.unset,o,function(e){return Id.keys(e)}),this._flush_one_queue(Gv,this.increment,t),this._flush_one_queue(Jv,this.union,i);var c=this._mixpanel.persistence.load_queue(Yv);if(!Id.isUndefined(c)&&Id.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Yv,u),Id.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(Yv),u=c.pop(),a._mixpanel.persistence.save(),Id.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(Zv);if(!Id.isUndefined(p)&&Id.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Zv,f),Id.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Zv),f=p.pop(),a._mixpanel.persistence.save(),Id.isEmptyObject(f)||a.remove(f,d)},Qv.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Qv.prototype.set=Qv.prototype.set,Qv.prototype.set_once=Qv.prototype.set_once,Qv.prototype.unset=Qv.prototype.unset,Qv.prototype.increment=Qv.prototype.increment,Qv.prototype.append=Qv.prototype.append,Qv.prototype.remove=Qv.prototype.remove,Qv.prototype.union=Qv.prototype.union,Qv.prototype.track_charge=Qv.prototype.track_charge,Qv.prototype.clear_charges=Qv.prototype.clear_charges,Qv.prototype.delete_user=Qv.prototype.delete_user,Qv.prototype.toString=Qv.prototype.toString;var ey,ty="__mps",ry="__mpso",ny="__mpus",iy="__mpa",oy="__mpap",sy="__mpr",ay="__mpu",cy="$people_distinct_id",uy="__alias",ly="__timers",hy=[ty,ry,ny,iy,oy,sy,ay,cy,uy,ly],py=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&&(Od.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Id.localStorage.is_supported()?this.storage=Id.localStorage:this.storage=Id.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};py.prototype.properties=function(){var e={};return this.load(),Id.each(this.props,function(t,r){Id.include(hy,r)||(e[r]=t)}),e},py.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Id.extend({},e))}},py.prototype.upgrade=function(){var e,t;this.storage===Id.localStorage?(e=Id.cookie.parse(this.name),Id.cookie.remove(this.name),Id.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Id.cookie&&(t=Id.localStorage.parse(this.name),Id.localStorage.remove(this.name),t&&this.register_once(t))},py.prototype.save=function(){this.disabled||this.storage.set(this.name,Jd(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},py.prototype.load_prop=function(e){return this.load(),this.props[e]},py.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},py.prototype.clear=function(){this.remove(),this.props={}},py.prototype.register_once=function(e,t,r){return!!Id.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Id.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},py.prototype.register=function(e,t){return!!Id.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Id.extend(this.props,e),this.save(),!0)},py.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},py.prototype.update_search_keyword=function(e){this.register(Id.info.searchInfo(e))},py.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Id.info.referringDomain(e)||"$direct"},"")},py.prototype.get_referrer_info=function(){return Id.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},py.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)},py.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},py.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},py.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},py.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},py.prototype.get_cross_subdomain=function(){return this.cross_subdomain},py.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},py.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Vv),o=this._get_or_create_queue($v),s=this._get_or_create_queue(Hv),a=this._get_or_create_queue(Gv),c=this._get_or_create_queue(Jv),u=this._get_or_create_queue(Zv,[]),l=this._get_or_create_queue(Yv,[]);r===ty?(Id.extend(i,n),this._pop_from_people_queue(Gv,n),this._pop_from_people_queue(Jv,n),this._pop_from_people_queue(Hv,n)):r===ry?(Id.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(Hv,n)):r===ny?Id.each(n,function(e){Id.each([i,o,a,c],function(t){e in t&&delete t[e]}),Id.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===iy?(Id.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(Hv,n)):r===ay?(Id.each(n,function(e,t){Id.isArray(e)&&(t in c||(c[t]=[]),Id.each(e,function(e){Id.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Hv,n)):r===sy?(u.push(n),this._pop_from_people_queue(Yv,n)):r===oy&&(l.push(n),this._pop_from_people_queue(Hv,n)),Od.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Od.log(t),this.save()},py.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Id.isUndefined(r)||Id.each(t,function(t,n){e===Yv||e===Zv?Id.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},py.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},py.prototype._get_queue_key=function(e){return e===Vv?ty:e===$v?ry:e===Hv?ny:e===Gv?iy:e===Yv?oy:e===Zv?sy:e===Jv?ay:void Od.error("Invalid queue:",e)},py.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Id.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},py.prototype.set_event_timer=function(e,t){var r=this.load_prop(ly)||{};r[e]=t,this.props[ly]=r,this.save()},py.prototype.remove_event_timer=function(e){var t=(this.load_prop(ly)||{})[e];return Id.isUndefined(t)||(delete this.props[ly][e],this.save()),t};var fy,dy=function(e,t){throw new Error(e+" not available in this build.")},gy="mixpanel",my="base64",vy="$device:",yy=n.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,_y=!yy&&-1===_d.indexOf("MSIE")&&-1===_d.indexOf("Mozilla"),by=null;gd.sendBeacon&&(by=function(){return gd.sendBeacon.apply(gd,arguments)});var wy={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},ky={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:wy,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:my,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Gd,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Gd,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:ad,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"},Sy=!1,Cy=function(){},xy=function(e,t,r){var i,s=r===gy?fy:fy[r];if(s&&0===ey)i=s;else{if(s&&!Id.isArray(s))return void Od.error("You have already initialized "+r);i=new Cy}if(i._cached_groups={},i._init(e,t,r),i.people=new Qv,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var a=Id.info.campaignParams(null),c={},u=!1;Id.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===ey?"module":"snippet";return n.dispatchEvent(new n.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:i,source:l,token:e,name:r,info:Id.info}})),!Id.isUndefined(s)&&Id.isArray(s)&&(i._execute_array.call(i.people,s.people),i._execute_array(s)),i};Cy.prototype.init=function(e,t,r){if(Id.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==gy){var n=xy(e,t,r);return fy[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Cy.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||ky.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.hooks={},this.set_config(Id.extend({},ky,i,t,{name:r,token:e,callback_fn:(r===gy?r:gy+"."+r)+"._jsc"})),this.recorderManager=new jv({mixpanelInstance:this,getConfigFunc:Id.bind(this.get_config,this),setConfigFunc:Id.bind(this.set_config,this),getTabIdFunc:Id.bind(this.get_tab_id,this),reportErrorFunc:Id.bind(this.report_error,this),getDistinctIdFunc:Id.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:dy}),this._jsc=Gd,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(Id.localStorage.is_supported(!0)&&yy){if(this.init_batchers(),by&&n.addEventListener){var o=Id.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n.addEventListener("pagehide",function(e){e.persisted&&o()}),n.addEventListener("visibilitychange",function(){"hidden"===md.visibilityState&&o()})}}else this._batch_requests=!1,Od.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Id.each(this.get_batcher_configs(),function(e){Od.log("Clearing batch queue "+e.queue_key),Id.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new py(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=Id.UUID();this.get_distinct_id()||this.register_once({distinct_id:vy+s,$device_id:s},""),this.flags=new Lv({getFullApiRoute:Id.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:Id.bind(this.get_config,this),setConfigFunc:Id.bind(this.set_config,this),getPropertyFunc:Id.bind(this.get_property,this),trackingFunc:Id.bind(this.track,this),loadExtraBundle:dy,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+c}),this.flags.init(),this.flags=this.flags,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(Id.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording(),this.autocapture=new wv(this),this.autocapture.init()},Cy.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Od.log("Tab ID initialization skipped due to disable_persistence config");else if(Id.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;!Id.sessionStorage.get(r)&&Id.sessionStorage.get(t)||Id.sessionStorage.set(t,"$tab-"+Id.UUID()),Id.sessionStorage.set(r,"1"),this.tab_id=Id.sessionStorage.get(t),n.addEventListener("beforeunload",function(){Id.sessionStorage.remove(r)})}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.")},Cy.prototype.get_tab_id=function(){return this.tab_id||null},Cy.prototype._check_and_start_session_recording=sg(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),Cy.prototype._start_recording_on_event=Ad(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(Id.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),Cy.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},Cy.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},Cy.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},Cy.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},Cy.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},Cy.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},Cy.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},Cy.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},Cy.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},Cy.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=Id.info.campaignParams(null);Id.each(e,function(e,t){this.unregister(t)}.bind(this))}},Cy.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(md.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Id.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(md.referrer)},Cy.prototype._dom_loaded=function(){Id.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||Id.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},Cy.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(!Sy)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Cy.prototype._prepare_callback=function(e,t){if(Id.isUndefined(e))return null;if(yy)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},Cy.prototype._send_request=function(e,t,r,n){var i=!0;if(_y)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||!Id.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Id.extend(o,r||{}),yy||(r.method="GET");var a="POST"===r.method,c=by&&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),yy||(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),Id.extend(t,this.get_config("api_extra_query_params")),e+="?"+Id.HTTPBuildQuery(t);var l=this;if("img"in t){var h=md.createElement("img");h.src=e,md.body.appendChild(h)}else if(c){try{i=by(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(yy)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"),Id.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=Id.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=md.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=md.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Cy.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!n.AbortController)return Od.critical("Remote settings unavailable: missing minimum required APIs"),r(),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+"?"+Id.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 n.fetch(a,l).then(function(e){return clearTimeout(u),e.ok?e.json():(Od.critical("Network response was not ok"),void r())}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};Id.each(n,function(e,t){ky.hasOwnProperty(t)&&(i[t]=e)}),Id.isEmptyObject(i)?(Od.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(u),Od.critical("Failed to fetch remote settings",e),r()})},Cy.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Id.each(e,function(e){e&&(t=e[0],Id.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Id.isArray(e)&&"alias"===t?r.push(e):Id.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){Id.each(e,function(e){if(Id.isArray(e[0])){var r=t;Id.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)},Cy.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Cy.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},Cy.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Id.bind(function(e){return new Sg(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Id.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:Id.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:Id.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()},Cy.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Id.each(this.request_batchers,function(e){e.start()}))},Cy.prototype.stop_batch_senders=function(){this._batch_requests=!1,Id.each(this.request_batchers,function(e){e.stop(),e.clear()})},Cy.prototype.push=function(e){this._execute_array([e])},Cy.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}},Cy.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Cy.prototype._encode_data_for_request=function(e){var t=Jd(e);return this.get_config("api_payload_format")===my&&(t=Id.base64Encode(t)),{data:t}},Cy.prototype._track_or_batch=function(e,t){var r=Id.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Gd;var a=!0,c=Id.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Od.log("MIXPANEL REQUEST:"),Od.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},Cy.prototype.track=sg(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=Gd),Id.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Id.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!Id.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")?Id.info.marketingParams():{};t=Id.extend({},Id.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");Id.isArray(l)?Id.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)}}),Cy.prototype.set_group=sg(function(e,t,r){Id.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),Cy.prototype.add_group=sg(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)}),Cy.prototype.remove_group=sg(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)}),Cy.prototype.track_with_groups=sg(function(e,t,r,n){var i=Id.extend({},t||{});return Id.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),Cy.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Cy.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Cy.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 Xv)._init(this,e,t),this._cached_groups[r]=n),n},Cy.prototype.track_pageview=sg(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Id.extend(Id.info.mpPageViewProperties(),Id.info.campaignParams(),Id.info.clickParams()),i=Id.extend({},n,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(r,i)}),Cy.prototype.track_links=function(){return this._track_dom.call(this,zv,arguments)},Cy.prototype.track_forms=function(){return this._track_dom.call(this,Wv,arguments)},Cy.prototype.time_event=function(e){Id.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 Iy={persistent:!0},Oy=function(e){var t;return t=Id.isObject(e)?e:Id.isUndefined(e)?{}:{days:e},Id.extend({},Iy,t)};Cy.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=Oy(t);n.persistent?this.persistence.register(e,n.days):Id.extend(this.unpersisted_superprops,e)}},Cy.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=Oy(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),Id.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},Cy.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=Oy(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},Cy.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Cy.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(vy))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(uy)&&(this.unregister(uy),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(){Od.error("[flags] Error fetching flags during identify")})},Cy.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Id.UUID();this.register_once({distinct_id:vy+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},Cy.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Cy.prototype.alias=function(e,t){if(e===this.get_property(cy))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Id.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(uy,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)},Cy.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Cy.prototype.set_config=function(e){Id.isObject(e)&&(Id.extend(this.config,e),e.batch_size&&Id.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(),Id.isObject(e.hooks)&&(this.hooks={},Id.each(e.hooks,function(e,t){if(Id.isFunction(e))this.hooks[t]=[e];else if(Id.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)Id.isFunction(e[r])||Od.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else Od.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},Cy.prototype.get_config=function(e){return this.config[e]},Cy.prototype._run_hook=function(e){var t=hd.call(arguments,1);return Id.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):(Id.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},Cy.prototype.get_property=function(e){return this.persistence.load_prop([e])},Cy.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Cy.prototype.toString=function(){var e=this.get_config("name");return e!==gy&&(e=gy+"."+e),e},Cy.prototype._event_is_disabled=function(e){return Id.isBlockedUA(_d)||this._flags.disable_all_events||Id.include(this.__disabled_events,e)},Cy.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&Id.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")&&!Id.cookie.get("mp_optout")||(Id.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Cy.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()},Cy.prototype._gdpr_call_func=function(e,t){return t=Id.extend({track:Id.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),Id.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})},Cy.prototype.opt_in_tracking=function(e){e=Id.extend({enable_persistence:!0},e),this._gdpr_call_func(rg,e),this._gdpr_update_persistence(e)},Cy.prototype.opt_out_tracking=function(e){(e=Id.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(ng,e),this._gdpr_update_persistence(e)},Cy.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ig,e)},Cy.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(og,e)},Cy.prototype.clear_opt_in_out_tracking=function(e){e=Id.extend({enable_persistence:!0},e),this._gdpr_call_func(ug,e),this._gdpr_update_persistence(e)},Cy.prototype.report_error=function(e,t){Od.error.apply(Od.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){Od.error(t)}},Cy.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},Cy.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):Od.log("remove_hook failed. Matching hook was not found"))},Cy.prototype.init=Cy.prototype.init,Cy.prototype.reset=Cy.prototype.reset,Cy.prototype.enable=Cy.prototype.enable,Cy.prototype.disable=Cy.prototype.disable,Cy.prototype.time_event=Cy.prototype.time_event,Cy.prototype.track=Cy.prototype.track,Cy.prototype.track_links=Cy.prototype.track_links,Cy.prototype.track_forms=Cy.prototype.track_forms,Cy.prototype.track_pageview=Cy.prototype.track_pageview,Cy.prototype.register=Cy.prototype.register,Cy.prototype.register_once=Cy.prototype.register_once,Cy.prototype.unregister=Cy.prototype.unregister,Cy.prototype.identify=Cy.prototype.identify,Cy.prototype.alias=Cy.prototype.alias,Cy.prototype.name_tag=Cy.prototype.name_tag,Cy.prototype.set_config=Cy.prototype.set_config,Cy.prototype.get_config=Cy.prototype.get_config,Cy.prototype.get_api_host=Cy.prototype.get_api_host,Cy.prototype.get_property=Cy.prototype.get_property,Cy.prototype.get_distinct_id=Cy.prototype.get_distinct_id,Cy.prototype.toString=Cy.prototype.toString,Cy.prototype.opt_out_tracking=Cy.prototype.opt_out_tracking,Cy.prototype.opt_in_tracking=Cy.prototype.opt_in_tracking,Cy.prototype.has_opted_out_tracking=Cy.prototype.has_opted_out_tracking,Cy.prototype.has_opted_in_tracking=Cy.prototype.has_opted_in_tracking,Cy.prototype.clear_opt_in_out_tracking=Cy.prototype.clear_opt_in_out_tracking,Cy.prototype.get_group=Cy.prototype.get_group,Cy.prototype.set_group=Cy.prototype.set_group,Cy.prototype.add_group=Cy.prototype.add_group,Cy.prototype.remove_group=Cy.prototype.remove_group,Cy.prototype.add_hook=Cy.prototype.add_hook,Cy.prototype.remove_hook=Cy.prototype.remove_hook,Cy.prototype.track_with_groups=Cy.prototype.track_with_groups,Cy.prototype.start_batch_senders=Cy.prototype.start_batch_senders,Cy.prototype.stop_batch_senders=Cy.prototype.stop_batch_senders,Cy.prototype.start_session_recording=Cy.prototype.start_session_recording,Cy.prototype.stop_session_recording=Cy.prototype.stop_session_recording,Cy.prototype.pause_session_recording=Cy.prototype.pause_session_recording,Cy.prototype.resume_session_recording=Cy.prototype.resume_session_recording,Cy.prototype.get_session_recording_properties=Cy.prototype.get_session_recording_properties,Cy.prototype.get_session_replay_url=Cy.prototype.get_session_replay_url,Cy.prototype.get_tab_id=Cy.prototype.get_tab_id,Cy.prototype.DEFAULT_API_ROUTES=wy,Cy.prototype.__get_recorder=Cy.prototype.__get_recorder,Cy.prototype.__get_recording_init_promise=Cy.prototype.__get_recording_init_promise,py.prototype.properties=py.prototype.properties,py.prototype.update_search_keyword=py.prototype.update_search_keyword,py.prototype.update_referrer_info=py.prototype.update_referrer_info,py.prototype.get_cross_subdomain=py.prototype.get_cross_subdomain,py.prototype.clear=py.prototype.clear;var Ey={},My=(dy=function(e,t){t()},ey=0,(fy=new Cy).init=function(e,t,r){if(r)return fy[r]||(fy[r]=Ey[r]=xy(e,t,r),fy[r]._loaded()),fy[r];var i=fy;Ey[gy]?i=Ey[gy]:e&&((i=xy(e,t,gy))._loaded(),Ey[gy]=i),fy=i,1===ey&&(n[gy]=fy),Id.each(Ey,function(e,t){t!==gy&&(fy[t]=e)}),fy._=Id},fy.init(),function(){function e(){e.done||(e.done=!0,Sy=!0,_y=!1,Id.each(Ey,function(e){e._dom_loaded()}))}if(md.addEventListener)"complete"===md.readyState?e():md.addEventListener("DOMContentLoaded",e,!1);else if(md.attachEvent){md.attachEvent("onreadystatechange",e);var t=!1;try{t=null===n.frameElement}catch(e){}md.documentElement.doScroll&&t&&function t(){try{md.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}Id.register_event(n,"load",e,!0)}(),fy)}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit