Ubuntu
"use strict";(globalThis.webpackChunkpojo_accessibility=globalThis.webpackChunkpojo_accessibility||[]).push([[4156],{76751(e,t,r){var n;if(r.d(t,{default:()=>Gf}),"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;function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(i[r]=e[r]);return i}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v(e){var t="function"==typeof Map?new Map:void 0;return v=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 c(e,arguments,h(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)},v(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function _(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 o(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)?o(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 b(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]=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 k,S=Object.defineProperty,C=function(e,t,r){return function(e,t,r){return t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},x=Object.defineProperty,I=function(e,t,r){return function(e,t,r){return t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},E=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}(E||{}),O={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},M={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},A={};function R(e){if(A[e])return A[e];var t=globalThis[e],r=t.prototype,n=e in O?O[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 M?M[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 T={};function P(e,t,r){var n,i=e+"."+String(r);if(T[i])return T[i].call(t);var o=R(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(T[i]=s,s.call(t)):t[r]}var L=function(e){return P("Node",e,"childNodes")},D=function(e){return P("Node",e,"parentNode")},N=function(e){return P("Node",e,"parentElement")},F=function(e){return P("Node",e,"textContent")},U=function(e){return e&&"host"in e?P("ShadowRoot",e,"host"):null},B=function(e){return e&&"shadowRoot"in e?P("Element",e,"shadowRoot"):null};function j(e){return e.nodeType===e.ELEMENT_NODE}function q(e){var t=e&&"host"in e&&"mode"in e&&U(e)||null;return Boolean(t&&"shadowRoot"in t&&B(t)===e)}function z(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function W(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;return!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href),(n=Array.from(t,function(e){return V(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 V(e,t){if(function(e){return"styleSheet"in e}(e)){var r;try{r=W(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?te(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?te(i,t):i}var $=function(){function e(){I(this,"idNodeMap",new Map),I(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){var t=this,r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(function(e){return t.removeNodeFromMap(e)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function G(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&H(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function H(e){return e.toLowerCase()}var Y="__rrweb_original__";function Z(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?H(t):null}function J(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 X=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,K=/^(?:[a-z+]+:)?\/\//i,Q=/^www\..*/i,ee=/^(data:)([^,]*),(.*)/i;function te(e,t){return(e||"").replace(X,function(e,r,n,i,o,s){var a,c=n||o||s,u=r||i||"";if(!c)return e;if(K.test(c)||Q.test(c))return"url("+u+c+u+")";if(ee.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=_(h);!(p=f()).done;){var d=p.value;"."!==d&&(".."===d?l.pop():l.push(d))}return"url("+u+l.join("/")+u+")"})}function re(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var ne,ie,oe=1,se=new RegExp("[^a-z0-9-_:]");function ae(){return oe++}var ce=/^[^ \t\n\r\u000c]+/,ue=/^[, \t\n\r\u000c]+/,le=new WeakMap;function he(e,t){return t&&""!==t.trim()?pe(e,t):t}function pe(e,t){var r=le.get(e);if(r||(r=e.createElement("a"),le.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function fe(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?he(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(ue),!(r>=t.length);){var o=n(ce);if(","===o.slice(-1))o=he(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=he(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?te(n,pe(e)):"object"===t&&"data"===r?he(e,n):n:he(e,n):n}function de(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ge(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ge(D(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&ge(D(e),t,r)}function me(e,t,r,n){var i;if(j(e)){if(!L(i=e).length)return!1}else{if(null===N(e))return!1;i=N(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(ge(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 ve(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,d=void 0===p?{}:p,g=t.inlineImages,m=t.recordCanvas,v=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:E.Document,childNodes:[],compatMode:e.compatMode}:{type:E.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:E.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,d=t.newlyAddedElement,g=void 0!==d&&d,m=t.rootId,v=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(f(e,HTMLFormElement))return"form";var t=H(e.tagName);return se.test(t)?"div":t}(e),_={},b=e.attributes.length,w=0;w1&&(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=re(e,r),a=s.length/e.length,c=1;c2&&""===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=re(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&&m50*n.length)return i.push(e),i;var v=re(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",P=R.crossOrigin,L=function(){R.removeEventListener("load",L);try{ne.width=R.naturalWidth,ne.height=R.naturalHeight,ie.drawImage(R,0,0),_.rr_dataURL=ne.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==R.crossOrigin)return R.crossOrigin="anonymous",void(R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L));console.warn("Cannot inline img src="+T+"! Error: "+e)}"anonymous"===R.crossOrigin&&(P?_.crossOrigin=P:R.removeAttribute("crossorigin"))};R.complete&&0!==R.naturalWidth?L():R.addEventListener("load",L)}if("audio"===y||"video"===y){var D=_;D.rr_mediaState=e.paused?"paused":"played",D.rr_mediaCurrentTime=e.currentTime,D.rr_mediaPlaybackRate=e.playbackRate,D.rr_mediaMuted=e.muted,D.rr_mediaLoop=e.loop,D.rr_mediaVolume=e.volume}if(g||(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop)),v){var N=e.getBoundingClientRect(),F=N.width,U=N.height;_={class:_.class,rr_width:F+"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:E.Element,tagName:y,attributes:_,childNodes:[],isSVG:(B=e,Boolean("svg"===B.tagName||B.ownerSVGElement)||void 0),needBlock:v,rootId:m,isCustom:r};var B}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:d,inlineImages:g,recordCanvas:m,keepIframeSrcFn:v,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=D(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;return l?c="SCRIPT_PLACEHOLDER":o||(c=F(e),u&&c&&(c=te(c,pe(t.doc)))),!u&&!l&&c&&r&&(c=n?n(c,N(e)):c.replace(/[\S]/g,"*")),{type:E.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:E.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:E.Comment,textContent:F(e)||"",rootId:k};default:return!1}}function ye(e){return null==e?"":e.toLowerCase()}function _e(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,b=t.inlineImages,w=void 0!==b&&b,k=t.recordCanvas,S=void 0!==k&&k,C=t.onSerialize,x=t.onIframeLoad,I=t.iframeLoadTimeout,O=void 0===I?5e3:I,M=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,R=void 0===A?5e3:A,T=t.keepIframeSrcFn,P=void 0===T?function(){return!1}:T,N=t.newlyAddedElement,F=void 0!==N&&N,U=t.cssCaptured,W=void 0!==U&&U,V=t.needsMask,$=t.preserveWhiteSpace,G=void 0===$||$;V||(V=me(e,s,a,void 0===V));var H,Y=ve(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:S,keepIframeSrcFn:P,newlyAddedElement:F,cssCaptured:W});if(!Y)return console.warn(e,"not serialized"),null;H=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===E.Comment)return!0;if(e.type===E.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"===J(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ye(e.attributes.name)||"icon"===ye(e.attributes.rel)||"apple-touch-icon"===ye(e.attributes.rel)||"shortcut icon"===ye(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ye(e.attributes.property).match(/^(og|twitter|fb):/)||ye(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ye(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ye(e.attributes.name)||"googlebot"===ye(e.attributes.name)||"bingbot"===ye(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ye(e.attributes.name)||"generator"===ye(e.attributes.name)||"framework"===ye(e.attributes.name)||"publisher"===ye(e.attributes.name)||"progid"===ye(e.attributes.name)||ye(e.attributes.property).match(/^article:/)||ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ye(e.attributes.name)||"yandex-verification"===ye(e.attributes.name)||"csrf-token"===ye(e.attributes.name)||"p:domain_verify"===ye(e.attributes.name)||"verify-v1"===ye(e.attributes.name)||"verification"===ye(e.attributes.name)||"shopify-checkout-api-token"===ye(e.attributes.name)))return!0}}return!1}(Y,m)||!G&&Y.type===E.Text&&!Y.textContent.replace(/^\s+|\s+$/gm,"").length?-2:ae();var Z=Object.assign(Y,{id:H});if(n.add(e,Z),-2===H)return null;C&&C(e);var X=!u;if(Z.type===E.Element){X=X&&!Z.needBlock,delete Z.needBlock;var K=B(e);K&&z(K)&&(Z.isShadowHost=!0)}if((Z.type===E.Document||Z.type===E.Element)&&X){m.headWhitespace&&Z.type===E.Element&&"head"===Z.tagName&&(G=!1);var Q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:G,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:P,cssCaptured:!1};if(Z.type===E.Element&&"textarea"===Z.tagName&&void 0!==Z.attributes.value);else{Z.type===E.Element&&void 0!==Z.attributes._cssText&&"string"==typeof Z.attributes._cssText&&(Q.cssCaptured=!0);for(var ee,te=_(Array.from(L(e)));!(ee=te()).done;){var re=_e(ee.value,Q);re&&Z.childNodes.push(re)}}var ne=null;if(j(e)&&(ne=B(e)))for(var ie,oe=_(Array.from(L(ne)));!(ie=oe()).done;){var se=_e(ie.value,Q);se&&(z(ne)&&(se.isShadow=!0),Z.childNodes.push(se))}}var ce=D(e);return ce&&q(ce)&&z(ce)&&(Z.isShadow=!0),Z.type===E.Element&&"iframe"===Z.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=_e(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:G,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:P});r&&x(e,r)}},O),Z.type===E.Element&&"link"===Z.tagName&&"string"==typeof Z.attributes.rel&&("stylesheet"===Z.attributes.rel||"preload"===Z.attributes.rel&&"string"==typeof Z.attributes.href&&"css"===J(Z.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(M){var t=_e(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:V,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:f,maskTextFn:d,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:G,onSerialize:C,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:P});t&&M(e,t)}},R),Z}function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return f(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 ke={exports:{}},Se=String,Ce=function(){return{isColorSupported:!1,reset:Se,bold:Se,dim:Se,italic:Se,underline:Se,inverse:Se,hidden:Se,strikethrough:Se,black:Se,red:Se,green:Se,yellow:Se,blue:Se,magenta:Se,cyan:Se,white:Se,gray:Se,bgBlack:Se,bgRed:Se,bgGreen:Se,bgYellow:Se,bgBlue:Se,bgMagenta:Se,bgCyan:Se,bgWhite:Se}};ke.exports=Ce(),ke.exports.createColors=Ce;var xe=ke.exports,Ie=we(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ee=xe,Oe=Ie,Me=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}p(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",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=Ee.isColorSupported),Oe&&e&&(r=Oe(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=Ee.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}(v(Error)),Ae=Me;Me.default=Me;var Re={};Re.isClean=Symbol("isClean"),Re.my=Symbol("my");var Te={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},Pe=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;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&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}(),Le=Pe;Pe.default=Pe;var De=Le;function Ne(e,t){new De(t).stringify(e)}var Fe=Ne;Ne.default=Ne;var Ue=Re.isClean,Be=Re.my,je=Ae,qe=Le,ze=Fe;function We(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":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return We(e,r)}):("object"===o&&null!==i&&(i=We(i)),r[n]=i)}return r}var Ve=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ue]=!1,this[Be]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=_(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=We(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 je(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[Ue]){this[Ue]=!1;for(var e=this;e=e.parent;)e[Ue]=!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-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Ke(e),Je(e))return this.mapFile=e,Xe(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(f(t,Ye))return Ze.fromSourceMap(t).toString();if(f(t,Ze))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=Qe(Ke(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}(),tt=et;et.default=et;var rt=Ie.SourceMapConsumer,nt=Ie.SourceMapGenerator,it=Ie.fileURLToPath,ot=Ie.pathToFileURL,st=Ie.isAbsolute,at=Ie.resolve,ct=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},ut=Ie,lt=Ae,ht=tt,pt=Symbol("fromOffsetCache"),ft=Boolean(rt&&nt),dt=Boolean(at&&st),gt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(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&&(!dt||/^\w+:\/\//.test(t.from)||st(t.from)?this.file=t.from:this.file=at(t.from)),dt&&ft){var r=new ht(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=""),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":m(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 lt(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 lt(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&&(ot&&(i.input.url=ot(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[pt])t=this[pt];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;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:at(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=st(a.source)?ot(a.source):new URL(a.source,this.map.consumer().sourceRoot||ot(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(!it)throw new Error("file: protocol is not available in this PostCSS build");c.file=it(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=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(),It&&xt&&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=yt.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new yt({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)):""});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 yt({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",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?_t(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=_t(wt(r,this.mapOpts.annotation)));var n=bt(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 Ct(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)):"";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(St){var r=St(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;"\\"===kt&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),Ot=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return p(t,e),t}($e),Mt=Ot;Ot.default=Ot;var At,Rt,Tt,Pt,Lt=Re.isClean,Dt=Re.my,Nt=He,Ft=Mt;function Ut(e){return e.map(function(e){return e.nodes&&(e.nodes=Ut(e.nodes)),delete e.source,e})}function Bt(e){if(e[Lt]=!1,e.proxyOf.nodes)for(var t,r=_(e.proxyOf.nodes);!(t=r()).done;)Bt(t.value)}var jt=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?f(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?f(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?f(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)}))},u(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}($e);jt.registerParse=function(e){At=e},jt.registerRule=function(e){Rt=e},jt.registerAtRule=function(e){Tt=e},jt.registerRoot=function(e){Pt=e};var qt=jt;jt.default=jt,jt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Tt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Rt.prototype):"decl"===e.type?Object.setPrototypeOf(e,Nt.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ft.prototype):"root"===e.type&&Object.setPrototypeOf(e,Pt.prototype),e[Dt]=!0,e.nodes&&e.nodes.forEach(function(e){jt.rebuild(e)})};var zt,Wt,Vt=function(e){function t(t){var r;return(r=e.call(this,l({type:"document"},t))||this).nodes||(r.nodes=[]),r}return p(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new zt(new Wt,this,e).stringify()},t}(qt);Vt.registerLazyResult=function(e){zt=e},Vt.registerProcessor=function(e){Wt=e};var $t=Vt;Vt.default=Vt;var Gt=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}(),Ht=Gt;Gt.default=Gt;var Yt=Ht,Zt=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 Yt(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},u(e,[{key:"content",get:function(){return this.css}}]),e}(),Jt=Zt;Zt.default=Zt;var Xt="'".charCodeAt(0),Kt='"'.charCodeAt(0),Qt="\\".charCodeAt(0),er="/".charCodeAt(0),tr="\n".charCodeAt(0),rr=" ".charCodeAt(0),nr="\f".charCodeAt(0),ir="\t".charCodeAt(0),or="\r".charCodeAt(0),sr="[".charCodeAt(0),ar="]".charCodeAt(0),cr="(".charCodeAt(0),ur=")".charCodeAt(0),lr="{".charCodeAt(0),hr="}".charCodeAt(0),pr=";".charCodeAt(0),fr="*".charCodeAt(0),dr=":".charCodeAt(0),gr="@".charCodeAt(0),mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,vr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,yr=/.[\r\n"'(/\\]/,_r=/[\da-f]/i,br=qt,wr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}p(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,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 Sr(new Cr,this,e).stringify()},t}(xr);Ir.registerLazyResult=function(e){Sr=e},Ir.registerProcessor=function(e){Cr=e};var Er=Ir;Ir.default=Ir,xr.registerRoot(Ir);var Or={comma:function(e){return Or.split(e,[","],!0)},space:function(e){return Or.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=_(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}},Mr=Or;Or.default=Or;var Ar=qt,Rr=Mr,Tr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return p(t,e),u(t,[{key:"selectors",get:function(){return Rr.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}(Ar),Pr=Tr;Tr.default=Tr,Ar.registerRule(Tr);var Lr=He,Dr=Mt,Nr=kr,Fr=Er,Ur=Pr,Br={empty:!0,space:!0},jr=function(){function e(e){this.input=e,this.root=new Fr,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 Nr;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=_(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 Dr;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 tr:case rr:case ir:case or:case nr:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===rr||r===tr||r===ir||r===or||r===nr);h=["space",p.slice(g,n)],g=n-1;break;case sr:case ar:case lr:case hr:case dr:case pr:case ur:var _=String.fromCharCode(r);h=[_,_,g];break;case cr:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Xt&&l!==Kt&&l!==rr&&l!==tr&&l!==ir&&l!==nr&&l!==or){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)===Qt;)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||yr.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Xt:case Kt:i=r===Xt?"'":'"',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)===Qt;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case gr:mr.lastIndex=g+1,mr.test(p),n=0===mr.lastIndex?p.length-1:mr.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Qt:for(n=g,s=!0;p.charCodeAt(n+1)===Qt;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==er&&r!==rr&&r!==tr&&r!==ir&&r!==or&&r!==nr&&(n+=1,_r.test(p.charAt(n)))){for(;_r.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===rr&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===er&&p.charCodeAt(g+1)===fr?(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):(vr.lastIndex=g+1,vr.test(p),n=0===vr.lastIndex?p.length-1:vr.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 Lr;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 Ur;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;h0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return b(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t0))return[3,13];if(!on(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 b(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=_(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,w(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":m(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 on(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=Zr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Yr(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=_(this.plugins);!(e=t()).done;){var r=e.value;if(on(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Gr];)n[Gr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=_(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=_(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(on(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",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=li.isColorSupported),hi&&e&&(r=hi(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=li.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}(v(Error)),fi=pi;pi.default=pi;var di={};di.isClean=Symbol("isClean"),di.my=Symbol("my");var gi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},mi=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;s0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&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}(),vi=mi;mi.default=mi;var yi=vi;function _i(e,t){new yi(t).stringify(e)}var bi=_i;_i.default=_i;var wi=di.isClean,ki=di.my,Si=fi,Ci=vi,xi=bi;function Ii(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":m(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map(function(e){return Ii(e,r)}):("object"===o&&null!==i&&(i=Ii(i)),r[n]=i)}return r}var Ei=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[wi]=!1,this[ki]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=_(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=Ii(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 Si(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[wi]){this[wi]=!1;for(var e=this;e=e.parent;)e[wi]=!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-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=Di(e),Pi(e))return this.mapFile=e,Li(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(f(t,Ri))return Ti.fromSourceMap(t).toString();if(f(t,Ti))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=Ni(Di(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}(),Ui=Fi;Fi.default=Fi;var Bi=ui.SourceMapConsumer,ji=ui.SourceMapGenerator,qi=ui.fileURLToPath,zi=ui.pathToFileURL,Wi=ui.isAbsolute,Vi=ui.resolve,$i=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Gi=ui,Hi=fi,Yi=Ui,Zi=Symbol("fromOffsetCache"),Ji=Boolean(Bi&&ji),Xi=Boolean(Vi&&Wi),Ki=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":m(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&&(!Xi||/^\w+:\/\//.test(t.from)||Wi(t.from)?this.file=t.from:this.file=Vi(t.from)),Xi&&Ji){var r=new Yi(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=""),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":m(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 Hi(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 Hi(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&&(zi&&(i.input.url=zi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Zi])t=this[Zi];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;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:Vi(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=Wi(a.source)?zi(a.source):new URL(a.source,this.map.consumer().sourceRoot||zi(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(!qi)throw new Error("file: protocol is not available in this PostCSS build");c.file=qi(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=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(),uo&&co&&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=to.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new to({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)):""});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 to({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="",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?ro(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ro(io(r,this.mapOpts.annotation)));var n=no(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 ao(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)):"";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(so){var r=so(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;"\\"===oo&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),ho=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return p(t,e),t}(Oi),po=ho;ho.default=ho;var fo,go,mo,vo,yo=di.isClean,_o=di.my,bo=Ai,wo=po;function ko(e){return e.map(function(e){return e.nodes&&(e.nodes=ko(e.nodes)),delete e.source,e})}function So(e){if(e[yo]=!1,e.proxyOf.nodes)for(var t,r=_(e.proxyOf.nodes);!(t=r()).done;)So(t.value)}var Co=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r1?t-1:0),i=1;i=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?f(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?f(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?f(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)}))},u(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}(Oi);Co.registerParse=function(e){fo=e},Co.registerRule=function(e){go=e},Co.registerAtRule=function(e){mo=e},Co.registerRoot=function(e){vo=e};var xo=Co;Co.default=Co,Co.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,mo.prototype):"rule"===e.type?Object.setPrototypeOf(e,go.prototype):"decl"===e.type?Object.setPrototypeOf(e,bo.prototype):"comment"===e.type?Object.setPrototypeOf(e,wo.prototype):"root"===e.type&&Object.setPrototypeOf(e,vo.prototype),e[_o]=!0,e.nodes&&e.nodes.forEach(function(e){Co.rebuild(e)})};var Io,Eo,Oo=function(e){function t(t){var r;return(r=e.call(this,l({type:"document"},t))||this).nodes||(r.nodes=[]),r}return p(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Io(new Eo,this,e).stringify()},t}(xo);Oo.registerLazyResult=function(e){Io=e},Oo.registerProcessor=function(e){Eo=e};var Mo=Oo;Oo.default=Oo;var Ao=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}(),Ro=Ao;Ao.default=Ao;var To=Ro,Po=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 To(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},u(e,[{key:"content",get:function(){return this.css}}]),e}(),Lo=Po;Po.default=Po;var Do="'".charCodeAt(0),No='"'.charCodeAt(0),Fo="\\".charCodeAt(0),Uo="/".charCodeAt(0),Bo="\n".charCodeAt(0),jo=" ".charCodeAt(0),qo="\f".charCodeAt(0),zo="\t".charCodeAt(0),Wo="\r".charCodeAt(0),Vo="[".charCodeAt(0),$o="]".charCodeAt(0),Go="(".charCodeAt(0),Ho=")".charCodeAt(0),Yo="{".charCodeAt(0),Zo="}".charCodeAt(0),Jo=";".charCodeAt(0),Xo="*".charCodeAt(0),Ko=":".charCodeAt(0),Qo="@".charCodeAt(0),es=/[\t\n\f\r "#'()/;[\\\]{}]/g,ts=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rs=/.[\r\n"'(/\\]/,ns=/[\da-f]/i,is=xo,os=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}p(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,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 as(new cs,this,e).stringify()},t}(us);ls.registerLazyResult=function(e){as=e},ls.registerProcessor=function(e){cs=e};var hs=ls;ls.default=ls,us.registerRoot(ls);var ps={comma:function(e){return ps.split(e,[","],!0)},space:function(e){return ps.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=_(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}},fs=ps;ps.default=ps;var ds=xo,gs=fs,ms=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return p(t,e),u(t,[{key:"selectors",get:function(){return gs.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}(ds),vs=ms;ms.default=ms,ds.registerRule(ms);var ys=Ai,_s=po,bs=ss,ws=hs,ks=vs,Ss={empty:!0,space:!0},Cs=function(){function e(e){this.input=e,this.root=new ws,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 bs;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=_(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 _s;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 Bo:case jo:case zo:case Wo:case qo:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===jo||r===Bo||r===zo||r===Wo||r===qo);h=["space",p.slice(g,n)],g=n-1;break;case Vo:case $o:case Yo:case Zo:case Ko:case Jo:case Ho:var _=String.fromCharCode(r);h=[_,_,g];break;case Go:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Do&&l!==No&&l!==jo&&l!==Bo&&l!==zo&&l!==qo&&l!==Wo){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)===Fo;)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||rs.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Do:case No:i=r===Do?"'":'"',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)===Fo;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case Qo:es.lastIndex=g+1,es.test(p),n=0===es.lastIndex?p.length-1:es.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Fo:for(n=g,s=!0;p.charCodeAt(n+1)===Fo;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==Uo&&r!==jo&&r!==Bo&&r!==zo&&r!==Wo&&r!==qo&&(n+=1,ns.test(p.charAt(n)))){for(;ns.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===jo&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===Uo&&p.charCodeAt(g+1)===Xo?(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):(ts.lastIndex=g+1,ts.test(p),n=0===ts.lastIndex?p.length-1:ts.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 ys;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 ks;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;h0},t.runAsync=function(){var e=this;return a(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return b(this,function(f){switch(f.label){case 0:e.plugin=0,t=0,f.label=1;case 1:if(!(t0))return[3,13];if(!zs(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 b(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=_(e.listeners.OnceExit),f.label=15;case 15:return(p=h()).done?[3,18]:[5,w(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":m(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 zs(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=Ps;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ts(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=_(this.plugins);!(e=t()).done;){var r=e.value;if(zs(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[As];)n[As]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=_(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=_(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(zs(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.visitorIndext?(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 sc(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 sc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(ic=new Proxy(ic,{get:function(e,t,r){return"map"===t&&console.error(nc),Reflect.get(e,t,r)}}));var ac=Date.now;function cc(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=Ja(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=Ja(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function uc(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function lc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function hc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Ja(e):null}function pc(e,t,r,n){if(!e)return!1;var i=hc(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(ge(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 fc(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function dc(e,t){if(q(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Za(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||dc(n,t))}function gc(e){return Boolean(e.changedTouches)}function mc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function vc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function yc(e){return!!e&&(f(e,Fa)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(tc(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(ac=function(){return(new Date).getTime()});var _c=function(){function e(){C(this,"id",1),C(this,"styleIDMap",new WeakMap),C(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++},e}();function bc(e){var t,r=null;return"getRootNode"in e&&(null==(t=Qa(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ec(Qa(e))&&(r=ec(Qa(e))),r}function wc(e){var t=e.ownerDocument;return!!t&&(Ka(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=bc(r);)r=t;return r}(e);return Ka(t,r)}(e))}var kc=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}(kc||{}),Sc=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}(Sc||{}),Cc=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}(Cc||{}),xc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(xc||{}),Ic=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Ic||{}),Ec=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}(Ec||{}),Oc=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}(Oc||{});function Mc(e){return"__ln"in e}var Ac,Rc=function(){function e(){C(this,"length",0),C(this,"head",null),C(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;r0&&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 kc.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:kc.IncrementalSnapshot,data:{source:Sc.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case kc.Meta:case kc.Load:case kc.DomContentLoaded:return!1;case kc.Plugin:return t;case kc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case kc.IncrementalSnapshot:switch(t.data.source){case Sc.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 Sc.Drag:case Sc.TouchMove:case Sc.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case Sc.ViewportResize:return!1;case Sc.MediaInteraction:case Sc.MouseInteraction:case Sc.Scroll:case Sc.CanvasMutation:case Sc.Input:return this.replaceIds(t.data,e,["id"]),t;case Sc.StyleSheetRule:case Sc.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case Sc.Font:return t;case Sc.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case Sc.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=_(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===Oc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),Qc=function(){function e(e){C(this,"shadowDoms",new WeakSet),C(this,"mutationCb"),C(this,"scrollCb"),C(this,"bypassOptions"),C(this,"mirror"),C(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(z(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=qc(l({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(zc(l({},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(ec(e))),r.restoreHandlers.push(Hc({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(Ha(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=tc(this);return o&&wc(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}(),eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tu="undefined"==typeof Uint8Array?[]:new Uint8Array(256),ru=0;ru<64;ru++)tu[eu.charCodeAt(ru)]=ru;var nu=new Map,iu=function(e,t,r){if(e&&(au(e,t)||"object"===(void 0===e?"undefined":m(e)))){var n=function(e,t){var r=nu.get(e);return r||(r=new Map,nu.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 ou(e,t,r){return f(e,Array)?e.map(function(e){return ou(e,t,r)}):null===e?e:f(e,Float32Array)||f(e,Float64Array)||f(e,Int32Array)||f(e,Uint32Array)||f(e,Uint8Array)||f(e,Uint16Array)||f(e,Int16Array)||f(e,Int8Array)||f(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:f(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t>2],i+=eu[(3&r[t])<<4|r[t+1]>>4],i+=eu[(15&r[t+1])<<2|r[t+2]>>6],i+=eu[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)}:f(e,DataView)?{rr_type:e.constructor.name,args:[ou(e.buffer,t,r),e.byteOffset,e.byteLength]}:f(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:f(e,HTMLCanvasElement)?{rr_type:"HTMLImageElement",src:e.toDataURL()}:f(e,ImageData)?{rr_type:e.constructor.name,args:[ou(e.data,t,r),e.width,e.height]}:au(e,t)||"object"===(void 0===e?"undefined":m(e))?{rr_type:e.constructor.name,index:iu(e,t,r)}:e}var su=function(e,t,r){return e.map(function(e){return ou(e,t,r)})},au=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 f(e,t[r])}))};function cu(e,t,r,n){var i=[];try{var o=Ha(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),_u=function(){function e(){C(this,"nodeMap",new WeakMap),C(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}(),bu=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var wu=document.createElement("iframe");document.body.appendChild(wu),Array.from=(null==(k=wu.contentWindow)?void 0:k.Array.from)||Array.from,document.body.removeChild(wu)}}catch(e){console.debug("Unable to override Array.from",e)}var ku,Su,Cu=new $;function xu(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,c=e.ignoreClass,u=void 0===c?"rr-ignore":c,h=e.ignoreSelector,p=void 0===h?null:h,f=e.maskTextClass,d=void 0===f?"rr-mask":f,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,b=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,S=e.maskInputFn,C=e.maskTextFn,x=e.hooks,I=e.packFn,E=e.sampling,O=void 0===E?{}:E,M=e.dataURLOptions,A=void 0===M?{}:M,R=e.mousemoveWait,T=e.recordDOM,P=void 0===T||T,L=e.recordCanvas,D=void 0!==L&&L,N=e.recordCrossOriginIframes,F=void 0!==N&&N,U=e.recordAfter,B=void 0===U?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":U,j=e.userTriggeredOnInput,q=void 0!==j&&j,z=e.collectFonts,W=void 0!==z&&z,V=e.inlineImages,G=void 0!==V&&V,H=e.plugins,Y=e.keepIframeSrcFn,Z=void 0===Y?function(){return!1}:Y,J=e.ignoreCSSAttributes,X=void 0===J?new Set([]):J,K=e.errorHandler;Ac=K;var Q=!F||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw new Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==R&&void 0===O.mousemove&&(O.mousemove=R),Cu.reset();var te,re=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==w?w:{password:!0},ne=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k,headTitleMutations:"all"===k}:k||{};!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 ie=0,oe=function(e){for(var t,r=_(H||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return I&&!ee&&(e=I(e)),e};du=function(e,i){var o,s=e;if(s.timestamp=ac(),!(null==(o=Bc[0])?void 0:o.isFrozen())||s.type===kc.FullSnapshot||s.type===kc.IncrementalSnapshot&&s.data.source===Sc.Mutation||Bc.forEach(function(e){return e.unfreeze()}),Q)null==t||t(oe(s),i);else if(ee){var a={type:"rrweb",event:oe(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===kc.FullSnapshot)te=s,ie=0;else if(s.type===kc.IncrementalSnapshot){if(s.data.source===Sc.Mutation&&s.data.isAttachIframe)return;ie++;var c=n&&ie>=n,u=r&&s.timestamp-te.timestamp>r;(c||u)&&gu(!0)}};for(var se,ae=function(e){du({type:kc.IncrementalSnapshot,data:l({source:Sc.Mutation},e)})},ce=function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.Scroll},e)})},ue=function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.CanvasMutation},e)})},le=new yu({mutationCb:ae,adoptedStyleSheetCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.AdoptedStyleSheet},e)})}}),he=new Kc({mirror:Cu,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:F,wrappedEmit:du}),pe=_(H||[]);!(se=pe()).done;){var fe=se.value;fe.getMirror&&fe.getMirror({nodeMirror:Cu,crossOriginIframeMirror:he.crossOriginIframeMirror,crossOriginIframeStyleMirror:he.crossOriginIframeStyleMirror})}var de=new _u;mu=new vu({recordCanvas:D,mutationCb:ue,win:window,blockClass:o,blockSelector:a,mirror:Cu,sampling:O.canvas,dataURLOptions:A});var ge=new Qc({mutationCb:ae,scrollCb:ce,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:re,dataURLOptions:A,maskTextFn:C,maskInputFn:S,recordCanvas:D,inlineImages:G,sampling:O,slimDOMOptions:ne,iframeManager:he,stylesheetManager:le,canvasManager:mu,keepIframeSrcFn:Z,processedNodeManager:de},mirror:Cu});gu=function(e){if(void 0===e&&(e=!1),P){du({type:kc.Meta,data:{href:window.location.href,width:lc(),height:uc()}},e),le.reset(),ge.init(),Bc.forEach(function(e){return e.lock()});var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new $:n,o=r.blockClass,s=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 _e(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:Cu,blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:re,maskTextFn:C,maskInputFn:S,slimDOM:ne,dataURLOptions:A,recordCanvas:D,inlineImages:G,onSerialize:function(e){mc(e,Cu)&&he.addIframe(e),vc(e,Cu)&&le.trackLinkElement(e),yc(e)&&ge.addShadowRoot(tc(e),document)},onIframeLoad:function(e,t){he.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:Z});if(!t)return console.warn("Failed to snapshot the document");du({type:kc.FullSnapshot,data:{node:t,initialOffset:cc(window)}},e),Bc.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,Cu.getId(document))}};try{var me=[],ve=function(e){var t;return Uc(Yc)({mutationCb:ae,mousemoveCb:function(e,t){return du({type:kc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.MouseInteraction},e)})},scrollCb:ce,viewportResizeCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.ViewportResize},e)})},inputCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.Input},e)})},mediaInteractionCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.MediaInteraction},e)})},styleSheetRuleCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.StyleSheetRule},e)})},styleDeclarationCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.StyleDeclaration},e)})},canvasMutationCb:ue,fontCb:function(e){return du({type:kc.IncrementalSnapshot,data:l({source:Sc.Font},e)})},selectionCb:function(e){du({type:kc.IncrementalSnapshot,data:l({source:Sc.Selection},e)})},customElementCb:function(e){du({type:kc.IncrementalSnapshot,data:l({source:Sc.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:p,maskTextClass:d,maskTextSelector:m,maskInputOptions:re,inlineStylesheet:y,sampling:O,recordDOM:P,recordCanvas:D,inlineImages:G,userTriggeredOnInput:q,collectFonts:W,doc:e,maskInputFn:S,maskTextFn:C,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:ne,dataURLOptions:A,mirror:Cu,iframeManager:he,stylesheetManager:le,shadowDomManager:ge,processedNodeManager:de,canvasManager:mu,ignoreCSSAttributes:X,plugins:(null==(t=null==H?void 0:H.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return du({type:kc.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},x)};he.addLoadListener(function(e){try{me.push(ve(e.contentDocument))}catch(e){console.warn(e)}});var ye=function(){gu(),me.push(ve(document)),bu=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(me.push(rc("DOMContentLoaded",function(){du({type:kc.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&ye()})),me.push(rc("load",function(){du({type:kc.Load,data:{}}),"load"===B&&ye()},window))),function(){me.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),de.destroy(),bu=!1,Ac=void 0}}catch(e){console.warn(e)}}xu.addCustomEvent=function(e,t){if(!bu)throw new Error("please add custom event after start recording");du({type:kc.Custom,data:{tag:e,payload:t}})},xu.freezePage=function(){Bc.forEach(function(e){return e.freeze()})},xu.takeFullSnapshot=function(e){if(!bu)throw new Error("please take full snapshot after start recording");gu(e)},xu.mirror=Cu,(Su=ku||(ku={}))[Su.NotStarted=0]="NotStarted",Su[Su.Running=1]="Running",Su[Su.Stopped=2]="Stopped",xu.addCustomEvent,xu.freezePage,xu.takeFullSnapshot;var Iu=Object.defineProperty,Eu=function(e,t,r){return function(e,t,r){return t in e?Iu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":m(t))?t+"":t,r)},Ou=function(){function e(e){Eu(this,"fileName"),Eu(this,"functionName"),Eu(this,"lineNumber"),Eu(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}(),Mu=/(^|@)\S+:\d+/,Au=/^\s*at .*(\S+:\d+|\(native\))/m,Ru=/^(eval@)?(\[native code])?$/,Tu={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(Au)?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(Au)},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",""].indexOf(i[0])>-1?void 0:i[0];return new Ou({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(Ru)},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 Ou({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new Ou({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/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Ou({functionName:n,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function Pu(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;o1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}function Lu(e){return"[object Object]"===Object.prototype.toString.call(e)}function Du(e,t){if(0===t)return!0;for(var r,n=_(Object.keys(e));!(r=n()).done;){var i=r.value;if(Lu(e[i])&&Du(e[i],t-1))return!0}return!1}function Nu(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(Lu(s=t)&&Object.keys(s).length>r.numOfKeysLimit||"function"==typeof s||Lu(s)&&Du(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":m(t)))return t.toString()+"n";if(f(t,Event)){var a={};for(var c in t){var u=t[c];Array.isArray(u)?a[c]=Pu(u.length?u[0]:null):a[c]=u}return a}return f(t,Node)?f(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:f(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var Fu={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 Uu(e,t,r){var n,i=r?Object.assign({},Fu,r):Fu,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=Tu.parse(n).map(function(e){return e.toString()}),s=[Nu(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;f(t.reason,Error)?n=[Nu("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,i.stringifyOptions)]:(r=new Error,n=[Nu("Uncaught (in promise)",i.stringifyOptions),Nu(t.reason,i.stringifyOptions)]);var o=Tu.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=_(i.level);!(h=p()).done;){var d=h.value;c.push(g(n,d))}return function(){c.forEach(function(e){return e()})};function g(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;u0&&$u(Hu,r))}catch(e){Ju.call(new Ku(r),e)}}}function Ju(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&$u(Hu,t))}function Xu(e,t,r,n){for(var i=0;i0&&(t[r]=e)}),t},Pl.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):Pl.isArray(e)?(r=[],Pl.each(e,function(e){r.push(Pl.truncate(e,t))})):Pl.isObject(e)?(r={},Pl.each(e,function(e,n){r[n]=Pl.truncate(e,t)})):r=e,r},Pl.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]"===_l.apply(h)){for(c=h.length,o=0;o="0"&&il<="9";)t+=il,ul();if("."===il)for(t+=".";ul()&&il>="0"&&il<="9";)t+=il;if("e"===il||"E"===il)for(t+=il,ul(),"-"!==il&&"+"!==il||(t+=il,ul());il>="0"&&il<="9";)t+=il,ul();if(e=+t,isFinite(e))return e;cl("Bad number")},hl=function(){var e,t,r,n="";if('"'===il)for(;ul();){if('"'===il)return ul(),n;if("\\"===il)if(ul(),"u"===il){for(r=0,t=0;t<4&&(e=parseInt(ul(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof al[il])break;n+=al[il]}else n+=il}cl("Bad string")},pl=function(){for(;il&&il<=" ";)ul()},sl=function(){switch(pl(),il){case"{":return function(){var e,t={};if("{"===il){if(ul("{"),pl(),"}"===il)return ul("}"),t;for(;il;){if(e=hl(),pl(),ul(":"),Object.hasOwnProperty.call(t,e)&&cl('Duplicate key "'+e+'"'),t[e]=sl(),pl(),"}"===il)return ul("}"),t;ul(","),pl()}}cl("Bad object")}();case"[":return function(){var e=[];if("["===il){if(ul("["),pl(),"]"===il)return ul("]"),e;for(;il;){if(e.push(sl()),pl(),"]"===il)return ul("]"),e;ul(","),pl()}}cl("Bad array")}();case'"':return hl();case"-":return ll();default:return il>="0"&&il<="9"?ll():function(){switch(il){case"t":return ul("t"),ul("r"),ul("u"),ul("e"),!0;case"f":return ul("f"),ul("a"),ul("l"),ul("s"),ul("e"),!1;case"n":return ul("n"),ul("u"),ul("l"),ul("l"),null}cl('Unexpected "'+il+'"')}()}},function(e){var t;return ol=e,nl=0,il=" ",t=sl(),pl(),il&&cl("Syntax error"),t}),Pl.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=Pl.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(a127&&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},Pl.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]="-",Pl.map(e,function(e){return e.toString(16)}).join("")}};var Bl=["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"];Pl.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t=0}function n(t){if(!Sl.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,f=t.split(" "),d=[Sl];for(c=0;c-1){o=(i=n.split("#"))[0];var g=i[1],m=Sl.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-1};break;default:_=function(e){return e.getAttribute(b)}}for(d=[],p=0,u=0;u=3?t[2]:""},currentUrl:function(){return n.location.href},properties:function(e){return"object"!=typeof e&&(e={}),Pl.extend(Pl.strip_empty_properties({$os:Pl.info.os(),$browser:Pl.info.browser(Il,kl.vendor,Cl),$referrer:Sl.referrer,$referring_domain:Pl.info.referringDomain(Sl.referrer),$device:Pl.info.device(Il)}),{$current_url:Pl.info.currentUrl(),$browser_version:Pl.info.browserVersion(Il,kl.vendor,Cl),$screen_height:xl.height,$screen_width:xl.width,mp_lib:"web",$lib_version:fl.LIB_VERSION,$insert_id:Yl(),time:Pl.timestamp()/1e3},Pl.strip_empty_properties(e))},people_properties:function(){return Pl.extend(Pl.strip_empty_properties({$os:Pl.info.os(),$browser:Pl.info.browser(Il,kl.vendor,Cl)}),{$browser_version:Pl.info.browserVersion(Il,kl.vendor,Cl)})},mpPageViewProperties:function(){return Pl.strip_empty_properties({current_page_title:Sl.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 Yl=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},Zl=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Jl=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Xl=function(e){var t=Jl,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Zl);var i=e.match(t);return i?i[0]:""},Kl=function(){},Ql=null,eh=null;"undefined"!=typeof JSON&&(Ql=JSON.stringify,eh=JSON.parse),Ql=Ql||Pl.JSONEncode,eh=eh||Pl.JSONDecode,Pl.info=Pl.info,Pl.info.browser=Pl.info.browser,Pl.info.browserVersion=Pl.info.browserVersion,Pl.info.device=Pl.info.device,Pl.info.properties=Pl.info.properties,Pl.isBlockedUA=Pl.isBlockedUA,Pl.isEmptyObject=Pl.isEmptyObject,Pl.isObject=Pl.isObject,Pl.JSONDecode=Pl.JSONDecode,Pl.JSONEncode=Pl.JSONEncode,Pl.toArray=Pl.toArray,Pl.NPO=el;var th="mixpanelRecordingEvents",rh="mixpanelRecordingRegistry",nh=[th,rh],ih=function(e){this.dbPromise=null,this.storeName=e};function oh(e,t){mh(!0,e,t)}function sh(e,t){mh(!1,e,t)}function ah(e,t){return"1"===gh(e,t)}function ch(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n,r=t.navigator||{},i=!1;return Pl.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){Pl.includes([!0,1,"1","yes"],e)&&(i=!0)}),i}(t))return Ll.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"===gh(e,t);return r&&Ll.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function uh(e){return vh(e,function(e){return this.get_config(e)})}function lh(e){return vh(e,function(e){return this._get_config(e)})}function hh(e){return vh(e,function(e){return this._get_config(e)})}function ph(e,t){fh(t=t||{}).remove(dh(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function fh(e){return"localStorage"===(e=e||{}).persistenceType?Pl.localStorage:Pl.cookie}function dh(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function gh(e,t){return fh(t).get(dh(e,t))}function mh(e,t,r){Pl.isString(t)&&t.length?(fh(r=r||{}).set(dh(t,r),e?1:0,Pl.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})):Ll.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function vh(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=ch(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){Ll.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)}}ih.prototype._openDb=function(){return new tl(function(e,t){var r=n.indexedDB.open("mixpanelBrowserDb",1);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(e){var t=e.target.result;nh.forEach(function(e){t.createObjectStore(e)})}})},ih.prototype.init=function(){return n.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n.IDBDatabase?tl.resolve():tl.reject(e)})):tl.reject("indexedDB is not supported in this browser")},ih.prototype.isInitialized=function(){return!!this.dbPromise},ih.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new tl(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)):tl.reject(e)}.bind(this))},ih.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},ih.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},ih.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},ih.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var yh=Nl("lock"),_h=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||n.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||tl};_h.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(Pl.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 yh.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&&(zl(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(!zl(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}},this))};var bh=function(e){this.storage=e||n.localStorage};bh.prototype.init=function(){return tl.resolve()},bh.prototype.isInitialized=function(){return!0},bh.prototype.setItem=function(e,t){return new tl(Pl.bind(function(r,n){try{this.storage.setItem(e,Ql(t))}catch(e){n(e)}r()},this))},bh.prototype.getItem=function(e){return new tl(Pl.bind(function(t,r){var n;try{n=eh(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},bh.prototype.removeItem=function(e){return new tl(Pl.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var wh=Nl("batch"),kh=function(e,t){var r,i,o,s;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new bh,this.lock=new _h(e,{storage:t.sharedLockStorage||n.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||Pl.bind(wh.error,wh),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=Pl.bind(this._enqueuePersisted,this),i=t.enqueueThrottleMs,o=null,s=[],function(e){var t=this;return s.push(e),o||(o=new tl(function(e){setTimeout(function(){var n=r.apply(t,[s]);o=null,s=[],e(n)},i)})),o}):this.enqueuePersisted=Pl.bind(function(e){return this._enqueuePersisted([e])},this)};kh.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?tl.resolve():this.queueStorage.init().then(Pl.bind(function(){this.initialized=!0},this)).catch(Pl.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},kh.prototype.enqueue=function(e,t){var r={id:Yl(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),tl.resolve(!0))},kh.prototype._enqueuePersisted=function(e){var t=Pl.bind(function(){return this.ensureInit().then(Pl.bind(function(){return this.readFromStorage()},this)).then(Pl.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(Pl.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(Pl.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(Pl.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},kh.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.lengtho.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):tl.resolve(t)};var Sh=function(e,t){var r=[];return Pl.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};kh.prototype.removeItemsByID=function(e){var t={};if(Pl.each(e,function(e){t[e]=!0}),this.memQueue=Sh(this.memQueue,t),this.usePersistence){var r=Pl.bind(function(){return this.ensureInit().then(Pl.bind(function(){return this.readFromStorage()},this)).then(Pl.bind(function(e){return e=Sh(e,t),this.saveToStorage(e)},this)).then(Pl.bind(function(){return this.readFromStorage()},this)).then(Pl.bind(function(e){for(var r=0;r5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&a.push(t)}c[e.id]=t},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),tl.resolve();var u=Pl.bind(function(){return this.queue.removeItemsByID(Pl.map(o,function(e){return e.id})).then(Pl.bind(function(e){return Pl.each(o,Pl.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:o.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),tl.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),tl.resolve())},this))},this),l=Pl.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(Pl.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(Pl.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(h=n.navigator.onLine,!Pl.isUndefined(h)&&!h)||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),tl.resolve()}if(Pl.isObject(s)&&413===s.httpStatusCode){if(o.length>1){var l=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),tl.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),u()}return u()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var h},this),h={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(h.transport="sendBeacon"),xh.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,h).then(l)},this)).catch(Pl.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},Ih.prototype.reportError=function(e,t){if(xh.error.apply(xh.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){xh.error(t)}};var Eh=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},Oh=Nl("recorder"),Mh=n.CompressionStream,Ah={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},Rh=new Set([Sc.MouseMove,Sc.MouseInteraction,Sc.Scroll,Sc.ViewportResize,Sc.Input,Sc.TouchMove,Sc.MediaInteraction,Sc.Drag,Sc.Selection]),Th=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Kl,this._onMaxLengthReached=e.onMaxLengthReached||Kl,this._onBatchSent=e.onBatchSent||Kl,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=dl,this.recordMinMs=0;var t=zl(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new ih(th),this.batcher=new Ih(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Ah,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};Th.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},Th.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()dl&&(this.recordMaxMs=dl,Oh.critical("record_max_ms cannot be greater than "+dl+"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=Pl.info.currentUrl(),this.replayStartUrl=Pl.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=(new Date).getTime()+e}.bind(this);t();var r,n=this.getConfig("record_block_selector");""!==n&&null!==n||(n=void 0);try{this._stopRecording=this._rrwebRecord({emit:function(e){this.idleExpires&&this.idleExpires=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:n,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:this.getConfig("record_console")?[(r={stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}},{name:"rrweb/console@1",observer:Uu,options:r})]:[]})}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 i=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),i)}else Oh.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},Th.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},Th.prototype.isRrwebStopped=function(){return null===this._stopRecording},Th.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)},Th.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}},Th.deserialize=function(e,t){return new Th(Pl.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}))},Th.prototype._sendRequest=function(e,t,r,i){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=Pl.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.getConfig("api_routes").record+"?"+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})})},Th.prototype._flushEvents=uh(function(e,t,r){var i=e.length;if(i>0){for(var o=this.replayId,s=1/0,a=-1/0,c=!1,u=0;u=16.4&&o<16.6)}(Il,kl.vendor,Cl)){var f=new Blob([p],{type:"application/json"}).stream().pipeThrough(new Mh("gzip"));new Response(f).blob().then(function(e){h.format="gzip",this._sendRequest(o,h,e,r)}.bind(this))}else h.format="body",this._sendRequest(o,h,p,r)}}),Th.prototype.reportError=function(e,t){Oh.error.apply(Oh.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){Oh.error(t)}},Th.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?(new Date).getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},Th.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(Oh.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e};var Ph=function(e){this.idb=new ih(rh),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Ph.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Ph.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},Ph.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return tl.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."),tl.resolve())},Ph.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 Eh(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):tl.resolve(null)},Ph.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Ph.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))},Ph.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):tl.resolve()},Ph.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 Eh(e)}).map(function(e){return Th.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 tl.all(t)}.bind(this)).catch(this.handleError.bind(this)):tl.resolve([])};var Lh=Nl("recorder"),Dh=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||xu,this.sharedLockStorage=r,this.recordingRegistry=new Ph({mixpanelInstance:this.mixpanelInstance,errorReporter:Lh.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Dh.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){Lh.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){Lh.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:Pl.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=Th.deserialize(e.activeSerializedRecording,i):this.activeRecording=new Th(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}Lh.log("Recording already in progress, skipping startRecording.")},Dh.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))},Dh.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Dh.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return tl.resolve()},Dh.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),tl.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Lh.log("No resumable recording found."),null)}.bind(this))},Dh.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Dh.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(Dh.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n.__mp_recorder=Dh;var Nh="change",Fh="click",Uh="hashchange",Bh="load",jh="mp_locationchange",qh="popstate",zh="scrollend",Wh="scroll",Vh="submit",$h="visibilitychange",Gh=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Hh=["mp-include"],Yh=["mp-no-track"],Zh=Yh.concat(["mp-sensitive"]),Jh=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Xh={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},Kh={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},Qh={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},ep=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],tp=Nl("autocapture");function rp(e){for(var t={},r=np(e).split(" "),n=0;n0?t[0]:e.target||e.srcElement}function _p(){this.clicks=[]}function bp(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}_p.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=yp(e);if(!o||mp(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=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:c,timestamp:s}];return!1},bp.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return yp(e)},bp.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=vp(e),r=0;r=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},xp.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},xp.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},xp.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},xp.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;n0?r.processRecursively(e):r.processingActive=!1}},t)}else this.processingActive=!1},xp.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;wp.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}})}),Sp.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),kp.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,Cp)}catch(e){tp.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new bp(function(){e.recordChangeEvent()},Cp),this.shadowDOMObserver.start()}catch(e){tp.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},xp.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;ethis.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=Sl.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,n.addEventListener(e.eventType,this.listenerScrollDepth)}},Xp.prototype.initClickTracking=function(){n.removeEventListener(Fh,this.listenerClick),(this.getConfig(Up)||this.mp.get_config("record_heatmap_data"))&&(tp.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(Up)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Yp)}.bind(this),n.addEventListener(Fh,this.listenerClick))},Xp.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(Bp)||this.mp.get_config("record_heatmap_data")?(tp.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new xp(function(e){this.trackDomEvent(e,Zp)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(Bp);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(Fh,this.listenerDeadClick))):this.stopDeadClickTracking()},Xp.prototype.initInputTracking=function(){n.removeEventListener(Nh,this.listenerChange),this.getConfig(jp)&&(tp.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(jp)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),n.addEventListener(Nh,this.listenerChange))},Xp.prototype.initPageviewTracking=function(){if(n.removeEventListener(jh,this.listenerLocationchange),this.pageviewTrackingConfig()){tp.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Hp)),t&&(e=Pl.info.currentUrl()),this.listenerLocationchange=Fl(function(){if(!this.currentUrlBlocked()){var t=Pl.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===Ep?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(Hp)&&(e=t),n&&(this.lastScrollCheckpoint=0,tp.log("Path change: re-initializing scroll depth checkpoints")))}}.bind(this)),n.addEventListener(jh,this.listenerLocationchange)}},Xp.prototype.initRageClickTracking=function(){n.removeEventListener(Fh,this.listenerRageClick),(this._getClickTrackingConfig(zp)||this.mp.get_config("record_heatmap_data"))&&(tp.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new _p),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(zp);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,Jp))}.bind(this),n.addEventListener(Fh,this.listenerRageClick))},Xp.prototype.initScrollTracking=function(){if(n.removeEventListener(zh,this.listenerScroll),n.removeEventListener(Wh,this.listenerScroll),this.getConfig(Wp)){tp.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=dp(function(){if(this.getConfig(Wp)&&!this.currentUrlBlocked()){var e=this.getConfig(Np),t=(this.getConfig(Fp)||[]).slice().sort(function(e,t){return e-t}),r=n.scrollY,i=Pl.extend({$scroll_top:r},Hp);try{var o=Sl.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=c&&this.lastScrollCheckpoint=0;h--)c=this._mixpanel.persistence.load_queue(hf),u=c.pop(),a._mixpanel.persistence.save(),Pl.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(ff);if(!Pl.isUndefined(p)&&Pl.isArray(p)&&p.length)for(var f,d=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(ff,f),Pl.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(ff),f=p.pop(),a._mixpanel.persistence.save(),Pl.isEmptyObject(f)||a.remove(f,d)},mf.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},mf.prototype.set=mf.prototype.set,mf.prototype.set_once=mf.prototype.set_once,mf.prototype.unset=mf.prototype.unset,mf.prototype.increment=mf.prototype.increment,mf.prototype.append=mf.prototype.append,mf.prototype.remove=mf.prototype.remove,mf.prototype.union=mf.prototype.union,mf.prototype.track_charge=mf.prototype.track_charge,mf.prototype.clear_charges=mf.prototype.clear_charges,mf.prototype.delete_user=mf.prototype.delete_user,mf.prototype.toString=mf.prototype.toString;var vf,yf="__mps",_f="__mpso",bf="__mpus",wf="__mpa",kf="__mpap",Sf="__mpr",Cf="__mpu",xf="$people_distinct_id",If="__alias",Ef="__timers",Of=[yf,_f,bf,wf,kf,Sf,Cf,xf,If,Ef],Mf=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&&(Ll.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&Pl.localStorage.is_supported()?this.storage=Pl.localStorage:this.storage=Pl.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Mf.prototype.properties=function(){var e={};return this.load(),Pl.each(this.props,function(t,r){Pl.include(Of,r)||(e[r]=t)}),e},Mf.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Pl.extend({},e))}},Mf.prototype.upgrade=function(){var e,t;this.storage===Pl.localStorage?(e=Pl.cookie.parse(this.name),Pl.cookie.remove(this.name),Pl.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===Pl.cookie&&(t=Pl.localStorage.parse(this.name),Pl.localStorage.remove(this.name),t&&this.register_once(t))},Mf.prototype.save=function(){this.disabled||this.storage.set(this.name,Ql(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Mf.prototype.load_prop=function(e){return this.load(),this.props[e]},Mf.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Mf.prototype.clear=function(){this.remove(),this.props={}},Mf.prototype.register_once=function(e,t,r){return!!Pl.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),Pl.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},Mf.prototype.register=function(e,t){return!!Pl.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),Pl.extend(this.props,e),this.save(),!0)},Mf.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Mf.prototype.update_search_keyword=function(e){this.register(Pl.info.searchInfo(e))},Mf.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:Pl.info.referringDomain(e)||"$direct"},"")},Mf.prototype.get_referrer_info=function(){return Pl.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Mf.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)},Mf.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Mf.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Mf.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Mf.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Mf.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Mf.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Mf.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(af),o=this._get_or_create_queue(cf),s=this._get_or_create_queue(uf),a=this._get_or_create_queue(lf),c=this._get_or_create_queue(pf),u=this._get_or_create_queue(ff,[]),l=this._get_or_create_queue(hf,[]);r===yf?(Pl.extend(i,n),this._pop_from_people_queue(lf,n),this._pop_from_people_queue(pf,n),this._pop_from_people_queue(uf,n)):r===_f?(Pl.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(uf,n)):r===bf?Pl.each(n,function(e){Pl.each([i,o,a,c],function(t){e in t&&delete t[e]}),Pl.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===wf?(Pl.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(uf,n)):r===Cf?(Pl.each(n,function(e,t){Pl.isArray(e)&&(t in c||(c[t]=[]),Pl.each(e,function(e){Pl.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(uf,n)):r===Sf?(u.push(n),this._pop_from_people_queue(hf,n)):r===kf&&(l.push(n),this._pop_from_people_queue(uf,n)),Ll.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Ll.log(t),this.save()},Mf.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];Pl.isUndefined(r)||Pl.each(t,function(t,n){e===hf||e===ff?Pl.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},Mf.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Mf.prototype._get_queue_key=function(e){return e===af?yf:e===cf?_f:e===uf?bf:e===lf?wf:e===hf?kf:e===ff?Sf:e===pf?Cf:void Ll.error("Invalid queue:",e)},Mf.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=Pl.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},Mf.prototype.set_event_timer=function(e,t){var r=this.load_prop(Ef)||{};r[e]=t,this.props[Ef]=r,this.save()},Mf.prototype.remove_event_timer=function(e){var t=(this.load_prop(Ef)||{})[e];return Pl.isUndefined(t)||(delete this.props[Ef][e],this.save()),t};var Af,Rf=function(e,t){throw new Error(e+" not available in this build.")},Tf="mixpanel",Pf="base64",Lf="$device:",Df=n.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Nf=!Df&&-1===Il.indexOf("MSIE")&&-1===Il.indexOf("Mozilla"),Ff=null;kl.sendBeacon&&(Ff=function(){return kl.sendBeacon.apply(kl,arguments)});var Uf={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},Bf={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Uf,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:Pf,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Kl,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Kl,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:dl,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},jf=!1,qf=function(){},zf=function(e,t,r){var i,o=r===Tf?Af:Af[r];if(o&&0===vf)i=o;else{if(o&&!Pl.isArray(o))return void Ll.error("You have already initialized "+r);i=new qf}if(i._cached_groups={},i._init(e,t,r),i.people=new mf,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var s=Pl.info.campaignParams(null),a={},c=!1;Pl.each(s,function(e,t){a["initial_"+t]=e,e&&(c=!0)}),c&&i.people.set_once(a)}fl.DEBUG=fl.DEBUG||i.get_config("debug");var u=0===vf?"module":"snippet";return n.dispatchEvent(new n.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:i,source:u,token:e,name:r,info:Pl.info}})),!Pl.isUndefined(o)&&Pl.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};qf.prototype.init=function(e,t,r){if(Pl.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==Tf){var n=zf(e,t,r);return Af[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},qf.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var i={};if("api_payload_format"in t||(t.api_host||Bf.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json"),this.hooks={},this.set_config(Pl.extend({},Bf,i,t,{name:r,token:e,callback_fn:(r===Tf?r:Tf+"."+r)+"._jsc"})),this._jsc=Kl,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(Pl.localStorage.is_supported(!0)&&Df){if(this.init_batchers(),Ff&&n.addEventListener){var o=Pl.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"===Sl.visibilityState&&o()})}}else this._batch_requests=!1,Ll.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),Pl.each(this.get_batcher_configs(),function(e){Ll.log("Clearing batch queue "+e.queue_key),Pl.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new Mf(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=Pl.UUID();this.get_distinct_id()||this.register_once({distinct_id:Lf+s,$device_id:s},""),this.flags=new rf({getFullApiRoute:Pl.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:Pl.bind(this.get_config,this),setConfigFunc:Pl.bind(this.set_config,this),getPropertyFunc:Pl.bind(this.get_property,this),trackingFunc:Pl.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Xp(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},qf.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))Ll.log("Tab ID initialization skipped due to disable_persistence config");else if(Pl.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;!Pl.sessionStorage.get(r)&&Pl.sessionStorage.get(t)||Pl.sessionStorage.set(t,"$tab-"+Pl.UUID()),Pl.sessionStorage.set(r,"1"),this.tab_id=Pl.sessionStorage.get(t),n.addEventListener("beforeunload",function(){Pl.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.")},qf.prototype.get_tab_id=function(){return this.tab_id||null},qf.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return Ll.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new ih(rh),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}else Ll.critical("Browser does not support MutationObserver; skipping session recording")}),qf.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},qf.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},qf.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},qf.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},qf.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},qf.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},qf.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+Pl.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},qf.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},qf.prototype.__get_recorder=function(){return this._recorder},qf.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=Pl.info.campaignParams(null);Pl.each(e,function(e,t){this.unregister(t)}.bind(this))}},qf.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Sl.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(Pl.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Sl.referrer)},qf.prototype._dom_loaded=function(){Pl.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||Pl.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},qf.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(!jf)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},qf.prototype._prepare_callback=function(e,t){if(Pl.isUndefined(e))return null;if(Df)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},qf.prototype._send_request=function(e,t,r,n){var i=!0;if(Nf)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||!Pl.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=Pl.extend(o,r||{}),Df||(r.method="GET");var a="POST"===r.method,c=Ff&&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),Df||(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),Pl.extend(t,this.get_config("api_extra_query_params")),e+="?"+Pl.HTTPBuildQuery(t);var l=this;if("img"in t){var h=Sl.createElement("img");h.src=e,Sl.body.appendChild(h)}else if(c){try{i=Ff(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(Df)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"),Pl.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=Pl.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=Sl.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=Sl.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},qf.prototype._execute_array=function(e){var t,r=[],n=[],i=[];Pl.each(e,function(e){e&&(t=e[0],Pl.isArray(t)?i.push(e):"function"==typeof e?e.call(this):Pl.isArray(e)&&"alias"===t?r.push(e):Pl.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){Pl.each(e,function(e){if(Pl.isArray(e[0])){var r=t;Pl.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)},qf.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},qf.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},qf.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=Pl.bind(function(e){return new Ih(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:Pl.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:Pl.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:Pl.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()},qf.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,Pl.each(this.request_batchers,function(e){e.start()}))},qf.prototype.stop_batch_senders=function(){this._batch_requests=!1,Pl.each(this.request_batchers,function(e){e.stop(),e.clear()})},qf.prototype.push=function(e){this._execute_array([e])},qf.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},qf.prototype._encode_data_for_request=function(e){var t=Ql(e);return this.get_config("api_payload_format")===Pf&&(t=Pl.base64Encode(t)),{data:t}},qf.prototype._track_or_batch=function(e,t){var r=Pl.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Kl;var a=!0,c=Pl.bind(function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r?(Ll.log("MIXPANEL REQUEST:"),Ll.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},qf.prototype.track=uh(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=Kl),Pl.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=Pl.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!Pl.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")?Pl.info.marketingParams():{};t=Pl.extend({},Pl.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");Pl.isArray(l)?Pl.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l);var h={event:e,properties:t};return 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)}n(0)}}),qf.prototype.set_group=uh(function(e,t,r){Pl.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),qf.prototype.add_group=uh(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)}),qf.prototype.remove_group=uh(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)}),qf.prototype.track_with_groups=uh(function(e,t,r,n){var i=Pl.extend({},t||{});return Pl.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),qf.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},qf.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},qf.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 gf)._init(this,e,t),this._cached_groups[r]=n),n},qf.prototype.track_pageview=uh(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=Pl.extend(Pl.info.mpPageViewProperties(),Pl.info.campaignParams(),Pl.info.clickParams()),i=Pl.extend({},n,e);return this.track(r,i)}),qf.prototype.track_links=function(){return this._track_dom.call(this,of,arguments)},qf.prototype.track_forms=function(){return this._track_dom.call(this,sf,arguments)},qf.prototype.time_event=function(e){Pl.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 Wf={persistent:!0},Vf=function(e){var t;return t=Pl.isObject(e)?e:Pl.isUndefined(e)?{}:{days:e},Pl.extend({},Wf,t)};qf.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=Vf(t);n.persistent?this.persistence.register(e,n.days):Pl.extend(this.unpersisted_superprops,e)}},qf.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=Vf(r);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),Pl.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},qf.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);null!==r&&(e=r[0],t=r[1],(t=Vf(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},qf.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},qf.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(Lf))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(If)&&(this.unregister(If),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()},qf.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=Pl.UUID();this.register_once({distinct_id:Lf+e,$device_id:e},""),this._check_and_start_session_recording()},qf.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},qf.prototype.alias=function(e,t){if(e===this.get_property(xf))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return Pl.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(If,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)},qf.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},qf.prototype.set_config=function(e){Pl.isObject(e)&&(Pl.extend(this.config,e),e.batch_size&&Pl.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),fl.DEBUG=fl.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),Pl.isObject(e.hooks)&&(this.hooks={},Pl.each(e.hooks,function(e,t){if(Pl.isFunction(e))this.hooks[t]=[e];else if(Pl.isArray(e)){this.hooks[t]=[];for(var r=0;r