1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a4f0a06e-f913-42d1-902a-8d2d613becc8",e._sentryDebugIdIdentifier="sentry-dbid-a4f0a06e-f913-42d1-902a-8d2d613becc8")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[89933],{14679:(e,t,r)=>{r.d(t,{A:()=>aL});var n,i,o,s=r(15376).Buffer,a=r(95704);if("undefined"==typeof window){var c={hostname:""};n9={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:c,referrer:""},screen:{width:0,height:0},location:c,addEventListener:function(){},removeEventListener:function(){}}}else n9=window;function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){r(e);return}a.done?t(c):Promise.resolve(c).then(n,i)}function h(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){l(o,n,i,s,a,"next",e)}function a(e){l(o,n,i,s,a,"throw",e)}s(void 0)})}}function p(e,t,r){return(p=k()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&_(i,r.prototype),i}).apply(null,arguments)}function d(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}function v(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function y(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function w(e){var t="function"==typeof Map?new Map:void 0;return(w=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw 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,r)}function r(){return p(e,arguments,g(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)})(e)}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}function S(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,void 0)}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function C(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var c=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}function I(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var x=Object.defineProperty,E=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?x(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},O=Object.defineProperty,M=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?O(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},R=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(R||{}),A={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},T={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},P={};function D(e){if(P[e])return P[e];var t=globalThis[e],r=t.prototype,n=e in A?A[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in T?T[e]:void 0,s=!!(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 P[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;if(document.body.removeChild(a),!u)return r;return P[e]=u}catch(e){return r}}var N={};function L(e,t,r){var n,i=e+"."+String(r);if(N[i])return N[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(D(e),r))?void 0:n.get;return o?(N[i]=o,o.call(t)):t[r]}var F={childNodes:function(e){return L("Node",e,"childNodes")},parentNode:function(e){return L("Node",e,"parentNode")},parentElement:function(e){return L("Node",e,"parentElement")},textContent:function(e){return L("Node",e,"textContent")},host:function(e){return e&&"host"in e?L("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?L("Element",e,"shadowRoot"):null}};function U(e){return e.nodeType===e.ELEMENT_NODE}function B(e){var t=e&&"host"in e&&"mode"in e&&F.host(e)||null;return!!(t&&"shadowRoot"in t&&F.shadowRoot(t)===e)}function j(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function q(e){try{var t,r=e.rules||e.cssRules;if(!r)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,function(e){return z(e,n)}).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function z(e,t){if("styleSheet"in e){var r;try{r=q(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?Q(r,e.styleSheet.href):r}var n=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?Q(n,t):n}var W=function(){function e(){M(this,"idNodeMap",new Map),M(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,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 V(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",c=i&&$(i);return(r[n.toLowerCase()]||c&&r[c])&&(a=s?s(a,t):"*".repeat(a.length)),a}function $(e){return e.toLowerCase()}var G="__rrweb_original__";function H(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?$(t):null}function Y(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var Z=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,J=/^(?:[a-z+]+:)?\/\//i,X=/^www\..*/i,K=/^(data:)([^,]*),(.*)/i;function Q(e,t){return(e||"").replace(Z,function(e,r,n,i,o,s){var a=n||o||s,c=r||i||"";if(!a)return e;
1if(J.test(a)||X.test(a)||K.test(a))return"url("+c+a+c+")";if("/"===a[0])return"url("+c+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a)+c+")";var u=t.split("/"),l=a.split("/");u.pop();for(var h,p,d=S(l);!(p=d()).done;){var f=p.value;"."!==f&&(".."===f?u.pop():u.push(f))}return"url("+c+u.join("/")+c+")"})}function ee(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var et=1,er=RegExp("[^a-z0-9-_:]");function en(){return et++}var ei=/^[^ \t\n\r\u000c]+/,eo=/^[, \t\n\r\u000c]+/,es=new WeakMap;function ea(e,t){return t&&""!==t.trim()?ec(e,t):t}function ec(e,t){var r=es.get(e);if(r||(r=e.createElement("a"),es.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eu(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return ea(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return ea(e,n);if("srcset"===r)return 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(eo),!(r>=t.length);){var o=n(ei);if(","===o.slice(-1))o=ea(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=ea(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}else"("===c&&(a=!0);s+=c,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return Q(n,ec(e));else if("object"===t&&"data"===r)return ea(e,n);return n}function el(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eh(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eh(F.parentNode(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&eh(F.parentNode(e),t,r)}function ep(e,t,r,n){var i;if(U(e)){if(i=e,!F.childNodes(i).length)return!1}else{if(null===F.parentElement(e))return!1;i=F.parentElement(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(eh(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 ed(e){return null==e?"":e.toLowerCase()}function ef(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,d=void 0===p?{}:p,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,y=t.dataURLOptions,_=void 0===y?{}:y,b=t.inlineImages,w=void 0!==b&&b,k=t.recordCanvas,C=void 0!==k&&k,I=t.onSerialize,x=t.onIframeLoad,E=t.iframeLoadTimeout,O=void 0===E?5e3:E,M=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,T=void 0===A?5e3:A,P=t.keepIframeSrcFn,D=void 0===P?function(){return!1}:P,N=t.newlyAddedElement,L=t.cssCaptured,z=t.needsMask,W=t.preserveWhiteSpace,Z=void 0===W||W;z||(z=ep(e,s,a,void 0===z));var J=function(e,t){var r,n,i,o,s,a,c,u,l,h,p,d=t.doc,f=t.mirror,g=t.blockClass,m=t.blockSelector,y=t.needsMask,_=t.inlineStylesheet,b=t.maskInputOptions,w=t.maskTextFn,k=t.maskInputFn,S=t.dataURLOptions,C=t.inlineImages,I=t.recordCanvas,x=t.keepIframeSrcFn,E=t.newlyAddedElement,O=t.cssCaptured,M=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(d,f);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:R.Document,childNodes:[],compatMode:e.compatMode};return{type:R.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:R.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:M};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,g=t.newlyAddedElement,m=t.rootId,y=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),_=function(e){if(v(e,HTMLFormElement))return"form";var t=$(e.tagName);return er.test(t)?"div":t}(e),b={},w=e.attributes.length,k=0;k<w;k++){var S=e.attributes[k];el(_,S.name,S.value)||(b[S.name]=eu(n,_,$(S.name),S.value))}if("link"===_&&s){var C=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),I=null;
1C&&(I=q(C)),I&&(delete b.rel,delete b.href,b._cssText=I)}if("style"===_&&e.sheet){var x=q(e.sheet);x&&(e.childNodes.length>1&&(x=(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=ee(e,r),a=s.length/e.length,c=1;c<n.length;c++)if(n[c].textContent&&"string"==typeof n[c].textContent){for(var u=ee(n[c].textContent,r),l=3;l<u.length&&(u[l].match(/[a-zA-Z0-9]/)||-1!==u.indexOf(u.substring(0,l),1));l++);for(;l<u.length;l++){var h=u.substring(0,l),p=s.split(h),d=-1;if(2===p.length)d=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[c-1].textContent)d=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&&(d=s.indexOf(h));if(p.length>=2&&l>100){var f=n[c-1].textContent;if(f&&"string"==typeof f){var g=ee(f).length;d=s.indexOf(h,g)}-1===d&&(d=p[0].length)}if(-1!==d){for(var m=Math.floor(d/a);m>0&&m<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=ee(e.substring(0,m),r);if(v.length===d){i.push(e.substring(0,m)),e=e.substring(m),s=s.substring(d);break}v.length<d?m+=Math.max(1,Math.floor((d-v.length)/a)):m-=Math.max(1,Math.floor((v.length-d)*a))}break}}}}return i.push(e),i})(x,e).join("/* rr_split */")),b._cssText=x)}if("input"===_||"textarea"===_||"select"===_){var E=e.value,O=e.checked;"radio"!==b.type&&"checkbox"!==b.type&&"submit"!==b.type&&"button"!==b.type&&E?b.value=V({element:e,type:H(e),tagName:_,value:E,maskInputOptions:c,maskInputFn:u}):O&&(b.checked=O)}if("option"===_&&(e.selected&&!c.select?b.selected=!0:delete b.selected),"dialog"===_&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===_&&d){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;if(new Uint32Array((G in i?i[G]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(b.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var M=e.toDataURL(h.type,h.quality),A=n.createElement("canvas");A.width=e.width,A.height=e.height,M!==A.toDataURL(h.type,h.quality)&&(b.rr_dataURL=M)}}if("img"===_&&p){n5||(n6=(n5=n.createElement("canvas")).getContext("2d"));var T=e.currentSrc||e.getAttribute("src")||"<unknown-src>",P=e.crossOrigin,D=function(){e.removeEventListener("load",D);try{n5.width=e.naturalWidth,n5.height=e.naturalHeight,n6.drawImage(e,0,0),b.rr_dataURL=n5.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?D():e.addEventListener("load",D);return}console.warn("Cannot inline img src="+T+"! Error: "+t)}"anonymous"===e.crossOrigin&&(P?b.crossOrigin=P:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?D():e.addEventListener("load",D)}if("audio"===_||"video"===_){var N=b;N.rr_mediaState=e.paused?"paused":"played",N.rr_mediaCurrentTime=e.currentTime,N.rr_mediaPlaybackRate=e.playbackRate,N.rr_mediaMuted=e.muted,N.rr_mediaLoop=e.loop,N.rr_mediaVolume=e.volume}if(!(void 0!==g&&g)&&(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),y){var L=e.getBoundingClientRect(),F=L.width,U=L.height;b={class:b.class,rr_width:""+F+"px",rr_height:""+U+"px"}}"iframe"!==_||f(b.src)||(e.contentDocument||(b.rr_src=b.src),delete b.src);try{customElements.get(_)&&(r=!0)}catch(e){}return{type:R.Element,tagName:_,attributes:b,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:y,rootId:m,isCustom:r}}(e,{doc:d,blockClass:g,blockSelector:m,inlineStylesheet:_,maskInputOptions:void 0===b?{}:b,maskInputFn:k,dataURLOptions:void 0===S?{}:S,inlineImages:C,recordCanvas:I,keepIframeSrcFn:x,newlyAddedElement:void 0!==E&&E,rootId:M});case e.TEXT_NODE:return r=e,i=(n={doc:d,needsMask:y,maskTextFn:w,rootId:M,cssCaptured:void 0!==O&&O}).needsMask,o=n.maskTextFn,s=n.rootId,a=n.cssCaptured,u=(c=F.parentNode(r))&&c.tagName,l="",h="STYLE"===u||void 0,(p="SCRIPT"===u||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=F.textContent(r),h&&l&&(l=Q(l,ec(n.doc)))),!h&&!p&&l&&i&&(l=o?o(l,F.parentElement(r)):l.replace(/[\S]/g,"*")),{type:R.Text,textContent:l||"",rootId:s};case e.CDATA_SECTION_NODE:return{type:R.CDATA,textContent:"",rootId:M};case e.COMMENT_NODE:return{type:R.Comment,textContent:F.textContent(e)||"",rootId:M};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:_,inlineImages:w,recordCanvas:C,keepIframeSrcFn:D,newlyAddedElement:void 0!==N&&N,cssCaptured:void 0!==L&&L});if(!J)return console.warn(e,"not serialized"),null;eo=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===R.Comment)return!0;
1if(e.type===R.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===Y(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ed(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ed(e.attributes.name)||"icon"===ed(e.attributes.rel)||"apple-touch-icon"===ed(e.attributes.rel)||"shortcut icon"===ed(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ed(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ed(e.attributes.property).match(/^(og|twitter|fb):/)||ed(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ed(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ed(e.attributes.name)||"googlebot"===ed(e.attributes.name)||"bingbot"===ed(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ed(e.attributes.name)||"generator"===ed(e.attributes.name)||"framework"===ed(e.attributes.name)||"publisher"===ed(e.attributes.name)||"progid"===ed(e.attributes.name)||ed(e.attributes.property).match(/^article:/)||ed(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ed(e.attributes.name)||"yandex-verification"===ed(e.attributes.name)||"csrf-token"===ed(e.attributes.name)||"p:domain_verify"===ed(e.attributes.name)||"verify-v1"===ed(e.attributes.name)||"verification"===ed(e.attributes.name)||"shopify-checkout-api-token"===ed(e.attributes.name)))return!0}}return!1}(J,m)&&(Z||J.type!==R.Text||J.textContent.replace(/^\s+|\s+$/gm,"").length)?en():-2;var X=Object.assign(J,{id:eo});if(n.add(e,X),-2===eo)return null;I&&I(e);var K=!u;if(X.type===R.Element){K=K&&!X.needBlock,delete X.needBlock;var et=F.shadowRoot(e);et&&j(et)&&(X.isShadowHost=!0)}if((X.type===R.Document||X.type===R.Element)&&K){m.headWhitespace&&X.type===R.Element&&"head"===X.tagName&&(Z=!1);var ei={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:u,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:_,inlineImages:w,recordCanvas:C,preserveWhiteSpace:Z,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:D,cssCaptured:!1};if(X.type===R.Element&&"textarea"===X.tagName&&void 0!==X.attributes.value);else{X.type===R.Element&&void 0!==X.attributes._cssText&&"string"==typeof X.attributes._cssText&&(ei.cssCaptured=!0);for(var eo,es,ea=S(Array.from(F.childNodes(e)));!(es=ea()).done;){var eh=ef(es.value,ei);eh&&X.childNodes.push(eh)}}var eg=null;if(U(e)&&(eg=F.shadowRoot(e)))for(var em,ev=S(Array.from(F.childNodes(eg)));!(em=ev()).done;){var ey=ef(em.value,ei);ey&&(j(eg)&&(ey.isShadow=!0),X.childNodes.push(ey))}}var e_=F.parentNode(e);return e_&&B(e_)&&j(e_)&&(X.isShadow=!0),X.type===R.Element&&"iframe"===X.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()});return}var a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&x){var r=ef(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:_,inlineImages:w,recordCanvas:C,preserveWhiteSpace:Z,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:D});r&&x(e,r)}},O),X.type===R.Element&&"link"===X.tagName&&"string"==typeof X.attributes.rel&&("stylesheet"===X.attributes.rel||"preload"===X.attributes.rel&&"string"==typeof X.attributes.href&&"css"===Y(X.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=ef(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:_,inlineImages:w,recordCanvas:C,preserveWhiteSpace:Z,onSerialize:I,onIframeLoad:x,iframeLoadTimeout:O,onStylesheetLoad:M,stylesheetLoadTimeout:T,keepIframeSrcFn:D});t&&M(e,t)}},T),X}var eg={exports:{}},em=String,ev=function(){return{isColorSupported:!1,reset:em,bold:em,dim:em,italic:em,underline:em,inverse:em,hidden:em,strikethrough:em,black:em,red:em,green:em,yellow:em,blue:em,magenta:em,cyan:em,white:em,gray:em,bgBlack:em,bgRed:em,bgGreen:em,bgYellow:em,bgBlue:em,bgMagenta:em,bgCyan:em,bgWhite:em}};
1eg.exports=ev(),eg.exports.createColors=ev;var ey=eg.exports,e_=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eb=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}m(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=ey.isColorSupported),e_&&e&&(i=e_(i));var o=i.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=ey.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error));eb.default=eb;var ew={};ew.isClean=Symbol("isClean"),ew.my=Symbol("my");var ek={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},eS=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){for(var 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"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return ek[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=ek[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;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)},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 Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function eC(e,t){new eS(t).stringify(e)}eS.default=eS,eC.default=eC;var eI=ew.isClean,ex=ew.my,eE=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[eI]=!1,this[ex]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":b(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(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 eb(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[eI]){this[eI]=!1;for(var e=this;e=e.parent;)e[eI]=!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);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new eS().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":b(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=eC),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},d(e,[{key:"proxyOf",get:function(){return this}}]),e}();eE.default=eE;var eO=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=f({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return m(t,e),d(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(eE);eO.default=eO;var eM=e_.SourceMapConsumer,eR=e_.SourceMapGenerator,eA=e_.existsSync,eT=e_.readFileSync,eP=e_.dirname,eD=e_.join,eN=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eP(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new eM(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),s?s.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":b(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=eP(e),eA(e))return this.mapFile=e,eT(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(v(t,eM))return eR.fromSourceMap(t).toString();else if(v(t,eR))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=eD(eP(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}();eN.default=eN;var eL=e_.SourceMapConsumer,eF=e_.SourceMapGenerator,eU=e_.fileURLToPath,eB=e_.pathToFileURL,ej=e_.isAbsolute,eq=e_.resolve,ez=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,eW=Symbol("fromOffsetCache"),eV=!!(eL&&eF),e$=!!(eq&&ej),eG=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":b(e))==="object"&&!e.toString)throw 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&&(!e$||/^\w+:\/\//.test(t.from)||ej(t.from)?this.file=t.from:this.file=eq(t.from)),e$&&eV){var r=new eN(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ez(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":b(t))==="object"){var i,o,s,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 eb(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 eb(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&&(eB&&(i.input.url=eB(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[eW])a=this[eW];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[eW]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o<u;)if(e<a[c=o+(u-o>>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:eq(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=ej(a.source)?eB(a.source):new URL(a.source,this.map.consumer().sourceRoot||eB(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(eU)c.file=eU(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=f({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},d(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();eG.default=eG,e_&&e_.registerInput&&e_.registerInput(eG);var eH=e_.SourceMapConsumer,eY=e_.SourceMapGenerator,eZ=e_.dirname,eJ=e_.relative,eX=e_.resolve,eK=e_.sep,eQ=e_.pathToFileURL,e0=!!(eH&&eY),e1=!!(eZ&&eX&&eJ&&eK),e2=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||eZ(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new eH(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),e1&&e0&&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=eY.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new eY({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new eY({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):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=r.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):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.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||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?eZ(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=eZ(eX(r,this.mapOpts.annotation)));var n=eJ(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 eG(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return s?s.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(eQ){var r=eQ(e).toString();return this.memoizedFileURLs.set(e,r),r}throw 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;"\\"===eK&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),e3=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(eE);e3.default=e3;var e9=ew.isClean,e4=ew.my,e5=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(n8(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new eO(e)]}else if(e.selector)e=[new n7(e)];else if(e.name)e=[new ie(e)];else if(e.text)e=[new e3(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[e4]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[e9]&&function e(t){if(t[e9]=!1,t.proxyOf.nodes)for(var r,n=S(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},d(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}(eE);e5.registerParse=function(e){n8=e},e5.registerRule=function(e){n7=e},e5.registerAtRule=function(e){ie=e},e5.registerRoot=function(e){it=e},e5.default=e5,e5.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,ie.prototype):"rule"===e.type?Object.setPrototypeOf(e,n7.prototype):"decl"===e.type?Object.setPrototypeOf(e,eO.prototype):"comment"===e.type?Object.setPrototypeOf(e,e3.prototype):"root"===e.type&&Object.setPrototypeOf(e,it.prototype),e[e4]=!0,e.nodes&&e.nodes.forEac
1h(function(e){e5.rebuild(e)})};var e6=function(e){function t(t){var r;return(r=e.call(this,f({type:"document"},t))||this).nodes||(r.nodes=[]),r}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ir(new ii,this,e).stringify()},t}(e5);e6.registerLazyResult=function(e){ir=e},e6.registerProcessor=function(e){ii=e},e6.default=e6;var e8=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}();e8.default=e8;var e7=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 e8(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},d(e,[{key:"content",get:function(){return this.css}}]),e}();e7.default=e7;var te=/[\t\n\f\r "#'()/;[\\\]{}]/g,tt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tr=/.[\r\n"'(/\\]/,tn=/[\da-f]/i,ti=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}m(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(e5);ti.default=ti,e5.registerAtRule(ti);var to=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}m(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new io(new is,this,e).stringify()},t}(e5);to.registerLazyResult=function(e){io=e},to.registerProcessor=function(e){is=e},to.default=to,e5.registerRoot(to);var ts={comma:function(e){return ts.split(e,[","],!0)},space:function(e){return ts.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};ts.default=ts;var ta=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return m(t,e),d(t,[{key:"selectors",get:function(){return ts.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}(e5);ta.default=ta,e5.registerRule(ta);var tc=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=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>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;
1case 40:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else y("bracket");for(c=n;92===p.charCodeAt(c-1);)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||tr.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else y("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:te.lastIndex=g+1,te.test(p),n=0===te.lastIndex?p.length-1:te.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,tn.test(p.charAt(n)))){for(;tn.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(tt.lastIndex=g+1,tt.test(p),n=0===tt.lastIndex?p.length-1:tt.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},tu={empty:!0,space:!0},tl=function(){function e(e){this.input=e,this.root=new to,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 ti;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}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];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}else 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,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=S(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new e3;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=tc(this.input)},t.decl=function(e,t){var r,n,i=new eO;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[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)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.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 ta;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);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",tu[a]||tu[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new ta;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function th(e,t){var r=new tl(new eG(e,t));try{r.parse()}catch(e){throw e}return r.root}th.default=th,e5.registerParse(th);var tp=ew.isClean,td=ew.my,tf={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},tg={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},tm={Once:!0,postcssPlugin:!0,prepare:!0};function tv(e){return(void 0===e?"undefined":b(e))==="object"&&"function"==typeof e.then}function ty(e){var t=!1,r=tf[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function t_(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:ty(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function tb(e){return e[tp]=!1,e.nodes&&e.nodes.forEach(function(e){return tb(e)}),e}var tw={},tk=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":b(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=tb(r);else if(v(r,e)||v(r,e7))i=tb(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=th;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[td]&&e5.rebuild(i)}this.result=new e7(t,i,n),this.helpers=f({},tw,{postcss:tw,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.prepare?f({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":b(i))==="object")for(var o in i){if(!tg[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!tm[o])if("object"===b(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!tv(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[tp])return[3,14];o[tp]=!0,s=[t_(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!tv(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw c=d.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;return C(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=S(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,I(l())];case 16:d.sent(),d.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((void 0===e?"undefined":b(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(tv(r[0]))return Promise.all(r);return 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=eC;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new e2(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value;if(tv(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[tp];)n[tp]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=S(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(tv(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)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[tp]){a[tp]=!0,e.push(t_(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[tp]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[tp]=!0;for(var r,n=ty(e),i=S(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[tp]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},d(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();tk.registerPostcss=function(e){tw=e},tk.default=tk,to.registerLazyResult(tk),e6.registerLazyResult(tk);var tS=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new e7(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new e2(eC,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],c=s[1];a&&(this.result.css=a),c&&(this.result.map=c)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},d(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=th(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();tS.default=tS;var tC=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":b(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":b(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":b(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new tk(this,e,t):new tS(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function tI(e,t){if(Array.isArray(e))return e.map(function(e){return tI(e)});var r=e.inputs,n=y(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=i.value,a=f({},s,{__proto__:eG.prototype});a.map&&(a.map=f({},a.map,{__proto__:eN.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return tI(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=y(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new to(n);if("decl"===n.type)return new eO(n);if("rule"===n.type)return new ta(n);if("comment"===n.type)return new e3(n);if("atrule"===n.type)return new ti(n);else throw Error("Unknown node type: "+e.type)}function tx(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new tC(t)}tC.default=tC,to.registerProcessor(tC),e6.registerProcessor(tC),tI.default=tI,tx.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),a.env.LANG&&a.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new tC().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return tx([i(r)]).process(e,t)},i},tx.stringify=eC,tx.parse=th,tx.fromJSON=tI,tx.list=ts,tx.comment=function(e){return new e3(e)},tx.atRule=function(e){return new ti(e)},tx.decl=function(e){return new eO(e)},tx.rule=function(e){return new ta(e)},tx.root=function(e){return new to(e)},tx.document=function(e){return new e6(e)},tx.CssSyntaxError=eb,tx.Declaration=eO,tx.Container=e5,tx.Processor=tC,tx.Document=e6,tx.Comment=e3,tx.Warning=e8,tx.AtRule=ti,tx.Result=e7,tx.Input=eG,tx.Rule=ta,tx.Root=to,tx.Node=eE,tk.registerPostcss(tx),tx.default=tx;
1var tE=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(tx);tE.stringify,tE.fromJSON,tE.plugin,tE.parse,tE.list,tE.document,tE.comment,tE.atRule,tE.rule,tE.decl,tE.root,tE.CssSyntaxError,tE.Declaration,tE.Container,tE.Processor,tE.Document,tE.Comment,tE.Warning,tE.AtRule,tE.Result,tE.Input,tE.Rule,tE.Root,tE.Node;var tO=Object.defineProperty,tM=function(e,t,r){var n;return n=(void 0===t?"undefined":b(t))!=="symbol"?t+"":t,n in e?tO(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},tR={exports:{}},tA=String,tT=function(){return{isColorSupported:!1,reset:tA,bold:tA,dim:tA,italic:tA,underline:tA,inverse:tA,hidden:tA,strikethrough:tA,black:tA,red:tA,green:tA,yellow:tA,blue:tA,magenta:tA,cyan:tA,white:tA,gray:tA,bgBlack:tA,bgRed:tA,bgGreen:tA,bgYellow:tA,bgBlue:tA,bgMagenta:tA,bgCyan:tA,bgWhite:tA}};tR.exports=tT(),tR.exports.createColors=tT;var tP=tR.exports,tD=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return v(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),tN=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}m(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=tP.isColorSupported),tD&&e&&(i=tD(i));var o=i.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=tP.createColors(!0),l=u.bold,h=u.gray,p=u.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-c)+" | ";if(o===n.line){var u=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+u+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(w(Error));tN.default=tN;var tL={};tL.isClean=Symbol("isClean"),tL.my=Symbol("my");var tF={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},tU=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){for(var 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"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return tF[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=tF[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;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)},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 Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function tB(e,t){new tU(t).stringify(e)}tU.default=tU,tB.default=tB;var tj=tL.isClean,tq=tL.my,tz=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[tj]=!1,this[tq]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=S(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":b(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(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 tN(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[tj]){this[tj]=!1;for(var e=this;e=e.parent;)e[tj]=!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);
1else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new tU().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=S(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":b(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=tB),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},d(e,[{key:"proxyOf",get:function(){return this}}]),e}();tz.default=tz;var tW=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=f({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return m(t,e),d(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(tz);tW.default=tW;var tV=tD.SourceMapConsumer,t$=tD.SourceMapGenerator,tG=tD.existsSync,tH=tD.readFileSync,tY=tD.dirname,tZ=tD.join,tJ=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=tY(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new tV(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),s?s.from(t,"base64").toString():window.atob(t)}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":b(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
1if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=tY(e),tG(e))return this.mapFile=e,tH(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(v(t,tV))return t$.fromSourceMap(t).toString();else if(v(t,t$))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=tZ(tY(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}();tJ.default=tJ;var tX=tD.SourceMapConsumer,tK=tD.SourceMapGenerator,tQ=tD.fileURLToPath,t0=tD.pathToFileURL,t1=tD.isAbsolute,t2=tD.resolve,t3=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
1,t9=Symbol("fromOffsetCache"),t4=!!(tX&&tK),t5=!!(t2&&t1),t6=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":b(e))==="object"&&!e.toString)throw 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&&(!t5||/^\w+:\/\//.test(t.from)||t1(t.from)?this.file=t.from:this.file=t2(t.from)),t5&&t4){var r=new tJ(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+t3(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":b(t))==="object"){var i,o,s,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 tN(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 tN(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&&(t0&&(i.input.url=t0(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[t9])a=this[t9];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[t9]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,c,u=a.length-2;o<u;)if(e<a[c=o+(u-o>>1)])u=c-1;else if(e>=a[c+1])o=c+1;else{o=c;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:t2(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=t1(a.source)?t0(a.source):new URL(a.source,this.map.consumer().sourceRoot||t0(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(tQ)c.file=tQ(o);else throw Error("file: protocol is not available in this PostCSS build");var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=f({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},d(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t6.default=t6,tD&&tD.registerInput&&tD.registerInput(t6);var t8=tD.SourceMapConsumer,t7=tD.SourceMapGenerator,re=tD.dirname,rt=tD.relative,rr=tD.resolve,rn=tD.sep,ri=tD.pathToFileURL,ro=!!(t8&&t7),rs=!!(re&&rr&&rt&&rn),ra=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=S(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||re(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new t8(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),rs&&ro&&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=t7.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new t7({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new t7({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,c,u){if(r.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=r.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):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=r.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):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.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||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?re(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=re(rr(r,this.mapOpts.annotation)));var n=rt(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 t6(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return s?s.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ri){var r=ri(e).toString();return this.memoizedFileURLs.set(e,r),r}throw 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;"\\"===rn&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rc=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return m(t,e),t}(tz);rc.default=rc;var ru=tL.isClean,rl=tL.my,rh=function(e){function t(){return e.apply(this,arguments)||this}m(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=S(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.push(u)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=S(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
1else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=S(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var c in this.indexes)n<(r=this.indexes[c])&&(this.indexes[c]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=S(o);!(s=a()).done;){var c=s.value;this.proxyOf.nodes.splice(n,0,c)}for(var u in this.indexes)n<=(r=this.indexes[u])&&(this.indexes[u]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(ia(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=S(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,c=S(e);!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new tW(e)]}else if(e.selector)e=[new ic(e)];else if(e.name)e=[new iu(e)];else if(e.text)e=[new rc(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[rl]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ru]&&function e(t){if(t[ru]=!1,t.proxyOf.nodes)for(var r,n=S(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=S(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=S(a);!(o=c()).done;){var u=o.value;this.proxyOf.nodes.unshift(u)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=S(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){(!t.props||t.props.includes(n.prop))&&(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?v(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},d(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}(tz);rh.registerParse=function(e){ia=e},rh.registerRule=function(e){ic=e},rh.registerAtRule=function(e){iu=e},rh.registerRoot=function(e){il=e},rh.default=rh,rh.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,iu.prototype):"rule"===e.type?Object.setPrototypeOf(e,ic.prototype):"decl"===e.type?Object.setPrototypeOf(e,tW.prototype):"comment"===e.type?Object.setPrototypeOf(e,rc.prototype):"root"===e.type&&Object.setPrototypeOf(e,il.prototype),e[rl]=!0,e.nodes&&e.nodes.forEac
1h(function(e){rh.rebuild(e)})};var rp=function(e){function t(t){var r;return(r=e.call(this,f({type:"document"},t))||this).nodes||(r.nodes=[]),r}return m(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new ih(new ip,this,e).stringify()},t}(rh);rp.registerLazyResult=function(e){ih=e},rp.registerProcessor=function(e){ip=e},rp.default=rp;var rd=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}();rd.default=rd;var rf=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 rd(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},d(e,[{key:"content",get:function(){return this.css}}]),e}();rf.default=rf;var rg=/[\t\n\f\r "#'()/;[\\\]{}]/g,rm=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rv=/.[\r\n"'(/\\]/,ry=/[\da-f]/i,r_=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}m(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(rh);r_.default=r_,rh.registerAtRule(r_);var rb=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}m(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=S(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new id(new ig,this,e).stringify()},t}(rh);rb.registerLazyResult=function(e){id=e},rb.registerProcessor=function(e){ig=e},rb.default=rb,rh.registerRoot(rb);var rw={comma:function(e){return rw.split(e,[","],!0)},space:function(e){return rw.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=S(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:c?p===u&&(c=!1):'"'===p||"'"===p?(c=!0,u=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};rw.default=rw;var rk=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return m(t,e),d(t,[{key:"selectors",get:function(){return rw.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}(rh);rk.default=rk,rh.registerRule(rk);var rS=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,c,u,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=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>=f},nextToken:function(e){if(v.length)return v.pop();if(!(g>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(g)){case 10:case 32:case 9:case 13:case 12:n=g;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r);h=["space",p.slice(g,n)],g=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,g];break;
1case 40:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=g;break}else y("bracket");for(c=n;92===p.charCodeAt(c-1);)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||rv.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case 39:case 34:i=39===r?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=g+1;break}else y("string");for(c=n;92===p.charCodeAt(c-1);)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case 64:rg.lastIndex=g+1,rg.test(p),n=0===rg.lastIndex?p.length-1:rg.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case 92:for(n=g,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,ry.test(p.charAt(n)))){for(;ry.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:47===r&&42===p.charCodeAt(g+1)?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n]):(rm.lastIndex=g+1,rm.test(p),n=0===rm.lastIndex?p.length-1:rm.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h)),g=n}return g++,h}},position:function(){return g}}},rC={empty:!0,space:!0},rI=function(){function e(e){this.input=e,this.root=new rb,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 r_;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}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];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}else 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,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=S(e.entries());!(n=o()).done;){var s=n.value,a=s[0],c=s[1];if("("===(t=c[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(c);r=c}return!1},t.comment=function(e){var t=new rc;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=rS(this.input)},t.decl=function(e,t){var r,n,i=new tW;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[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)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
1e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(r=e[c])[1].toLowerCase()){i.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(i.raws.important=u);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.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 rk;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);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",rC[a]||rC[s]||","===u.slice(-1)?l=!1:u+=i[1]):u+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:u}}e[t]=u},t.rule=function(e){e.pop();var t=new rk;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function rx(e,t){var r=new rI(new t6(e,t));try{r.parse()}catch(e){throw e}return r.root}rx.default=rx,rh.registerParse(rx);var rE=tL.isClean,rO=tL.my,rM={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rR={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},rA={Once:!0,postcssPlugin:!0,prepare:!0};function rT(e){return(void 0===e?"undefined":b(e))==="object"&&"function"==typeof e.then}function rP(e){var t=!1,r=rM[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function rD(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:rP(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
1function rN(e){return e[rE]=!1,e.nodes&&e.nodes.forEach(function(e){return rN(e)}),e}var rL={},rF=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":b(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=rN(r);else if(v(r,e)||v(r,rf))i=rN(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=rx;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[rO]&&rh.rebuild(i)}this.result=new rf(t,i,n),this.helpers=f({},rL,{postcss:rL,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":b(e))==="object"&&e.prepare?f({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=S(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":b(i))==="object")for(var o in i){if(!rR[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!rA[o])if("object"===b(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return h(function(){var t,r,n,i,o,s,a,c,u,l,h,p;return C(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!rT(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[rE])return[3,14];o[rE]=!0,s=[rD(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!rT(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw c=d.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;return C(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=S(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,I(l())];case 16:d.sent(),d.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((void 0===e?"undefined":b(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(rT(r[0]))return Promise.all(r);return 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=tB;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new ra(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=S(this.plugins);!(e=t()).done;){var r=e.value;if(rT(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[rE];)n[rE]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=S(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=S(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
1if(rT(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)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[rE]){a[rE]=!0,e.push(rD(a));return}t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[rE]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[rE]=!0;for(var r,n=rP(e),i=S(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[rE]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},d(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();rF.registerPostcss=function(e){rL=e},rF.default=rF,rb.registerLazyResult(rF),rp.registerLazyResult(rF);var rU=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new rf(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new ra(tB,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],c=s[1];a&&(this.result.css=a),c&&(this.result.map=c)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},d(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=rx(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();rU.default=rU;var rB=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=S(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":b(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":b(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":b(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new rF(this,e,t):new rU(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function rj(e,t){if(Array.isArray(e))return e.map(function(e){return rj(e)});var r=e.inputs,n=y(e,["inputs"]);if(r){t=[];for(var i,o=S(r);!(i=o()).done;){var s=i.value,a=f({}
1,s,{__proto__:t6.prototype});a.map&&(a.map=f({},a.map,{__proto__:tJ.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return rj(e,t)})),n.source){var c=n.source,u=c.inputId;n.source=y(c,["inputId"]),null!=u&&(n.source.input=t[u])}if("root"===n.type)return new rb(n);if("decl"===n.type)return new tW(n);if("rule"===n.type)return new rk(n);if("comment"===n.type)return new rc(n);if("atrule"===n.type)return new r_(n);else throw Error("Unknown node type: "+e.type)}function rq(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new rB(t)}rB.default=rB,rb.registerProcessor(rB),rp.registerProcessor(rB),rj.default=rj,rq.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),a.env.LANG&&a.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new rB().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return rq([i(r)]).process(e,t)},i},rq.stringify=tB,rq.parse=rx,rq.fromJSON=rj,rq.list=rw,rq.comment=function(e){return new rc(e)},rq.atRule=function(e){return new r_(e)},rq.decl=function(e){return new tW(e)},rq.rule=function(e){return new rk(e)},rq.root=function(e){return new rb(e)},rq.document=function(e){return new rp(e)},rq.CssSyntaxError=tN,rq.Declaration=tW,rq.Container=rh,rq.Processor=rB,rq.Document=rp,rq.Comment=rc,rq.Warning=rd,rq.AtRule=r_,rq.Result=rf,rq.Input=t6,rq.Rule=rk,rq.Root=rb,rq.Node=tz,rF.registerPostcss(rq),rq.default=rq;var rz=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(rq);rz.stringify,rz.fromJSON,rz.plugin,rz.parse,rz.list,rz.document,rz.comment,rz.atRule,rz.rule,rz.decl,rz.root,rz.CssSyntaxError,rz.Declaration,rz.Container,rz.Processor,rz.Document,rz.Comment,rz.Warning,rz.AtRule,rz.Result,rz.Input,rz.Rule,rz.Root,rz.Node;var rW=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];tM(this,"parentElement",null),tM(this,"parentNode",null),tM(this,"ownerDocument"),tM(this,"firstChild",null),tM(this,"lastChild",null),tM(this,"previousSibling",null),tM(this,"nextSibling",null),tM(this,"ELEMENT_NODE",1),tM(this,"TEXT_NODE",3),tM(this,"nodeType"),tM(this,"nodeName"),tM(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!v(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},d(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),rV={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},r$={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},rG={};function rH(e){if(rG[e])return rG[e];var t=globalThis[e],r=t.prototype,n=e in rV?rV[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in r$?r$[e]:void 0,s=!!(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 rG[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;if(document.body.removeChild(a),!u)return r;return rG[e]=u}catch(e){return r}}var rY={};function rZ(e,t,r){var n,i=e+"."+String(r);if(rY[i])return rY[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(rH(e),r))?void 0:n.get;return o?(rY[i]=o,o.call(t)):t[r]}var rJ={};function rX(e,t,r){var n=e+"."+String(r);if(rJ[n])return rJ[n].bind(t);var i=rH(e)[r];return"function"!=typeof i?t[r]:(rJ[n]=i,i.bind(t))}function rK(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var rQ={childNodes:function(e){return rZ("Node",e,"childNodes")},parentNode:function(e){return rZ("Node",e,"parentNode")},parentElement:function(e){return rZ("Node",e,"parentElement")},textContent:function(e){return rZ("Node",e,"textContent")},contains:function(e,t){return rX("Node",e,"contains")(t)},getRootNode:function(e){return rX("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?rZ("ShadowRoot",e,"host"):null},shadowRoot:function(e){return e&&"shadowRoot"in e?rZ("Element",e,"shadowRoot"):null}};function r0(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var r1="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",r2={map:{},getId:function(){return console.error(r1),-1},getNode:function(){return console.error(r1),null},removeNodeFromMap:function(){console.error(r1)},has:function(){return console.error(r1),!1},reset:function(){console.error(r1)}};function r3(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>
1t?(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 r9(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 r9(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(r2=new Proxy(r2,{get:function(e,t,r){return"map"===t&&console.error(r1),Reflect.get(e,t,r)}}));var r4=Date.now;function r5(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=rQ.parentElement(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=rQ.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function r6(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function r8(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function r7(e){return e?e.nodeType===e.ELEMENT_NODE?e:rQ.parentElement(e):null}function ne(e,t,r,n){if(!e)return!1;var i=r7(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(eh(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function nt(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function nr(e){return!!e.changedTouches}function nn(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function ni(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function no(e){return!!e&&(v(e,rW)&&"shadowRoot"in e?!!e.shadowRoot:!!rQ.shadowRoot(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(r4=function(){return new Date().getTime()});var ns=function(){function e(){E(this,"id",1),E(this,"styleIDMap",new WeakMap),E(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){var r;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)},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 na(e){var t,r=null;return"getRootNode"in e&&(null==(t=rQ.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&rQ.host(rQ.getRootNode(e))&&(r=rQ.host(rQ.getRootNode(e))),r}function nc(e){var t=e.ownerDocument;return!!t&&(rQ.contains(t,e)||function(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=na(r);)r=t;return r}(e);return rQ.contains(t,r)}(e))}var nu=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}(nu||{}),nl=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}(nl||{}),nh=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}(nh||{}),np=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(np||{}),nd=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(nd||{}),nf=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}(nf||{}),ng=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}(ng||{}),nm=function(){function e(){E(this,"length",0),E(this,"head",null),E(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;
vendor: 5,427 bytes, line 1
1this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),nv=function(e,t){return e+"@"+t},ny=function(){function e(){var e=this;E(this,"frozen",!1),E(this,"locked",!1),E(this,"texts",[]),E(this,"attributes",[]),E(this,"attributeMap",new WeakMap),E(this,"removes",[]),E(this,"mapRemoves",[]),E(this,"movedMap",{}),E(this,"addedSet",new Set),E(this,"movedSet",new Set),E(this,"droppedSet",new Set),E(this,"removesSubTreeCache",new Set),E(this,"mutationCb"),E(this,"blockClass"),E(this,"blockSelector"),E(this,"maskTextClass"),E(this,"maskTextSelector"),E(this,"inlineStylesheet"),E(this,"maskInputOptions"),E(this,"maskTextFn"),E(this,"maskInputFn"),E(this,"keepIframeSrcFn"),E(this,"recordCanvas"),E(this,"inlineImages"),E(this,"slimDOMOptions"),E(this,"dataURLOptions"),E(this,"doc"),E(this,"mirror"),E(this,"iframeManager"),E(this,"stylesheetManager"),E(this,"shadowDomManager"),E(this,"canvasManager"),E(this,"processedNodeManager"),E(this,"unattachedDoc"),E(this,"processMutations",function(t){t.forEach(e.processMutation),e.emit()}),E(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new nm,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=rQ.parentNode(o);if(s&&nc(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var c=s.tagName;if("TEXTAREA"===c)return;"STYLE"===c&&e.addedSet.has(s)&&(a=!0)}var u=B(s)?e.mirror.getId(na(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=ef(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){nn(t,e.mirror)&&e.iframeManager.addIframe(t),ni(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),no(o)&&e.shadowDomManager.addShadowRoot(rQ.shadowRoot(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:u,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;)e.mirror.removeNodeFromMap(e.mapRemoves.shift());for(var s,a=S(e.movedSet);!(s=a()).done;){var c=s.value;(!nb(e.removesSubTreeCache,c,e.mirror)||e.movedSet.has(rQ.parentNode(c)))&&o(c)}for(var u,l=S(e.addedSet);!(u=l()).done;){var h=u.value;nw(e.droppedSet,h)||nb(e.removesSubTreeCache,h,e.mirror)?nw(e.movedSet,h)?o(h):e.droppedSet.add(h):o(h)}for(var p=null;n.length;){var d=null;if(p){var f=e.mirror.getId(rQ.parentNode(p.value)),g=i(p.value);-1!==f&&-1!==g&&(d=p)}if(!d)for(var m=n.tail;m;){var v=m;if(m=m.previous,v){var y=e.mirror.getId(rQ.parentNode(v.value));if(-1===i(v.value))continue;if(-1!==y){d=v;break}var _=v.value,b=rQ.parentNode(_);if(b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=rQ.host(b);if(-1!==e.mirror.getId(w)){d=v;break}}}}if(!d){for(;n.head;)n.removeNode(n.head.value);break}p=d.previous,n.removeNode(d.value),o(d.value)}var k={texts:e.texts.map(function(t){var r=t.node,n=rQ.parentNode(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),E(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(rQ.childNodes(t),function(e){return rQ.textContent(e)||""}).join("");r.attributes.value=V({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:H(t),value:n,maskInputFn:e.maskInputFn})}),E(this,"processMutation",function(t){if(!nt(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=rQ.textContent(t.target);ne(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:ep(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,r7(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=H(n);o=V({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(ne(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);
1if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!el(n.tagName,i))if(a.attributes[i]=eu(e.doc,$(n.tagName),$(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement("span");t.oldValue&&c.setAttribute("style",t.oldValue);for(var u,l=S(Array.from(n.style));!(u=l()).done;){var h=u.value,p=n.style.getPropertyValue(h),d=n.style.getPropertyPriority(h);p!==c.style.getPropertyValue(h)||d!==c.style.getPropertyPriority(h)?""===d?a.styleDiff[h]=p:a.styleDiff[h]=[p,d]:a._unchangedStyles[h]=[p,d]}for(var f,g=S(Array.from(c.style));!(f=g()).done;){var m=f.value;""===n.style.getPropertyValue(m)&&(a.styleDiff[m]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(ne(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=B(t.target)?e.mirror.getId(rQ.host(t.target)):e.mirror.getId(t.target);ne(t.target,e.blockClass,e.blockSelector,!1)||nt(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(n_(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(B(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=rQ.parentNode(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[nv(n,i)]?n_(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(B(t.target)&&j(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),rQ.childNodes(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),E(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(nt(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[nv(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!ne(t,e.blockClass,e.blockSelector,!1)&&(rQ.childNodes(t).forEach(function(t){return e.genAdds(t)}),no(t)&&rQ.childNodes(rQ.shadowRoot(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function n_(e,t){e.delete(t),rQ.childNodes(t).forEach(function(t){return n_(e,t)})}function nb(e,t,r){var n,i,o;return 0!==e.size&&(n=e,i=t,!!(o=rQ.parentNode(i))&&n.has(o))}function nw(e,t){return 0!==e.size&&function e(t,r){var n=rQ.parentNode(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var nk=function(e){return im?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(im&&!0===im(e))return;throw e}}:e},nS=[];function nC(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function nI(e,t){var r=new ny;nS.push(r),r.init(e);var n=new(rH("MutationObserver")).constructor(nk(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function nx(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return r0("scroll",nk(r3(nk(function(e){var s=nC(e);if(!(!s||ne(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var c=r5(r.defaultView);t({id:a,x:c.left,y:c.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}var nE=["INPUT","TEXTAREA","SELECT"],nO=new WeakMap;function nM(e){var t=[];if(nP("CSSGroupingRule")&&v(e.parentRule,CSSGroupingRule)||nP("CSSMediaRule")&&v(e.parentRule,CSSMediaRule)||nP("CSSSupportsRule")&&v(e.parentRule,CSSSupportsRule)||nP("CSSConditionRule")&&v(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function nR(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function nA(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(rQ.host(t));var c="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,u=(null==c?void 0:c.prototype)?Object.getOwnPropertyDescriptor(null==c?void 0:c.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&c&&u?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var e;return null==(e=u.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=u.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),nk(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})):function(){}}function nT(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};d=t,g=e.mutationCb,m=e.mousemoveCb,y=e.mouseInteractionCb,_=e.scrollCb,b=e.viewportResizeCb,w=e.inputCb,k=e.mediaInteractionCb,C=e.styleSheetRuleCb,I=e.styleDeclarationCb,x=e.canvasMutationCb,E=e.fontCb,O=e.selectionCb,M=e.customElementCb,e.mutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mutation&&d.mutation.apply(d,[].concat(t)),g.apply(void 0,[].concat(t))},e.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mousemove&&d.mousemove.apply(d,[].concat(t)),m.apply(void 0,[].concat(t))},e.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mouseInteraction&&d.mouseInteraction.apply(d,[].concat(t)),y.apply(void 0,[].concat(t))},e.scrollCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.scroll&&d.scroll.apply(d,[].concat(t)),_.apply(void 0,[].concat(t))},e.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.viewportResize&&d.viewportResize.apply(d,[].concat(t)),b.apply(void 0,[].concat(t))},e.inputCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.input&&d.input.apply(d,[].concat(t)),w.apply(void 0,[].concat(t))},e.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mediaInteaction&&d.mediaInteaction.apply(d,[].concat(t)),k.apply(void 0,[].concat(t))},e.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleSheetRule&&d.styleSheetRule.apply(d,[].concat(t)),C.apply(void 0,[].concat(t))},e.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleDeclaration&&d.styleDeclaration.apply(d,[].concat(t)),I.apply(void 0,[].concat(t))},e.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.canvasMutation&&d.canvasMutation.apply(d,[].concat(t)),x.apply(void 0,[].concat(t))},e.fontCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.font&&d.font.apply(d,[].concat(t)),E.apply(void 0,[].concat(t))},e.selectionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.selection&&d.selection.apply(d,[].concat(t)),O.apply(void 0,[].concat(t))},e.customElementCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.customElement&&d.customElement.apply(d,[].concat(t)),M.apply(void 0,[].concat(t))},e.recordDOM&&(eu=nI(e,e.doc));var n=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,c=[],u=r3(nk(function(e){var n=Date.now()-t;r(c.map(function(e){return e.timeOffset-=n,e}),e),c=[],t=null}),a),l=nk(r3(nk(function(e){var r=nC(e),n=nr(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=r4()),c.push({x:i,y:s,id:o.getId(r),timeOffset:r4()-t}),u("undefined"!=typeof DragEvent&&v(e,DragEvent)?nl.Drag:v(e,MouseEvent)?nl.MouseMove:nl.TouchMove)}),s,{trailing:!1})),h=[r0("mousemove",l,i),r0("touchmove",l,i),r0("drag",l,i)];return nk(function(){h.forEach(function(e){return e()})})}(e),i=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,c=[],u=null;return Object.keys(nh).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
1).forEach(function(e){var s=$(e),a=function(r){var s=nC(r);if(!ne(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=np.Mouse;break;case"touch":a=np.Touch;break;case"pen":a=np.Pen}a===np.Touch?nh[e]===nh.MouseDown?c="TouchStart":nh[e]===nh.MouseUp&&(c="TouchEnd"):np.Pen}else nr(r)&&(a=np.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===np.Touch||c.startsWith("Mouse")&&a===np.Mouse)&&(a=null)):nh[e]===nh.Click&&(a=u,u=null);var l=nr(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,d=l.clientY;nk(t)(f({type:nh[c],id:h,x:p,y:d},null!==a&&{pointerType:a}))}}};if(window.PointerEvent)switch(nh[e]){case nh.MouseDown:case nh.MouseUp:s=s.replace("mouse","pointer");break;case nh.TouchStart:case nh.TouchEnd:return}c.push(r0(s,a,r))}),nk(function(){c.forEach(function(e){return e()})})}(e),o=nx(e),s=(R={win:r},A=e.viewportResizeCb,T=R.win,P=-1,D=-1,r0("resize",nk(r3(nk(function(){var e=r6(),t=r8();(P!==e||D!==t)&&(A({width:Number(t),height:Number(e)}),P=e,D=t)}),200)),T)),a=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=nC(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=rQ.parentElement(t)),!(!t||!l||0>nE.indexOf(l)||ne(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,f=!1,g=H(t)||"";"radio"===g||"checkbox"===g?f=t.checked:(c[l.toLowerCase()]||c[g])&&(p=V({element:t,maskInputOptions:c,tagName:l,type:g,value:p,maskInputFn:u})),d(t,h?{text:p,isChecked:f,userTriggered:n}:{text:p,isChecked:f});var m=t.name;"radio"===g&&m&&f&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach(function(e){if(e!==t){var r=e.value;d(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function d(e,r){var i=nO.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){nO.set(e,r);var o=n.getId(e);nk(t)(f({},r,{id:o}))}}var g=("last"===l.input?["change"]:["input","change"]).map(function(e){return r0(e,nk(p),r)}),m=r.defaultView;if(!m)return function(){g.forEach(function(e){return e()})};var v=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),y=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&g.push.apply(g,[].concat(y.map(function(e){return r9(e[0],e[1],{set:function(){nk(p)({target:this,isTrusted:!1})}},!1,m)}))),nk(function(){g.forEach(function(e){return e()})})}(e),c=(N=e.mediaInteractionCb,L=e.blockClass,F=e.blockSelector,U=e.mirror,B=e.sampling,j=e.doc,z=[r0("play",(q=nk(function(e){return r3(nk(function(t){var r=nC(t);if(!(!r||ne(r,L,F,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;N({type:e,id:U.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),B.media||500)}))(nf.Play),j),r0("pause",q(nf.Pause),j),r0("seeked",q(nf.Seeked),j),r0("volumechange",q(nf.VolumeChange),j),r0("ratechange",q(nf.RateChange),j)],nk(function(){z.forEach(function(e){return e()})})),u=function(){},l=function(){},h=function(){},p=function(){};e.recordDOM&&(u=function(e,t){var r,n,i=e.styleSheetRuleCb,o=e.mirror,s=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var c=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(c,{apply:nk(function(e,t,r){var n=r[0],a=r[1],c=nR(t,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:a}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.addRule=function(e,t,r){return void 0===r&&(r=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",r])};var u=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:nk(function(e,t,r){var n=r[0],a=nR(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:n}]}),e.apply(t,r)}
1)}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:nk(function(e,t,r){var n=r[0],a=nR(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replace:n}),e.apply(t,r)})})),a.CSSStyleSheet.prototype.replaceSync&&(n=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:nk(function(e,t,r){var n=r[0],a=nR(t,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,replaceSync:n}),e.apply(t,r)})}));var l={};nD("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(nD("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),nD("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),nD("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];h[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(h[t].insertRule,{apply:nk(function(e,t,r){var n=r[0],a=r[1],c=nR(t.parentStyleSheet,o,s.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&i({id:u,styleId:l,adds:[{rule:n,index:[].concat(nM(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:nk(function(e,t,r){var n=r[0],a=nR(t.parentStyleSheet,o,s.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&i({id:c,styleId:u,removes:[{index:[].concat(nM(t),[n])}]}),e.apply(t,r)})})}),nk(function(){a.CSSStyleSheet.prototype.insertRule=c,a.CSSStyleSheet.prototype.deleteRule=u,r&&(a.CSSStyleSheet.prototype.replace=r),n&&(a.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:r}),l=nA(e,e.doc),W=e.styleDeclarationCb,G=e.mirror,Y=e.ignoreCSSAttributes,Z=e.stylesheetManager,X=(J=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,J.CSSStyleDeclaration.prototype.setProperty=new Proxy(X,{apply:nk(function(e,t,r){var n,i=r[0],o=r[1],s=r[2];if(Y.has(i))return X.apply(t,[i,o,s]);var a=nR(null==(n=t.parentRule)?void 0:n.parentStyleSheet,G,Z.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&W({id:c,styleId:u,set:{property:i,value:o,priority:s},index:nM(t.parentRule)}),e.apply(t,r)})}),K=J.CSSStyleDeclaration.prototype.removeProperty,J.CSSStyleDeclaration.prototype.removeProperty=new Proxy(K,{apply:nk(function(e,t,r){var n,i=r[0];if(Y.has(i))return K.apply(t,[i]);var o=nR(null==(n=t.parentRule)?void 0:n.parentStyleSheet,G,Z.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&W({id:s,styleId:a,remove:{property:i},index:nM(t.parentRule)}),e.apply(t,r)})}),h=nk(function(){J.CSSStyleDeclaration.prototype.setProperty=X,J.CSSStyleDeclaration.prototype.removeProperty=K}),e.collectFonts&&(p=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=rK(r.fonts,"add",function(e){return function(r){return setTimeout(nk(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),nk(function(){i.forEach(function(e){return e()})})}(e)));for(var d,g,m,y,_,b,w,k,C,I,x,E,O,M,R,A,T,P,D,N,L,F,U,B,j,q,z,W,G,Y,Z,J,X,K,Q,ee,et,er,en,ei,eo,es,ea,ec,eu,el,eh=(Q=e.doc,ee=e.mirror,et=e.blockClass,er=e.blockSelector,en=e.selectionCb,ei=!0,(eo=nk(function(){var e=Q.getSelection();if(e&&(!ei||null==e||!e.isCollapsed)){ei=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var i=e.getRangeAt(n),o=i.startContainer,s=i.startOffset,a=i.endContainer,c=i.endOffset;ne(o,et,er,!0)||ne(a,et,er,!0)||t.push({start:ee.getId(o),startOffset:s,end:ee.getId(a),endOffset:c})}en({ranges:t})}}))(),r0("selectionchange",eo)),ep=(es=e.doc,ea=e.customElementCb,(ec=es.defaultView)&&ec.customElements?rK(ec.customElements,"define",function(e){return function(t,r,n){try{ea({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,n])}}):function(){}),ed=[],ef=S(e.plugins);!(el=ef()).done;){var eg=el.value;ed.push(eg.observer(eg.callback,r,eg.options))}return nk(function(){nS.forEach(function(e){return e.reset()}),null==eu||eu.disconnect(),n(),i(),o(),s(),a(),c(),u(),l(),h(),p(),eh(),ep(),ed.forEach(function(e){return e()})})}function nP(e){return void 0!==window[e]}function nD(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var nN=function(){function e(e){E(this,"iframeIdToRemoteIdMap",new WeakMap),E(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
1return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),nL=function(){function e(e){E(this,"iframes",new WeakMap),E(this,"crossOriginIframeMap",new WeakMap),E(this,"crossOriginIframeMirror",new nN(en)),E(this,"crossOriginIframeStyleMirror"),E(this,"crossOriginIframeRootIdMap",new WeakMap),E(this,"mirror"),E(this,"mutationCb"),E(this,"wrappedEmit"),E(this,"loadListener"),E(this,"stylesheetManager"),E(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new nN(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case nu.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:nu.IncrementalSnapshot,data:{source:nl.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nu.Meta:case nu.Load:case nu.DomContentLoaded:break;case nu.Plugin:return t;case nu.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nu.IncrementalSnapshot:switch(t.data.source){case nl.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 nl.Drag:case nl.TouchMove:case nl.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nl.ViewportResize:return!1;case nl.MediaInteraction:case nl.MouseInteraction:case nl.Scroll:case nl.CanvasMutation:case nl.Input:return this.replaceIds(t.data,e,["id"]),t;case nl.StyleSheetRule:case nl.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nl.Font:return t;case nl.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nl.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=S(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
1h(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===ng.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),nF=function(){function e(e){E(this,"shadowDoms",new WeakSet),E(this,"mutationCb"),E(this,"scrollCb"),E(this,"bypassOptions"),E(this,"mirror"),E(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(j(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=nI(f({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(nx(f({},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(rQ.host(e))),r.restoreHandlers.push(nA({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(rK(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=rQ.shadowRoot(this);return o&&nc(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}(),nU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nB="undefined"==typeof Uint8Array?[]:new Uint8Array(256),nj=0;nj<nU.length;nj++)nB[nU.charCodeAt(nj)]=nj;var nq=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=nU[r[t]>>2],i+=nU[(3&r[t])<<4|r[t+1]>>4],i+=nU[(15&r[t+1])<<2|r[t+2]>>6],i+=nU[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},nz=new Map,nW=function(e,t,r){if(e&&(n$(e,t)||(void 0===e?"undefined":b(e))==="object")){var n,i=e.constructor.name,o=((n=nz.get(r))||(n=new Map,nz.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),s=o.indexOf(e);return -1===s&&(s=o.length,o.push(e)),s}},nV=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(v(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(v(t,Float32Array)||v(t,Float64Array)||v(t,Int32Array)||v(t,Uint32Array)||v(t,Uint8Array)||v(t,Uint16Array)||v(t,Int16Array)||v(t,Int8Array)||v(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(v(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:nq(t)};else if(v(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(v(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(v(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(v(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(n$(t,r)||(void 0===t?"undefined":b(t))==="object")return{rr_type:t.constructor.name,index:nW(t,r,n)};return t}(e,t,r)})},n$=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return v(e,t[r])})};function nG(e,t,r,n){var i=[];try{var o=rK(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!ne(this,t,r,!0)){var c="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===b(s[0])){var u=s[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}
1return function(){i.forEach(function(e){return e()})}}function nH(e,t,r,n,i,o){for(var s,a=[],c=Object.getOwnPropertyNames(e),u=S(c);!(s=u()).done;)!function(){var c=s.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if("function"!=typeof e[c])return"continue";var u=rK(e,c,function(e){return function(){for(var s=arguments.length,a=Array(s),u=0;u<s;u++)a[u]=arguments[u];var l=e.apply(this,a);if(nW(l,o,this),"tagName"in this.canvas&&!ne(this.canvas,n,i,!0)){var h=nV(a,o,this);r(this.canvas,{type:t,property:c,args:h})}return l}});a.push(u)}catch(n){a.push(r9(e,c,{set:function(e){r(this.canvas,{type:t,property:c,args:[e],setter:!0})}}))}}();return a}var nY="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",nZ="undefined"!=typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(nY),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function nJ(e){var t;try{if(!(t=nZ&&(window.URL||window.webkitURL).createObjectURL(nZ)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+nY,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var nX=function(){function e(e){var t=this;E(this,"pendingCanvasMutations",new Map),E(this,"rafStamps",{latestId:0,invokeId:null}),E(this,"mirror"),E(this,"mutationCb"),E(this,"resetObservers"),E(this,"frozen",!1),E(this,"locked",!1),E(this,"processMutation",function(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o,s=this,a=nG(t,r,n,!0),c=new Map,u=new nJ;u.onmessage=function(e){var t=e.data.id;if(c.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,o=r.width,a=r.height;s.mutationCb({id:t,type:nd["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l=1e3/e,p=0,d=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){ne(t,r,n,!0)||e.push(t)}),e},f=function(e){if(p&&e-p<l){o=requestAnimationFrame(f);return}
1p=e,d().forEach(h(function(e){var t,r,n,o;return C(this,function(a){switch(a.label){case 0:if(r=s.mirror.getId(e),c.get(r)||0===e.width||0===e.height)return[2];return c.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(null==(t=null==(n=e.getContext(e.__context))?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&n.clear(n.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return o=a.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),o=requestAnimationFrame(f)};o=requestAnimationFrame(f),this.resetObservers=function(){a(),cancelAnimationFrame(o)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n,i,o=nG(e,t,r,!1),s=function(e,t,r,n){for(var i,o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=S(s);!(i=a()).done;)!function(){var s=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return"continue";var a=rK(t.CanvasRenderingContext2D.prototype,s,function(i){return function(){for(var o=this,a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return ne(this.canvas,r,n,!0)||setTimeout(function(){var r=nV(c,t,o);e(o.canvas,{type:nd["2D"],property:s,args:r})},0),i.apply(this,c)}});o.push(a)}catch(r){var c=r9(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:nd["2D"],property:s,args:[t],setter:!0})}});o.push(c)}}();return function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),a=(n=this.processMutation.bind(this),(i=[]).push.apply(i,[].concat(nH(e.WebGLRenderingContext.prototype,nd.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(nH(e.WebGL2RenderingContext.prototype,nd.WebGL2,n,t,r,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),s(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,y(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),nK=function(){function e(e){E(this,"trackedLinkElements",new WeakSet),E(this,"mutationCb"),E(this,"adoptedStyleSheetCb"),E(this,"styleMirror",new ns),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){if(0!==e.length){for(var r,n,i={id:t,styleIds:[]},o=[],s=S(e);!(n=s()).done;)r=this,function(){var e=n.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:z(t,e.href),index:r}})})),i.styleIds.push(t)}();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),nQ=function(){function e(){E(this,"nodeMap",new WeakMap),E(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),n0=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var n1=document.createElement("iframe");document.body.appendChild(n1),Array.from=(null==(n4=n1.contentWindow)?void 0:n4.Array.from)||Array.from,document.body.removeChild(n1)}}catch(e){console.debug("Unable to override Array.from",e)}
1var n2=new W;function n3(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,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,d=void 0===p?"rr-mask":p,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,b=e.maskInputOptions,w=e.slimDOMOptions,k=e.maskInputFn,C=e.maskTextFn,I=e.hooks,x=e.packFn,E=e.sampling,O=void 0===E?{}:E,M=e.dataURLOptions,R=void 0===M?{}:M,A=e.mousemoveWait,T=e.recordDOM,P=void 0===T||T,D=e.recordCanvas,N=void 0!==D&&D,L=e.recordCrossOriginIframes,F=void 0!==L&&L,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,V=void 0!==z&&z,$=e.inlineImages,G=void 0!==$&&$,H=e.plugins,Y=e.keepIframeSrcFn,Z=void 0===Y?function(){return!1}:Y,J=e.ignoreCSSAttributes,X=void 0===J?new Set([]):J;im=e.errorHandler;var K=!F||window.parent===window,Q=!1;if(!K)try{window.parent.document&&(Q=!1)}catch(e){Q=!0}if(K&&!t)throw Error("emit function is required");if(!K&&!Q)return function(){};void 0!==A&&void 0===O.mousemove&&(O.mousemove=A),n2.reset();var ee=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==b?b:{password:!0},et=!0===w||"all"===w?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===w,headMetaDescKeywords:"all"===w,headTitleMutations:"all"===w}:w||{};void 0===ei&&(ei=window),"NodeList"in ei&&!ei.NodeList.prototype.forEach&&(ei.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in ei&&!ei.DOMTokenList.prototype.forEach&&(ei.DOMTokenList.prototype.forEach=Array.prototype.forEach);var er=0,en=function(e){for(var t,r=S(H||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!Q&&(e=x(e)),e};iv=function(e,i){var o;if(e.timestamp=r4(),(null==(o=nS[0])?void 0:o.isFrozen())&&e.type!==nu.FullSnapshot&&(e.type!==nu.IncrementalSnapshot||e.data.source!==nl.Mutation)&&nS.forEach(function(e){return e.unfreeze()}),K)null==t||t(en(e),i);else if(Q){var s={type:"rrweb",event:en(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(s,"*")}if(e.type===nu.FullSnapshot)eo=e,er=0;else if(e.type===nu.IncrementalSnapshot){if(e.data.source===nl.Mutation&&e.data.isAttachIframe)return;er++;var a=n&&er>=n,c=r&&e.timestamp-eo.timestamp>r;(a||c)&&iy(!0)}};for(var ei,eo,es,ea=function(e){iv({type:nu.IncrementalSnapshot,data:f({source:nl.Mutation},e)})},ec=function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.Scroll},e)})},eu=function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.CanvasMutation},e)})},el=new nK({mutationCb:ea,adoptedStyleSheetCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.AdoptedStyleSheet},e)})}}),eh=new nL({mirror:n2,mutationCb:ea,stylesheetManager:el,recordCrossOriginIframes:F,wrappedEmit:iv}),ep=S(H||[]);!(es=ep()).done;){var ed=es.value;ed.getMirror&&ed.getMirror({nodeMirror:n2,crossOriginIframeMirror:eh.crossOriginIframeMirror,crossOriginIframeStyleMirror:eh.crossOriginIframeStyleMirror})}var eg=new nQ;i_=new nX({recordCanvas:N,mutationCb:eu,win:window,blockClass:o,blockSelector:a,mirror:n2,sampling:O.canvas,dataURLOptions:R});var em=new nF({mutationCb:ea,scrollCb:ec,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:ee,dataURLOptions:R,maskTextFn:C,maskInputFn:k,recordCanvas:N,inlineImages:G,sampling:O,slimDOMOptions:et,iframeManager:eh,stylesheetManager:el,canvasManager:i_,keepIframeSrcFn:Z,processedNodeManager:eg},mirror:n2});iy=function(e){if(void 0===e&&(e=!1),P){iv({type:nu.Meta,data:{href:window.location.href,width:r8(),height:r6()}},e),el.reset(),em.init(),nS.forEach(function(e){return e.lock()});var t,r,n,i,s,c,u,l,h,p,f,g,v,_,b,w,S,I,x,E,O,M,A,T,D=(t=document,i=void 0===(n=(r={mirror:n2,blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:ee,maskTextFn:C,maskInputFn:k,slimDOM:et,dataURLOptions:R,recordCanvas:N,inlineImages:G,onSerialize:function(e){nn(e,n2)&&eh.addIframe(e),ni(e,n2)&&el.trackLinkElement(e),no(e)&&em.addShadowRoot(rQ.shadowRoot(e),document)},onIframeLoad:function(e,t){eh.attachIframe(e,t),em.observeAttachShadow(e)},onStylesheetLoad:function(e,t){el.attachLinkElement(e,t)},keepIframeSrcFn:Z}).mirror)?new W:n,s=r.blockClass,c=r.blockSelector,u=r.maskTextClass,l=r.maskTextSelector,h=r.inlineStylesheet,p=r.inlineImages,f=r.recordCanvas,v=void 0!==(g=r.maskAllInputs)&&g,_=r.maskTextFn,b=r.maskInputFn,S=void 0!==(w=r.slimDOM)&&w,I=r.dataURLOptions,x=r.preserveWhiteSpace,E=r.onSerialize,O=r.onIframeLoad,M=r.iframeLoadTimeout,A=r.onStylesheetLoad,ef(t,{doc:t,mirror:i,blockClass:void 0===s?"rr-block":s,blockSelector:void 0===c?null:c,maskTextClass:void 0===u?"rr-mask":u,maskTextSelector:void 0===l?null:l,ski
1pChild:!1,inlineStylesheet:void 0===h||h,maskInputOptions:!0===v?{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===v?{password:!0}:v,maskTextFn:_,maskInputFn:b,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,dataURLOptions:I,inlineImages:void 0!==p&&p,recordCanvas:void 0!==f&&f,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(T=r.keepIframeSrcFn)?function(){return!1}:T,newlyAddedElement:!1}));if(!D)return console.warn("Failed to snapshot the document");iv({type:nu.FullSnapshot,data:{node:D,initialOffset:r5(window)}},e),nS.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&el.adoptStyleSheets(document.adoptedStyleSheets,n2.getId(document))}};try{var ev=[],ey=function(e){var t;return nk(nT)({mutationCb:ea,mousemoveCb:function(e,t){return iv({type:nu.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.MouseInteraction},e)})},scrollCb:ec,viewportResizeCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.ViewportResize},e)})},inputCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.Input},e)})},mediaInteractionCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.MediaInteraction},e)})},styleSheetRuleCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.StyleSheetRule},e)})},styleDeclarationCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.StyleDeclaration},e)})},canvasMutationCb:eu,fontCb:function(e){return iv({type:nu.IncrementalSnapshot,data:f({source:nl.Font},e)})},selectionCb:function(e){iv({type:nu.IncrementalSnapshot,data:f({source:nl.Selection},e)})},customElementCb:function(e){iv({type:nu.IncrementalSnapshot,data:f({source:nl.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:h,maskTextClass:d,maskTextSelector:m,maskInputOptions:ee,inlineStylesheet:y,sampling:O,recordDOM:P,recordCanvas:N,inlineImages:G,userTriggeredOnInput:q,collectFonts:V,doc:e,maskInputFn:k,maskTextFn:C,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:et,dataURLOptions:R,mirror:n2,iframeManager:eh,stylesheetManager:el,shadowDomManager:em,processedNodeManager:eg,canvasManager:i_,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 iv({type:nu.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},I)};eh.addLoadListener(function(e){try{ev.push(ey(e.contentDocument))}catch(e){console.warn(e)}});var e_=function(){iy(),ev.push(ey(document)),n0=!0};return"interactive"===document.readyState||"complete"===document.readyState?e_():(ev.push(r0("DOMContentLoaded",function(){iv({type:nu.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&e_()})),ev.push(r0("load",function(){iv({type:nu.Load,data:{}}),"load"===B&&e_()},window))),function(){ev.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),eg.destroy(),n0=!1,im=void 0}}catch(e){console.warn(e)}}n3.addCustomEvent=function(e,t){if(!n0)throw Error("please add custom event after start recording");iv({type:nu.Custom,data:{tag:e,payload:t}})},n3.freezePage=function(){nS.forEach(function(e){return e.freeze()})},n3.takeFullSnapshot=function(e){if(!n0)throw Error("please take full snapshot after start recording");iy(e)},n3.mirror=n2,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(ib||(ib={})),n3.addCustomEvent,n3.freezePage,n3.takeFullSnapshot;var n9,n4,n5,n6,n8,n7,ie,it,ir,ii,io,is,ia,ic,iu,il,ih,ip,id,ig,im,iv,iy,i_,ib,iw,ik,iS,iC=n9.setImmediate,iI=Object.prototype.toString,ix=void 0!==iC?function(e){return iC(e)}:setTimeout;try{Object.defineProperty({},"x",{}),iw=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){iw=function(e,t,r){return e[t]=r,e}}function iE(e,t){iS.add(e,t),ik||(ik=ix(iS.drain))}function iO(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function iM(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=iO(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function iR(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=iO(e))?iE(function(){var n=new iP(r);try{t.call(e,function(){iR.apply(n,arguments)},function(){iA.apply(n,arguments)})}catch(e){iA.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&iE(iM,r))}catch(e){iA.call(new iP(r),e)}}}function iA(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&iE(iM,t))}function iT(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)}(i)}function iP(e){this.def=e,this.triggered=!1}function iD(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function iN(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new iD(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&iE(iM,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){iR.call(t,e)},function(e){iA.call(t,e)})}catch(e){iA.call(t,e)}}iS=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=ik=void 0;r;)r.fn.call(r.self),r=r.next}}}();var iL=iw({},"constructor",iN,!1);iN.prototype=iL,iw(iL,"__NPO__",0,!1),iw(iN,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),iw(iN,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),iw(iN,"all",function(e){var t=this;return"[object Array]"!==iI.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;iT(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),iw(iN,"race",function(e){var t=this;return"[object Array]"!==iI.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");iT(t,e,function(e,t){r(t)},n)})}),n="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:iN;var iF={DEBUG:!1,LIB_VERSION:"2.71.0"},iU=Array.prototype,iB=Function.prototype,ij=Object.prototype,iq=iU.slice,iz=ij.toString,iW=ij.hasOwnProperty,iV=n9.console,i$=n9.navigator,iG=n9.document,iH=n9.opera,iY=n9.screen,iZ=i$.userAgent,iJ=iB.bind,iX=iU.forEach,iK=iU.indexOf,iQ=iU.map,i0=Array.isArray,i1={},i2={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},i3={log:function(){if(iF.DEBUG&&!i2.isUndefined(iV)&&iV)try{iV.log.apply(iV,arguments)}catch(e){i2.each(arguments,function(e){iV.log(e)})}},warn:function(){if(iF.DEBUG&&!i2.isUndefined(iV)&&iV){var e=["Mixpanel warning:"].
1concat(i2.toArray(arguments));try{iV.warn.apply(iV,e)}catch(t){i2.each(e,function(e){iV.warn(e)})}}},error:function(){if(iF.DEBUG&&!i2.isUndefined(iV)&&iV){var e=["Mixpanel error:"].concat(i2.toArray(arguments));try{iV.error.apply(iV,e)}catch(t){i2.each(e,function(e){iV.error(e)})}}},critical:function(){if(!i2.isUndefined(iV)&&iV){var e=["Mixpanel error:"].concat(i2.toArray(arguments));try{iV.error.apply(iV,e)}catch(t){i2.each(e,function(e){iV.error(e)})}}}},i9=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(i3,arguments)}},i4=function(e){return{log:i9(i3.log,e),error:i9(i3.error,e),critical:i9(i3.critical,e)}},i5=function(e){return function(){try{return e.apply(this,arguments)}catch(e){i3.critical("Implementation error. Please turn on debug and contact [email protected]."),iF.DEBUG&&i3.critical(e)}}},i6=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=i5(t[r]))};i2.bind=function(e,t){var r,n;if(iJ&&e.bind===iJ)return iJ.apply(e,iq.call(arguments,1));if(!i2.isFunction(e))throw TypeError();return r=iq.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(iq.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(iq.call(arguments)));return Object(s)===s?s:o}},i2.each=function(e,t,r){if(null!=e){if(iX&&e.forEach===iX)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===i1)return}else for(var o in e)if(iW.call(e,o)&&t.call(r,e[o],o,e)===i1)return}},i2.extend=function(e){return i2.each(iq.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},i2.isArray=i0||function(e){return"[object Array]"===iz.call(e)},i2.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},i2.isArguments=function(e){return!!(e&&iW.call(e,"callee"))},i2.toArray=function(e){return e?e.toArray?e.toArray():i2.isArray(e)||i2.isArguments(e)?iq.call(e):i2.values(e):[]},i2.map=function(e,t,r){if(iQ&&e.map===iQ)return e.map(t,r);var n=[];return i2.each(e,function(e){n.push(t.call(r,e))}),n},i2.keys=function(e){var t=[];return null===e||i2.each(e,function(e,r){t[t.length]=r}),t},i2.values=function(e){var t=[];return null===e||i2.each(e,function(e){t[t.length]=e}),t},i2.include=function(e,t){var r=!1;return null===e?r:iK&&e.indexOf===iK?-1!=e.indexOf(t):(i2.each(e,function(e){if(r||(r=e===t))return i1}),r)},i2.includes=function(e,t){return -1!==e.indexOf(t)},i2.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},i2.isObject=function(e){return e===Object(e)&&!i2.isArray(e)},i2.isEmptyObject=function(e){if(i2.isObject(e)){for(var t in e)if(iW.call(e,t))return!1;return!0}return!1},i2.isUndefined=function(e){return void 0===e},i2.isString=function(e){return"[object String]"==iz.call(e)},i2.isDate=function(e){return"[object Date]"==iz.call(e)},i2.isNumber=function(e){return"[object Number]"==iz.call(e)},i2.isElement=function(e){return!!(e&&1===e.nodeType)},i2.encodeDates=function(e){return i2.each(e,function(t,r){i2.isDate(t)?e[r]=i2.formatDate(t):i2.isObject(t)&&(e[r]=i2.encodeDates(t))}),e},i2.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},i2.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},i2.strip_empty_properties=function(e){var t={};return i2.each(e,function(e,r){i2.isString(e)&&e.length>0&&(t[r]=e)}),t},i2.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):i2.isArray(e)?(r=[],i2.each(e,function(e){r.push(i2.truncate(e,t))})):i2.isObject(e)?(r={},i2.each(e,function(e,n){r[n]=i2.truncate(e,t)})):r=e,r},i2.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","\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]"===iz.apply(h)){for(o=0,c=h.length;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)iW.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return r("",{"":e})},i2.JSONDecode=function(){var e,t,r,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},o=function(t){var n=SyntaxError(t);throw n.at=e,n.text=r,n},s=function(n){return n&&n!==t&&o("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},a=function(){var e,r="";for("-"===t&&(r="-",s("-"));t>="0"&&t<="9";)r+=t,s();if("."===t)for(r+=".";s()&&t>="0"&&t<="9";)r+=t;if("e"===t||"E"===t)for(r+=t,s(),("-"===t||"+"===t)&&(r+=t,s());t>="0"&&t<="9";)r+=t,s();if(isFinite(e=+r))return e;o("Bad number")},c=function(){var e,r,n,a="";if('"'===t)for(;s();){if('"'===t)return s(),a;
1if("\\"===t)if(s(),"u"===t){for(r=0,n=0;r<4&&isFinite(e=parseInt(s(),16));r+=1)n=16*n+e;a+=String.fromCharCode(n)}else if("string"==typeof i[t])a+=i[t];else break;else a+=t}o("Bad string")},u=function(){for(;t&&t<=" ";)s()},l=function(){switch(t){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}o('Unexpected "'+t+'"')},h=function(){var e=[];if("["===t){if(s("["),u(),"]"===t)return s("]"),e;for(;t;){if(e.push(n()),u(),"]"===t)return s("]"),e;s(","),u()}}o("Bad array")},p=function(){var e,r={};if("{"===t){if(s("{"),u(),"}"===t)return s("}"),r;for(;t;){if(e=c(),u(),s(":"),Object.hasOwnProperty.call(r,e)&&o('Duplicate key "'+e+'"'),r[e]=n(),u(),"}"===t)return s("}"),r;s(","),u()}}o("Bad object")};return n=function(){switch(u(),t){case"{":return p();case"[":return h();case'"':return c();case"-":return a();default:return t>="0"&&t<="9"?a():l()}},function(i){var s;return r=i,e=0,t=" ",s=n(),u(),t&&o("Syntax error"),s}}(),i2.base64Encode=function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=0,u=0,l="",h=[];if(!e)return e;e=i2.utf8Encode(e);do t=e.charCodeAt(c++),r=(s=t<<16|e.charCodeAt(c++)<<8|e.charCodeAt(c++))>>18&63,n=s>>12&63,i=s>>6&63,o=63&s,h[u++]=a.charAt(r)+a.charAt(n)+a.charAt(i)+a.charAt(o);while(c<e.length);switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},i2.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(n=0,t=r=0,o=e.length;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},i2.UUID=function(){try{return n9.crypto.randomUUID()}catch(r){for(var e=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]="-",i2.map(e,function(e){return e.toString(16)}).join("")}};var i8=["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"];i2.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<i8.length;t++)if(-1!==e.indexOf(i8[t]))return!0;return!1},i2.HTTPBuildQuery=function(e,t){var r,n,i=[];return i2.isUndefined(t)&&(t="&"),i2.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},i2.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){i3.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},i2.cookie={get:function(e){for(var t=e+"=",r=iG.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=i2.JSONDecode(i2.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=oh(iG.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),iG.cookie=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u},set:function(e,t,r,n,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(n){var l=oh(iG.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return iG.cookie=p,p},remove:function(e,t,r){i2.cookie.set(e,"",-1,t,!1,!1,r)}};var i7=function(e){var t=!0;
1try{var r="__mplss_"+oc(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},oe=null,ot=function(e,t){return null===oe||t?oe=i7(e||n9.localStorage):oe},or=null;function on(e,t,r){var n=function(e){i3.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||i3.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return i2.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}i2.localStorage=on(n9.localStorage,"localStorage",ot),i2.sessionStorage=on(n9.sessionStorage,"sessionStorage",function(e,t){return null===or||t?or=i7(e||n9.sessionStorage):or}),i2.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(!t)return void i3.error("No valid element provided to register_event");if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s,a,c,u="on"+r,l=t[u];t[u]=(s=t,a=n,c=l,function(t){if(t=t||e(n9.event)){var r,n,i=!0;return i2.isFunction(c)&&(r=c(t)),n=a.call(s,t),(!1===r||!1===n)&&(i=!1),i}})}}}();var oi=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');i2.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!iG.getElementsByTagName)return[];var n=r.split(" "),i=[iG];for(f=0;f<n.length;f++){if((l=n[f].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=l.split("#"))[0];var o=h[1],s=iG.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];i=[s];continue}if(l.indexOf(".")>-1){b=(h=l.split("."))[0];var a,c=h[1];for(b||(b="*"),p=[],d=0,g=0;g<i.length;g++)for(m=0,v="*"==b?e(i[g]):i[g].getElementsByTagName(b);m<v.length;m++)p[d++]=v[m];for(g=0,i=[],y=0;g<p.length;g++)p[g].className&&i2.isString(p[g].className)&&(a=p[g],(" "+a.className+" ").replace(t," ").indexOf(" "+c+" ")>=0)&&(i[y++]=p[g]);continue}var u=l.match(oi);if(u){var l,h,p,d,f,g,m,v,y,_,b=u[1],w=u[2],k=u[3],S=u[4];for(b||(b="*"),p=[],d=0,g=0;g<i.length;g++)for(m=0,v="*"==b?e(i[g]):i[g].getElementsByTagName(b);m<v.length;m++)p[d++]=v[m];switch(i=[],y=0,k){case"=":_=function(e){return e.getAttribute(w)==S};break;case"~":_=function(e){return e.getAttribute(w).match(RegExp("\\b"+S+"\\b"))};break;case"|":_=function(e){return e.getAttribute(w).match(RegExp("^"+S+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(w).indexOf(S)};break;case"$":_=function(e){return e.getAttribute(w).lastIndexOf(S)==e.getAttribute(w).length-S.length};break;case"*":_=function(e){return e.getAttribute(w).indexOf(S)>-1};break;default:_=function(e){return e.getAttribute(w)}}for(g=0,i=[],y=0;g<p.length;g++)_(p[g])&&(i[y++]=p[g]);continue}for(g=0,b=l,p=[],d=0;g<i.length;g++)for(m=0,v=i[g].getElementsByTagName(b);m<v.length;m++)p[d++]=v[m];i=p}return i}return function(e){return i2.isElement(e)?[e]:i2.isObject(e)&&!i2.isUndefined(e.length)?e:r.call(this,e)}}();var oo=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],os=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];i2.info={campaignParams:function(e){var t="",r={};return i2.each(oo,function(n){(t=i2.getQueryParam(iG.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return i2.each(os,function(r){(e=i2.getQueryParam(iG.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return i2.extend(i2.info.campaignParams(),i2.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=i2.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=i2.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||i2.includes(e," OPR/"))return i2.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(i2.includes(e,"IEMobile")||i2.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(i2.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(i2.includes(e,"Edge")||i2.includes(e,"Edg/"))return"Microsoft Edge";else if(i2.includes(e,"FBIOS"))return"Facebook Mobile";else if(i2.includes(e,"Whale/"))return"Whale Browser";else if(i2.includes(e,"Chrome"))return"Chrome";else if(i2.includes(e,"CriOS"))return"Chrome iOS";else if(i2.includes(e,"UCWEB")||i2.includes(e,"UCBrowser"))return"UC Browser";else if(i2.includes(e,"FxiOS"))return"Firefox iOS";else if(i2.includes(t,"Apple"))return i2.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(i2.includes(e,"Android"))return"Android Mobile";else if(i2.includes(e,"Konqueror"))return"Konqueror";else if(i2.includes(e,"Firefox"))return"Firefox";else if(i2.includes(e,"MSIE")||i2.includes(e,"Trident/"))return"Internet Explorer";else if(i2.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[i2.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null}
1,os:function(){if(/Windows/i.test(iZ))return/Phone/.test(iZ)||/WPDesktop/.test(iZ)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(iZ))return"iOS";if(/Android/.test(iZ))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(iZ))return"BlackBerry";if(/Mac/i.test(iZ))return"Mac OS X";else if(/Linux/.test(iZ))return"Linux";else if(/CrOS/.test(iZ))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return n9.location.href},properties:function(e){return"object"!=typeof e&&(e={}),i2.extend(i2.strip_empty_properties({$os:i2.info.os(),$browser:i2.info.browser(iZ,i$.vendor,iH),$referrer:iG.referrer,$referring_domain:i2.info.referringDomain(iG.referrer),$device:i2.info.device(iZ)}),{$current_url:i2.info.currentUrl(),$browser_version:i2.info.browserVersion(iZ,i$.vendor,iH),$screen_height:iY.height,$screen_width:iY.width,mp_lib:"web",$lib_version:iF.LIB_VERSION,$insert_id:oc(),time:i2.timestamp()/1e3},i2.strip_empty_properties(e))},people_properties:function(){return i2.extend(i2.strip_empty_properties({$os:i2.info.os(),$browser:i2.info.browser(iZ,i$.vendor,iH)}),{$browser_version:i2.info.browserVersion(iZ,i$.vendor,iH)})},mpPageViewProperties:function(){return i2.strip_empty_properties({current_page_title:iG.title,current_domain:n9.location.hostname,current_url_path:n9.location.pathname,current_url_protocol:n9.location.protocol,current_url_search:n9.location.search})}};var oa=function(e,t){var r=null,i=[];return function(o){var s=this;return i.push(o),r||(r=new n(function(n){setTimeout(function(){var t=e.apply(s,[i]);r=null,i=[],n(t)},t)})),r}},oc=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},ou=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,ol=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,oh=function(e){var t=ol,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=ou);var i=e.match(t);return i?i[0]:""},op=function(){var e=n9.navigator.onLine;return i2.isUndefined(e)||e},od=function(){},of=null,og=null;"undefined"!=typeof JSON&&(of=JSON.stringify,og=JSON.parse),of=of||i2.JSONEncode,og=og||i2.JSONDecode,i2.info=i2.info,i2.info.browser=i2.info.browser,i2.info.browserVersion=i2.info.browserVersion,i2.info.device=i2.info.device,i2.info.properties=i2.info.properties,i2.isBlockedUA=i2.isBlockedUA,i2.isEmptyObject=i2.
1isEmptyObject,i2.isObject=i2.isObject,i2.JSONDecode=i2.JSONDecode,i2.JSONEncode=i2.JSONEncode,i2.toArray=i2.toArray,i2.NPO=iN;var om="mixpanelRecordingEvents",ov="mixpanelRecordingRegistry",oy=[om,ov],o_=function(e){this.dbPromise=null,this.storeName=e};function ob(e,t){oA(!0,e,t)}function ow(e,t){oA(!1,e,t)}function ok(e,t){return"1"===oR(e,t)}function oS(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||n9,r=t.navigator||{},n=!1;return i2.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){i2.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return i3.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"===oR(e,t);return r&&i3.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function oC(e){return oT(e,function(e){return this.get_config(e)})}function oI(e){return oT(e,function(e){return this._get_config(e)})}function ox(e){return oT(e,function(e){return this._get_config(e)})}function oE(e,t){oO(t=t||{}).remove(oM(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function oO(e){return"localStorage"===(e=e||{}).persistenceType?i2.localStorage:i2.cookie}function oM(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function oR(e,t){return oO(t).get(oM(e,t))}function oA(e,t,r){if(!i2.isString(t)||!t.length)return void i3.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");oO(r=r||{}).set(oM(t,r),+!!e,i2.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})}function oT(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=oS(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){i3.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)}}o_.prototype._openDb=function(){return new n(function(e,t){var r=n9.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;oy.forEach(function(e){t.createObjectStore(e)})}})},o_.prototype.init=function(){return n9.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof n9.IDBDatabase?n.resolve():n.reject(e)})):n.reject("indexedDB is not supported in this browser")},o_.prototype.isInitialized=function(){return!!this.dbPromise},o_.prototype.makeTransaction=function(e,t){var r=this.storeName,i=function(i){return new n(function(n,o){var s=i.transaction(r,e);s.oncomplete=function(){n(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(i).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(i)):n.reject(e)}).bind(this))},o_.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},o_.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},o_.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},o_.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var oP=i4("lock"),oD=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||n9.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||n};oD.prototype.withLock=function(e,t){return new this.promiseImpl(i2.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",d=function(e){if(new Date().getTime()-o>c){oP.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),m();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},f=function(e,t){e()?t():d(function(){f(e,t)})},g=function(){var e=u.getItem(h);return(!e||e===i)&&(u.setItem(h,i),u.getItem(h)===i||(ot(u,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),f(g,function(){if(u.getItem(l)===i)return void v();d(function(){if(u.getItem(h)!==i)return void m();f(function(){return!u.getItem(p)},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(ot(u,!0))m();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var oN=function(e){this.storage=e||n9.localStorage};oN.prototype.init=function(){return n.resolve()},oN.prototype.isInitialized=function(){return!0},oN.prototype.setItem=function(e,t){return new n(i2.bind(function(r,n){try{this.storage.setItem(e,of(t))}catch(e){n(e)}r()},this))},oN.prototype.getItem=function(e){return new n(i2.bind(function(t,r){var n;try{n=og(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},oN.prototype.removeItem=function(e){return new n(i2.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var oL=i4("batch"),oF=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new oN,this.lock=new oD(e,{storage:t.sharedLockStorage||n9.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||i2.bind(oL.error,oL),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=oa(i2.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=i2.bind(function(e){return this._enqueuePersisted([e])},this)};oF.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?n.resolve():this.queueStorage.init(
1).then(i2.bind(function(){this.initialized=!0},this)).catch(i2.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},oF.prototype.enqueue=function(e,t){var r={id:oc(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),n.resolve(!0))},oF.prototype._enqueuePersisted=function(e){var t=i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(i2.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(i2.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(i2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},oF.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(r){if(r.length){var n={};i2.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):n.resolve(t)};var oU=function(e,t){var r=[];return i2.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};oF.prototype.removeItemsByID=function(e){var t={};if(i2.each(e,function(e){t[e]=!0}),this.memQueue=oU(this.memQueue,t),!this.usePersistence)return n.resolve(!0);var r=i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(e){return e=oU(e,t),this.saveToStorage(e)},this)).then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw Error("Item not removed from storage")}return!0},this)).catch(i2.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(i2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!ot(this.lock.storage,!0)&&r().then(i2.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(i2.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var oB=function(e,t){var r=[];return i2.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};oF.prototype.updatePayloads=function(e){return(this.memQueue=oB(this.memQueue,e),this.usePersistence)?this.lock.withLock(i2.bind(function(){return this.ensureInit().then(i2.bind(function(){return this.readFromStorage()},this)).then(i2.bind(function(t){return t=oB(t,e),this.saveToStorage(t)},this)).catch(i2.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(i2.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):n.resolve(!0)},oF.prototype.readFromStorage=function(){return this.ensureInit().then(i2.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(i2.bind(function(e){return e&&!i2.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(i2.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},oF.prototype.saveToStorage=function(e){return this.ensureInit().then(i2.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(i2.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},oF.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(i2.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):n.resolve()};var oj=i4("batch"),oq=function(e,t){this.errorReporter=t.errorReporter,this.queue=new oF(e,{errorReporter:i2.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};oq.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},oq.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},oq.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},oq.prototype.clear=function(){return this.queue.clear()},oq.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},oq.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},oq.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(i2.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},oq.prototype.sendRequestPromise=function(e,t){return new n(i2.bind(function(r){this.sendRequest(e,t,r)},this))},oq.prototype.flush=function(e){if(this.requestInProgress)return oj.log("Flush: Request already in progress"),n.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(i2.bind(function(o){var s=o.length===i,a=[],c={};if(i2.each(o,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=i2.extend({},t.properties,{mp_sent_by_lib_version:iF.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize: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(),n.resolve();var u=i2.bind(function(){return this.queue.removeItemsByID(i2.map(o,function(e){return e.id})).then(i2.bind(function(e){return(i2.each(o,i2.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(),n.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),n.resolve())},this))},this),l=i2.bind(function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(i2.isObject(s)&&"timeout"===s.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(i2.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&!op()||"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),n.resolve()}else{if(!i2.isObject(s)||413!==s.httpStatusCode)return u();if(!(o.length>1))return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),u();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(),n.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),h={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(h.transport="sendBeacon"),oj.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,h).then(l)},this)).catch(i2.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},oq.prototype.reportError=function(e,t){if(oj.error.apply(oj.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){oj.error(e)}};var oz=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},oW=i4("recorder"),oV=n9.CompressionStream,o$={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},oG=new Set([nl.MouseMove,nl.MouseInteraction,nl.Scroll,nl.ViewportResize,nl.Input,nl.TouchMove,nl.MediaInteraction,nl.Drag,nl.Selection]),oH=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||od,this._onMaxLengthReached=e.onMaxLengthReached||od,this._onBatchSent=e.onBatchSent||od,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.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0;var t=ot(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new o_(om),this.batcher=new oq(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:o$,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};
1oH.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},oH.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))},oH.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},oH.prototype.get_config=function(e){return this.getConfig(e)},oH.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void oW.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,oW.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>8e3&&(this.recordMinMs=8e3,oW.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=i2.info.currentUrl(),this.replayStartUrl=i2.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(e){if(this.idleExpires&&this.idleExpires<e.timestamp)return void this._onIdleTimeout();e.type===nu.IncrementalSnapshot&&oG.has(e.data.source)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e)}
1).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,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}})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var n=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)},oH.prototype.stopRecording=function(e){var t;if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},oH.prototype.isRrwebStopped=function(){return null===this._stopRecording},oH.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)},oH.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,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},oH.deserialize=function(e,t){return new oH(i2.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},oH.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=i2.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");n9.fetch(o+"/"+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){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},oH.prototype._flushEvents=oC(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,c=0;c<n;c++)o=Math.min(o,e[c].timestamp),s=Math.max(s,e[c].timestamp),e[c].type===nu.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var u=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:iF.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);Object.assign(l,this.getUserIdInfo()),oV?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new oV("gzip"))).blob().then((function(e){l.format="gzip",this._sendRequest(i,l,e,r)}).bind(this)):(l.format="body",this._sendRequest(i,l,h,r))}}),oH.prototype.reportError=function(e,t){oW.error.apply(oW.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){oW.error(e)}};var oY=function(e){this.idb=new o_(ov),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};oY.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},oY.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},oY.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return n.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."),n.resolve())},oY.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 oz(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):n.resolve(null)},oY.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},oY.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))},oY.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):n.resolve()},oY.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 oz(e)}
1).map((function(e){return oH.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 n.all(t)}).bind(this)).catch(this.handleError.bind(this)):n.resolve([])};var oZ=i4("recorder"),oJ=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||n3,this.sharedLockStorage=r,this.recordingRegistry=new oY({mixpanelInstance:this.mixpanelInstance,errorReporter:oZ.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};oJ.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void oZ.log("Recording already in progress, skipping startRecording.");var t=(function(){oZ.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){oZ.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:i2.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=oH.deserialize(e.activeSerializedRecording,i):this.activeRecording=new oH(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},oJ.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))},oJ.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},oJ.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return n.resolve()},oJ.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),n.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(oZ.log("No resumable recording found."),null)}).bind(this))},oJ.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},oJ.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(oJ.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),n9.__mp_recorder=oJ;var oX="change",oK="click",oQ="hashchange",o0="load",o1="mp_locationchange",o2="popstate",o3="scrollend",o9="scroll",o4="submit",o5="visibilitychange",o6=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],o8=["mp-include"],o7=["mp-no-track"],se=o7.concat(["mp-sensitive"]),st=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],sr={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},sn={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},si={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},so=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],ss=i4("autocapture");function sa(e){for(var t={},r=sc(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function sc(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function su(e,t,r,n,i,o){var s={$classes:sc(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),sm(e,t,i,o)&&i2.each(st.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);sv(n)&&(s["$attr-"+t]=n)}});for(var c=1,u=1,l=e;l=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!sd(e));return e}(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function sl(e,t,r,n){var i="";return sm(e,t,r,n)&&e.childNodes&&e.childNodes.length&&i2.each(e.childNodes,function(e){sg(e)&&e.textContent&&(i+=i2.trim(e.textContent).split(/(\s+)/).filter(sv).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),i2.trim(i)}function sh(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return ss.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){ss.critical("Error while checking selector: "+o,e)}}return!1}function sp(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return ss.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var i,o=n[i];try{if(e.matches(o))return!0}catch(e){ss.critical("Error while checking selector: "+o,e)}}var s=sa(e);for(i=0;i<o7.length;i++)if(s[o7[i]])return!0;return!1}function sd(e){return e&&1===e.nodeType}function sf(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
1function sg(e){return e&&3===e.nodeType}function sm(e,t,r,n){if(!sh(e,t,r,n))return!1;for(var i,o=e;o.parentNode&&!sf(o,"body");o=o.parentNode){var s=sa(o);for(i=0;i<se.length;i++)if(s[se[i]])return!1}var a=sa(e);for(i=0;i<o8.length;i++)if(a[o8[i]])return!0;if(sf(e,"input")||sf(e,"select")||sf(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var c=e.type||"";if("string"==typeof c)switch(c.toLowerCase()){case"hidden":case"password":return!1}var u=e.name||e.id||"";return!("string"==typeof u&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(u.replace(/[^a-zA-Z0-9]/g,"")))&&!0}function sv(e){if(null===e||i2.isUndefined(e))return!1;if("string"==typeof e&&(e=i2.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function sy(e){var t="onscrollend"in n9,r=i5(e),n=o3;if(!t){var i=null;r=i5(function(){clearTimeout(i),i=setTimeout(e,100)}),n=o9}return{listener:r,eventType:n}}function s_(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<so.length;t++)if(e.hasAttribute(so[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&sr[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function sb(){this.clicks=[]}function sw(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}sb.prototype.isRageClick=function(e,t,r){var n=(r=r||{}).threshold_px||30,i=r.timeout_ms||1e3,o=r.click_count||4,s=Date.now(),a=this.clicks[this.clicks.length-1];if(a&&s-a.timestamp<i&&Math.sqrt(Math.pow(e-a.x,2)+Math.pow(t-a.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:s}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:s}];return!1},sw.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e.target||e.srcElement}},sw.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},sw.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=this.getComposedPath(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},sw.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){ss.critical("Error while observing shadow root",e)}}},sw.prototype.start=function(){if(!this.observedShadowRoots){if("undefined"==typeof WeakSet)return void ss.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},sw.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){ss.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var sk=[oX,"input",o4,"select","toggle"],sS=[o3],sC=[oQ],sI={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function sx(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}sx.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||function(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(sn[t])return!0;
vendor: 4,142 bytes, line 1
1if(s_(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(s_(r))return!1;if(r.getRootNode&&r.getRootNode()!==iG){var i=r.getRootNode();if(i.host&&s_(i.host))return!1}r=r.parentElement,n++}return!!si[t]}(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},sx.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},sx.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},sx.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},sx.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},sx.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},sx.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},sx.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;sk.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}})}),sC.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),sS.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,sI)}catch(e){ss.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new sw(function(){e.recordChangeEvent()},sI),this.shadowDOMObserver.start()}catch(e){ss.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},sx.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){ss.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){ss.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){ss.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var sE="autocapture",sO="full-url",sM="allow_selectors",sR="allow_url_regexes",sA="block_attrs",sT="block_element_callback",sP="block_selectors",sD="block_url_regexes",sN="capture_extra_attrs",sL="capture_text_content",sF="scroll_capture_all",sU="scroll_depth_percent_checkpoints",sB="click",sj="dead_click",sq="input",sz="pageview",sW="rage_click",sV="scroll",s$="page_leave",sG="submit",sH={};sH[sM]=[],sH[sR]=[],sH[sA]=[],sH[sT]=null,sH[sP]=[],sH[sD]=[],sH[sN]=[],sH[sL]=!1,sH[sF]=!1,sH[sU]=[25,50,75,100],sH[sB]=!0,sH[sj]=!0,sH[sq]=!0,sH[sz]=sO,sH[sW]=!0,sH[sV]=!0,sH[s$]=!1,sH[sG]=!0;var sY={$mp_autocapture:!0}
1,sZ="$mp_click",sJ="$mp_dead_click",sX="$mp_rage_click",sK=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};sK.prototype.init=function(){if(!function(){try{return!!iG.createElement("div").matches}catch(e){return!1}}())return void ss.critical("Autocapture unavailable: missing required DOM APIs");this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},sK.prototype.getFullConfig=function(){var e=this.mp.get_config(sE);return e?i2.isObject(e)?i2.extend({},sH,e):sH:{}},sK.prototype.getConfig=function(e){return this.getFullConfig()[e]},sK.prototype.currentUrlBlocked=function(){var e,t=i2.info.currentUrl(),r=this.getConfig(sR)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(e){return ss.critical("Error while checking block URL regex: "+i,e),!0}}if(!n)return!0}var o=this.getConfig(sD)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(t){return ss.critical("Error while checking block URL regex: "+o[e],t),!0}return!1},sK.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(sE)?this.getConfig(sz):this.mp.get_config("track_pageview")},sK.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===sZ&&!this.getConfig(sB)||t===sX&&!this._getClickTrackingConfig(sW)||t===sJ&&!this._getClickTrackingConfig(sj)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,c=t.captureExtraAttrs||[],u=t.capturedForHeatMap||!1,l={};i2.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(sg(p)&&(p=p.parentNode),function(e,t){if(!e||sf(e,"html")||!sd(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===o4;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===oX;return t.type===oK;case"select":case"textarea":return t.type===oX;default:return t.type===oK}}(p,e)&&sh(p,e,r,n)&&!sp(p,e,o,s)){for(var d=[p],f=p;f.parentNode&&!sf(f,"body");)d.push(f.parentNode),f=f.parentNode;var g,m=[],v=!1;if(i2.each(d,function(t){var i=sm(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(g=t.getAttribute("href"),g=i&&sv(g)&&g),sp(t,e,o,s)&&(v=!0),m.push(su(t,e,l,c,r,n))},this),!v){var y=iG.documentElement;if(h={$event_type:e.type,$host:n9.location.host,$pathname:n9.location.pathname,$elements:m,$el_attr__href:g,$viewportHeight:Math.max(y.clientHeight,n9.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,n9.innerWidth||0),$pageHeight:iG.body.offsetHeight||0,$pageWidth:iG.body.offsetWidth||0},i2.each(c,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);sv(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=sl(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===oK&&(i2.each(o6,function(t){t in e&&(h["$"+t]=e[t])}),u&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(sf(i,"a")||sf(i,"button")||sf(i,"input")||sf(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=sl(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!sh(p,e,r,n)||sp(p,e,o,s))return null;var b=su(p,e,l,c,r,n);h.$target=b,h.$el_classes=b.$classes,i2.extend(h,i2.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(sM),blockAttrs:this.getConfig(sA),blockElementCallback:this.getConfig(sT),blockSelectors:this.getConfig(sP),captureExtraAttrs:this.getConfig(sN),captureTextContent:this.getConfig(sL),capturedForHeatMap:r});n&&(i2.extend(n,sY),this.mp.track(t,n))}},sK.prototype.initPageListeners=function(){if(n9.removeEventListener(o2,this.listenerPopstate),n9.removeEventListener(oQ,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(s$)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){n9.dispatchEvent(new Event(o1))},this.listenerHashchange=function(){n9.dispatchEvent(new Event(o1))},n9.addEventListener(o2,this.listenerPopstate),n9.addEventListener(oQ,this.listenerHashchange);var e=n9.history.pushState;"function"==typeof e&&(n9.history.pushState=function(t,r,n){e.call(n9.history,t,r,n),n9.dispatchEvent(new Event(o1))});var t=n9.history.replaceState;"function"==typeof t&&(n9.history.replaceState=function(e,r,n){t.call(n9.history,e,r,n),n9.dispatchEvent(new Event(o1))})}},sK.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},sK.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession){this.hasTrackedScrollSession=!0;
1var n=Math.max(iG.documentElement.clientHeight,n9.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=i2.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||i2.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(iG.documentElement.clientWidth,n9.innerWidth||0)},sY);this.mp.is_recording_heatmap_data()&&!this.getConfig(s$)&&(s.$captured_for_heatmap=!0),this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},sK.prototype._initScrollDepthTracking=function(){if(n9.removeEventListener(o9,this.listenerScrollDepth),n9.removeEventListener(o3,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){ss.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(iG.documentElement.clientHeight,n9.innerHeight||0);var e=sy((function(){if(!this.currentUrlBlocked()){var e=Math.max(iG.documentElement.clientHeight,n9.innerHeight||0)+n9.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=iG.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,n9.addEventListener(e.eventType,this.listenerScrollDepth)}},sK.prototype.initClickTracking=function(){n9.removeEventListener(oK,this.listenerClick),(this.getConfig(sB)||this.mp.get_config("record_heatmap_data"))&&(ss.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(sB)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,sZ)}).bind(this),n9.addEventListener(oK,this.listenerClick))},sK.prototype.initDeadClickTracking=function(){if(!this._getClickTrackingConfig(sj)&&!this.mp.get_config("record_heatmap_data"))return void this.stopDeadClickTracking();ss.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new sx((function(e){this.trackDomEvent(e,sJ)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(sj);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),n9.addEventListener(oK,this.listenerDeadClick))},sK.prototype.initInputTracking=function(){n9.removeEventListener(oX,this.listenerChange),this.getConfig(sq)&&(ss.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(sq)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),n9.addEventListener(oX,this.listenerChange))},sK.prototype.initPageviewTracking=function(){if(n9.removeEventListener(o1,this.listenerLocationchange),this.pageviewTrackingConfig()){
1ss.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(sY)),t&&(e=i2.info.currentUrl()),this.listenerLocationchange=i5((function(){if(!this.currentUrlBlocked()){var t=i2.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();i===sO?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(sY)&&(e=t),n&&(this.lastScrollCheckpoint=0,ss.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),n9.addEventListener(o1,this.listenerLocationchange)}},sK.prototype.initRageClickTracking=function(){n9.removeEventListener(oK,this.listenerRageClick),(this._getClickTrackingConfig(sW)||this.mp.get_config("record_heatmap_data"))&&(ss.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new sb),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(sW);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e.pageX,e.pageY,t)&&this.trackDomEvent(e,sX)}).bind(this),n9.addEventListener(oK,this.listenerRageClick))},sK.prototype.initScrollTracking=function(){if(n9.removeEventListener(o3,this.listenerScroll),n9.removeEventListener(o9,this.listenerScroll),this.getConfig(sV)){ss.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(sV)&&!this.currentUrlBlocked()){var e=this.getConfig(sF),t=(this.getConfig(sU)||[]).slice().sort(function(e,t){return e-t}),r=n9.scrollY,n=i2.extend({$scroll_top:r},sY);try{var i=iG.body.scrollHeight,o=Math.round(r/(i-n9.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){ss.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this),t=sy(e);this.listenerScroll=t.listener,n9.addEventListener(t.eventType,this.listenerScroll)}},sK.prototype.initSubmitTracking=function(){n9.removeEventListener(o4,this.listenerSubmit),this.getConfig(sG)&&(ss.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(sG)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),n9.addEventListener(o4,this.listenerSubmit))},sK.prototype.initPageLeaveTracking=function(){if(iG.removeEventListener(o5,this.listenerPageLeaveVisibilitychange),n9.removeEventListener(o1,this.listenerPageLeaveLocationchange),n9.removeEventListener(o0,this.listenerPageLoad),this.getConfig(s$)||this.mp.get_config("record_heatmap_data")){ss.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=i2.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=iG.body.scrollHeight}).bind(this),n9.addEventListener(o0,this.listenerPageLoad),this.listenerPageLeaveLocationchange=i5((function(t){if(!this.currentUrlBlocked()){var r=i2.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(iG.documentElement.clientHeight,n9.innerHeight||0),this.previousScrollHeight=iG.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),n9.addEventListener(o1,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){iG.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),iG.addEventListener(o5,this.listenerPageLeaveVisibilitychange)}},sK.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(n9.removeEventListener(oK,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},i6(sK);var sQ=i4("flags"),s0="flags",s1="context",s2={};s2[s1]={};var s3=function(e){this.fetch=n9.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};s3.prototype.init=function(){if(!this.minApisSupported())return void sQ.critical("Feature Flags unavailable: missing minimum required APIs");this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set},s3.prototype.getFullConfig=function(){var e=this.getMpConfig(s0);return e?i2.isObject(e)?i2.extend({},s2,e):s2:{}},s3.prototype.getConfig=function(e){return this.getFullConfig()[e]},s3.prototype.isSystemEnabled=function(){return!!this.getMpConfig(s0)},s3.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return sQ.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(s0);i2.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(s1);return r[s1]=i2.extend({},n,e),this.setMpConfig(s0,r),this.fetchFlags()},s3.prototype.areFlagsReady=function(){return this.isSystemEnabled()||sQ.error("Feature Flags not enabled"),!!this.flags},s3.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r="00-"+i2.UUID().replace(/-/g,"")+"-"+i2.UUID().replace(/-/g,"").substring(0,16)+"-01";sQ.log("Fetching flags for distinct ID: "+e);var n=i2.extend({distinct_id:e,device_id:t},this.getConfig(s1)),i=new URLSearchParams;i.set("context",JSON.stringify(n)),i.set("token",this.getMpConfig("token")),i.set("mp_lib","web"),i.set("$lib_version",iF.LIB_VERSION);var o=this.getFullApiRoute()+"?"+i.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(n9,o,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json().then((function(e){var t=e.flags;if(!t)throw Error("No flags in API response");var n=new Map;i2.each(t,function(e,t){n.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester})}),this.flags=n,this._traceparent=r}).bind(this)).catch((function(e){this.markFetchComplete(),sQ.error(e)}).bind(this))}).bind(this)).catch((function(e){this.markFetchComplete(),sQ.error(e)}).bind(this)),this.fetchPromise},s3.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime)return void sQ.error("Fetch in progress started time not set, cannot mark fetch complete");this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},s3.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(e){return sQ.error(e),t}):new Promise(function(e){sQ.critical("Feature Flags not initialized"),e(t)})},s3.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return sQ.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(sQ.log('No flag found: "'+e+'"'),t)},s3.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return sQ.error(e),t})},s3.prototype.getFeatureData=function(e,t){return sQ.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value(
1) instead."),this.getVariantValue(e,t)},s3.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},s3.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return sQ.error(e),t})},s3.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(sQ.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},s3.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};"undefined"!==t.experiment_id&&(r.$experiment_id=t.experiment_id),"undefined"!==t.is_experiment_active&&(r.$is_experiment_active=t.is_experiment_active),"undefined"!==t.is_qa_tester&&(r.$is_qa_tester=t.is_qa_tester),this.track("$experiment_started",r)}},s3.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},i6(s3),s3.prototype.are_flags_ready=s3.prototype.areFlagsReady,s3.prototype.get_variant=s3.prototype.getVariant,s3.prototype.get_variant_sync=s3.prototype.getVariantSync,s3.prototype.get_variant_value=s3.prototype.getVariantValue,s3.prototype.get_variant_value_sync=s3.prototype.getVariantValueSync,s3.prototype.is_enabled=s3.prototype.isEnabled,s3.prototype.is_enabled_sync=s3.prototype.isEnabledSync,s3.prototype.update_context=s3.prototype.updateContext,s3.prototype.get_feature_data=s3.prototype.getFeatureData;var s9=function(){};s9.prototype.create_properties=function(){},s9.prototype.event_handler=function(){},s9.prototype.after_track_handler=function(){},s9.prototype.init=function(e){return this.mp=e,this},s9.prototype.track=function(e,t,r,n){var i=this,o=i2.dom_query(e);return 0===o.length?void i3.error("The DOM query ("+e+") returned 0 elements"):(i2.each(o,function(e){i2.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},s9.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){!r.callback_fired&&(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},s9.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):i2.extend({},e)};var s4=function(){this.override_event="click"};i2.inherit(s4,s9),s4.prototype.create_properties=function(e,t){var r=s4.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},s4.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},s4.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var s5=function(){this.override_event="submit"};i2.inherit(s5,s9),s5.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},s5.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var s6="$set",s8="$set_once",s7="$unset",ae="$add",at="$append",ar="$union",an="$remove",ai={set_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[s6]=n,r},unset_action:function(e){var t={},r=[];return i2.isArray(e)||(e=[e]),i2.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[s7]=r,t},set_once_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[s8]=n,r},union_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=i2.isArray(e)?e:[e])},this):n[e]=i2.isArray(t)?t:[t],r[ar]=n,r},append_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[at]=n,r},remove_action:function(e,t){var r={},n={};return i2.isObject(e)?i2.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[an]=n,r},delete_action:function(){var e={};return e.$delete="",e}},ao=function(){};i2.extend(ao.prototype,ai),ao.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},ao.prototype.set=ox(function(e,t,r){var n=this.set_action(e,t);return i2.isObject(e)&&(r=t),this._send_request(n,r)}),ao.prototype.set_once=ox(function(e,t,r){var n=this.set_once_action(e,t);return i2.isObject(e)&&(r=t),this._send_request(n,r)}),ao.prototype.unset=ox(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ao.prototype.union=ox(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),ao.prototype.delete=ox(function(e){var t=this.delete_action();return this._send_request(t,e)}),ao.prototype.remove=ox(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),ao.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=i2.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},ao.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},ao.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ao.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ao.prototype.remove=ao.prototype.remove,ao.prototype.set=ao.prototype.set,ao.prototype.set_once=ao.prototype.set_once,ao.prototype.union=ao.prototype.union,ao.prototype.unset=ao.prototype.unset,ao.prototype.toString=ao.prototype.toString;var as=function(){};i2.extend(as.prototype,ai),as.prototype._init=function(e){this._mixpanel=e},as.prototype.set=oI(function(e,t,r){var n=this.set_action(e,t);return i2.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[s6]=i2.extend({},i2.info.people_properties(),n[s6]),this._send_request(n,r)}),as.prototype.set_once=oI(function(e,t,r){var n=this.set_once_action(e,t);return i2.isObject(e)&&(r=t),this._send_request(n,r)}),as.prototype.unset=oI(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),as.prototype.increment=oI(function(e,t,r){var n={},i={};return i2.isObject(e)?(i2.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void i3.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(i2.isUndefined(t)&&(t=1),i[e]=t),n[ae]=i,this._send_request(n,r)}),as.prototype.append=oI(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),as.prototype.remove=oI(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),as.prototype.union=oI(function(e,t,r){i2.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),as.prototype.track_charge=oI(function(){i3.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),as.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},as.prototype.delete_user=function(){if(!this._identify_called())return void i3.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},as.prototype.toString=function(){return this._mixpanel.toString()+".people"},as.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=i2.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),i2.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),i2.truncate(o,255))},as.prototype._get_config=function(e){return this._mixpanel.get_config(e)},as.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},as.prototype._enqueue=function(e){s6 in e?this._mixpanel.persistence._add_to_people_queue(s6,e):s8 in e?this._mixpanel.persistence._add_to_people_queue(s8,e):s7 in e?this._mixpanel.persistence._add_to_people_queue(s7,e):ae in e?this._mixpanel.persistence._add_to_people_queue(ae,e):at in e?this._mixpanel.persistence._add_to_people_queue(at,e):an in e?this._mixpanel.persistence._add_to_people_queue(an,e):ar in e?this._mixpanel.persistence._add_to_people_queue(ar,e):i3.error("Invalid call to _enqueue():",e)},as.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=i2.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!i2.isUndefined(o)&&i2.isObject(o)&&!i2.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mi
1xpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),i2.isUndefined(r)||r(t,n)}))},as.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(s6,this.set,e),this._flush_one_queue(s8,this.set_once,n),this._flush_one_queue(s7,this.unset,o,function(e){return i2.keys(e)}),this._flush_one_queue(ae,this.increment,t),this._flush_one_queue(ar,this.union,i);var c=this._mixpanel.persistence.load_queue(at);if(!i2.isUndefined(c)&&i2.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(at,u),i2.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)u=(c=this._mixpanel.persistence.load_queue(at)).pop(),a._mixpanel.persistence.save(),i2.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(an);if(!i2.isUndefined(p)&&i2.isArray(p)&&p.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(an,d),i2.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)d=(p=this._mixpanel.persistence.load_queue(an)).pop(),a._mixpanel.persistence.save(),i2.isEmptyObject(d)||a.remove(d,f)},as.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},as.prototype.set=as.prototype.set,as.prototype.set_once=as.prototype.set_once,as.prototype.unset=as.prototype.unset,as.prototype.increment=as.prototype.increment,as.prototype.append=as.prototype.append,as.prototype.remove=as.prototype.remove,as.prototype.union=as.prototype.union,as.prototype.track_charge=as.prototype.track_charge,as.prototype.clear_charges=as.prototype.clear_charges,as.prototype.delete_user=as.prototype.delete_user,as.prototype.toString=as.prototype.toString;var aa="__mps",ac="__mpso",au="__mpus",al="__mpa",ah="__mpap",ap="__mpr",ad="__mpu",af="$people_distinct_id",ag="__alias",am="__timers",av=[aa,ac,au,al,ah,ap,ad,af,ag,am],ay=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&&(i3.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&i2.localStorage.is_supported()?this.storage=i2.localStorage:this.storage=i2.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};ay.prototype.properties=function(){var e={};return this.load(),i2.each(this.props,function(t,r){i2.include(av,r)||(e[r]=t)}),e},ay.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=i2.extend({},e))}},ay.prototype.upgrade=function(){var e,t;this.storage===i2.localStorage?(e=i2.cookie.parse(this.name),i2.cookie.remove(this.name),i2.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===i2.cookie&&(t=i2.localStorage.parse(this.name),i2.localStorage.remove(this.name),t&&this.register_once(t))},ay.prototype.save=function(){this.disabled||this.storage.set(this.name,of(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ay.prototype.load_prop=function(e){return this.load(),this.props[e]},ay.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ay.prototype.clear=function(){this.remove(),this.props={}},ay.prototype.register_once=function(e,t,r){return!!i2.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),i2.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},ay.prototype.register=function(e,t){return!!i2.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),i2.extend(this.props,e),this.save(),!0)},ay.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},ay.prototype.update_search_keyword=function(e){this.register(i2.info.searchInfo(e))},ay.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:i2.info.referringDomain(e)||"$direct"},"")},ay.prototype.get_referrer_info=function(){return i2.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ay.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)},ay.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ay.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},ay.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},ay.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ay.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ay.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ay.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(s6),o=this._get_or_create_queue(s8),s=this._get_or_create_queue(s7),a=this._get_or_create_queue(ae),c=this._get_or_create_queue(ar),u=this._get_or_create_queue(an,[]),l=this._get_or_create_queue(at,[]);r===aa?(i2.extend(i,n),this._pop_from_people_queue(ae,n),this._pop_from_people_queue(ar,n),this._pop_from_people_queue(s7,n)):r===ac?(i2.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(s7,n)):r===au?i2.each(n,function(e){i2.each([i,o,a,c],function(t){e in t&&delete t[e]}),i2.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===al?(i2.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(s7,n)):r===ad?(i2.each(n,function(e,t){i2.isArray(e)&&(t in c||(c[t]=[]),i2.each(e,function(e){i2.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(s7,n)):r===ap?(u.push(n),this._pop_from_people_queue(at,n)):r===ah&&(l.push(n),this._pop_from_people_queue(s7,n)),i3.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),i3.log(t),this.save()},ay.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];i2.isUndefined(r)||i2.each(t,function(t,n){e===at||e===an?i2.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},ay.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},ay.prototype._get_queue_key=function(e){return e===s6?aa:e===s8?ac:e===s7?au:e===ae?al:e===at?ah:e===an?ap:e===ar?ad:void i3.error("Invalid queue:",e)},ay.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=i2.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},ay.prototype.set_event_timer=function(e,t){var r=this.load_prop(am)||{};r[e]=t,this.props[am]=r,this.save()},ay.prototype.remove_event_timer=function(e){var t=(this.load_prop(am)||{})[e];return i2.isUndefined(t)||(delete this.props[am][e],this.save()),t};var a_=function(e,t){throw Error(e+" not available in this build.")},ab=function(e){return e},aw="mixpanel",ak="base64",aS="$device:",aC=n9.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,aI=!aC&&-1===iZ.indexOf("MSIE")&&-1===iZ.indexOf("Mozilla"),ax=null;i$.sendBeacon&&(ax=function(){return i$.sendBeacon.apply(i$,arguments)});var aE={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},aO={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:aE,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:ak,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:od,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:od,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:!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: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_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:864e5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},aM=!1,aR=function(){},aA=function(e,t,r){var n,s=r===aw?o:o[r];if(s&&0===i)n=s;else{if(s&&!i2.isArray(s))return void i3.error("You have already initialized "+r);n=new aR}if(n._cached_groups={},n._init(e,t,r),n.people=new as,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var a=i2.info.campaignParams(null),c={},u=!1;i2.each(a,function(e,t){c["initial_"+t]=e,e&&(u=!0)}),u&&n.people.set_once(c)}return iF.DEBUG=iF.DEBUG||n.get_config("debug"),!i2.isUndefined(s)&&i2.isArray(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),n};aR.prototype.init=function(e,t,r){if(i2.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===aw)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=aA(e,t,r);return o[r]=n,n._loaded(),n},aR.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||aO.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.set_config(i2.extend({},aO,n,t,{name:r,token:e,callback_fn:(r===aw?r:aw+"."+r)+"._jsc"})),this._jsc=od,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(i2.localStorage.is_supported(!0)&&aC){if(this.init_batchers(),ax&&n9.addEventListener){var i=i2.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);n9.addEventListener("pagehide",function(e){e.persisted&&i()}),n9.addEventListener("visibilitychange",function(){"hidden"===iG.visibilityState&&i()})}}else this._batch_requests=!1,i3.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),i2.each(this.get_batcher_configs(),function(e){i3.log("Clearing batch queue "+e.queue_key),i2.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new ay(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=i2.UUID();this.get_distinct_id()||this.register_once({distinct_id:aS+o,$device_id:o},""),this.flags=new s3({getFullApiRoute:i2.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:i2.bind(this.get_config,this),setConfigFunc:i2.bind(this.set_config,this),getPropertyFunc:i2.bind(this.get_property,this),trackingFunc:i2.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new sK(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},aR.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))i3.log("Tab ID initialization skipped due to disable_persistence config");else if(i2.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;(i2.sessionStorage.get(r)||!i2.sessionStorage.get(t))&&i2.sessionStorage.set(t,"$tab-"+i2.UUID()),i2.sessionStorage.set(r,"1"),this.tab_id=i2.sessionStorage.get(t),n9.addEventListener("beforeunload",function(){i2.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.")},aR.prototype.get_tab_id=function(){return this.tab_id||null},aR.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return i3.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new o_(ov),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(oz(e[r])||e[r].tabId===t)return!0;return!1}).catch(i2.bind(function(e){this.report_error("Error checking recording registry",e)},this))},aR.prototype._check_and_start_session_recording=oC(function(e){if(!n9.MutationObserver)return void i3.critical("Browser does not support MutationObserver; skipping session recording");var t=i2.bind(function(e){var t=i2.bind(function(){this._recorder=this._recorder||new n9.__mp_recorder(this),this._recorder.resumeRecording(e)},this);i2.isUndefined(n9.__mp_recorder)?a_(this.get_config("recorder_src"),t):t()},this),r=this.get_config("record_sessions_percent")>0&&100*Math.random()<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(e){e&&t(!1)})}),aR.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},aR.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},aR.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},aR.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},aR.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},aR.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},aR.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+i2.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")})),e},aR.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},aR.prototype.__get_recorder=function(){return this._recorder},aR.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=i2.info.campaignParams(null);i2.each(e,(function(e,t){this.unregister(t)}).bind(this))}},aR.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(iG.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(i2.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(iG.referrer)},aR.prototype._dom_loaded=function(){i2.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||i2.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},aR.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(!aM)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},aR.prototype._prepare_callback=function(e,t){if(i2.isUndefined(e))return null;if(aC)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},aR.prototype._send_request=function(e,t,r,n){var i=!0;if(aI)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose
1:this.get_config("verbose")},s=null;!n&&(i2.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=i2.extend(o,r||{}),aC||(r.method="GET");var a="POST"===r.method,c=ax&&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),!aC&&(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),i2.extend(t,this.get_config("api_extra_query_params")),e+="?"+i2.HTTPBuildQuery(t);var l=this;if("img"in t){var h=iG.createElement("img");h.src=e,iG.body.appendChild(h)}else if(c){try{i=ax(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(aC)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var d=this.get_config("xhr_headers");if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),i2.each(d,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var f=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState){if(200===p.status){if(n)if(u){try{e=i2.JSONDecode(p.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else if(t=p.timeout&&!p.status&&new Date().getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(u){var e,t,i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=iG.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=iG.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},aR.prototype._execute_array=function(e){var t,r=[],n=[],i=[];i2.each(e,function(e){e&&(t=e[0],i2.isArray(t)?i.push(e):"function"==typeof e?e.call(this):i2.isArray(e)&&"alias"===t?r.push(e):i2.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){i2.each(e,function(e){if(i2.isArray(e[0])){var r=t;i2.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)},aR.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},aR.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},aR.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=i2.bind(function(e){return new oq(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:i2.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:i2.bind(function(t){return this._run_hook("before_send_"+e.type,t)},this),stopAllBatchingFunc:i2.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()},aR.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,i2.each(this.request_batchers,function(e){e.start()}))},aR.prototype.stop_batch_senders=function(){this._batch_requests=!1,i2.each(this.request_batchers,function(e){e.stop(),e.clear()})},aR.prototype.push=function(e){this._execute_array([e])},aR.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},aR.prototype._encode_data_for_request=function(e){var t=of(e);return this.get_config("api_payload_format")===ak&&(t=i2.base64Encode(t)),{data:t}},aR.prototype._track_or_batch=function(e,t){var r=i2.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||od;var a=!0,c=i2.bind(function(){return(s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r)?(i3.log("MIXPANEL REQUEST:"),i3.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},aR.prototype.track=oC(function(e,t,r,n){n||"function"!=typeof r||(n=r,r=null);var i=(r=r||{}).transport;i&&(r.transport=i);var o=r.send_immediately;if("function"!=typeof n&&(n=od),i2.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=i2.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!i2.isUndefined(s)){var a=new Date().getTime()-s;t.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?i2.info.marketingParams():{};t=i2.extend({},i2.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config("property_blacklist");i2.isArray(u)?i2.each(u,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:e,properties:t};return this._track_or_batch({type:"events",data:l,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n)}),aR.prototype.set_group=oC(function(e,t,r){i2.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),aR.prototype.add_group=oC(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)}),aR.prototype.remove_group=oC(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)}),aR.prototype.track_with_groups=oC(function(e,t,r,n){var i=i2.extend({},t||{});return i2.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),aR.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},aR.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},aR.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 ao)._init(this,e,t),this._cached_groups[r]=n),n},aR.prototype.track_pageview=oC(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=i2.extend(i2.info.mpPageViewProperties(),i2.info.campaignParams(),i2.info.clickParams()),i=i2.extend({},n,e);return this.track(r,i)}),aR.prototype.track_links=function(){return this._track_dom.call(this,s4,arguments)},aR.prototype.track_forms=function(){return this._track_dom.call(this,s5,arguments)},aR.prototype.time_event=function(e){if(i2.isUndefined(e))return void 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 aT={persistent:!0},aP=function(e){var t;return t=i2.isObject(e)?e:i2.isUndefined(e)?{}:{days:e},i2.extend({},aT,t)};aR.prototype.register=function(e,t){var r=aP(t);r.persistent?this.persistence.register(e,r.days):i2.extend(this.unpersisted_superprops,e)},aR.prototype.register_once=function(e,t,r){var n=aP(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),i2.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))},aR.prototype.unregister=function(e,t){(t=aP(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},aR.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},aR.prototype.identify=function(e,t,r,n,i,o,s,a){var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(aS))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(ag)&&(this.unregister(ag),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags()},aR.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=i2.UUID();this.register_once({distinct_id:aS+e,$device_id:e},""),this._check_and_start_session_recording()},aR.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},aR.prototype.alias=function(e,t){if(e===this.get_property(af))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(i2.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(ag,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)},aR.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},aR.prototype.set_config=function(e){i2.isObject(e)&&(i2.extend(this.config,e),e.batch_size&&i2.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),iF.DEBUG=iF.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},aR.prototype.get_config=function(e){return this.config[e]},aR.prototype._run_hook=function(e){var t=(this.config.hooks[e]||ab).apply(this,iq.call(arguments,1
1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},aR.prototype.get_property=function(e){return this.persistence.load_prop([e])},aR.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},aR.prototype.toString=function(){var e=this.get_config("name");return e!==aw&&(e=aw+"."+e),e},aR.prototype._event_is_disabled=function(e){return i2.isBlockedUA(iZ)||this._flags.disable_all_events||i2.include(this.__disabled_events,e)},aR.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&i2.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||i2.cookie.get("mp_optout"))&&(i2.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},aR.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},aR.prototype._gdpr_call_func=function(e,t){return t=i2.extend({track:i2.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),i2.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},aR.prototype.opt_in_tracking=function(e){e=i2.extend({enable_persistence:!0},e),this._gdpr_call_func(ob,e),this._gdpr_update_persistence(e)},aR.prototype.opt_out_tracking=function(e){(e=i2.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ow,e),this._gdpr_update_persistence(e)},aR.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(ok,e)},aR.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(oS,e)},aR.prototype.clear_opt_in_out_tracking=function(e){e=i2.extend({enable_persistence:!0},e),this._gdpr_call_func(oE,e),this._gdpr_update_persistence(e)},aR.prototype.report_error=function(e,t){i3.error.apply(i3.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){i3.error(e)}},aR.prototype.init=aR.prototype.init,aR.prototype.reset=aR.prototype.reset,aR.prototype.disable=aR.prototype.disable,aR.prototype.time_event=aR.prototype.time_event,aR.prototype.track=aR.prototype.track,aR.prototype.track_links=aR.prototype.track_links,aR.prototype.track_forms=aR.prototype.track_forms,aR.prototype.track_pageview=aR.prototype.track_pageview,aR.prototype.register=aR.prototype.register,aR.prototype.register_once=aR.prototype.register_once,aR.prototype.unregister=aR.prototype.unregister,aR.prototype.identify=aR.prototype.identify,aR.prototype.alias=aR.prototype.alias,aR.prototype.name_tag=aR.prototype.name_tag,aR.prototype.set_config=aR.prototype.set_config,aR.prototype.get_config=aR.prototype.get_config,aR.prototype.get_api_host=aR.prototype.get_api_host,aR.prototype.get_property=aR.prototype.get_property,aR.prototype.get_distinct_id=aR.prototype.get_distinct_id,aR.prototype.toString=aR.prototype.toString,aR.prototype.opt_out_tracking=aR.prototype.opt_out_tracking,aR.prototype.opt_in_tracking=aR.prototype.opt_in_tracking,aR.prototype.has_opted_out_tracking=aR.prototype.has_opted_out_tracking,aR.prototype.has_opted_in_tracking=aR.prototype.has_opted_in_tracking,aR.prototype.clear_opt_in_out_tracking=aR.prototype.clear_opt_in_out_tracking,aR.prototype.get_group=aR.prototype.get_group,aR.prototype.set_group=aR.prototype.set_group,aR.prototype.add_group=aR.prototype.add_group,aR.prototype.remove_group=aR.prototype.remove_group,aR.prototype.track_with_groups=aR.prototype.track_with_groups,aR.prototype.start_batch_senders=aR.prototype.start_batch_senders,aR.prototype.stop_batch_senders=aR.prototype.stop_batch_senders,aR.prototype.start_session_recording=aR.prototype.start_session_recording,aR.prototype.stop_session_recording=aR.prototype.stop_session_recording,aR.prototype.pause_session_recording=aR.prototype.pause_session_recording,aR.prototype.resume_session_recording=aR.prototype.resume_session_recording,aR.prototype.get_session_recording_properties=aR.prototype.get_session_recording_properties,aR.prototype.get_session_replay_url=aR.prototype.get_session_replay_url,aR.prototype.get_tab_id=aR.prototype.get_tab_id,aR.prototype.DEFAULT_API_ROUTES=aE,aR.prototype.__get_recorder=aR.prototype.__get_recorder,ay.prototype.properties=ay.prototype.properties,ay.prototype.update_search_keyword=ay.prototype.update_search_keyword,ay.prototype.update_referrer_info=ay.prototype.update_referrer_info,ay.prototype.get_cross_subdomain=ay.prototype.get_cross_subdomain,ay.prototype.clear=ay.prototype.clear;var aD={},aN=function(){i2.each(aD,function(e,t){t!==aw&&(o[t]=e)}),o._=i2},aL=(a_=function(e,t){t()},i=0,(o=new aR).init=function(e,t,r){if(r)return o[r]||(o[r]=aD[r]=aA(e,t,r),o[r]._loaded()),o[r];var n=o;aD[aw]?n=aD[aw]:e&&((n=aA(e,t,aw))._loaded(),aD[aw]=n),o=n,1===i&&(n9[aw]=o),aN()},o.init(),function(){function e(){e.done||(e.done=!0,aM=!0,aI=!1,i2.each(aD,function(e){e._dom_loaded()}))}if(iG.addEventListener)"complete"===iG.readyState?e():iG.addEventListener("DOMContentLoaded",e,!1);else if(iG.attachEvent){iG.attachEvent("onreadystatechange",e);var t=!1;try{t=null===n9.frameElement}catch(e){}iG.documentElement.doScroll&&t&&function t(){try{iG.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}i2.register_event(n9,"load",e,!0)}(),o)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.