1(window.webpackJsonp=window.webpackJsonp||[]).push([[51],{47:function(e,t,r){"use strict";(function(e,n){var i;if(r.d(t,"a",(function(){return Ad})),"undefined"==typeof window){var o={hostname:""};i={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:o,referrer:""},screen:{width:0,height:0},location:o,addEventListener:function(){},removeEventListener:function(){}}}else i=window;function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t,r,n,i,o,s){try{var a=e[o](s),c=a.value}catch(e){return void r(e)}a.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){a(o,n,i,s,c,"next",e)}function c(e){a(o,n,i,s,c,"throw",e)}s(void 0)}))}}function u(e,t,r){return u=_()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&m(i,r.prototype),i},u.apply(null,arguments)}function l(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 h(){return h=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},h.apply(this,arguments)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}function f(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function g(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 m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function y(e){var t="function"==typeof Map?new Map:void 0;return y=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,p(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),m(n,e)},y(e)}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_=function(){return!!e})()}function b(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 s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function k(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 new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var S,C=Object.defineProperty,I=function(e,t,r){return function(e,t,r){return t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":v(t))?t+"":t,r)},x=Object.defineProperty,E=function(e,t,r){return function(e,t,r){return t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":v(t))?t+"":t,r)},O=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}(O||{}),M={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},A={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},R={};function T(e){if(R[e])return R[e];var t=globalThis[e],r=t.prototype,n=e in M?M[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in A?A[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return R[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?R[e]=u:r}catch(e){return r}}var P={};function D(e,t,r){var n,i=e+"."+String(r);if(P[i])return P[i].call(t);var o=T(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?(P[i]=s,s.call(t)):t[r]}var N={};function L(e,t,r){var n=e+"."+String(r);if(N[n])return N[n].bind(t);var i=T(e)[r];return"function"!=typeof i?t[r]:(N[n]=i,i.bind(t))}var F={childNodes:function(e){return D("Node",e,"childNodes")},parentNode:function(e){return D("Node",e,"parentNode")},parentElement:function(e){return D("Node",e,"parentElement")},textContent:function(e){return D("Node",e,"textContent")},contains:function(e,t){return L("Node",e,"contains")(t)},getRootNode:function(e){return L("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?D("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?D("Element",e,"shadowRoot"):null},querySelector:function(e,t){return D("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return D("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return T("MutationObserver").constructor},patch:function(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}};function 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 Boolean(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=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,(function(e){return z(e,r)})).join("");return(i=n).includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),i}catch(e){return null}var i}function z(e,t){if(function(e){return"styleSheet"in e}(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,i=e.cssText;return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")&&(n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,i=i.replace(n,"$1\\$2")),t?Q(i,t):i}var W=function(){function e(){E(this,"idNodeMap",new Map),E(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){var t;if(!e)return-1;var r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e){var t=this,r=this.getId(e);
1this.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){var r;try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var 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,c=n||o||s,u=r||i||"";if(!c)return e;if(J.test(c)||X.test(c))return"url("+u+c+u+")";if(K.test(c))return"url("+u+c+u+")";if("/"===c[0])return"url("+u+(((a=t).indexOf("//")>-1?a.split("/").slice(0,3).join("/"):a.split("/")[0]).split("?")[0]+c)+u+")";var l=t.split("/"),h=c.split("/");l.pop();for(var p,d=b(h);!(p=d()).done;){var f=p.value;"."!==f&&(".."===f?l.pop():l.push(f))}return"url("+u+l.join("/")+u+")"}))}function ee(e,t){return void 0===t&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function te(e,t){return function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e)for(var s=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}(e,t).join("/* rr_split */")}var re,ne,ie=1,oe=new RegExp("[^a-z0-9-_:]");function se(){return ie++}var ae=/^[^ \t\n\r\u000c]+/,ce=/^[, \t\n\r\u000c]+/;var ue=new WeakMap;function le(e,t){return t&&""!==t.trim()?pe(e,t):t}function he(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function pe(e,t){var r=ue.get(e);if(r||(r=e.createElement("a"),ue.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function de(e,t,r,n){return n?"src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0]?le(e,n):"background"!==r||"table"!==t&&"td"!==t&&"th"!==t?"srcset"===r?function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(ce),!(r>=t.length);){var o=n(ae);if(","===o.slice(-1))o=le(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=le(e,o);for(var a=!1;;){var c=t.charAt(r);if(""===c){i.push((o+s).trim());break}if(a)")"===c&&(a=!1);else{if(","===c){r+=1,i.push((o+s).trim());break}"("===c&&(a=!0)}s+=c,r+=1}}}return i.join(", ")}(e,n):"style"===r?Q(n,pe(e)):"object"===t&&"data"===r?le(e,n):n:le(e,n):n}function fe(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function ge(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&ge(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&&ge(F.parentNode(e),t,r)}function me(e,t,r,n){var i;
vendor: 6,140 bytes, line 1
1if(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(ge(i,t,n))return!0;if(r)if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}catch(e){}return!1}function ve(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.needsMask,a=t.inlineStylesheet,c=t.maskInputOptions,u=void 0===c?{}:c,l=t.maskTextFn,h=t.maskInputFn,p=t.dataURLOptions,d=void 0===p?{}:p,g=t.inlineImages,m=t.recordCanvas,v=t.keepIframeSrcFn,y=t.newlyAddedElement,_=void 0!==y&&y,b=t.cssCaptured,w=void 0!==b&&b,k=function(e,t){if(!t.hasNode(e))return;var r=t.getId(e);return 1===r?void 0:r}(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:O.Document,childNodes:[],compatMode:e.compatMode}:{type:O.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:O.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,c=void 0===a?{}:a,u=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,d=t.recordCanvas,g=t.keepIframeSrcFn,m=t.newlyAddedElement,v=void 0!==m&&m,y=t.rootId,_=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),b=function(e){if(f(e,HTMLFormElement))return"form";var t=$(e.tagName);return oe.test(t)?"div":t}(e),w={},k=e.attributes.length,S=0;S<k;S++){var C=e.attributes[S];fe(b,C.name,C.value)||(w[C.name]=de(n,b,$(C.name),C.value))}if("link"===b&&s){var I=Array.from(n.styleSheets).find((function(t){return t.href===e.href})),x=null;I&&(x=q(I)),x&&(delete w.rel,delete w.href,w._cssText=x)}if("style"===b&&e.sheet){var E=q(e.sheet);E&&(e.childNodes.length>1&&(E=te(E,e)),w._cssText=E)}if("input"===b||"textarea"===b||"select"===b){var M=e.value,A=e.checked;"radio"!==w.type&&"checkbox"!==w.type&&"submit"!==w.type&&"button"!==w.type&&M?w.value=V({element:e,type:H(e),tagName:b,value:M,maskInputOptions:c,maskInputFn:u}):A&&(w.checked=A)}"option"===b&&(e.selected&&!c.select?w.selected=!0:delete w.selected);"dialog"===b&&e.open&&(w.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal");if("canvas"===b&&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,o=G in i?i[G]:i;if(new Uint32Array(o.call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some((function(e){return 0!==e})))return!1}return!0})(e)||(w.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var R=e.toDataURL(h.type,h.quality),T=n.createElement("canvas");T.width=e.width,T.height=e.height,R!==T.toDataURL(h.type,h.quality)&&(w.rr_dataURL=R)}if("img"===b&&p){re||(re=n.createElement("canvas"),ne=re.getContext("2d"));var P=e,D=(P.currentSrc||P.getAttribute("src"),P.crossOrigin),N=function(){P.removeEventListener("load",N);try{re.width=P.naturalWidth,re.height=P.naturalHeight,ne.drawImage(P,0,0),w.rr_dataURL=re.toDataURL(h.type,h.quality)}catch(e){if("anonymous"!==P.crossOrigin)return P.crossOrigin="anonymous",void(P.complete&&0!==P.naturalWidth?N():P.addEventListener("load",N))}"anonymous"===P.crossOrigin&&(D?w.crossOrigin=D:P.removeAttribute("crossorigin"))};P.complete&&0!==P.naturalWidth?N():P.addEventListener("load",N)}if("audio"===b||"video"===b){var L=w;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}v||(e.scrollLeft&&(w.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(w.rr_scrollTop=e.scrollTop));if(_){var F=e.getBoundingClientRect(),U=F.width,B=F.height;w={class:w.class,rr_width:U+"px",rr_height:B+"px"}}"iframe"!==b||g(w.src)||(e.contentDocument||(w.rr_src=w.src),delete w.src);try{customElements.get(b)&&(r=!0)}catch(e){}return{type:O.Element,tagName:b,attributes:w,childNodes:[],isSVG:he(e)||void 0,needBlock:_,rootId:y,isCustom:r}}(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:a,maskInputOptions:u,maskInputFn:h,dataURLOptions:d,inlineImages:g,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:_,rootId:k});case e.TEXT_NODE:return function(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,s=F.parentNode(e),a=s&&s.tagName,c="",u="STYLE"===a||void 0,l="SCRIPT"===a||void 0;l?c="SCRIPT_PLACEHOLDER":o||(c=F.textContent(e),u&&c&&(c=Q(c,pe(t.doc))));!u&&!l&&c&&r&&(c=n?n(c,F.parentElement(e)):c.replace(/[\S]/g,"*"));return{type:O.Text,textContent:c||"",rootId:i}}(e,{doc:r,needsMask:s,maskTextFn:l,rootId:k,cssCaptured:w});case e.CDATA_SECTION_NODE:return{type:O.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:O.Comment,textContent:F.textContent(e)||"",rootId:k};default:return!1}}function ye(e){return null==e?"":e.toLowerCase()}function _e(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,c=t.skipChild,u=void 0!==c&&c,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,d=void 0===p?{}:p,f=t.maskTextFn,g=t.maskInputFn,m=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,w=void 0!==_&&_,k=t.recordCanvas,S=void 0!==k&&k,C=t.onSerialize,I=t.onIframeLoad,x=t.iframeLoadTimeout,E=void 0===x?5e3:x,M=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,R=void 0===A?5e3:A,T=t.keepIframeSrcFn,P=void 0===T?function(){return!1}:T,D=t.newlyAddedElement,N=void 0!==D&&D,L=t.cssCaptured,q=void 0!==L&&L,z=t.needsMask,W=t.preserveWhiteSpace,V=void 0===W||W;z||(z=me(e,s,a,void 0===z));var $,G=ve(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,dataURLOptions:y,inlineImages:w,recordCanvas:S,keepIframeSrcFn:P,newlyAddedElement:N,cssCaptured:q});if(!G)return null;$=n.hasNode(e)?n.getId(e):function(e,t){if(t.comment&&e.type===O.Comment)return!0;
1if(e.type===O.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;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ye(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ye(e.attributes.name)||"icon"===ye(e.attributes.rel)||"apple-touch-icon"===ye(e.attributes.rel)||"shortcut icon"===ye(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&ye(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(ye(e.attributes.property).match(/^(og|twitter|fb):/)||ye(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ye(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===ye(e.attributes.name)||"googlebot"===ye(e.attributes.name)||"bingbot"===ye(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===ye(e.attributes.name)||"generator"===ye(e.attributes.name)||"framework"===ye(e.attributes.name)||"publisher"===ye(e.attributes.name)||"progid"===ye(e.attributes.name)||ye(e.attributes.property).match(/^article:/)||ye(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===ye(e.attributes.name)||"yandex-verification"===ye(e.attributes.name)||"csrf-token"===ye(e.attributes.name)||"p:domain_verify"===ye(e.attributes.name)||"verify-v1"===ye(e.attributes.name)||"verification"===ye(e.attributes.name)||"shopify-checkout-api-token"===ye(e.attributes.name)))return!0}}return!1}(G,m)||!V&&G.type===O.Text&&!G.textContent.replace(/^\s+|\s+$/gm,"").length?-2:se();var H=Object.assign(G,{id:$});if(n.add(e,H),-2===$)return null;C&&C(e);var Z=!u;if(H.type===O.Element){Z=Z&&!H.needBlock,delete H.needBlock;var J=F.shadowRoot(e);J&&j(J)&&(H.isShadowHost=!0)}if((H.type===O.Document||H.type===O.Element)&&Z){m.headWhitespace&&H.type===O.Element&&"head"===H.tagName&&(V=!1);var X={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:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:E,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:P,cssCaptured:!1};if(H.type===O.Element&&"textarea"===H.tagName&&void 0!==H.attributes.value);else{H.type===O.Element&&void 0!==H.attributes._cssText&&"string"==typeof H.attributes._cssText&&(X.cssCaptured=!0);for(var K,Q=b(Array.from(F.childNodes(e)));!(K=Q()).done;){var ee=_e(K.value,X);ee&&H.childNodes.push(ee)}}var te=null;if(U(e)&&(te=F.shadowRoot(e)))for(var re,ne=b(Array.from(F.childNodes(te)));!(re=ne()).done;){var ie=_e(re.value,X);ie&&(j(te)&&(ie.isShadow=!0),H.childNodes.push(ie))}}var oe=F.parentNode(e);return oe&&B(oe)&&j(oe)&&(H.isShadow=!0),H.type===O.Element&&"iframe"===H.tagName&&function(e,t,r){var n=e.contentWindow;if(n){var i,o=!1;try{i=n.document.readyState}catch(e){return}if("complete"===i){var s="about:blank";if(n.location.href!==s||e.src===s||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}else{var a=setTimeout((function(){o||(t(),o=!0)}),r);e.addEventListener("load",(function(){clearTimeout(a),o=!0,t()}))}}}(e,(function(){var t=e.contentDocument;if(t&&I){var r=_e(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:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:E,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:P});r&&I(e,r)}}),E),H.type===O.Element&&"link"===H.tagName&&"string"==typeof H.attributes.rel&&("stylesheet"===H.attributes.rel||"preload"===H.attributes.rel&&"string"==typeof H.attributes.href&&"css"===Y(H.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout((function(){i||(t(),i=!0)}),r);e.addEventListener("load",(function(){clearTimeout(o),i=!0,t()}))}}(e,(function(){if(M){var t=_e(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:z,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:g,slimDOMOptions:m,dataURLOptions:y,inlineImages:w,recordCanvas:S,preserveWhiteSpace:V,onSerialize:C,onIframeLoad:I,iframeLoadTimeout:E,onStylesheetLoad:M,stylesheetLoadTimeout:R,keepIframeSrcFn:P});t&&M(e,t)}}),R),H}
1function be(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function we(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return f(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var ke={exports:{}},Se=String,Ce=function(){return{isColorSupported:!1,reset:Se,bold:Se,dim:Se,italic:Se,underline:Se,inverse:Se,hidden:Se,strikethrough:Se,black:Se,red:Se,green:Se,yellow:Se,blue:Se,magenta:Se,cyan:Se,white:Se,gray:Se,bgBlack:Se,bgRed:Se,bgGreen:Se,bgYellow:Se,bgBlue:Se,bgMagenta:Se,bgCyan:Se,bgWhite:Se}};ke.exports=Ce(),ke.exports.createColors=Ce;var Ie=ke.exports,xe=we(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),Ee=Ie,Oe=xe,Me=function(e){function t(r,n,i,o,s,a){var c;return(c=e.call(this,r)||this).name="CssSyntaxError",c.reason=r,s&&(c.file=s),o&&(c.source=o),a&&(c.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(c.line=n,c.column=i):(c.line=n.line,c.column=n.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}d(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=Ee.isColorSupported),Oe&&e&&(r=Oe(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=Ee.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(y(Error)),Ae=Me;Me.default=Me;var Re={};Re.isClean=Symbol("isClean"),Re.my=Symbol("my");var Te={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var Pe=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Te[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=Te[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),De=Pe;Pe.default=Pe;var Ne=De;
1function Le(e,t){new Ne(t).stringify(e)}var Fe=Le;Le.default=Le;var Ue=Re.isClean,Be=Re.my,je=Ae,qe=De,ze=Fe;function We(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":v(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return We(e,r)})):("object"===o&&null!==i&&(i=We(i)),r[n]=i)}return r}var Ve=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[Ue]=!1,this[Be]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=We(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new je(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0}}},t.markDirty=function(){if(this[Ue]){this[Ue]=!1;for(var e=this;e=e.parent;)e[Ue]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<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 qe).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=b(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":v(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":v(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ze),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];
1return e.warn(t,n)},l(e,[{key:"proxyOf",get:function(){return this}}]),e}(),$e=Ve;Ve.default=Ve;var Ge=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=h({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return d(t,e),l(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}($e),He=Ge;Ge.default=Ge;var Ye=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Ze=xe.SourceMapConsumer,Je=xe.SourceMapGenerator,Xe=xe.existsSync,Ke=xe.readFileSync,Qe=xe.dirname,et=xe.join;var tt=function(){function t(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=Qe(this.mapFile)),n&&(this.text=n)}}var r=t.prototype;return r.consumer=function(){return this.consumerCache||(this.consumerCache=new Ze(this.text)),this.consumerCache},r.decodeInline=function(t){var r;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return r=t.substr(RegExp.lastMatch.length),e?e.from(r,"base64").toString():window.atob(r);var n=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)},r.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},r.isMap=function(e){return"object"===(void 0===e?"undefined":v(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},r.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},r.loadFile=function(e){if(this.root=Qe(e),Xe(e))return this.mapFile=e,Ke(e,"utf-8").toString().trim()},r.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(f(t,Ze))return Je.fromSourceMap(t).toString();if(f(t,Je))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=et(Qe(e),i)),this.loadFile(i)}}},r.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},r.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),rt=tt;tt.default=tt;var nt=xe.SourceMapConsumer,it=xe.SourceMapGenerator,ot=xe.fileURLToPath,st=xe.pathToFileURL,at=xe.isAbsolute,ct=xe.resolve,ut=Ye,lt=xe,ht=Ae,pt=rt,dt=Symbol("fromOffsetCac
1he"),ft=Boolean(nt&&it),gt=Boolean(ct&&at),mt=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":v(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!gt||/^\w+:\/\//.test(t.from)||at(t.from)?this.file=t.from:this.file=ct(t.from)),gt&&ft){var r=new pt(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 "+ut(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":v(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new ht(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 ht(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&&(st&&(i.input.url=st(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[dt])t=this[dt];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[dt]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ct(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=at(a.source)?st(a.source):new URL(a.source,this.map.consumer().sourceRoot||st(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(!ot)throw new Error("file: protocol is not available in this PostCSS build");c.file=ot(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=h({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},l(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),vt=mt;mt.default=mt,lt&<.registerInput&<.registerInput(mt);var yt=xe.SourceMapConsumer,_t=xe.SourceMapGenerator,bt=xe.dirname,wt=xe.relative,kt=xe.resolve,St=xe.sep,Ct=xe.pathToFileURL,It=vt,xt=Boolean(yt&&_t),Et=Boolean(bt&&kt&&wt&&St),Ot=function(){function t(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 r=t.prototype;return r.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},r.applyPrevMaps=function(){for(var e,t=b(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||bt(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new yt(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},r.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,""))},r.generate=function(){if(this.clearAnnotation(),Et&&xt&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},r.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=_t.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new _t({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]},r.generateString=function(){var e=this;this.css="",this.map=new _t({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},r.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},r.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})))},r.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},r.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},r.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},r.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?bt(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=bt(kt(r,this.mapOpts.annotation)));var n=wt(r,e);return this.memoizedPaths.set(e,n),n},r.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 It(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},r.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)}},r.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))},r.toBase64=function(t){return e?e.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},r.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ct){var r=Ct(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},r.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===St&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},t}(),Mt=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return d(t,e),t}($e),At=Mt;Mt.default=Mt;var Rt,Tt,Pt,Dt,Nt=Re.isClean,Lt=Re.my,Ft=He,Ut=At;
1function Bt(e){return e.map((function(e){return e.nodes&&(e.nodes=Bt(e.nodes)),delete e.source,e}))}function jt(e){if(e[Nt]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;){jt(t.value)}}var qt=function(e){function t(){return e.apply(this,arguments)||this}d(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=b(t);!(n=i()).done;)for(var o,s=n.value,a=b(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=b(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=b(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=b(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=Bt(Rt(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=b(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=b(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new Ft(e)]}else if(e.selector)e=[new Tt(e)];else if(e.name)e=[new Pt(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new Ut(e)]}var l=e.map((function(e){return e[Lt]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[Nt]&&jt(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=b(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=b(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=b(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}
1,r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?f(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?f(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?f(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},l(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}($e);qt.registerParse=function(e){Rt=e},qt.registerRule=function(e){Tt=e},qt.registerAtRule=function(e){Pt=e},qt.registerRoot=function(e){Dt=e};var zt=qt;qt.default=qt,qt.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,Pt.prototype):"rule"===e.type?Object.setPrototypeOf(e,Tt.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ft.prototype):"comment"===e.type?Object.setPrototypeOf(e,Ut.prototype):"root"===e.type&&Object.setPrototypeOf(e,Dt.prototype),e[Lt]=!0,e.nodes&&e.nodes.forEach((function(e){qt.rebuild(e)}))};var Wt,Vt,$t=function(e){function t(t){var r;return(r=e.call(this,h({type:"document"},t))||this).nodes||(r.nodes=[]),r}return d(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Wt(new Vt,this,e).stringify()},t}(zt);$t.registerLazyResult=function(e){Wt=e},$t.registerProcessor=function(e){Vt=e};var Gt=$t;$t.default=$t;var Ht=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}(),Yt=Ht;Ht.default=Ht;var Zt=Yt,Jt=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 Zt(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Xt=Jt;Jt.default=Jt;var Kt="'".charCodeAt(0),Qt='"'.charCodeAt(0),er="\\".charCodeAt(0),tr="/".charCodeAt(0),rr="\n".charCodeAt(0),nr=" ".charCodeAt(0),ir="\f".charCodeAt(0),or="\t".charCodeAt(0),sr="\r".charCodeAt(0),ar="[".charCodeAt(0),cr="]".charCodeAt(0),ur="(".charCodeAt(0),lr=")".charCodeAt(0),hr="{".charCodeAt(0),pr="}".charCodeAt(0),dr=";".charCodeAt(0),fr="*".charCodeAt(0),gr=":".charCodeAt(0),mr="@".charCodeAt(0),vr=/[\t\n\f\r "#'()/;[\\\]{}]/g,yr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_r=/.[\r\n"'(/\\]/,br=/[\da-f]/i,wr=zt,kr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}d(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(wr),Sr=kr;kr.default=kr,wr.registerAtRule(kr);var Cr,Ir,xr=zt,Er=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}d(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=b(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 Cr(new Ir,this,e).stringify()},t}(xr);Er.registerLazyResult=function(e){Cr=e},Er.registerProcessor=function(e){Ir=e};var Or=Er;Er.default=Er,xr.registerRoot(Er);var Mr={comma:function(e){return Mr.split(e,[","],!0)},space:function(e){return Mr.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=b(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>
vendor: 4,326 bytes, line 1
10&&(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}},Ar=Mr;Mr.default=Mr;var Rr=zt,Tr=Ar,Pr=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return d(t,e),l(t,[{key:"selectors",get:function(){return Tr.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}(Rr),Dr=Pr;Pr.default=Pr,Rr.registerRule(Pr);var Nr=He,Lr=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 rr:case nr:case or:case sr:case ir:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===nr||r===rr||r===or||r===sr||r===ir);h=["space",p.slice(g,n)],g=n-1;break;case ar:case cr:case hr:case pr:case gr:case dr:case lr:var _=String.fromCharCode(r);h=[_,_,g];break;case ur:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Kt&&l!==Qt&&l!==nr&&l!==rr&&l!==or&&l!==ir&&l!==sr){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===er;)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||_r.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Kt:case Qt:i=r===Kt?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===er;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case mr:vr.lastIndex=g+1,vr.test(p),n=0===vr.lastIndex?p.length-1:vr.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case er:for(n=g,s=!0;p.charCodeAt(n+1)===er;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==tr&&r!==nr&&r!==rr&&r!==or&&r!==sr&&r!==ir&&(n+=1,br.test(p.charAt(n)))){for(;br.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===nr&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===tr&&p.charCodeAt(g+1)===fr?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(yr.lastIndex=g+1,yr.test(p),n=0===yr.lastIndex?p.length-1:yr.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},Fr=At,Ur=Sr,Br=Or,jr=Dr,qr={empty:!0,space:!0};var zr=function(){function e(e){this.input=e,this.root=new Br,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 Ur;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new Fr;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);
1if(/^\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=Lr(this.input)},t.decl=function(e,t){var r=new Nr;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));f&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new jr;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",qr[a]||qr[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 jr;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="";
1e.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}(),Wr=zt,Vr=zr,$r=vt;function Gr(e,t){var r=new $r(e,t),n=new Vr(r);try{n.parse()}catch(e){throw e}return n.root}var Hr=Gr;Gr.default=Gr,Wr.registerParse(Gr);var Yr=Re.isClean,Zr=Re.my,Jr=Ot,Xr=Fe,Kr=zt,Qr=Gt,en=Xt,tn=Hr,rn=Or,nn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},on={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},sn={Once:!0,postcssPlugin:!0,prepare:!0};function an(e){return"object"===(void 0===e?"undefined":v(e))&&"function"==typeof e.then}function cn(e){var t=!1,r=nn[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 un(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:cn(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function ln(e){return e[Yr]=!1,e.nodes&&e.nodes.forEach((function(e){return ln(e)})),e}var hn={},pn=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":v(r))||null===r||"root"!==r.type&&"document"!==r.type)if(f(r,e)||f(r,en))i=ln(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=tn;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[Zr]&&Kr.rebuild(i)}else i=ln(r);this.result=new en(t,i,n),this.helpers=h({},hn,{postcss:hn,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":v(e))&&e.prepare?h({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error}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=b(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":v(i)))for(var o in i){if(!on[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!sn[o])if("object"===v(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 c((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return w(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],!an(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[Yr])return[3,14];o[Yr]=!0,s=[un(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!an(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,s;return w(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}
1))},h=b(e.listeners.OnceExit),d.label=15;case 15:return(p=h()).done?[3,18]:[5,k(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("object"===(void 0===e?"undefined":v(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return an(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Xr;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Jr(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=b(this.plugins);!(e=t()).done;){var r=e.value;if(an(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Yr];)n[Yr]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(an(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Yr])return a[Yr]=!0,void e.push(un(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Yr]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Yr]=!0;for(var r,n=b(cn(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Yr]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},l(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}();pn.registerPostcss=function(e){hn=e};var dn=pn;pn.default=pn,rn.registerLazyResult(pn),Qr.registerLazyResult(pn);var fn=Ot,gn=Fe,mn=Hr,vn=Xt,yn=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=gn;this.result=new vn(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new fn(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Prom
1ise.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[]},l(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=mn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),_n=yn;yn.default=yn;var bn=_n,wn=dn,kn=Gt,Sn=Or,Cn=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=b(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":v(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":v(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":v(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new wn(this,e,t):new bn(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),In=Cn;Cn.default=Cn,Sn.registerProcessor(Cn),kn.registerProcessor(Cn);var xn=He,En=rt,On=At,Mn=Sr,An=vt,Rn=Or,Tn=Dr;function Pn(e,t){if(Array.isArray(e))return e.map((function(e){return Pn(e)}));var r=e.inputs,n=g(e,["inputs"]);if(r){t=[];for(var i,o=b(r);!(i=o()).done;){var s=h({},i.value,{__proto__:An.prototype});s.map&&(s.map=h({},s.map,{__proto__:En.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return Pn(e,t)}))),n.source){var a=n.source,c=a.inputId,u=g(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new Rn(n);if("decl"===n.type)return new xn(n);if("rule"===n.type)return new Tn(n);if("comment"===n.type)return new On(n);if("atrule"===n.type)return new Mn(n);throw new Error("Unknown node type: "+e.type)}var Dn=Pn;Pn.default=Pn;var Nn=Ae,Ln=He,Fn=dn,Un=zt,Bn=In,jn=Fe,qn=Dn,zn=Gt,Wn=Yt,Vn=At,$n=Sr,Gn=Xt,Hn=vt,Yn=Hr,Zn=Ar,Jn=Dr,Xn=Or,Kn=$e;function Qn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Bn(t)}Qn.plugin=function(e,t){var r,i=!1;function o(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];console&&console.warn&&!i&&(i=!0,n.env.LANG&&n.env.LANG.startsWith("cn"));var a=t.apply(void 0,[].concat(o));return a.postcssPlugin=e,a.postcssVersion=(new Bn).version,a}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Qn([o(r)]).process(e,t)},o},Qn.stringify=jn,Qn.parse=Yn,Qn.fromJSON=qn,Qn.list=Zn,Qn.comment=function(e){return new Vn(e)},Qn.atRule=function(e){return new $n(e)},Qn.decl=function(e){return new Ln(e)},Qn.rule=function(e){return new Jn(e)},Qn.root=function(e){return new Xn(e)},Qn.document=function(e){return new zn(e)},Qn.CssSyntaxError=Nn,Qn.Declaration=Ln,Qn.Container=Un,Qn.Processor=Bn,Qn.Document=zn,Qn.Comment=Vn,Qn.Warning=Wn,Qn.AtRule=$n,Qn.Result=Gn,Qn.Input=Hn,Qn.Rule=Jn,Qn.Root=Xn,Qn.Node=Kn,Fn.registerPostcss(Qn);var ei=Qn;Qn.default=Qn;var ti=be(ei);ti.stringify,ti.fromJSON,ti.plugin,ti.parse,ti.list,ti.document,ti.comment,ti.atRule,ti.rule,ti.decl,ti.root,ti.CssSyntaxError,ti.Declaration,ti.Container,ti.Processor,ti.Document,ti.Comment,ti.Warning,ti.AtRule,ti.Result,ti.Input,ti.Rule,ti.Root,ti.Node;var ri=Object.defineProperty,ni=function(e,t,r){return function(e,t,r){return t in e?ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==(void 0===t?"undefined":v(t))?t+"":t,r)};
1function ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oi(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return f(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var si={exports:{}},ai=String,ci=function(){return{isColorSupported:!1,reset:ai,bold:ai,dim:ai,italic:ai,underline:ai,inverse:ai,hidden:ai,strikethrough:ai,black:ai,red:ai,green:ai,yellow:ai,blue:ai,magenta:ai,cyan:ai,white:ai,gray:ai,bgBlack:ai,bgRed:ai,bgGreen:ai,bgYellow:ai,bgBlue:ai,bgMagenta:ai,bgCyan:ai,bgWhite:ai}};si.exports=ci(),si.exports.createColors=ci;var ui=si.exports,li=oi(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),hi=ui,pi=li,di=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}d(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;null==e&&(e=hi.isColorSupported),pi&&e&&(r=pi(r));var n,i,o=r.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;if(e){var u=hi.createColors(!0),l=u.bold,h=u.gray,p=u.red;n=function(e){return l(p(e))},i=function(e){return h(e)}}else n=i=function(e){return e};return o.slice(s,a).map((function(e,r){var o=s+1+r,a=" "+(" "+o).slice(-c)+" | ";if(o===t.line){var u=i(a.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return n(">")+i(a)+e+"\n "+u+n("^")}return" "+i(a)+e})).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(y(Error)),fi=di;di.default=di;var gi={};gi.isClean=Symbol("isClean"),gi.my=Symbol("my");var mi={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};var vi=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){var r;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){var n;if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var i=e.parent;if("before"===r){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return mi[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=mi[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls((function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk((function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1})),t},t.rawBeforeRule=function(e){var t;return e.walk((function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls((function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t},t.rawEmptyBody=function(e){var t;return e.walk((function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1})),t},t.rawIndent=function(e){return e.raws.indent?e.raws.indent:(e.walk((function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}})),t);var t},t.rawSemicolon=function(e){var t;return e.walk((function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1})),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}(),yi=vi;vi.default=vi;var _i=yi;function bi(e,t){new _i(t).stringify(e)}var wi=bi;bi.default=bi;var ki=gi.isClean,Si=gi.my,Ci=fi,Ii=yi,xi=wi;function Ei(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&"proxyCache"!==n){var i=e[n],o=void 0===i?"undefined":v(i);"parent"===n&&"object"===o?t&&(r[n]=t):"source"===n?r[n]=i:Array.isArray(i)?r[n]=i.map((function(e){return Ei(e,r)})):("object"===o&&null!==i&&(i=Ei(i)),r[n]=i)}return r}var Oi=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ki]=!1,this[Si]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=b(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=Ei(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 Ci(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[ki]){this[ki]=!1;for(var e=this;e=e.parent;)e[ki]=!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 Ii).raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=b(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map((function(e){return"object"===(void 0===e?"undefined":v(e))&&e.toJSON?e.toJSON(null,t):e}));else if("object"===(void 0===s?"undefined":v(s))&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map((function(e){return e.toJSON()}))),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=xi),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)},l(e,[{key:"proxyOf",get:function(){return this}}]),e}(),Mi=Oi;Oi.default=Oi;var Ai=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=h({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return d(t,e),l(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(Mi),Ri=Ai;Ai.default=Ai;var Ti=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},Pi=li.SourceMapConsumer,Di=li.SourceMapGenerator,Ni=li.existsSync,Li=li.readFileSync,Fi=li.dirname,Ui=li.join;var Bi=function(){function t(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=Fi(this.mapFile)),n&&(this.text=n)}}var r=t.prototype;return r.consumer=function(){return this.consumerCache||(this.consumerCache=new Pi(this.text)),this.consumerCache},r.decodeInline=function(t){var r;if(/^data:application\/json;charset=utf-?8,/.test(t)||/^data:application\/json,/.test(t))return decodeURIComponent(t.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(t)||/^data:application\/json;base64,/.test(t))return r=t.substr(RegExp.lastMatch.length),e?e.from(r,"base64").toString():window.atob(r);var n=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)},r.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},r.isMap=function(e){return"object"===(void 0===e?"undefined":v(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},r.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)))}},r.loadFile=function(e){if(this.root=Fi(e),Ni(e))return this.mapFile=e,Li(e,"utf-8").toString().trim()},r.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(f(t,Pi))return Di.fromSourceMap(t).toString();if(f(t,Di))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var i=this.annotation;return e&&(i=Ui(Fi(e),i)),this.loadFile(i)}}},r.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},r.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t}(),ji=Bi;Bi.default=Bi;var qi=li.SourceMapConsumer,zi=li.SourceMapGenerator,Wi=li.fileURLToPath,Vi=li.pathToFileURL,$i=li.isAbsolute,Gi=li.resolve,Hi=Ti,Yi=li,Zi=fi,Ji=ji,Xi=Symbol("fromOffsetCac
1he"),Ki=Boolean(qi&&zi),Qi=Boolean(Gi&&$i),eo=function(){function e(e,t){if(void 0===t&&(t={}),null==e||"object"===(void 0===e?"undefined":v(e))&&!e.toString)throw new Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\ufeff"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Qi||/^\w+:\/\//.test(t.from)||$i(t.from)?this.file=t.from:this.file=Gi(t.from)),Qi&&Ki){var r=new Ji(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 "+Hi(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){var i,o,s;if(void 0===n&&(n={}),t&&"object"===(void 0===t?"undefined":v(t))){var a=t,c=r;if("number"==typeof a.offset){var u=this.fromOffset(a.offset);t=u.line,r=u.col}else t=a.line,r=a.column;if("number"==typeof c.offset){var l=this.fromOffset(c.offset);o=l.line,s=l.col}else o=c.line,s=c.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new Zi(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 Zi(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&&(Vi&&(i.input.url=Vi(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t;if(this[Xi])t=this[Xi];else{var r=this.css.split("\n");t=new Array(r.length);for(var n=0,i=0,o=r.length;i<o;i++)t[i]=n,n+=r[i].length+1;this[Xi]=t}var s=0;if(e>=t[t.length-1])s=t.length-1;else for(var a,c=t.length-2;s<c;)if(e<t[a=s+(c-s>>1)])c=a-1;else{if(!(e>=t[a+1])){s=a;break}s=a+1}return{col:e-t[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Gi(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=$i(a.source)?Vi(a.source):new URL(a.source,this.map.consumer().sourceRoot||Vi(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(!Wi)throw new Error("file: protocol is not available in this PostCSS build");c.file=Wi(o)}var u=s.sourceContentFor(a.source);return u&&(c.source=u),c},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=h({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},l(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),to=eo;eo.default=eo,Yi&&Yi.registerInput&&Yi.registerInput(eo);var ro=li.SourceMapConsumer,no=li.SourceMapGenerator,io=li.dirname,oo=li.relative,so=li.resolve,ao=li.sep,co=li.pathToFileURL,uo=to,lo=Boolean(ro&&no),ho=Boolean(io&&so&&oo&&ao),po=function(){function t(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 r=t.prototype;return r.addAnnotation=function(){var e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},r.applyPrevMaps=function(){for(var e,t=b(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||io(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new ro(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},r.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,""))},r.generate=function(){if(this.clearAnnotation(),ho&&lo&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,(function(t){e+=t})),[e]},r.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=no.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new no({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]},r.generateString=function(){var e=this;this.css="",this.map=new no({file:this.outputFile(),ignoreInvalidMapping:!0});var t,r,n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(function(a,c,u){if(e.css+=a,c&&"end"!==u&&(s.generated.line=n,s.generated.column=i-1,c.source&&c.source.start?(s.source=e.sourcePath(c),s.original.line=c.source.start.line,s.original.column=c.source.start.column-1,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,e.map.addMapping(s))),(t=a.match(/\n/g))?(n+=t.length,r=a.lastIndexOf("\n"),i=a.length-r):i+=a.length,c&&"start"!==u){var l=c.parent||{raws:{}};("decl"===c.type||"atrule"===c.type&&!c.nodes)&&c===l.last&&!l.raws.semicolon||(c.source&&c.source.end?(s.source=e.sourcePath(c),s.original.line=c.source.end.line,s.original.column=c.source.end.column-1,s.generated.line=n,s.generated.column=i-2,e.map.addMapping(s)):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1,e.map.addMapping(s)))}}))},r.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((function(e){return e.annotation})))},r.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})))},r.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},r.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((function(e){return e.withContent()}))},r.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},r.path=function(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?io(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=io(so(r,this.mapOpts.annotation)));var n=oo(r,e);return this.memoizedPaths.set(e,n),n},r.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 uo(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},r.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)}},r.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))},r.toBase64=function(t){return e?e.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))},r.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(co){var r=co(e).toString();return this.memoizedFileURLs.set(e,r),r}throw new Error("`map.absolute` option is not available in this PostCSS build")},r.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===ao&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},t}(),fo=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return d(t,e),t}(Mi),go=fo;fo.default=fo;var mo,vo,yo,_o,bo=gi.isClean,wo=gi.my,ko=Ri,So=go;
1function Co(e){return e.map((function(e){return e.nodes&&(e.nodes=Co(e.nodes)),delete e.source,e}))}function Io(e){if(e[bo]=!1,e.proxyOf.nodes)for(var t,r=b(e.proxyOf.nodes);!(t=r()).done;){Io(t.value)}}var xo=function(e){function t(){return e.apply(this,arguments)||this}d(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=b(t);!(n=i()).done;)for(var o,s=n.value,a=b(this.normalize(s,this.last));!(o=a()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=b(this.nodes);!(r=n()).done;){r.value.cleanRaws(t)}},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var o;return(o=e)[t].apply(o,[].concat(n.map((function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e}))))}:"every"===t||"some"===t?function(r){return e[t]((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))}))}:"root"===t?function(){return e.root().toProxy()}:"nodes"===t?e.nodes.map((function(e){return e.toProxy()})):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=b(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=b(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=Co(mo(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e))for(var i,o=b(e=e.slice(0));!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}else if("root"===e.type&&"document"!==this.type)for(var a,c=b(e=e.nodes.slice(0));!(a=c()).done;){var u=a.value;u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ko(e)]}else if(e.selector)e=[new vo(e)];else if(e.name)e=[new yo(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new So(e)]}var l=e.map((function(e){return e[wo]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[bo]&&Io(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e}));return l},r.prepend=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=b(t=t.reverse());!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),c=b(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=b(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}
1,r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each((function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n}))},r.walkAtRules=function(e,t){return t?f(e,RegExp)?this.walk((function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)})):this.walk((function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("atrule"===e.type)return t(e,r)})))},r.walkComments=function(e){return this.walk((function(t,r){if("comment"===t.type)return e(t,r)}))},r.walkDecls=function(e,t){return t?f(e,RegExp)?this.walk((function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)})):this.walk((function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("decl"===e.type)return t(e,r)})))},r.walkRules=function(e,t){return t?f(e,RegExp)?this.walk((function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)})):this.walk((function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)})):(t=e,this.walk((function(e,r){if("rule"===e.type)return t(e,r)})))},l(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}(Mi);xo.registerParse=function(e){mo=e},xo.registerRule=function(e){vo=e},xo.registerAtRule=function(e){yo=e},xo.registerRoot=function(e){_o=e};var Eo=xo;xo.default=xo,xo.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,yo.prototype):"rule"===e.type?Object.setPrototypeOf(e,vo.prototype):"decl"===e.type?Object.setPrototypeOf(e,ko.prototype):"comment"===e.type?Object.setPrototypeOf(e,So.prototype):"root"===e.type&&Object.setPrototypeOf(e,_o.prototype),e[wo]=!0,e.nodes&&e.nodes.forEach((function(e){xo.rebuild(e)}))};var Oo,Mo,Ao=function(e){function t(t){var r;return(r=e.call(this,h({type:"document"},t))||this).nodes||(r.nodes=[]),r}return d(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new Oo(new Mo,this,e).stringify()},t}(Eo);Ao.registerLazyResult=function(e){Oo=e},Ao.registerProcessor=function(e){Mo=e};var Ro=Ao;Ao.default=Ao;var To=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}(),Po=To;To.default=To;var Do=Po,No=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new Do(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter((function(e){return"warning"===e.type}))},l(e,[{key:"content",get:function(){return this.css}}]),e}(),Lo=No;No.default=No;var Fo="'".charCodeAt(0),Uo='"'.charCodeAt(0),Bo="\\".charCodeAt(0),jo="/".charCodeAt(0),qo="\n".charCodeAt(0),zo=" ".charCodeAt(0),Wo="\f".charCodeAt(0),Vo="\t".charCodeAt(0),$o="\r".charCodeAt(0),Go="[".charCodeAt(0),Ho="]".charCodeAt(0),Yo="(".charCodeAt(0),Zo=")".charCodeAt(0),Jo="{".charCodeAt(0),Xo="}".charCodeAt(0),Ko=";".charCodeAt(0),Qo="*".charCodeAt(0),es=":".charCodeAt(0),ts="@".charCodeAt(0),rs=/[\t\n\f\r "#'()/;[\\\]{}]/g,ns=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,is=/.[\r\n"'(/\\]/,os=/[\da-f]/i,ss=Eo,as=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}d(t,e);var r=t.prototype;return r.append=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.append).call.apply(i,[].concat([this],r))},r.prepend=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i;return this.proxyOf.nodes||(this.nodes=[]),(i=e.prototype.prepend).call.apply(i,[].concat([this],r))},t}(ss),cs=as;as.default=as,ss.registerAtRule(as);var us,ls,hs=Eo,ps=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}d(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=b(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 us(new ls,this,e).stringify()},t}(hs);ps.registerLazyResult=function(e){us=e},ps.registerProcessor=function(e){ls=e};var ds=ps;ps.default=ps,hs.registerRoot(ps);var fs={comma:function(e){return fs.split(e,[","],!0)},space:function(e){return fs.split(e,[" ","\n","\t"])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,c=!1,u="",l=!1,h=b(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>
vendor: 4,326 bytes, line 1
10&&(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}},gs=fs;fs.default=fs;var ms=Eo,vs=gs,ys=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return d(t,e),l(t,[{key:"selectors",get:function(){return vs.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}(ms),_s=ys;ys.default=ys,ms.registerRule(ys);var bs=Ri,ws=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 qo:case zo:case Vo:case $o:case Wo:n=g;do{n+=1,r=p.charCodeAt(n)}while(r===zo||r===qo||r===Vo||r===$o||r===Wo);h=["space",p.slice(g,n)],g=n-1;break;case Go:case Ho:case Jo:case Xo:case es:case Ko:case Zo:var _=String.fromCharCode(r);h=[_,_,g];break;case Yo:if(u=m.length?m.pop()[1]:"",l=p.charCodeAt(g+1),"url"===u&&l!==Fo&&l!==Uo&&l!==zo&&l!==qo&&l!==Vo&&l!==Wo&&l!==$o){n=g;do{if(a=!1,-1===(n=p.indexOf(")",n+1))){if(d||t){n=g;break}y("bracket")}for(c=n;p.charCodeAt(c-1)===Bo;)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||is.test(o)?h=["(","(",g]:(h=["brackets",o,g,n],g=n);break;case Fo:case Uo:i=r===Fo?"'":'"',n=g;do{if(a=!1,-1===(n=p.indexOf(i,n+1))){if(d||t){n=g+1;break}y("string")}for(c=n;p.charCodeAt(c-1)===Bo;)c-=1,a=!a}while(a);h=["string",p.slice(g,n+1),g,n],g=n;break;case ts:rs.lastIndex=g+1,rs.test(p),n=0===rs.lastIndex?p.length-1:rs.lastIndex-2,h=["at-word",p.slice(g,n+1),g,n],g=n;break;case Bo:for(n=g,s=!0;p.charCodeAt(n+1)===Bo;)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&r!==jo&&r!==zo&&r!==qo&&r!==Vo&&r!==$o&&r!==Wo&&(n+=1,os.test(p.charAt(n)))){for(;os.test(p.charAt(n+1));)n+=1;p.charCodeAt(n+1)===zo&&(n+=1)}h=["word",p.slice(g,n+1),g,n],g=n;break;default:r===jo&&p.charCodeAt(g+1)===Qo?(0===(n=p.indexOf("*/",g+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(g,n+1),g,n],g=n):(ns.lastIndex=g+1,ns.test(p),n=0===ns.lastIndex?p.length-1:ns.lastIndex-2,h=["word",p.slice(g,n+1),g,n],m.push(h),g=n)}return g++,h}},position:function(){return g}}},ks=go,Ss=cs,Cs=ds,Is=_s,xs={empty:!0,space:!0};var Es=function(){function e(e){this.input=e,this.root=new Cs,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 Ss;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],c=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var r,n=0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===r[0]?r[3]+1:r[2])}},t.colon=function(e){for(var t,r,n,i,o=0,s=b(e.entries());!(i=s()).done;){var a=i.value,c=a[0];if("("===(r=(t=a[1])[0])&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(n){if("word"===n[0]&&"progid"===n[1])continue;return c}this.doubleColon(t)}n=t}return!1},t.comment=function(e){var t=new ks;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);
1if(/^\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=ws(this.input)},t.decl=function(e,t){var r=new bs;this.init(r,e[0][2]);var n,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),r.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){var o=e[0][0];if(":"===o||"space"===o||"comment"===o)break;r.prop+=e.shift()[1]}for(r.raws.between="";e.length;){if(":"===(n=e.shift())[0]){r.raws.between+=n[1];break}"word"===n[0]&&/\w/.test(n[1])&&this.unknownWord([n]),r.raws.between+=n[1]}"_"!==r.prop[0]&&"*"!==r.prop[0]||(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));for(var s,a=[];e.length&&("space"===(s=e[0][0])||"comment"===s);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if("!important"===(n=e[c])[1].toLowerCase()){r.important=!0;var u=this.stringFrom(e,c);" !important"!==(u=this.spacesFromEnd(e)+u)&&(r.raws.important=u);break}if("important"===n[1].toLowerCase()){for(var l=e.slice(0),h="",p=c;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(r.important=!0,r.raws.important=h,e=l)}if("space"!==n[0]&&"comment"!==n[0])break}var f=e.some((function(e){return"space"!==e[0]&&"comment"!==e[0]}));f&&(r.raws.between+=a.map((function(e){return e[1]})).join(""),a=[]),this.raw(r,"value",a.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Is;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],c=e;c;){if(r=c[0],a.push(c),"("===r||"["===r)i||(i=c),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=c),o.push("}");else if(0===o.length){if(";"===r){if(n)return void this.decl(a,s);break}if("{"===r)return void this.rule(a);if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}":"===r&&(n=!0)}else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(c=a[a.length-1][0])||"comment"===c);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,c=r.length,u="",l=!0,h=0;h<c;h+=1)"space"!==(o=(i=r[h])[0])||h!==c-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",xs[a]||xs[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 Is;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="";
1e.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}(),Os=Eo,Ms=Es,As=to;function Rs(e,t){var r=new As(e,t),n=new Ms(r);try{n.parse()}catch(e){throw e}return n.root}var Ts=Rs;Rs.default=Rs,Os.registerParse(Rs);var Ps=gi.isClean,Ds=gi.my,Ns=po,Ls=wi,Fs=Eo,Us=Ro,Bs=Lo,js=Ts,qs=ds,zs={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Ws={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},Vs={Once:!0,postcssPlugin:!0,prepare:!0};function $s(e){return"object"===(void 0===e?"undefined":v(e))&&"function"==typeof e.then}function Gs(e){var t=!1,r=zs[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 Hs(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:Gs(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ys(e){return e[Ps]=!1,e.nodes&&e.nodes.forEach((function(e){return Ys(e)})),e}var Zs={},Js=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,"object"!==(void 0===r?"undefined":v(r))||null===r||"root"!==r.type&&"document"!==r.type)if(f(r,e)||f(r,Bs))i=Ys(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=js;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[Ds]&&Fs.rebuild(i)}else i=Ys(r);this.result=new Bs(t,i,n),this.helpers=h({},Zs,{postcss:Zs,result:this.result}),this.plugins=this.processor.plugins.map((function(e){return"object"===(void 0===e?"undefined":v(e))&&e.prepare?h({},e,e.prepare(o.result)):e}))}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(r.postcssVersion);}else e.plugin=r.postcssPlugin,e.setMessage()}catch(e){console&&console.error}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=b(this.plugins);!(t=n()).done;){var i=t.value;if("object"===(void 0===i?"undefined":v(i)))for(var o in i){if(!Ws[o]&&/^[A-Z]/.test(o))throw new Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Vs[o])if("object"===v(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 c((function(){var t,r,n,i,o,s,a,c,u,l,h,p;return w(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],!$s(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[Ps])return[3,14];o[Ps]=!0,s=[Hs(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!$s(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,s;return w(this,(function(a){switch(a.label){case 0:t=p.value,r=t[0],n=t[1],e.result.lastPlugin=r,a.label=1;case 1:return a.trys.push([1,6,,7]),"document"!==o.type?[3,3]:(i=o.nodes.map((function(t){return n(t,e.helpers)})),[4,Promise.all(i)]);case 2:return a.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:a.sent(),a.label=5;case 5:return[3,7];case 6:throw s=a.sent(),e.handleError(s);case 7:return[2]}}
1))},h=b(e.listeners.OnceExit),d.label=15;case 15:return(p=h()).done?[3,18]:[5,k(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("object"===(void 0===e?"undefined":v(e))&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map((function(r){return e.Once(r,t.helpers)}));return $s(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=Ls;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new Ns(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=b(this.plugins);!(e=t()).done;){var r=e.value;if($s(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[Ps];)n[Ps]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=b(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=b(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if($s(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"===r.type||"document"===r.type||r.parent){if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,c=t.iterator;a=r.nodes[r.indexes[c]];)if(r.indexes[c]+=1,!a[Ps])return a[Ps]=!0,void e.push(Hs(a));t.iterator=0,delete r.indexes[c]}for(var u=t.events;t.eventIndex<u.length;){var l=u[t.eventIndex];if(t.eventIndex+=1,0===l)return void(r.nodes&&r.nodes.length&&(r[Ps]=!0,t.iterator=r.getIterator()));if(this.listeners[l])return void(t.visitors=this.listeners[l])}e.pop()}else e.pop()},t.walkSync=function(e){var t=this;e[Ps]=!0;for(var r,n=b(Gs(e));!(r=n()).done;){var i=r.value;if(0===i)e.nodes&&e.each((function(e){e[Ps]||t.walkSync(e)}));else{var o=this.listeners[i];if(o&&this.visitSync(o,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},l(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}();Js.registerPostcss=function(e){Zs=e};var Xs=Js;Js.default=Js,qs.registerLazyResult(Js),Us.registerLazyResult(Js);var Ks=po,Qs=wi,ea=Ts,ta=Lo,ra=function(){function e(e,t,r){var n;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;var i=Qs;this.result=new ta(this._processor,n,this._opts),this.result.css=t;var o=this;Object.defineProperty(this.result,"root",{get:function(){return o.root}});var s=new Ks(i,n,this._opts,t);if(s.isMap()){var a=s.generate(),c=a[0],u=a[1];c&&(this.result.css=c),u&&(this.result.map=u)}else s.clearAnnotation(),this.result.css=s.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Prom
1ise.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[]},l(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=ea;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),na=ra;ra.default=ra;var ia=na,oa=Xs,sa=Ro,aa=ds,ca=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=b(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),"object"===(void 0===i?"undefined":v(i))&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if("object"===(void 0===i?"undefined":v(i))&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else{if("object"!==(void 0===i?"undefined":v(i))||!i.parse&&!i.stringify)throw new Error(i+" is not a PostCSS plugin")}}return r},t.process=function(e,t){return void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax?new oa(this,e,t):new ia(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),ua=ca;ca.default=ca,aa.registerProcessor(ca),sa.registerProcessor(ca);var la=Ri,ha=ji,pa=go,da=cs,fa=to,ga=ds,ma=_s;function va(e,t){if(Array.isArray(e))return e.map((function(e){return va(e)}));var r=e.inputs,n=g(e,["inputs"]);if(r){t=[];for(var i,o=b(r);!(i=o()).done;){var s=h({},i.value,{__proto__:fa.prototype});s.map&&(s.map=h({},s.map,{__proto__:ha.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map((function(e){return va(e,t)}))),n.source){var a=n.source,c=a.inputId,u=g(a,["inputId"]);n.source=u,null!=c&&(n.source.input=t[c])}if("root"===n.type)return new ga(n);if("decl"===n.type)return new la(n);if("rule"===n.type)return new ma(n);if("comment"===n.type)return new pa(n);if("atrule"===n.type)return new da(n);throw new Error("Unknown node type: "+e.type)}var ya=va;va.default=va;var _a=fi,ba=Ri,wa=Xs,ka=Eo,Sa=ua,Ca=wi,Ia=ya,xa=Ro,Ea=Po,Oa=go,Ma=cs,Aa=Lo,Ra=to,Ta=Ts,Pa=gs,Da=_s,Na=ds,La=Mi;function Fa(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new Sa(t)}Fa.plugin=function(e,t){var r,i=!1;function o(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];console&&console.warn&&!i&&(i=!0,n.env.LANG&&n.env.LANG.startsWith("cn"));var a=t.apply(void 0,[].concat(o));return a.postcssPlugin=e,a.postcssVersion=(new Sa).version,a}return Object.defineProperty(o,"postcss",{get:function(){return r||(r=o()),r}}),o.process=function(e,t,r){return Fa([o(r)]).process(e,t)},o},Fa.stringify=Ca,Fa.parse=Ta,Fa.fromJSON=Ia,Fa.list=Pa,Fa.comment=function(e){return new Oa(e)},Fa.atRule=function(e){return new Ma(e)},Fa.decl=function(e){return new ba(e)},Fa.rule=function(e){return new Da(e)},Fa.root=function(e){return new Na(e)},Fa.document=function(e){return new xa(e)},Fa.CssSyntaxError=_a,Fa.Declaration=ba,Fa.Container=ka,Fa.Processor=Sa,Fa.Document=xa,Fa.Comment=Oa,Fa.Warning=Ea,Fa.AtRule=Ma,Fa.Result=Aa,Fa.Input=Ra,Fa.Rule=Da,Fa.Root=Na,Fa.Node=La,wa.registerPostcss(Fa);var Ua=Fa;Fa.default=Fa;var Ba=ii(Ua);Ba.stringify,Ba.fromJSON,Ba.plugin,Ba.parse,Ba.list,Ba.document,Ba.comment,Ba.atRule,Ba.rule,Ba.decl,Ba.root,Ba.CssSyntaxError,Ba.Declaration,Ba.Container,Ba.Processor,Ba.Document,Ba.Comment,Ba.Warning,Ba.AtRule,Ba.Result,Ba.Input,Ba.Rule,Ba.Root,Ba.Node;var ja=function(){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];ni(this,"parentElement",null),ni(this,"parentNode",null),ni(this,"ownerDocument"),ni(this,"firstChild",null),ni(this,"lastChild",null),ni(this,"previousSibling",null),ni(this,"nextSibling",null),ni(this,"ELEMENT_NODE",1),ni(this,"TEXT_NODE",3),ni(this,"nodeType"),ni(this,"nodeName"),ni(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!f(t,e))return!1;if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},l(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),qa={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},za={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Wa={};function Va(e){if(Wa[e])return Wa[e];var t=globalThis[e],r=t.prototype,n=e in qa?qa[e]:void 0,i=Boolean(n&&n.every((function(e){var t,n;return Boolean(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))}))),o=e in za?za[e]:void 0,s=Boolean(o&&o.every((function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!globalThis.Zone)return Wa[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var c=a.contentWindow;if(!c)return t.prototype;var u=c[e].prototype;return document.body.removeChild(a),u?Wa[e]=u:r}catch(e){return r}}var $a={};function Ga(e,t,r){var n,i=e+"."+String(r);if($a[i])return $a[i].call(t);var o=Va(e),s=null==(n=Object.getOwnPropertyDescriptor(o,r))?void 0:n.get;return s?($a[i]=s,s.call(t)):t[r]}var Ha={};function Ya(e,t,r){var n=e+"."+String(r);if(Ha[n])return Ha[n].bind(t);var i=Va(e)[r];return"function"!=typeof i?t[r]:(Ha[n]=i,i.bind(t))}function Za(){return Va("MutationObserver").constructor}function Ja(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 Xa={childNodes:function(e){return Ga("Node",e,"childNodes")},parentNode:function(e){return Ga("Node",e,"parentNode")},parentElement:function(e){return Ga("Node",e,"parentElement")},textContent:function(e){return Ga("Node",e,"textContent")},contains:function(e,t){return Ya("Node",e,"contains")(t)},getRootNode:function(e){return Ya("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Ga("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Ga("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Ga("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Ga("Element",e,"querySelectorAll")(t)},mutationObserver:Za,patch:Ja};function Ka(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 Qa={map:{},getId:function(){return-1},getNode:function(){return null},removeNodeFromMap:function(){},has:function(){return!1},reset:function(){}};function ec(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var c=Date.now();i||!1!==r.leading||(i=c);var u=t-(c-i),l=this;u<=0||u>
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 tc(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 tc(e,t,o||{},!0)}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(Qa=new Proxy(Qa,{get:function(e,t,r){return Reflect.get(e,t,r)}}));var rc=Date.now;function nc(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=Xa.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=Xa.parentElement(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function ic(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function oc(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function sc(e){return e?e.nodeType===e.ELEMENT_NODE?e:Xa.parentElement(e):null}function ac(e,t,r,n){if(!e)return!1;var i=sc(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t))return!0;if(n&&null!==i.closest("."+t))return!0}else if(ge(i,t,n))return!0}catch(e){}if(r){if(i.matches(r))return!0;if(n&&null!==i.closest(r))return!0}return!1}function cc(e,t,r){return!("TITLE"!==e.tagName||!r.headTitleMutations)||-2===t.getId(e)}function uc(e,t){if(B(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=Xa.parentNode(e);return(!n||n.nodeType!==e.DOCUMENT_NODE)&&(!n||uc(n,t))}function lc(e){return Boolean(e.changedTouches)}function hc(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function pc(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function dc(e){return!!e&&(f(e,ja)&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Xa.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(rc=function(){return(new Date).getTime()});var fc=function(){function e(){I(this,"id",1),I(this,"styleIDMap",new WeakMap),I(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r);var r},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function gc(e){var t,r=null;return"getRootNode"in e&&(null==(t=Xa.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&Xa.host(Xa.getRootNode(e))&&(r=Xa.host(Xa.getRootNode(e))),r}function mc(e){var t=e.ownerDocument;if(!t)return!1;var r=function(e){for(var t,r=e;t=gc(r);)r=t;return r}(e);return Xa.contains(t,r)}function vc(e){var t=e.ownerDocument;return!!t&&(Xa.contains(t,e)||mc(e))}var yc=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}(yc||{}),_c=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}(_c||{}),bc=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}(bc||{}),wc=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(wc||{}),kc=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(kc||{}),Sc=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}(Sc||{}),Cc=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}(Cc||{});function Ic(e){return"__ln"in e}var xc,Ec=function(){function e(){I(this,"length",0),I(this,"head",null),I(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Ic(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&&Ic(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;
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}(),Oc=function(e,t){return e+"@"+t},Mc=function(){function e(){var e=this;I(this,"frozen",!1),I(this,"locked",!1),I(this,"texts",[]),I(this,"attributes",[]),I(this,"attributeMap",new WeakMap),I(this,"removes",[]),I(this,"mapRemoves",[]),I(this,"movedMap",{}),I(this,"addedSet",new Set),I(this,"movedSet",new Set),I(this,"droppedSet",new Set),I(this,"removesSubTreeCache",new Set),I(this,"mutationCb"),I(this,"blockClass"),I(this,"blockSelector"),I(this,"maskTextClass"),I(this,"maskTextSelector"),I(this,"inlineStylesheet"),I(this,"maskInputOptions"),I(this,"maskTextFn"),I(this,"maskInputFn"),I(this,"keepIframeSrcFn"),I(this,"recordCanvas"),I(this,"inlineImages"),I(this,"slimDOMOptions"),I(this,"dataURLOptions"),I(this,"doc"),I(this,"mirror"),I(this,"iframeManager"),I(this,"stylesheetManager"),I(this,"shadowDomManager"),I(this,"canvasManager"),I(this,"processedNodeManager"),I(this,"unattachedDoc"),I(this,"processMutations",(function(t){t.forEach(e.processMutation),e.emit()})),I(this,"emit",(function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new Ec,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=Xa.parentNode(o);if(s&&vc(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(gc(o)):e.mirror.getId(s),l=i(o);if(-1===u||-1===l)return n.addNode(o);var h=_e(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){hc(t,e.mirror)&&e.iframeManager.addIframe(t),pc(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),dc(o)&&e.shadowDomManager.addShadowRoot(Xa.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=b(e.movedSet);!(s=a()).done;){var c=s.value;Rc(e.removesSubTreeCache,c,e.mirror)&&!e.movedSet.has(Xa.parentNode(c))||o(c)}for(var u,l=b(e.addedSet);!(u=l()).done;){var h=u.value;Tc(e.droppedSet,h)||Rc(e.removesSubTreeCache,h,e.mirror)?Tc(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(Xa.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(Xa.parentNode(v.value));if(-1===i(v.value))continue;if(-1!==y){d=v;break}var _=v.value,w=Xa.parentNode(_);if(w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=Xa.host(w);if(-1!==e.mirror.getId(k)){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 S={texts:e.texts.map((function(t){var r=t.node,n=Xa.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};(S.texts.length||S.attributes.length||S.removes.length||S.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(S))}})),I(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(Xa.childNodes(t),(function(e){return Xa.textContent(e)||""})).join("");r.attributes.value=V({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:H(t),value:n,maskInputFn:e.maskInputFn})})),I(this,"processMutation",(function(t){if(!cc(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=Xa.textContent(t.target);ac(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:me(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,sc(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(ac(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;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"),!fe(n.tagName,i))if(a.attributes[i]=de(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=b(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)?a.styleDiff[h]=""===d?p:[p,d]:a._unchangedStyles[h]=[p,d]}for(var f,g=b(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(ac(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(Xa.host(t.target)):e.mirror.getId(t.target);ac(t.target,e.blockClass,e.blockSelector,!1)||cc(r,e.mirror,e.slimDOMOptions)||!function(e,t){return-1!==t.getId(e)}(r,e.mirror)||(e.addedSet.has(r)?(Ac(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||uc(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[Oc(n,i)]?Ac(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!(!B(t.target)||!j(t.target))||void 0}),function(e,t){var r=[e];for(;r.length;){var n=r.pop();t.has(n)||(t.add(n),Xa.childNodes(n).forEach((function(e){return r.push(e)})))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))}))}})),I(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(cc(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[Oc(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);ac(t,e.blockClass,e.blockSelector,!1)||(Xa.childNodes(t).forEach((function(t){return e.genAdds(t)})),dc(t)&&Xa.childNodes(Xa.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 Ac(e,t){e.delete(t),Xa.childNodes(t).forEach((function(t){return Ac(e,t)}))}function Rc(e,t,r){return 0!==e.size&&function(e,t){var r=Xa.parentNode(t);return!!r&&e.has(r)}(e,t)}function Tc(e,t){return 0!==e.size&&Pc(e,t)}function Pc(e,t){var r=Xa.parentNode(t);return!!r&&(!!e.has(r)||Pc(e,r))}var Dc=function(e){if(!xc)return e;return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(xc&&!0===xc(e))return;throw e}}},Nc=[];function Lc(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 Fc(e,t){var r=new Mc;Nc.push(r),r.init(e);var n=new(Za())(Dc(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function Uc(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(bc).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}
1)).forEach((function(e){var s=$(e),a=function(e){return function(r){var s=Lc(r);if(!ac(s,i,o,!0)){var a=null,c=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=wc.Mouse;break;case"touch":a=wc.Touch;break;case"pen":a=wc.Pen}a===wc.Touch?bc[e]===bc.MouseDown?c="TouchStart":bc[e]===bc.MouseUp&&(c="TouchEnd"):wc.Pen}else lc(r)&&(a=wc.Touch);null!==a?(u=a,(c.startsWith("Touch")&&a===wc.Touch||c.startsWith("Mouse")&&a===wc.Mouse)&&(a=null)):bc[e]===bc.Click&&(a=u,u=null);var l=lc(r)?r.changedTouches[0]:r;if(l){var p=n.getId(s),d=l.clientX,f=l.clientY;Dc(t)(h({type:bc[c],id:p,x:d,y:f},null!==a&&{pointerType:a}))}}}}(e);if(window.PointerEvent)switch(bc[e]){case bc.MouseDown:case bc.MouseUp:s=s.replace("mouse","pointer");break;case bc.TouchStart:case bc.TouchEnd:return}c.push(Ka(s,a,r))})),Dc((function(){c.forEach((function(e){return e()}))}))}function Bc(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return Ka("scroll",Dc(ec(Dc((function(e){var s=Lc(e);if(s&&!ac(s,i,o,!0)){var a=n.getId(s);if(s===r&&r.defaultView){var c=nc(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 jc=["INPUT","TEXTAREA","SELECT"],qc=new WeakMap;function zc(e){return function(e,t){if(Gc("CSSGroupingRule")&&f(e.parentRule,CSSGroupingRule)||Gc("CSSMediaRule")&&f(e.parentRule,CSSMediaRule)||Gc("CSSSupportsRule")&&f(e.parentRule,CSSSupportsRule)||Gc("CSSConditionRule")&&f(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Wc(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function Vc(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(Xa.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}}),Dc((function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})}))):function(){}}function $c(e,t){void 0===t&&(t={});var r,n=e.doc.defaultView;if(!n)return function(){};!function(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,c=e.mediaInteractionCb,u=e.styleSheetRuleCb,l=e.styleDeclarationCb,h=e.canvasMutationCb,p=e.fontCb,d=e.selectionCb,f=e.customElementCb;e.mutationCb=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];var o;t.mutation&&(o=t).mutation.apply(o,[].concat(n)),r.apply(void 0,[].concat(n))},e.mousemoveCb=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o;t.mousemove&&(o=t).mousemove.apply(o,[].concat(r)),n.apply(void 0,[].concat(r))},e.mouseInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o;t.mouseInteraction&&(o=t).mouseInteraction.apply(o,[].concat(r)),i.apply(void 0,[].concat(r))},e.scrollCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.scroll&&(i=t).scroll.apply(i,[].concat(r)),o.apply(void 0,[].concat(r))},e.viewportResizeCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.viewportResize&&(i=t).viewportResize.apply(i,[].concat(r)),s.apply(void 0,[].concat(r))},e.inputCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.input&&(i=t).input.apply(i,[].concat(r)),a.apply(void 0,[].concat(r))},e.mediaInteractionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.mediaInteaction&&(i=t).mediaInteaction.apply(i,[].concat(r)),c.apply(void 0,[].concat(r))},e.styleSheetRuleCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleSheetRule&&(i=t).styleSheetRule.apply(i,[].concat(r)),u.apply(void 0,[].concat(r))},e.styleDeclarationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.styleDeclaration&&(i=t).styleDeclaration.apply(i,[].concat(r)),l.apply(void 0,[].concat(r))},e.canvasMutationCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.canvasMutation&&(i=t).canvasMutation.apply(i,[].concat(r)),h.apply(void 0,[].concat(r))},e.fontCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.font&&(i=t).font.apply(i,[].concat(r)),p.apply(void 0,[].concat(r))},e.selectionCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.selection&&(i=t).selection.apply(i,[].concat(r)),d.apply(void 0,[].concat(r))},e.customElementCb=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i;t.customElement&&(i=t).customElement.apply(i,[].concat(r)),f.apply(void 0,[].concat(r))}}(e,t),e.recordDOM&&(r=Fc(e,e.doc));var i,o,s,a,c,u,l,p,d,g=function(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(!1===r.mousemove)return function(){};var o,s="number"==typeof r.mousemove?r.mousemove:50,a="number"==typeof r.mousemoveCallback?r.mousemoveCallback:500,c=[],u=ec(Dc((function(e){var r=Date.now()-o;t(c.map((function(e){return e.timeOffset-=r,e})),e),c=[],o=null})),a),l=Dc(ec(Dc((function(e){var t=Lc(e),r=lc(e)?e.changedTouches[0]:e,n=r.clientX,s=r.clientY;o||(o=rc()),c.push({x:n,y:s,id:i.getId(t),timeOffset:rc()-o}),u("undefined"!=typeof DragEvent&&f(e,DragEvent)?_c.Drag:f(e,MouseEvent)?_c.MouseMove:_c.TouchMove)})),s,{trailing:!1})),h=[Ka("mousemove",l,n),Ka("touchmove",l,n),Ka("drag",l,n)];return Dc((function(){h.forEach((function(e){return e()}))}))}(e),m=Uc(e),v=Bc(e),y=function(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1;return Ka("resize",Dc(ec(Dc((function(){var e=ic(),t=oc();i===e&&o===t||(r({width:Number(t),height:Number(e)}),i=e,o=t)})),200)),n)}(e,{win:n}),_=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,c=e.maskInputOptions,u=e.maskInputFn,l=e.sampling,p=e.userTriggeredOnInput;function d(e){var t=Lc(e),n=e.isTrusted,l=t&&t.tagName;if(t&&"OPTION"===l&&(t=Xa.parentElement(t)),t&&l&&!(jc.indexOf(l)<0)&&!ac(t,i,o,!0)&&!(t.classList.contains(s)||a&&t.matches(a))){var h=t.value,d=!1,g=H(t)||"";"radio"===g||"checkbox"===g?d=t.checked:(c[l.toLowerCase()]||c[g])&&(h=V({element:t,maskInputOptions:c,tagName:l,type:g,value:h,maskInputFn:u}
1)),f(t,p?{text:h,isChecked:d,userTriggered:n}:{text:h,isChecked:d});var m=t.name;"radio"===g&&m&&d&&r.querySelectorAll('input[type="radio"][name="'+m+'"]').forEach((function(e){if(e!==t){var r=e.value;f(e,p?{text:r,isChecked:!d,userTriggered:!1}:{text:r,isChecked:!d})}}))}}function f(e,r){var i=qc.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){qc.set(e,r);var o=n.getId(e);Dc(t)(h({},r,{id:o}))}}var g=("last"===l.input?["change"]:["input","change"]).map((function(e){return Ka(e,Dc(d),r)})),m=r.defaultView;if(!m)return function(){g.forEach((function(e){return e()}))};var v,y=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),_=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&(v=g).push.apply(v,[].concat(_.map((function(e){return tc(e[0],e[1],{set:function(){Dc(d)({target:this,isTrusted:!1})}},!1,m)})))),Dc((function(){g.forEach((function(e){return e()}))}))}(e),w=(o=(i=e).mediaInteractionCb,s=i.blockClass,a=i.blockSelector,c=i.mirror,u=i.sampling,l=i.doc,p=Dc((function(e){return ec(Dc((function(t){var r=Lc(t);if(r&&!ac(r,s,a,!0)){var n=r.currentTime,i=r.volume,u=r.muted,l=r.playbackRate,h=r.loop;o({type:e,id:c.getId(r),currentTime:n,volume:i,muted:u,playbackRate:l,loop:h})}})),u.media||500)})),d=[Ka("play",p(Sc.Play),l),Ka("pause",p(Sc.Pause),l),Ka("seeked",p(Sc.Seeked),l),Ka("volumechange",p(Sc.VolumeChange),l),Ka("ratechange",p(Sc.RateChange),l)],Dc((function(){d.forEach((function(e){return e()}))}))),k=function(){},S=function(){},C=function(){},I=function(){};e.recordDOM&&(k=function(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:Dc((function(e,t,o){var s=o[0],a=o[1],c=Wc(t,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:a}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.addRule=function(e,t,r){void 0===r&&(r=this.cssRules.length);var n=e+" { "+t+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[n,r])};var a,c,u=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(u,{apply:Dc((function(e,t,o){var s=o[0],a=Wc(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:s}]}),e.apply(t,o)}))}),o.CSSStyleSheet.prototype.removeRule=function(e){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},o.CSSStyleSheet.prototype.replace&&(a=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:Dc((function(e,t,o){var s=o[0],a=Wc(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replace:s}),e.apply(t,o)}))})),o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Dc((function(e,t,o){var s=o[0],a=Wc(t,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,replaceSync:s}),e.apply(t,o)}))}));var l={};Hc("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(Hc("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),Hc("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),Hc("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var h={};return Object.entries(l).forEach((function(e){var t=e[0],o=e[1];h[t]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(h[t].insertRule,{apply:Dc((function(e,t,o){var s=o[0],a=o[1],c=Wc(t.parentStyleSheet,n,i.styleMirror),u=c.id,l=c.styleId;return(u&&-1!==u||l&&-1!==l)&&r({id:u,styleId:l,adds:[{rule:s,index:[].concat(zc(t),[a||0])}]}),e.apply(t,o)}))}),o.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:Dc((function(e,t,o){var s=o[0],a=Wc(t.parentStyleSheet,n,i.styleMirror),c=a.id,u=a.styleId;return(c&&-1!==c||u&&-1!==u)&&r({id:c,styleId:u,removes:[{index:[].concat(zc(t),[s])}]}),e.apply(t,o)}))})})),Dc((function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=u,a&&(o.CSSStyleSheet.prototype.replace=a),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach((function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule}))}))}(e,{win:n}),S=Vc(e,e.doc),C=function(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,s=t.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Dc((function(e,t,s){var c,u=s[0],l=s[1],h=s[2];if(i.has(u))return a.apply(t,[u,l,h]);var p=Wc(null==(c=t.parentRule)?void 0:c.parentStyleSheet,n,o.styleMirror),d=p.id,f=p.styleId;return(d&&-1!==d||f&&-1!==f)&&r({id:d,styleId:f,set:{property:u,value:l,priority:h},index:zc(t.parentRule)}),e.apply(t,s)}))});var c=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:Dc((function(e,t,s){var a,u=s[0];if(i.has(u))return c.apply(t,[u]);var l=Wc(null==(a=t.parentRule)?void 0:a.parentStyleSheet,n,o.styleMirror),h=l.id,p=l.styleId;
1return(h&&-1!==h||p&&-1!==p)&&r({id:h,styleId:p,remove:{property:u},index:zc(t.parentRule)}),e.apply(t,s)}))}),Dc((function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=c}))}(e,{win:n}),e.collectFonts&&(I=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=Ja(r.fonts,"add",(function(e){return function(r){return setTimeout(Dc((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),Dc((function(){i.forEach((function(e){return e()}))}))}(e)));for(var x,E=function(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,s=!0,a=Dc((function(){var e=t.getSelection();if(!(!e||s&&(null==e?void 0:e.isCollapsed))){s=e.isCollapsed||!1;for(var a=[],c=e.rangeCount||0,u=0;u<c;u++){var l=e.getRangeAt(u),h=l.startContainer,p=l.startOffset,d=l.endContainer,f=l.endOffset;ac(h,n,i,!0)||ac(d,n,i,!0)||a.push({start:r.getId(h),startOffset:p,end:r.getId(d),endOffset:f})}o({ranges:a})}}));return a(),Ka("selectionchange",a)}(e),O=function(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;return n&&n.customElements?Ja(n.customElements,"define",(function(e){return function(t,n,i){try{r({define:{name:t}})}catch(e){}return e.apply(this,[t,n,i])}})):function(){}}(e),M=[],A=b(e.plugins);!(x=A()).done;){var R=x.value;M.push(R.observer(R.callback,n,R.options))}return Dc((function(){Nc.forEach((function(e){return e.reset()})),null==r||r.disconnect(),g(),m(),v(),y(),_(),w(),k(),S(),C(),I(),E(),O(),M.forEach((function(e){return e()}))}))}function Gc(e){return void 0!==window[e]}function Hc(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var Yc=function(){function e(e){I(this,"iframeIdToRemoteIdMap",new WeakMap),I(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)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),Zc=function(){function e(e){I(this,"iframes",new WeakMap),I(this,"crossOriginIframeMap",new WeakMap),I(this,"crossOriginIframeMirror",new Yc(se)),I(this,"crossOriginIframeStyleMirror"),I(this,"crossOriginIframeRootIdMap",new WeakMap),I(this,"mirror"),I(this,"mutationCb"),I(this,"wrappedEmit"),I(this,"loadListener"),I(this,"stylesheetManager"),I(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Yc(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){var t=e;if("rrweb"===t.data.type&&t.origin===t.data.origin&&e.source){var r=this.crossOriginIframeMap.get(e.source);if(r){var n=this.transformCrossOriginEvent(r,t.data.event);n&&this.wrappedEmit(n,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case yc.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:yc.IncrementalSnapshot,data:{source:_c.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case yc.Meta:case yc.Load:case yc.DomContentLoaded:return!1;case yc.Plugin:return t;case yc.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case yc.IncrementalSnapshot:switch(t.data.source){case _c.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 _c.Drag:case _c.TouchMove:case _c.MouseMove:return t.data.positions.forEach((function(t){n.replaceIds(t,e,["id"])})),t;case _c.ViewportResize:return!1;case _c.MediaInteraction:case _c.MouseInteraction:case _c.Scroll:case _c.CanvasMutation:case _c.Input:return this.replaceIds(t.data,e,["id"]),t;case _c.StyleSheetRule:case _c.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _c.Font:return t;case _c.Selection:return t.data.ranges.forEach((function(t){n.replaceIds(t,e,["start","end"])})),t;case _c.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=b(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===Cc.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach((function(e){r.patchRootIdOnNode(e,t)}))},e}(),Jc=function(){function e(e){I(this,"shadowDoms",new WeakSet),I(this,"mutationCb"),I(this,"scrollCb"),I(this,"bypassOptions"),I(this,"mirror"),I(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=Fc(h({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push((function(){return n.disconnect()})),this.restoreHandlers.push(Bc(h({},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(Xa.host(e))),r.restoreHandlers.push(Vc({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(Ja(e.prototype,"attachShadow",(function(e){return function(n){var i=e.call(this,n),o=Xa.shadowRoot(this);return o&&vc(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}(),Xc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Kc="undefined"==typeof Uint8Array?[]:new Uint8Array(256),Qc=0;Qc<64;Qc++)Kc[Xc.charCodeAt(Qc)]=Qc;var eu=new Map;var tu=function(e,t,r){if(e&&(iu(e,t)||"object"===(void 0===e?"undefined":v(e)))){var n=function(e,t){var r=eu.get(e);return r||(r=new Map,eu.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}(r,e.constructor.name),i=n.indexOf(e);return-1===i&&(i=n.length,n.push(e)),i}};function ru(e,t,r){if(f(e,Array))return e.map((function(e){return ru(e,t,r)}));if(null===e)return e;if(f(e,Float32Array)||f(e,Float64Array)||f(e,Int32Array)||f(e,Uint32Array)||f(e,Uint8Array)||f(e,Uint16Array)||f(e,Int16Array)||f(e,Int8Array)||f(e,Uint8ClampedArray))return{rr_type:e.constructor.name,args:[Object.values(e)]};if(f(e,ArrayBuffer))return{rr_type:e.constructor.name,base64:function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=Xc[r[t]>>2],i+=Xc[(3&r[t])<<4|r[t+1]>>4],i+=Xc[(15&r[t+1])<<2|r[t+2]>>6],i+=Xc[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i}(e)};if(f(e,DataView))return{rr_type:e.constructor.name,args:[ru(e.buffer,t,r),e.byteOffset,e.byteLength]};if(f(e,HTMLImageElement))return{rr_type:e.constructor.name,src:e.src};if(f(e,HTMLCanvasElement)){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}return f(e,ImageData)?{rr_type:e.constructor.name,args:[ru(e.data,t,r),e.width,e.height]}:iu(e,t)||"object"===(void 0===e?"undefined":v(e))?{rr_type:e.constructor.name,index:tu(e,t,r)}:e}var nu=function(e,t,r){return e.map((function(e){return ru(e,t,r)}))},iu=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter((function(e){return"function"==typeof t[e]}));return Boolean(r.find((function(r){return f(e,t[r])})))};function ou(e,t,r,n){var i=[];try{var o=Ja(e.HTMLCanvasElement.prototype,"getContext",(function(e){return function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!ac(this,t,r,!0)){var c=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=c),n&&["webgl","webgl2"].includes(c))if(s[0]&&"object"===v(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){}
1return function(){i.forEach((function(e){return e()}))}}function su(e,t,r,n,i,o){for(var s,a=function(){var a=s.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a))return"continue";try{if("function"!=typeof e[a])return"continue";var u=Ja(e,a,(function(e){return function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=e.apply(this,c);if(tu(l,o,this),"tagName"in this.canvas&&!ac(this.canvas,n,i,!0)){var h=nu(c,o,this),p={type:t,property:a,args:h};r(this.canvas,p)}return l}}));c.push(u)}catch(n){var l=tc(e,a,{set:function(e){r(this.canvas,{type:t,property:a,args:[e],setter:!0})}});c.push(l)}},c=[],u=b(Object.getOwnPropertyNames(e));!(s=u()).done;)a();return c}var au,cu="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
1hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",uu="undefined"!=typeof window&&window.Blob&&new Blob([(au=cu,Uint8Array.from(atob(au),(function(e){return e.charCodeAt(0)})))],{type:"text/javascript;charset=utf-8"});function lu(e){var t;try{if(!(t=uu&&(window.URL||window.webkitURL).createObjectURL(uu)))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,"+cu,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var hu,pu,du,fu=function(){function e(e){var t=this;I(this,"pendingCanvasMutations",new Map),I(this,"rafStamps",{latestId:0,invokeId:null}),I(this,"mirror"),I(this,"mutationCb"),I(this,"resetObservers"),I(this,"frozen",!1),I(this,"locked",!1),I(this,"processMutation",(function(e,r){!(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId)&&t.rafStamps.invokeId||(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)}));var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:c})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o=this,s=ou(t,r,n,!0),a=new Map,u=new lu;u.onmessage=function(e){var t=e.data.id;if(a.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,s=r.width,c=r.height;o.mutationCb({id:t,type:kc["2D"],commands:[{property:"clearRect",args:[0,0,s,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l,h=1e3/e,p=0,d=function(e){if(p&&e-p<h)l=requestAnimationFrame(d);else{p=e;var s,f=o;(s=[],t.document.querySelectorAll("canvas").forEach((function(e){ac(e,r,n,!0)||s.push(e)}
1)),s).forEach(c((function(e){var t,r,n,o;return w(this,(function(s){switch(s.label){case 0:return r=f.mirror.getId(e),a.get(r)?[2]:0===e.width||0===e.height?[2]:(a.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(n=e.getContext(e.__context),!1===(null==(t=null==n?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)&&n.clear(n.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return o=s.sent(),u.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}}))}))),l=requestAnimationFrame(d)}};l=requestAnimationFrame(d),this.resetObservers=function(){s(),cancelAnimationFrame(l)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n=ou(e,t,r,!1),i=function(e,t,r,n){for(var i,o=function(){var o=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])return"continue";var a=Ja(t.CanvasRenderingContext2D.prototype,o,(function(i){return function(){for(var s=this,a=arguments.length,c=new Array(a),u=0;u<a;u++)c[u]=arguments[u];return ac(this.canvas,r,n,!0)||setTimeout((function(){var r=nu(c,t,s);e(s.canvas,{type:kc["2D"],property:o,args:r})}),0),i.apply(this,c)}}));s.push(a)}catch(r){var c=tc(t.CanvasRenderingContext2D.prototype,o,{set:function(t){e(this.canvas,{type:kc["2D"],property:o,args:[t],setter:!0})}});s.push(c)}},s=[],a=b(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype));!(i=a()).done;)o();return function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r),o=function(e,t,r,n){var i,o,s=[];return(i=s).push.apply(i,[].concat(su(t.WebGLRenderingContext.prototype,kc.WebGL,e,r,n,t))),void 0!==t.WebGL2RenderingContext&&(o=s).push.apply(o,[].concat(su(t.WebGL2RenderingContext.prototype,kc.WebGL2,e,r,n,t))),function(){s.forEach((function(e){return e()}))}}(this.processMutation.bind(this),e,t,r);this.resetObservers=function(){n(),i(),o()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach((function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)})),requestAnimationFrame((function(){return e.flushPendingCanvasMutations()}))},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map((function(e){return e.type,g(e,["type"])})),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),gu=function(){function e(e){I(this,"trackedLinkElements",new WeakSet),I(this,"mutationCb"),I(this,"adoptedStyleSheetCb"),I(this,"styleMirror",new fc),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){var r,n=function(){var e=i.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),s.push({styleId:t,rules:Array.from(e.rules||CSSRule,(function(t,r){return{rule:z(t,e.href),index:r}}))})),o.styleIds.push(t)};if(0!==e.length){for(var i,o={id:t,styleIds:[]},s=[],a=b(e);!(i=a()).done;)r=this,n();s.length>0&&(o.styles=s),this.adoptedStyleSheetCb(o)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(e){},e}(),mu=function(){function e(){I(this,"nodeMap",new WeakMap),I(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}(),vu=!1;try{if(2!==Array.from([1],(function(e){return 2*e}))[0]){var yu=document.createElement("iframe");document.body.appendChild(yu),Array.from=(null==(S=yu.contentWindow)?void 0:S.Array.from)||Array.from,document.body.removeChild(yu)}}catch(e){}var _u,bu,wu=new W;function ku(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,p=void 0===l?null:l,d=e.maskTextClass,f=void 0===d?"rr-mask":d,g=e.maskTextSelector,m=void 0===g?null:g,v=e.inlineStylesheet,y=void 0===v||v,_=e.maskAllInputs,w=e.maskInputOptions,k=e.slimDOMOptions,S=e.maskInputFn,C=e.maskTextFn,I=e.hooks,x=e.packFn,E=e.sampling,O=void 0===E?{}:E,M=e.dataURLOptions,A=void 0===M?{}:M,R=e.mousemoveWait,T=e.recordDOM,P=void 0===T||T,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,K=e.errorHandler;xc=K;var Q=!F||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw new Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==R&&void 0===O.mousemove&&(O.mousemove=R),wu.reset();var te,re=!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!==w?w:{password:!0},ne=!0===k||"all"===k?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===k,headMetaDescKeywords:"all"===k,headTitleMutations:"all"===k}:k||{};!function(e){void 0===e&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}();var ie=0,oe=function(e){for(var t,r=b(H||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!ee&&(e=x(e)),e};hu=function(e,i){var o,s=e;if(s.timestamp=rc(),!(null==(o=Nc[0])?void 0:o.isFrozen())||s.type===yc.FullSnapshot||s.type===yc.IncrementalSnapshot&&s.data.source===_c.Mutation||Nc.forEach((function(e){return e.unfreeze()}
1)),Q)null==t||t(oe(s),i);else if(ee){var a={type:"rrweb",event:oe(s),origin:window.location.origin,isCheckout:i};window.parent.postMessage(a,"*")}if(s.type===yc.FullSnapshot)te=s,ie=0;else if(s.type===yc.IncrementalSnapshot){if(s.data.source===_c.Mutation&&s.data.isAttachIframe)return;ie++;var c=n&&ie>=n,u=r&&s.timestamp-te.timestamp>r;(c||u)&&pu(!0)}};for(var se,ae=function(e){hu({type:yc.IncrementalSnapshot,data:h({source:_c.Mutation},e)})},ce=function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.Scroll},e)})},ue=function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.CanvasMutation},e)})},le=new gu({mutationCb:ae,adoptedStyleSheetCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.AdoptedStyleSheet},e)})}}),he=new Zc({mirror:wu,mutationCb:ae,stylesheetManager:le,recordCrossOriginIframes:F,wrappedEmit:hu}),pe=b(H||[]);!(se=pe()).done;){var de=se.value;de.getMirror&&de.getMirror({nodeMirror:wu,crossOriginIframeMirror:he.crossOriginIframeMirror,crossOriginIframeStyleMirror:he.crossOriginIframeStyleMirror})}var fe=new mu;du=new fu({recordCanvas:N,mutationCb:ue,win:window,blockClass:o,blockSelector:a,mirror:wu,sampling:O.canvas,dataURLOptions:A});var ge=new Jc({mutationCb:ae,scrollCb:ce,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskInputOptions:re,dataURLOptions:A,maskTextFn:C,maskInputFn:S,recordCanvas:N,inlineImages:G,sampling:O,slimDOMOptions:ne,iframeManager:he,stylesheetManager:le,canvasManager:du,keepIframeSrcFn:Z,processedNodeManager:fe},mirror:wu});pu=function(e){if(void 0===e&&(e=!1),P){hu({type:yc.Meta,data:{href:window.location.href,width:oc(),height:ic()}},e),le.reset(),ge.init(),Nc.forEach((function(e){return e.lock()}));var t=function(e,t){var r=t||{},n=r.mirror,i=void 0===n?new W:n,o=r.blockClass,s=void 0===o?"rr-block":o,a=r.blockSelector,c=void 0===a?null:a,u=r.maskTextClass,l=void 0===u?"rr-mask":u,h=r.maskTextSelector,p=void 0===h?null:h,d=r.inlineStylesheet,f=void 0===d||d,g=r.inlineImages,m=void 0!==g&&g,v=r.recordCanvas,y=void 0!==v&&v,_=r.maskAllInputs,b=void 0!==_&&_,w=r.maskTextFn,k=r.maskInputFn,S=r.slimDOM,C=void 0!==S&&S,I=r.dataURLOptions,x=r.preserveWhiteSpace,E=r.onSerialize,O=r.onIframeLoad,M=r.iframeLoadTimeout,A=r.onStylesheetLoad,R=r.stylesheetLoadTimeout,T=r.keepIframeSrcFn;return _e(e,{doc:e,mirror:i,blockClass:s,blockSelector:c,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:f,maskInputOptions:!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===b?{password:!0}:b,maskTextFn:w,maskInputFn:k,slimDOMOptions:!0===C||"all"===C?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===C,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===C?{}:C,dataURLOptions:I,inlineImages:m,recordCanvas:y,preserveWhiteSpace:x,onSerialize:E,onIframeLoad:O,iframeLoadTimeout:M,onStylesheetLoad:A,stylesheetLoadTimeout:R,keepIframeSrcFn:void 0===T?function(){return!1}:T,newlyAddedElement:!1})}(document,{mirror:wu,blockClass:o,blockSelector:a,maskTextClass:f,maskTextSelector:m,inlineStylesheet:y,maskAllInputs:re,maskTextFn:C,maskInputFn:S,slimDOM:ne,dataURLOptions:A,recordCanvas:N,inlineImages:G,onSerialize:function(e){hc(e,wu)&&he.addIframe(e),pc(e,wu)&&le.trackLinkElement(e),dc(e)&&ge.addShadowRoot(Xa.shadowRoot(e),document)},onIframeLoad:function(e,t){he.attachIframe(e,t),ge.observeAttachShadow(e)},onStylesheetLoad:function(e,t){le.attachLinkElement(e,t)},keepIframeSrcFn:Z});t&&(hu({type:yc.FullSnapshot,data:{node:t,initialOffset:nc(window)}},e),Nc.forEach((function(e){return e.unlock()})),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&le.adoptStyleSheets(document.adoptedStyleSheets,wu.getId(document)))}};try{var me=[],ve=function(e){var t;return Dc($c)({mutationCb:ae,mousemoveCb:function(e,t){return hu({type:yc.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({s
1ource:_c.MouseInteraction},e)})},scrollCb:ce,viewportResizeCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.ViewportResize},e)})},inputCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.Input},e)})},mediaInteractionCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.MediaInteraction},e)})},styleSheetRuleCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.StyleSheetRule},e)})},styleDeclarationCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.StyleDeclaration},e)})},canvasMutationCb:ue,fontCb:function(e){return hu({type:yc.IncrementalSnapshot,data:h({source:_c.Font},e)})},selectionCb:function(e){hu({type:yc.IncrementalSnapshot,data:h({source:_c.Selection},e)})},customElementCb:function(e){hu({type:yc.IncrementalSnapshot,data:h({source:_c.CustomElement},e)})},blockClass:o,ignoreClass:u,ignoreSelector:p,maskTextClass:f,maskTextSelector:m,maskInputOptions:re,inlineStylesheet:y,sampling:O,recordDOM:P,recordCanvas:N,inlineImages:G,userTriggeredOnInput:q,collectFonts:V,doc:e,maskInputFn:S,maskTextFn:C,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:ne,dataURLOptions:A,mirror:wu,iframeManager:he,stylesheetManager:le,shadowDomManager:ge,processedNodeManager:fe,canvasManager:du,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 hu({type:yc.Plugin,data:{plugin:e.name,payload:t}})}}})))||[]},I)};he.addLoadListener((function(e){try{me.push(ve(e.contentDocument))}catch(e){}}));var ye=function(){pu(),me.push(ve(document)),vu=!0};return"interactive"===document.readyState||"complete"===document.readyState?ye():(me.push(Ka("DOMContentLoaded",(function(){hu({type:yc.DomContentLoaded,data:{}}),"DOMContentLoaded"===B&&ye()}))),me.push(Ka("load",(function(){hu({type:yc.Load,data:{}}),"load"===B&&ye()}),window))),function(){me.forEach((function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")}}
1)),fe.destroy(),vu=!1,xc=void 0}}catch(e){}}ku.addCustomEvent=function(e,t){if(!vu)throw new Error("please add custom event after start recording");hu({type:yc.Custom,data:{tag:e,payload:t}})},ku.freezePage=function(){Nc.forEach((function(e){return e.freeze()}))},ku.takeFullSnapshot=function(e){if(!vu)throw new Error("please take full snapshot after start recording");pu(e)},ku.mirror=wu,(bu=_u||(_u={}))[bu.NotStarted=0]="NotStarted",bu[bu.Running=1]="Running",bu[bu.Stopped=2]="Stopped",ku.addCustomEvent,ku.freezePage,ku.takeFullSnapshot;var Su,Cu,Iu,xu=i.setImmediate,Eu=Object.prototype.toString,Ou=void 0!==xu?function(e){return xu(e)}:setTimeout;try{Object.defineProperty({},"x",{}),Su=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){Su=function(e,t,r){return e[t]=r,e}}function Mu(e,t){Iu.add(e,t),Cu||(Cu=Ou(Iu.drain))}function Au(e){var t,r=typeof e;return null===e||"object"!==r&&"function"!==r||(t=e.then),"function"==typeof t&&t}function Ru(){for(var e=0;e<this.chain.length;e++)Tu(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function Tu(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=Au(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}function Pu(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Au(e))?Mu((function(){var n=new Lu(r);try{t.call(e,(function(){Pu.apply(n,arguments)}),(function(){Du.apply(n,arguments)}))}catch(e){Du.call(n,e)}})):(r.msg=e,r.state=1,r.chain.length>0&&Mu(Ru,r))}catch(e){Du.call(new Lu(r),e)}}}function Du(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&Mu(Ru,t))}function Nu(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 Lu(e){this.def=e,this.triggered=!1}function Fu(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Uu(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 Fu(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&&Mu(Ru,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){Pu.call(t,e)}),(function(e){Du.call(t,e)}))}catch(e){Du.call(t,e)}}Iu=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=Cu=void 0;r;)r.fn.call(r.self),r=r.next}}}();var Bu,ju=Su({},"constructor",Uu,!1);Uu.prototype=ju,Su(ju,"__NPO__",0,!1),Su(Uu,"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)}))})),Su(Uu,"reject",(function(e){return new this((function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)}))})),Su(Uu,"all",(function(e){var t=this;return"[object Array]"!==Eu.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;Nu(t,e,(function(e,t){o[e]=t,++s===i&&r(o)}),n)}))})),Su(Uu,"race",(function(e){var t=this;return"[object Array]"!==Eu.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");Nu(t,e,(function(e,t){r(t)}),n)}))})),Bu="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:Uu;var qu,zu,Wu,Vu,$u,Gu,Hu,Yu,Zu,Ju,Xu={DEBUG:!1,LIB_VERSION:"2.71.0"},Ku=864e5,Qu=8e3,el=Array.prototype,tl=Function.prototype,rl=Object.prototype,nl=el.slice,il=rl.toString,ol=rl.hasOwnProperty,sl=i.console,al=i.navigator,cl=i.document,ul=i.opera,ll=i.screen,hl=al.userAgent,pl=tl.bind,dl=el.forEach,fl=el.indexOf,gl=el.map,ml=Array.isArray,vl={},yl={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},_l={log:function(){if(Xu.DEBUG&&!yl.isUndefined(sl)&&sl)try{sl.log.apply(sl,arguments)}catch(e){yl.each(arguments,(function(e){sl.log(e)}))}},warn:function(){if(Xu.DEBUG&&!yl.isUndefined(sl)&&sl){var e=["Mixpanel warning:"].
1concat(yl.toArray(arguments));try{sl.warn.apply(sl,e)}catch(t){yl.each(e,(function(e){sl.warn(e)}))}}},error:function(){if(Xu.DEBUG&&!yl.isUndefined(sl)&&sl){var e=["Mixpanel error:"].concat(yl.toArray(arguments));try{sl.error.apply(sl,e)}catch(t){yl.each(e,(function(e){sl.error(e)}))}}},critical:function(){if(!yl.isUndefined(sl)&&sl){var e=["Mixpanel error:"].concat(yl.toArray(arguments));try{sl.error.apply(sl,e)}catch(t){yl.each(e,(function(e){sl.error(e)}))}}}},bl=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(_l,arguments)}},wl=function(e){return{log:bl(_l.log,e),error:bl(_l.error,e),critical:bl(_l.critical,e)}},kl=function(e){return function(){try{return e.apply(this,arguments)}catch(e){_l.critical("Implementation error. Please turn on debug and contact [email protected]."),Xu.DEBUG&&_l.critical(e)}}},Sl=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=kl(t[r]))};yl.bind=function(e,t){var r,n;if(pl&&e.bind===pl)return pl.apply(e,nl.call(arguments,1));if(!yl.isFunction(e))throw new TypeError;return r=nl.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(nl.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(nl.call(arguments)));return Object(s)===s?s:o},n},yl.each=function(e,t,r){if(null!=e)if(dl&&e.forEach===dl)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)===vl)return}else for(var o in e)if(ol.call(e,o)&&t.call(r,e[o],o,e)===vl)return},yl.extend=function(e){return yl.each(nl.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])})),e},yl.isArray=ml||function(e){return"[object Array]"===il.call(e)},yl.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},yl.isArguments=function(e){return!(!e||!ol.call(e,"callee"))},yl.toArray=function(e){return e?e.toArray?e.toArray():yl.isArray(e)||yl.isArguments(e)?nl.call(e):yl.values(e):[]},yl.map=function(e,t,r){if(gl&&e.map===gl)return e.map(t,r);var n=[];return yl.each(e,(function(e){n.push(t.call(r,e))})),n},yl.keys=function(e){var t=[];return null===e||yl.each(e,(function(e,r){t[t.length]=r})),t},yl.values=function(e){var t=[];return null===e||yl.each(e,(function(e){t[t.length]=e})),t},yl.include=function(e,t){var r=!1;return null===e?r:fl&&e.indexOf===fl?-1!=e.indexOf(t):(yl.each(e,(function(e){if(r||(r=e===t))return vl})),r)},yl.includes=function(e,t){return-1!==e.indexOf(t)},yl.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},yl.isObject=function(e){return e===Object(e)&&!yl.isArray(e)},yl.isEmptyObject=function(e){if(yl.isObject(e)){for(var t in e)if(ol.call(e,t))return!1;return!0}return!1},yl.isUndefined=function(e){return void 0===e},yl.isString=function(e){return"[object String]"==il.call(e)},yl.isDate=function(e){return"[object Date]"==il.call(e)},yl.isNumber=function(e){return"[object Number]"==il.call(e)},yl.isElement=function(e){return!(!e||1!==e.nodeType)},yl.encodeDates=function(e){return yl.each(e,(function(t,r){yl.isDate(t)?e[r]=yl.formatDate(t):yl.isObject(t)&&(e[r]=yl.encodeDates(t))})),e},yl.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},yl.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())},yl.strip_empty_properties=function(e){var t={};return yl.each(e,(function(e,r){yl.isString(e)&&e.length>0&&(t[r]=e)})),t},yl.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):yl.isArray(e)?(r=[],yl.each(e,(function(e){r.push(yl.truncate(e,t))}))):yl.isObject(e)?(r={},yl.each(e,(function(e,n){r[n]=yl.truncate(e,t)}))):r=e,r},yl.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",c=0,u=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";
1if(i+=" ",l=[],"[object Array]"===il.apply(h)){for(c=h.length,o=0;o<c;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in h)ol.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})},yl.JSONDecode=($u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Gu=function(e){var t=new SyntaxError(e);throw t.at=qu,t.text=Wu,t},Hu=function(e){return e&&e!==zu&&Gu("Expected '"+e+"' instead of '"+zu+"'"),zu=Wu.charAt(qu),qu+=1,zu},Yu=function(){var e,t="";for("-"===zu&&(t="-",Hu("-"));zu>="0"&&zu<="9";)t+=zu,Hu();if("."===zu)for(t+=".";Hu()&&zu>="0"&&zu<="9";)t+=zu;if("e"===zu||"E"===zu)for(t+=zu,Hu(),"-"!==zu&&"+"!==zu||(t+=zu,Hu());zu>="0"&&zu<="9";)t+=zu,Hu();if(e=+t,isFinite(e))return e;Gu("Bad number")},Zu=function(){var e,t,r,n="";if('"'===zu)for(;Hu();){if('"'===zu)return Hu(),n;if("\\"===zu)if(Hu(),"u"===zu){for(r=0,t=0;t<4&&(e=parseInt(Hu(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof $u[zu])break;n+=$u[zu]}else n+=zu}Gu("Bad string")},Ju=function(){for(;zu&&zu<=" ";)Hu()},Vu=function(){switch(Ju(),zu){case"{":return function(){var e,t={};if("{"===zu){if(Hu("{"),Ju(),"}"===zu)return Hu("}"),t;for(;zu;){if(e=Zu(),Ju(),Hu(":"),Object.hasOwnProperty.call(t,e)&&Gu('Duplicate key "'+e+'"'),t[e]=Vu(),Ju(),"}"===zu)return Hu("}"),t;Hu(","),Ju()}}Gu("Bad object")}();case"[":return function(){var e=[];if("["===zu){if(Hu("["),Ju(),"]"===zu)return Hu("]"),e;for(;zu;){if(e.push(Vu()),Ju(),"]"===zu)return Hu("]"),e;Hu(","),Ju()}}Gu("Bad array")}();case'"':return Zu();case"-":return Yu();default:return zu>="0"&&zu<="9"?Yu():function(){switch(zu){case"t":return Hu("t"),Hu("r"),Hu("u"),Hu("e"),!0;case"f":return Hu("f"),Hu("a"),Hu("l"),Hu("s"),Hu("e"),!1;case"n":return Hu("n"),Hu("u"),Hu("l"),Hu("l"),null}Gu('Unexpected "'+zu+'"')}()}},function(e){var t;return Wu=e,qu=0,zu=" ",t=Vu(),Ju(),zu&&Gu("Syntax error"),t}),yl.base64Encode=function(e){var t,r,n,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!e)return e;e=yl.utf8Encode(e);do{t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,r=o>>12&63,n=o>>6&63,i=63&o,l[c++]=s.charAt(t)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(a<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},yl.utf8Encode=function(e){var t,r,n,i,o="";for(t=r=0,n=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<n;i++){var s=e.charCodeAt(i),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(o+=e.substring(t,r)),o+=a,t=r=i+1)}return r>t&&(o+=e.substring(t,e.length)),o},yl.UUID=function(){try{return i.crypto.randomUUID()}catch(r){for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",yl.map(e,(function(e){return e.toString(16)})).join("")}};var Cl=["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"];yl.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Cl.length;t++)if(-1!==e.indexOf(Cl[t]))return!0;return!1},yl.HTTPBuildQuery=function(e,t){var r,n,i=[];return yl.isUndefined(t)&&(t="&"),yl.each(e,(function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r})),i.join(t)},yl.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){_l.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},yl.cookie={get:function(e){for(var t=e+"=",r=cl.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=yl.JSONDecode(yl.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=Ll(cl.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"),cl.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=Ll(cl.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*60*60*1e3),c="; expires="+h.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var p=e+"="+encodeURIComponent(t)+c+"; path=/"+a+u;return cl.cookie=p,p},remove:function(e,t,r){yl.cookie.set(e,"",-1,t,!1,!1,r)}};var Il=function(e){var t=!0;
1try{var r="__mplss_"+Pl(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},xl=null,El=function(e,t){return null===xl||t?xl=Il(e||i.localStorage):xl},Ol=null;function Ml(e,t,r){var n=function(e){_l.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||_l.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 yl.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)}}}}yl.localStorage=Ml(i.localStorage,"localStorage",El),yl.sessionStorage=Ml(i.sessionStorage,"sessionStorage",(function(e,t){return null===Ol||t?Ol=Il(e||i.sessionStorage):Ol})),yl.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,o,s){if(t)if(t.addEventListener&&!o)t.addEventListener(r,n,!!s);else{var a="on"+r,c=t[a];t[a]=function(t,r,n){var o=function(o){if(o=o||e(i.event)){var s,a,c=!0;return yl.isFunction(n)&&(s=n(o)),a=r.call(t,o),!1!==s&&!1!==a||(c=!1),c}};return o}(t,n,c)}else _l.error("No valid element provided to register_event")}}();var Al=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');yl.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(e,r){var n=" "+r+" ";return(" "+e.className+" ").replace(t," ").indexOf(n)>=0}function n(t){if(!cl.getElementsByTagName)return[];var n,i,o,s,a,c,u,l,h,p,d=t.split(" "),f=[cl];for(c=0;c<d.length;c++)if((n=d[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=n.split("#"))[0];var g=i[1],m=cl.getElementById(g);if(!m||o&&m.nodeName.toLowerCase()!=o)return[];f=[m]}else if(n.indexOf(".")>-1){o=(i=n.split("."))[0];var v=i[1];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];for(f=[],p=0,u=0;u<s.length;u++)s[u].className&&yl.isString(s[u].className)&&r(s[u],v)&&(f[p++]=s[u])}else{var y=n.match(Al);if(y){o=y[1];var _,b=y[2],w=y[3],k=y[4];for(o||(o="*"),s=[],a=0,u=0;u<f.length;u++)for(h="*"==o?e(f[u]):f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];switch(f=[],p=0,w){case"=":_=function(e){return e.getAttribute(b)==k};break;case"~":_=function(e){return e.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":_=function(e){return e.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(b).indexOf(k)};break;case"$":_=function(e){return e.getAttribute(b).lastIndexOf(k)==e.getAttribute(b).length-k.length};break;case"*":_=function(e){return e.getAttribute(b).indexOf(k)>-1};break;default:_=function(e){return e.getAttribute(b)}}for(f=[],p=0,u=0;u<s.length;u++)_(s[u])&&(f[p++]=s[u])}else{for(o=n,s=[],a=0,u=0;u<f.length;u++)for(h=f[u].getElementsByTagName(o),l=0;l<h.length;l++)s[a++]=h[l];f=s}}return f}return function(e){return yl.isElement(e)?[e]:yl.isObject(e)&&!yl.isUndefined(e.length)?e:n.call(this,e)}}();var Rl=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Tl=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];yl.info={campaignParams:function(e){var t="",r={};return yl.each(Rl,(function(n){(t=yl.getQueryParam(cl.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)})),r},clickParams:function(){var e="",t={};return yl.each(Tl,(function(r){(e=yl.getQueryParam(cl.URL,r)).length&&(t[r]=e)})),t},marketingParams:function(){return yl.extend(yl.info.campaignParams(),yl.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}
1,searchInfo:function(e){var t=yl.info.searchEngine(e),r="yahoo"!=t?"q":"p",n={};if(null!==t){n.$search_engine=t;var i=yl.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||yl.includes(e," OPR/")?yl.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":yl.includes(e,"IEMobile")||yl.includes(e,"WPDesktop")?"Internet Explorer Mobile":yl.includes(e,"SamsungBrowser/")?"Samsung Internet":yl.includes(e,"Edge")||yl.includes(e,"Edg/")?"Microsoft Edge":yl.includes(e,"FBIOS")?"Facebook Mobile":yl.includes(e,"Whale/")?"Whale Browser":yl.includes(e,"Chrome")?"Chrome":yl.includes(e,"CriOS")?"Chrome iOS":yl.includes(e,"UCWEB")||yl.includes(e,"UCBrowser")?"UC Browser":yl.includes(e,"FxiOS")?"Firefox iOS":yl.includes(t,"Apple")?yl.includes(e,"Mobile")?"Mobile Safari":"Safari":yl.includes(e,"Android")?"Android Mobile":yl.includes(e,"Konqueror")?"Konqueror":yl.includes(e,"Firefox")?"Firefox":yl.includes(e,"MSIE")||yl.includes(e,"Trident/")?"Internet Explorer":yl.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[yl.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){var e=hl;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return i.location.href},properties:function(e){return"object"!=typeof e&&(e={}),yl.extend(yl.strip_empty_properties({$os:yl.info.os(),$browser:yl.info.browser(hl,al.vendor,ul),$referrer:cl.referrer,$referring_domain:yl.info.referringDomain(cl.referrer),$device:yl.info.device(hl)}),{$current_url:yl.info.currentUrl(),$browser_version:yl.info.browserVersion(hl,al.vendor,ul),$screen_height:ll.height,$screen_width:ll.width,mp_lib:"web",$lib_version:Xu.LIB_VERSION,$insert_id:Pl(),time:yl.timestamp()/1e3},yl.strip_empty_properties(e))},people_properties:function(){return yl.extend(yl.strip_empty_properties({$os:yl.info.os(),$browser:yl.info.browser(hl,al.vendor,ul)}),{$browser_version:yl.info.browserVersion(hl,al.vendor,ul)})},mpPageViewProperties:function(){return yl.strip_empty_properties({current_page_title:cl.title,current_domain:i.location.hostname,current_url_path:i.location.pathname,current_url_protocol:i.location.protocol,current_url_search:i.location.search})}};var Pl=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},Dl=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Nl=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Ll=function(e){var t=Nl,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=Dl);var i=e.match(t);return i?i[0]:""},Fl=function(){},Ul=null,Bl=null;"undefined"!=typeof JSON&&(Ul=JSON.stringify,Bl=JSON.parse),Ul=Ul||yl.JSONEncode,Bl=Bl||yl.JSONDecode,yl.info=yl.info,yl.info.browser=yl.info.browser,yl.info.browserVersion=yl.info.browserVersion,yl.info.device=yl.info.device,yl.info.properties=yl.info.properties,yl.isBlockedUA=yl.isBlockedUA,yl.isEmptyObject=yl.isEmptyObject,yl.isObject=yl.isObject,yl.JSONDecode=yl.JSONDecode,yl.JSONEncode=yl.JSONEncode,yl.toArray=yl.toArray,yl.
1NPO=Uu;var jl="mixpanelRecordingEvents",ql="mixpanelRecordingRegistry",zl=[jl,ql],Wl=function(e){this.dbPromise=null,this.storeName=e};Wl.prototype._openDb=function(){return new Bu((function(e,t){var r=i.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;zl.forEach((function(e){t.createObjectStore(e)}))}}))},Wl.prototype.init=function(){return i.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then((function(e){return e instanceof i.IDBDatabase?Bu.resolve():Bu.reject(e)}))):Bu.reject("indexedDB is not supported in this browser")},Wl.prototype.isInitialized=function(){return!!this.dbPromise},Wl.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new Bu((function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))}))};return this.dbPromise.then(n).catch(function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):Bu.reject(e)}.bind(this))},Wl.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",(function(r){r.put(t,e)}))},Wl.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",(function(r){t=r.get(e)})).then((function(){return t.result}))},Wl.prototype.removeItem=function(e){return this.makeTransaction("readwrite",(function(t){t.delete(e)}))},Wl.prototype.getAll=function(){var e;return this.makeTransaction("readonly",(function(t){e=t.getAll()})).then((function(){return e.result}))};function Vl(e,t){th(!0,e,t)}function $l(e,t){th(!1,e,t)}function Gl(e,t){return"1"===eh(e,t)}function Hl(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||i,r=t.navigator||{},n=!1;return yl.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],(function(e){yl.includes([!0,1,"1","yes"],e)&&(n=!0)})),n}(t))return _l.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"===eh(e,t);return r&&_l.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function Yl(e){return rh(e,(function(e){return this.get_config(e)}))}function Zl(e){return rh(e,(function(e){return this._get_config(e)}))}function Jl(e){return rh(e,(function(e){return this._get_config(e)}))}function Xl(e,t){Kl(t=t||{}).remove(Ql(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function Kl(e){return"localStorage"===(e=e||{}).persistenceType?yl.localStorage:yl.cookie}function Ql(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function eh(e,t){return Kl(t).get(Ql(e,t))}function th(e,t,r){yl.isString(t)&&t.length?(Kl(r=r||{}).set(Ql(t,r),e?1:0,yl.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})):_l.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function rh(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=Hl(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){_l.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var nh=wl("lock"),ih=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||i.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Bu};ih.prototype.withLock=function(e,t){return new(0,this.promiseImpl)(yl.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)return nh.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),u.removeItem(p),u.removeItem(h),void m();setTimeout((function(){try{e()}catch(e){n(e)}}),a*(Math.random()+.1))},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||(El(u,!0)||n(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){u.setItem(l,i),f(g,(function(){u.getItem(l)!==i?d((function(){u.getItem(h)===i?f((function(){return!u.getItem(p)}),v):m()})):v()}))},v=function(){u.setItem(p,"1");var t=function(){u.removeItem(p),u.getItem(h)===i&&u.removeItem(h),u.getItem(l)===i&&u.removeItem(l)};e().then((function(e){t(),r(e)})).catch((function(e){t(),n(e)}))};try{if(!El(u,!0))throw new Error("localStorage support check failed");m()}catch(e){n(e)}}),this))};var oh=function(e){this.storage=e||i.localStorage};oh.prototype.init=function(){return Bu.resolve()},oh.prototype.isInitialized=function(){return!0},oh.prototype.setItem=function(e,t){return new Bu(yl.bind((function(r,n){try{this.storage.setItem(e,Ul(t))}catch(e){n(e)}r()}),this))},oh.prototype.getItem=function(e){return new Bu(yl.bind((function(t,r){var n;try{n=Bl(this.storage.getItem(e))}catch(e){r(e)}t(n)}),this))},oh.prototype.removeItem=function(e){return new Bu(yl.bind((function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()}),this))};var sh=wl("batch"),ah=function(e,t){var r,n,o,s;t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new oh,this.lock=new ih(e,{storage:t.sharedLockStorage||i.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||yl.bind(sh.error,sh),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=(r=yl.bind(this._enqueuePersisted,this),n=t.enqueueThrottleMs,o=null,s=[],function(e){var t=this;return s.push(e),o||(o=new Bu((function(e){setTimeout((function(){var n=r.apply(t,[s]);o=null,s=[],e(n)}),n)}))),o}):this.enqueuePersisted=yl.bind((function(e){return this._enqueuePersisted([e])}),this)};ah.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?Bu.resolve():this.queueStorage.init(
1).then(yl.bind((function(){this.initialized=!0}),this)).catch(yl.bind((function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1}),this))},ah.prototype.enqueue=function(e,t){var r={id:Pl(),flushAfter:(new Date).getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Bu.resolve(!0))},ah.prototype._enqueuePersisted=function(e){var t=yl.bind((function(){return this.ensureInit().then(yl.bind((function(){return this.readFromStorage()}),this)).then(yl.bind((function(t){return this.saveToStorage(t.concat(e))}),this)).then(yl.bind((function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t}),this)).catch(yl.bind((function(t){return this.reportError("Error enqueueing items",t,e),!1}),this))}),this);return this.lock.withLock(t,this.pid).catch(yl.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this))},ah.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(yl.bind((function(){return this.readFromStorage()}),this)).then(yl.bind((function(r){if(r.length){var n={};yl.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)):Bu.resolve(t)};var ch=function(e,t){var r=[];return yl.each(e,(function(e){e.id&&!t[e.id]&&r.push(e)})),r};ah.prototype.removeItemsByID=function(e){var t={};if(yl.each(e,(function(e){t[e]=!0})),this.memQueue=ch(this.memQueue,t),this.usePersistence){var r=yl.bind((function(){return this.ensureInit().then(yl.bind((function(){return this.readFromStorage()}),this)).then(yl.bind((function(e){return e=ch(e,t),this.saveToStorage(e)}),this)).then(yl.bind((function(){return this.readFromStorage()}),this)).then(yl.bind((function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw new Error("Item not removed from storage")}return!0}),this)).catch(yl.bind((function(t){return this.reportError("Error removing items",t,e),!1}),this))}),this);return this.lock.withLock(r,this.pid).catch(yl.bind((function(e){return this.reportError("Error acquiring storage lock",e),!El(this.lock.storage,!0)&&r().then(yl.bind((function(e){return e||this.queueStorage.removeItem(this.storageKey).then((function(){return e}))}),this)).catch(yl.bind((function(e){return this.reportError("Error clearing queue",e),!1}),this))}),this))}return Bu.resolve(!0)};var uh=function(e,t){var r=[];return yl.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};ah.prototype.updatePayloads=function(e){return this.memQueue=uh(this.memQueue,e),this.usePersistence?this.lock.withLock(yl.bind((function(){return this.ensureInit().then(yl.bind((function(){return this.readFromStorage()}),this)).then(yl.bind((function(t){return t=uh(t,e),this.saveToStorage(t)}),this)).catch(yl.bind((function(t){return this.reportError("Error updating items",e,t),!1}),this))}),this),this.pid).catch(yl.bind((function(e){return this.reportError("Error acquiring storage lock",e),!1}),this)):Bu.resolve(!0)},ah.prototype.readFromStorage=function(){return this.ensureInit().then(yl.bind((function(){return this.queueStorage.getItem(this.storageKey)}),this)).then(yl.bind((function(e){return e&&(yl.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]}),this)).catch(yl.bind((function(e){return this.reportError("Error retrieving queue",e),[]}),this))},ah.prototype.saveToStorage=function(e){return this.ensureInit().then(yl.bind((function(){return this.queueStorage.setItem(this.storageKey,e)}),this)).then((function(){return!0})).catch(yl.bind((function(e){return this.reportError("Error saving queue",e),!1}),this))},ah.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(yl.bind((function(){return this.queueStorage.removeItem(this.storageKey)}),this)):Bu.resolve()};var lh=wl("batch"),hh=function(e,t){this.errorReporter=t.errorReporter,this.queue=new ah(e,{errorReporter:yl.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};hh.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},hh.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},hh.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},hh.prototype.clear=function(){return this.queue.clear()},hh.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},hh.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},hh.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(yl.bind((function(){this.stopped||(this._flushPromise=this.flush())}),this),this.flushInterval))},hh.prototype.sendRequestPromise=function(e,t){return new Bu(yl.bind((function(r){this.sendRequest(e,t,r)}),this))},hh.prototype.flush=function(e){if(this.requestInProgress)return lh.log("Flush: Request already in progress"),Bu.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(yl.bind((function(o){var s=o.length===n,a=[],c={};if(yl.each(o,(function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=yl.extend({},t.properties,{mp_sent_by_lib_version:Xu.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(),Bu.resolve();var u=yl.bind((function(){return this.queue.removeItemsByID(yl.map(o,(function(e){return e.id}))).then(yl.bind((function(e){return yl.each(o,yl.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(),Bu.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Bu.resolve())}),this))}),this),l=yl.bind((function(s){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(yl.isObject(s)&&"timeout"===s.error&&(new Date).getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(yl.isObject(s)&&(s.httpStatusCode>=500||429===s.httpStatusCode||s.httpStatusCode<=0&&(h=i.navigator.onLine,!yl.isUndefined(h)&&!h)||"timeout"===s.error)){var a=2*this.flushInterval;return s.retryAfter&&(a=1e3*parseInt(s.retryAfter,10)||a),a=Math.min(6e5,a),this.reportError("Error; retry in "+a+" ms"),this.scheduleFlush(a),Bu.resolve()}if(yl.isObject(s)&&413===s.httpStatusCode){if(o.length>1){var l=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,l,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Bu.resolve()}return this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),u()}return u()}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}var h}),this),h={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(h.transport="sendBeacon"),lh.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,h).then(l)}),this)).catch(yl.bind((function(e){this.reportError("Error flushing request queue",e),this.resetFlush()}),this))},hh.prototype.reportError=function(e,t){if(lh.error.apply(lh.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){lh.error(t)}};var ph=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},dh=wl("recorder"),fh=i.CompressionStream,gh={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},mh=new Set([_c.MouseMove,_c.MouseInteraction,_c.Scroll,_c.ViewportResize,_c.Input,_c.TouchMove,_c.MediaInteraction,_c.Drag,_c.Selection]);var vh=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Fl,this._onMaxLengthReached=e.onMaxLengthReached||Fl,this._onBatchSent=e.onBatchSent||Fl,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=Ku,this.recordMinMs=0;var t=El(e.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Wl(jl),this.batcher=new hh(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:gh,send
1RequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};vh.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},vh.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))},vh.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},vh.prototype.get_config=function(e){return this.getConfig(e)},vh.prototype.startRecording=function(e){if(null!==this._rrwebRecord)if(null===this._stopRecording){this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Ku&&(this.recordMaxMs=Ku,dh.critical("record_max_ms cannot be greater than "+Ku+"ms. Capping value.")),this.maxExpires||(this.maxExpires=(new Date).getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>Qu&&(this.recordMinMs=Qu,dh.critical("record_min_ms cannot be greater than 8000ms. Capping value.")),this.replayStartTime||(this.replayStartTime=(new Date).getTime(),this.batchStartUrl=yl.info.currentUrl(),this.replayStartUrl=yl.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){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(function(e){return e.type===yc.IncrementalSnapshot&&mh.has(e.data.source)}(e)&&(this.batcher.stopped&&(new Date).getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e))}.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)return this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,void this.stopRecording();var n=this.maxExpires-(new Date).getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)}else dh.log("Recording already in progress, skipping startRecording.");else this.reportError("rrweb record function not provided. ")},vh.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},vh.prototype.isRrwebStopped=function(){return null===this._stopRecording},vh.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)},vh.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}},vh.deserialize=function(e,t){return new vh(yl.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}))},vh.prototype._sendRequest=function(e,t,r,n){var o=function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=yl.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}.bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");i.fetch(s+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then((function(e){e.json().then((function(t){o(e,t)})).catch((function(e){n({error:e})}))})).catch((function(e){n({error:e,httpStatusCode:0})}))},vh.prototype._flushEvents=Yl((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===yc.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a)return r({error:"First batch does not contain a full snapshot. Aborting recording."}),void this.stopRecording(!0);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:Xu.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);if(Object.assign(l,this.getUserIdInfo()),fh){var p=new Blob([h],{type:"application/json"}).stream().pipeThrough(new fh("gzip"));new Response(p).blob().then(function(e){l.format="gzip",this._sendRequest(i,l,e,r)}.bind(this))}else l.format="body",this._sendRequest(i,l,h,r)}})),vh.prototype.reportError=function(e,t){dh.error.apply(dh.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(t){dh.error(t)}};
1var yh=function(e){this.idb=new Wl(ql),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};yh.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},yh.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},yh.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return Bu.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)):Bu.resolve()},yh.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 ph(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):Bu.resolve(null)},yh.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},yh.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))},yh.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):Bu.resolve()},yh.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 ph(e)})).map(function(e){return vh.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 Bu.all(t)}.bind(this)).catch(this.handleError.bind(this)):Bu.resolve([])};var _h=wl("recorder"),bh=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||ku,this.sharedLockStorage=r,this.recordingRegistry=new yh({mixpanelInstance:this.mixpanelInstance,errorReporter:_h.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};bh.prototype.startRecording=function(e){if(e=e||{},!this.activeRecording||this.activeRecording.isRrwebStopped()){var t=function(){_h.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),r=function(){_h.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:yl.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=vh.deserialize(e.activeSerializedRecording,i):this.activeRecording=new vh(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())}_h.log("Recording already in progress, skipping startRecording.")},bh.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))},bh.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},bh.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Bu.resolve()},bh.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Bu.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(_h.log("No resumable recording found."),null)}.bind(this))},bh.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},bh.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null},Object.defineProperty(bh.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),i.__mp_recorder=bh;var wh="change",kh="click",Sh="hashchange",Ch="load",Ih="mp_locationchange",xh="popstate",Eh="scrollend",Oh="scroll",M
1h="submit",Ah="visibilitychange",Rh=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Th=["mp-include"],Ph=["mp-no-track"],Dh=Ph.concat(["mp-sensitive"]),Nh=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],Lh={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},Fh={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},Uh={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Bh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],jh=wl("autocapture");function qh(e){for(var t={},r=zh(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function zh(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function Wh(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!Zh(e));return e}function Vh(e,t,r,n,i,o){var s={$classes:zh(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),Kh(e,t,i,o)&&yl.each(Nh.concat(n),(function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);Qh(n)&&(s["$attr-"+t]=n)}}));for(var c=1,u=1,l=e;l=Wh(l);)c++,l.tagName===e.tagName&&u++;return s.$nth_child=c,s.$nth_of_type=u,s}function $h(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],o=t.blockAttrs||[],s=t.blockElementCallback,a=t.blockSelectors||[],c=t.captureTextContent||!1,u=t.captureExtraAttrs||[],l=t.capturedForHeatMap||!1,h={};yl.each(o,(function(e){h[e]=!0}));var p=null,d=void 0===e.target?e.srcElement:e.target;if(Xh(d)&&(d=d.parentNode),function(e,t){if(!e||Jh(e,"html")||!Zh(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===Mh;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?t.type===wh:t.type===kh;case"select":case"textarea":return t.type===wh;default:return t.type===kh}}(d,e)&&Hh(d,e,r,n)&&!Yh(d,e,s,a)){for(var f=[d],g=d;g.parentNode&&!Jh(g,"body");)f.push(g.parentNode),g=g.parentNode;var m,v=[],y=!1;if(yl.each(f,(function(t){var i=Kh(t,e,r,n);h.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&Qh(m)&&m),Yh(t,e,s,a)&&(y=!0),v.push(Vh(t,e,h,u,r,n))}),this),!y){var _=cl.documentElement;if(p={$event_type:e.type,$host:i.location.host,$pathname:i.location.pathname,$elements:v,$el_attr__href:m,$viewportHeight:Math.max(_.clientHeight,i.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,i.innerWidth||0),$pageHeight:cl.body.offsetHeight||0,$pageWidth:cl.body.offsetWidth||0},yl.each(u,(function(e){if(!h[e]&&d.hasAttribute(e)){var t=d.getAttribute(e);Qh(t)&&(p["$el_attr__"+e]=t)}})),c&&(b=Gh(d,e,r,n))&&b.length&&(p.$el_text=b),e.type===kh&&(yl.each(Rh,(function(t){t in e&&(p["$"+t]=e[t])})),l&&(p.$captured_for_heatmap=!0),d=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(Jh(i,"a")||Jh(i,"button")||Jh(i,"input")||Jh(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),c){var b=Gh(d,e,r,n);b&&b.length&&(p.$el_text=b)}if(d){if(!Hh(d,e,r,n)||Yh(d,e,s,a))return null;var w=Vh(d,e,h,u,r,n);p.$target=w,p.$el_classes=w.$classes,yl.extend(p,yl.strip_empty_properties({$el_id:w.$id,$el_tag_name:w.$tag_name}))}}}return p}function Gh(e,t,r,n){var i="";return Kh(e,t,r,n)&&e.childNodes&&e.childNodes.length&&yl.each(e.childNodes,(function(e){Xh(e)&&e.textContent&&(i+=yl.trim(e.textContent).split(/(\s+)/).filter(Qh).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))})),yl.trim(i)}function Hh(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return jh.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){jh.critical("Error while checking selector: "+o,e)}}return!1}function Yh(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(e){return jh.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){jh.critical("Error while checking selector: "+o,e)}}var s=qh(e);for(i=0;i<Ph.length;i++)if(s[Ph[i]])return!0;return!1}function Zh(e){return e&&1===e.nodeType}function Jh(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
1function Xh(e){return e&&3===e.nodeType}function Kh(e,t,r,n){var i;if(!Hh(e,t,r,n))return!1;for(var o=e;o.parentNode&&!Jh(o,"body");o=o.parentNode){var s=qh(o);for(i=0;i<Dh.length;i++)if(s[Dh[i]])return!1}var a=qh(e);for(i=0;i<Th.length;i++)if(a[Th[i]])return!0;if(Jh(e,"input")||Jh(e,"select")||Jh(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||"";if("string"==typeof u){if(/^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,"")))return!1}return!0}function Qh(e){if(null===e||yl.isUndefined(e))return!1;if("string"==typeof e){e=yl.trim(e);if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(e))return!1}return!0}function ep(e){var t="onscrollend"in i,r=kl(e),n=Eh;if(!t){var o=null;r=kl((function(){clearTimeout(o),o=setTimeout(e,100)})),n=Oh}return{listener:r,eventType:n}}function tp(e){var t=e.tagName.toLowerCase();return"button"===t||"input"===t||"select"===t||"textarea"===t||"details"===t||"dialog"===t||(!!e.isContentEditable||(!!(e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend)||(!!function(e){for(var t=0;t<Bh.length;t++)if(e.hasAttribute(Bh[t]))return!0;return!1}(e)||(!!function(e){var t=e.getAttribute("role");if(!t)return!1;var r=t.trim().split(/\s+/)[0].toLowerCase();return Lh[r]}(e)||(!("a"!==t||!e.hasAttribute("href"))||!!e.hasAttribute("tabindex"))))))}function rp(){this.clicks=[]}function np(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}rp.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},np.prototype.getEventTarget=function(e){if(this.observedShadowRoots){var t=this.getComposedPath(e);return t&&t.length?t[0]:e.target||e.srcElement}},np.prototype.getComposedPath=function(e){return"composedPath"in e?e.composedPath():[]},np.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)}},np.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){jh.critical("Error while observing shadow root",e)}}},np.prototype.start=function(){this.observedShadowRoots||("undefined"!=typeof WeakSet?this.observedShadowRoots=new WeakSet:jh.critical("Shadow DOM observation unavailable: WeakSet not supported"))},np.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){jh.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var ip=[wh,"input",Mh,"select","toggle"],op=[Eh],sp=[Sh],ap={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function cp(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}cp.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(Fh[t])return!0;
1if(tp(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(tp(r))return!1;if(r.getRootNode&&r.getRootNode()!==cl){var i=r.getRootNode();if(i.host&&tp(i.host))return!1}r=r.parentElement,n++}return!!Uh[t]}(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},cp.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},cp.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},cp.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},cp.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},cp.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},cp.prototype.processRecursively=function(e){if(this.isTracking&&this.onDeadClickCallback){var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout((function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}}),t)}else this.processingActive=!1},cp.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;ip.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}})}
1)),sp.forEach((function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})})),op.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,ap)}catch(e){jh.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new np((function(){e.recordChangeEvent()}),ap),this.shadowDOMObserver.start()}catch(e){jh.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},cp.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){jh.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){jh.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){jh.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var up="autocapture",lp="full-url",hp="allow_selectors",pp="allow_url_regexes",dp="block_attrs",fp="block_element_callback",gp="block_selectors",mp="block_url_regexes",vp="capture_extra_attrs",yp="capture_text_content",_p="scroll_capture_all",bp="scroll_depth_percent_checkpoints",wp="click",kp="dead_click",Sp="input",Cp="pageview",Ip="rage_click",xp="scroll",Ep="page_leave",Op="submit",Mp={};Mp[hp]=[],Mp[pp]=[],Mp[dp]=[],Mp[fp]=null,Mp[gp]=[],Mp[mp]=[],Mp[vp]=[],Mp[yp]=!1,Mp[_p]=!1,Mp[bp]=[25,50,75,100],Mp[wp]=!0,Mp[kp]=!0,Mp[Sp]=!0,Mp[Cp]=lp,Mp[Ip]=!0,Mp[xp]=!0,Mp[Ep]=!1,Mp[Op]=!0;var Ap={$mp_autocapture:!0},Rp="$mp_click",Tp="$mp_dead_click",Pp="$mp_rage_click",Dp=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};Dp.prototype.init=function(){!function(){try{return!!cl.createElement("div").matches}catch(e){return!1}}()?jh.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())},Dp.prototype.getFullConfig=function(){var e=this.mp.get_config(up);return e?yl.isObject(e)?yl.extend({},Mp,e):Mp:{}},Dp.prototype.getConfig=function(e){return this.getFullConfig()[e]},Dp.prototype.currentUrlBlocked=function(){var e,t=yl.info.currentUrl(),r=this.getConfig(pp)||[];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 jh.critical("Error while checking block URL regex: "+i,e),!0}}if(!n)return!0}var o=this.getConfig(mp)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(t){return jh.critical("Error while checking block URL regex: "+o[e],t),!0}return!1},Dp.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(up)?this.getConfig(Cp):this.mp.get_config("track_pageview")},Dp.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===Rp&&!this.getConfig(wp)||t===Pp&&!this._getClickTrackingConfig(Ip)||t===Tp&&!this._getClickTrackingConfig(kp)),n=$h(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(hp),blockAttrs:this.getConfig(dp),blockElementCallback:this.getConfig(fp),blockSelectors:this.getConfig(gp),captureExtraAttrs:this.getConfig(vp),captureTextContent:this.getConfig(yp),captured
1ForHeatMap:r});n&&(yl.extend(n,Ap),this.mp.track(t,n))}},Dp.prototype.initPageListeners=function(){if(i.removeEventListener(xh,this.listenerPopstate),i.removeEventListener(Sh,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(Ep)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){i.dispatchEvent(new Event(Ih))},this.listenerHashchange=function(){i.dispatchEvent(new Event(Ih))},i.addEventListener(xh,this.listenerPopstate),i.addEventListener(Sh,this.listenerHashchange);var e=i.history.pushState;"function"==typeof e&&(i.history.pushState=function(t,r,n){e.call(i.history,t,r,n),i.dispatchEvent(new Event(Ih))});var t=i.history.replaceState;"function"==typeof t&&(i.history.replaceState=function(e,r,n){t.call(i.history,e,r,n),i.dispatchEvent(new Event(Ih))})}},Dp.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},Dp.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession){this.hasTrackedScrollSession=!0;var n=Math.max(cl.documentElement.clientHeight,i.innerHeight||0),o=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),s=Math.round(n/r*100);r<=n&&(o=100,s=100);var a=yl.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:o,$fold_line_percentage:s,$scroll_height:r,$event_type:e.type,$current_url:t||yl.info.currentUrl(),$viewportHeight:n,$viewportWidth:Math.max(cl.documentElement.clientWidth,i.innerWidth||0)},Ap);this.mp.is_recording_heatmap_data()&&!this.getConfig(Ep)&&(a.$captured_for_heatmap=!0),this.mp.track("$mp_page_leave",a,{transport:"sendBeacon"})}},Dp.prototype._initScrollDepthTracking=function(){if(i.removeEventListener(Oh,this.listenerScrollDepth),i.removeEventListener(Eh,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){jh.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(cl.documentElement.clientHeight,i.innerHeight||0);var e=ep(function(){if(!this.currentUrlBlocked()){var e=Math.max(cl.documentElement.clientHeight,i.innerHeight||0)+i.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=cl.body.scrollHeight}}.bind(this));this.listenerScrollDepth=e.listener,i.addEventListener(e.eventType,this.listenerScrollDepth)}},Dp.prototype.initClickTracking=function(){i.removeEventListener(kh,this.listenerClick),(this.getConfig(wp)||this.mp.get_config("record_heatmap_data"))&&(jh.log("Initializing click tracking"),this.listenerClick=function(e){(this.getConfig(wp)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,Rp)}.bind(this),i.addEventListener(kh,this.listenerClick))},Dp.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(kp)||this.mp.get_config("record_heatmap_data")?(jh.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new cp(function(e){this.trackDomEvent(e,Tp)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(kp);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),i.addEventListener(kh,this.listenerDeadClick))):this.stopDeadClickTracking()},Dp.prototype.initInputTracking=function(){i.removeEventListener(wh,this.listenerChange),this.getConfig(Sp)&&(jh.log("Initializing input tracking"),this.listenerChange=function(e){this.getConfig(Sp)&&this.trackDomEvent(e,"$mp_input_change")}.bind(this),i.addEventListener(wh,this.listenerChange))},Dp.prototype.initPageviewTracking=function(){if(i.removeEventListener(Ih,this.listenerLocationchange),this.pageviewTrackingConfig()){jh.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Ap)),t&&(e=yl.info.currentUrl()),this.listenerLocationchange=kl(function(){if(!this.currentUrlBlocked()){var t=yl.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();if(i===lp?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(Ap)&&(e=t),n&&(this.lastScrollCheckpoint=0,jh.log("Path change: re-initializing scroll depth checkpoints"))}}.bind(this)),i.addEventListener(Ih,this.listenerLocationchange)}},Dp.prototype.initRageClickTracking=function(){i.removeEventListener(kh,this.listenerRageClick),(this._getClickTrackingConfig(Ip)||this.mp.get_config("record_heatmap_data"))&&(jh.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new rp),this.listenerRageClick=function(e){var t=this._getClickTrackingConfig(Ip);(t||this.mp.is_recording_heatmap_data())&&(this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e.pageX,e.pageY,t)&&this.trackDomEvent(e,Pp))}.bind(this),i.addEventListener(kh,this.listenerRageClick))},Dp.prototype.initScrollTracking=function(){if(i.removeEventListener(Eh,this.listenerScroll),i.removeEventListener(Oh,this.listenerScroll),this.getConfig(xp)){jh.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=ep(function(){if(this.getConfig(xp)&&!this.currentUrlBlocked()){var e=this.getConfig(_p),t=(this.getConfig(bp)||[]).slice().sort((function(e,t){return e-t}
1)),r=i.scrollY,n=yl.extend({$scroll_top:r},Ap);try{var o=cl.body.scrollHeight,s=Math.round(r/(o-i.innerHeight)*100);if(n.$scroll_height=o,n.$scroll_percentage=s,s>this.lastScrollCheckpoint)for(var a=0;a<t.length;a++){var c=t[a];s>=c&&this.lastScrollCheckpoint<c&&(n.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,e=!0)}}catch(e){jh.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}.bind(this));this.listenerScroll=e.listener,i.addEventListener(e.eventType,this.listenerScroll)}},Dp.prototype.initSubmitTracking=function(){i.removeEventListener(Mh,this.listenerSubmit),this.getConfig(Op)&&(jh.log("Initializing submit tracking"),this.listenerSubmit=function(e){this.getConfig(Op)&&this.trackDomEvent(e,"$mp_submit")}.bind(this),i.addEventListener(Mh,this.listenerSubmit))},Dp.prototype.initPageLeaveTracking=function(){if(cl.removeEventListener(Ah,this.listenerPageLeaveVisibilitychange),i.removeEventListener(Ih,this.listenerPageLeaveLocationchange),i.removeEventListener(Ch,this.listenerPageLoad),this.getConfig(Ep)||this.mp.get_config("record_heatmap_data")){jh.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=yl.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=cl.body.scrollHeight}.bind(this),i.addEventListener(Ch,this.listenerPageLoad),this.listenerPageLeaveLocationchange=kl(function(t){if(!this.currentUrlBlocked()){var r=yl.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(cl.documentElement.clientHeight,i.innerHeight||0),this.previousScrollHeight=cl.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),i.addEventListener(Ih,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(t){cl.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}.bind(this),cl.addEventListener(Ah,this.listenerPageLeaveVisibilitychange)}},Dp.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(i.removeEventListener(kh,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},Sl(Dp);var Np=wl("flags"),Lp="flags",Fp="context",Up={};Up[Fp]={};var Bp=function(e){this.fetch=i.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};Bp.prototype.init=function(){this.minApisSupported()?(this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set):Np.critical("Feature Flags unavailable: missing minimum required APIs")},Bp.prototype.getFullConfig=function(){var e=this.getMpConfig(Lp);return e?yl.isObject(e)?yl.extend({},Up,e):Up:{}},Bp.prototype.getConfig=function(e){return this.getFullConfig()[e]},Bp.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Lp)},Bp.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return Np.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Lp);yl.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(Fp);return r[Fp]=yl.extend({},n,e),this.setMpConfig(Lp,r),this.fetchFlags()},Bp.prototype.areFlagsReady=function(){return this.isSystemEnabled()||Np.error("Feature Flags not enabled"),!!this.flags},Bp.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id"),r="00-"+yl.UUID().replace(/-/g,"")+"-"+yl.UUID().replace(/-/g,"").substring(0,16)+"-01";Np.log("Fetching flags for distinct ID: "+e);var n=yl.extend({distinct_id:e,device_id:t},this.getConfig(Fp)),o=new URLSearchParams;o.set("context",JSON.stringify(n)),o.set("token",this.getMpConfig("token")),o.set("mp_lib","web"),o.set("$lib_version",Xu.LIB_VERSION);var s=this.getFullApiRoute()+"?"+o.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(i,s,{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 new Error("No flags in API response");var n=new Map;yl.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(),Np.error(e)}.bind(this))}.bind(this)).catch(function(e){this.markFetchComplete(),Np.error(e)}.bind(this)),this.fetchPromise},Bp.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):Np.error("Fetch in progress started time not set, cannot mark fetch complete")},Bp.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(e,t)}.bind(this)).catch((function(e){return Np.error(e),t})):new Promise((function(e){Np.critical("Feature Flags not initialized"),e(t)}))},Bp.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return Np.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(Np.log('No flag found: "'+e+'"'),t)},Bp.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then((function(e){return e.value})).catch((function(e){return Np.error(e),t}))},Bp.prototype.getFeatureData=function(e,t){return Np.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)},Bp.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Bp.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch((function(e){return Np.error(e),t}))},Bp.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(Np.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},Bp.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)}},Bp.prototype.minApisSupported=function(){return!!this.fetch&&"undefined"!=typeof Promise&&"undefined"!=typeof Map&&"undefined"!=typeof Set},Sl(Bp),Bp.prototype.are_flags_ready=Bp.prototype.areFlagsReady,Bp.prototype.get_variant=Bp.prototype.getVariant,Bp.prototype.get_variant_sync=Bp.prototype.getVariantSync,Bp.prototype.get_variant_value=Bp.prototype.getVariantValue,Bp.prototype.get_variant_value_sync=Bp.prototype.getVariantValueSync,Bp.prototype.is_enabled=Bp.prototype.isEnabled,Bp.prototype.is_enabled_sync=Bp.prototype.isEnabledSync,Bp.prototype.update_context=Bp.prototype.updateContext,Bp.prototype.get_feature_data=Bp.prototype.getFeatureData;var jp=function(){};jp.prototype.create_properties=function(){},jp.prototype.event_handler=function(){},jp.prototype.after_track_handler=function(){},jp.prototype.init=function(e){return this.mp=e,this},jp.prototype.track=function(e,t,r,n){var i=this,o=yl.dom_query(e);if(0!==o.length)return yl.each(o,(function(e){yl.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;_l.error("The DOM query ("+e+") returned 0 elements")},jp.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))}},jp.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):yl.extend({},e)};var qp=function(){this.override_event="click"};yl.inherit(qp,jp),qp.prototype.create_properties=function(e,t){var r=qp.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},qp.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()},qp.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var zp=function(){this.override_event="submit"};yl.inherit(zp,jp),zp.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},zp.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var Wp="$set",Vp="$set_once",$p="$unset",Gp="$add",Hp="$append",Yp="$union",Zp="$remove",Jp={set_action:function(e,t){var r={},n={};return yl.isObject(e)?yl.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Wp]=n,r},unset_action:function(e){var t={},r=[];return yl.isArray(e)||(e=[e]),yl.each(e,(function(e){this._is_reserved_property(e)||r.push(e)}),this),t[$p]=r,t},set_once_action:function(e,t){var r={},n={};return yl.isObject(e)?yl.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Vp]=n,r},union_action:function(e,t){var r={},n={};return yl.isObject(e)?yl.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=yl.isArray(e)?e:[e])}),this):n[e]=yl.isArray(t)?t:[t],r[Yp]=n,r},append_action:function(e,t){var r={},n={};return yl.isObject(e)?yl.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Hp]=n,r},remove_action:function(e,t){var r={},n={};return yl.isObject(e)?yl.each(e,(function(e,t){this._is_reserved_property(t)||(n[t]=e)}),this):n[e]=t,r[Zp]=n,r},delete_action:function(){var e={$delete:""};return e}},Xp=function(){};yl.extend(Xp.prototype,Jp),Xp.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},Xp.prototype.set=Jl((function(e,t,r){var n=this.set_action(e,t);return yl.isObject(e)&&(r=t),this._send_request(n,r)})),Xp.prototype.set_once=Jl((function(e,t,r){var n=this.set_once_action(e,t);return yl.isObject(e)&&(r=t),this._send_request(n,r)})),Xp.prototype.unset=Jl((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Xp.prototype.union=Jl((function(e,t,r){yl.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Xp.prototype.delete=Jl((function(e){var t=this.delete_action();return this._send_request(t,e)})),Xp.prototype.remove=Jl((function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)})),Xp.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=yl.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)},Xp.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},Xp.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Xp.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},Xp.prototype.remove=Xp.prototype.remove,Xp.prototype.set=Xp.prototype.set,Xp.prototype.set_once=Xp.prototype.set_once,Xp.prototype.union=Xp.prototype.union,Xp.prototype.unset=Xp.prototype.unset,Xp.prototype.toString=Xp.prototype.toString;var Kp=function(){};yl.extend(Kp.prototype,Jp),Kp.prototype._init=function(e){this._mixpanel=e},Kp.prototype.set=Zl((function(e,t,r){var n=this.set_action(e,t);return yl.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Wp]=yl.extend({},yl.info.people_properties(),n[Wp]),this._send_request(n,r)})),Kp.prototype.set_once=Zl((function(e,t,r){var n=this.set_once_action(e,t);return yl.isObject(e)&&(r=t),this._send_request(n,r)})),Kp.prototype.unset=Zl((function(e,t){var r=this.unset_action(e);return this._send_request(r,t)})),Kp.prototype.increment=Zl((function(e,t,r){var n={},i={};return yl.isObject(e)?(yl.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void _l.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[t]=e}}),this),r=t):(yl.isUndefined(t)&&(t=1),i[e]=t),n[Gp]=i,this._send_request(n,r)})),Kp.prototype.append=Zl((function(e,t,r){yl.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)})),Kp.prototype.remove=Zl((function(e,t,r){yl.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)})),Kp.prototype.union=Zl((function(e,t,r){yl.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)})),Kp.prototype.track_charge=Zl((function(){_l.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")})),Kp.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},Kp.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}_l.error("mixpanel.people.delete_user() requires you to call identify() first")},Kp.prototype.toString=function(){return this._mixpanel.toString()+".people"},Kp.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=yl.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),yl.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),yl.truncate(o,255))},Kp.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Kp.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},Kp.prototype._enqueue=function(e){Wp in e?this._mixpanel.persistence._add_to_people_queue(Wp,e):Vp in e?this._mixpanel.persistence._add_to_people_queue(Vp,e):$p in e?this._mixpanel.persistence._add_to_people_queue($p,e):Gp in e?this._mixpanel.persistence._add_to_people_queue(Gp,e):Hp in e?this._mixpanel.persistence._add_to_people_queue(Hp,e):Zp in e?this._mixpanel.persistence._add_to_people_queue(Zp,e):Yp in e?this._mixpanel.persistence._add_to_people_queue(Yp,e):_l.error("Invalid call to _enqueue():",e)},Kp.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=yl.extend({},this._mixpanel.persistence.load_queue(e)),s=o;yl.isUndefined(o)||!yl.isObject(o)||yl.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),yl.isUndefined(r)||r(t,n)})))},Kp.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(Wp,this.set,e),this._flush_one_queue(Vp,this.set_once,n),this._flush_one_queue($p,this.unset,o,(function(e){return yl.keys(e)})),this._flush_one_queue(Gp,this.increment,t),this._flush_one_queue(Yp,this.union,i);var c=this._mixpanel.persistence.load_queue(Hp);if(!yl.isUndefined(c)&&yl.isArray(c)&&c.length)for(var u,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Hp,u),yl.isUndefined(r)||r(e,t)},h=c.length-1;h>=0;h--)c=this._mixpanel.persistence.load_queue(Hp),u=c.pop(),a._mixpanel.persistence.save(),yl.isEmptyObject(u)||a.append(u,l);var p=this._mixpanel.persistence.load_queue(Zp);if(!yl.isUndefined(p)&&yl.isArray(p)&&p.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(Zp,d),yl.isUndefined(s)||s(e,t)},g=p.length-1;g>=0;g--)p=this._mixpanel.persistence.load_queue(Zp),d=p.pop(),a._mixpanel.persistence.save(),yl.isEmptyObject(d)||a.remove(d,f)},Kp.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},Kp.prototype.set=Kp.prototype.set,Kp.prototype.set_once=Kp.prototype.set_once,Kp.prototype.unset=Kp.prototype.unset,Kp.prototype.increment=Kp.prototype.increment,Kp.prototype.append=Kp.prototype.append,Kp.prototype.remove=Kp.prototype.remove,Kp.prototype.union=Kp.prototype.union,Kp.prototype.track_charge=Kp.prototype.track_charge,Kp.prototype.clear_charges=Kp.prototype.clear_charges,Kp.prototype.delete_user=Kp.prototype.delete_user,Kp.prototype.toString=Kp.prototype.toString;var Qp,ed="__mps",td="__mpso",rd="__mpus",nd="__mpa",id="__mpap",od="__mpr",sd="__mpu",ad="$people_distinct_id",cd="__alias",ud="__timers",ld=[ed,td,rd,nd,id,od,sd,ad,cd,ud],hd=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&&(_l.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&yl.localStorage.is_supported()?this.storage=yl.localStorage:this.storage=yl.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};hd.prototype.properties=function(){var e={};return this.load(),yl.each(this.props,(function(t,r){yl.include(ld,r)||(e[r]=t)})),e},hd.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=yl.extend({},e))}},hd.prototype.upgrade=function(){var e,t;this.storage===yl.localStorage?(e=yl.cookie.parse(this.name),yl.cookie.remove(this.name),yl.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===yl.cookie&&(t=yl.localStorage.parse(this.name),yl.localStorage.remove(this.name),t&&this.register_once(t))},hd.prototype.save=function(){this.disabled||this.storage.set(this.name,Ul(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},hd.prototype.load_prop=function(e){return this.load(),this.props[e]},hd.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},hd.prototype.clear=function(){this.remove(),this.props={}},hd.prototype.register_once=function(e,t,r){return!!yl.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),yl.each(e,(function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)}),this),this.save(),!0)},hd.prototype.register=function(e,t){return!!yl.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),yl.extend(this.props,e),this.save(),!0)},hd.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},hd.prototype.update_search_keyword=function(e){this.register(yl.info.searchInfo(e))},hd.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:yl.info.referringDomain(e)||"$direct"},"")},hd.prototype.get_referrer_info=function(){return yl.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},hd.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)},hd.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},hd.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},hd.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},hd.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},hd.prototype.get_cross_subdomain=function(){return this.cross_subdomain},hd.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},hd.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Wp),o=this._get_or_create_queue(Vp),s=this._get_or_create_queue($p),a=this._get_or_create_queue(Gp),c=this._get_or_create_queue(Yp),u=this._get_or_create_queue(Zp,[]),l=this._get_or_create_queue(Hp,[]);r===ed?(yl.extend(i,n),this._pop_from_people_queue(Gp,n),this._pop_from_people_queue(Yp,n),this._pop_from_people_queue($p,n)):r===td?(yl.each(n,(function(e,t){t in o||(o[t]=e)})),this._pop_from_people_queue($p,n)):r===rd?yl.each(n,(function(e){yl.each([i,o,a,c],(function(t){e in t&&delete t[e]})),yl.each(l,(function(t){e in t&&delete t[e]})),s[e]=!0})):r===nd?(yl.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($p,n)):r===sd?(yl.each(n,(function(e,t){yl.isArray(e)&&(t in c||(c[t]=[]),yl.each(e,(function(e){yl.include(c[t],e)||c[t].push(e)})))}
1)),this._pop_from_people_queue($p,n)):r===od?(u.push(n),this._pop_from_people_queue(Hp,n)):r===id&&(l.push(n),this._pop_from_people_queue($p,n)),_l.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),_l.log(t),this.save()},hd.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];yl.isUndefined(r)||yl.each(t,(function(t,n){e===Hp||e===Zp?yl.each(r,(function(e){e[n]===t&&delete e[n]})):delete r[n]}),this)},hd.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},hd.prototype._get_queue_key=function(e){return e===Wp?ed:e===Vp?td:e===$p?rd:e===Gp?nd:e===Hp?id:e===Zp?od:e===Yp?sd:void _l.error("Invalid queue:",e)},hd.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=yl.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},hd.prototype.set_event_timer=function(e,t){var r=this.load_prop(ud)||{};r[e]=t,this.props[ud]=r,this.save()},hd.prototype.remove_event_timer=function(e){var t=(this.load_prop(ud)||{})[e];return yl.isUndefined(t)||(delete this.props[ud][e],this.save()),t};var pd,dd=function(e,t){throw new Error(e+" not available in this build.")},fd=function(e){return e},gd="mixpanel",md="base64",vd="$device:",yd=i.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,_d=!yd&&-1===hl.indexOf("MSIE")&&-1===hl.indexOf("Mozilla"),bd=null;al.sendBeacon&&(bd=function(){return al.sendBeacon.apply(al,arguments)});var wd={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},kd={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:wd,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:md,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Fl,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Fl,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:18e5,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Ku,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},Sd=!1,Cd=function(){},Id=function(e,t,r){var n,i=r===gd?pd:pd[r];if(i&&0===Qp)n=i;else{if(i&&!yl.isArray(i))return void _l.error("You have already initialized "+r);n=new Cd}if(n._cached_groups={},n._init(e,t,r),n.people=new Kp,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=yl.info.campaignParams(null),s={},a=!1;yl.each(o,(function(e,t){s["initial_"+t]=e,e&&(a=!0)})),a&&n.people.set_once(s)}return Xu.DEBUG=Xu.DEBUG||n.get_config("debug"),!yl.isUndefined(i)&&yl.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};Cd.prototype.init=function(e,t,r){if(yl.isUndefined(r))this.report_error("You must name your new library: init(token, config, name)");else{if(r!==gd){var n=Id(e,t,r);return pd[r]=n,n._loaded(),n}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Cd.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};"api_payload_format"in t||(t.api_host||kd.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json");if(this.set_config(yl.extend({},kd,n,t,{name:r,token:e,callback_fn:(r===gd?r:gd+"."+r)+"._jsc"})),this._jsc=Fl,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(yl.localStorage.is_supported(!0)&&yd){if(this.init_batchers(),bd&&i.addEventListener){var o=yl.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);i.addEventListener("pagehide",(function(e){e.persisted&&o()})),i.addEventListener("visibilitychange",(function(){"hidden"===cl.visibilityState&&o()}))}}else this._batch_requests=!1,_l.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),yl.each(this.get_batcher_configs(),(function(e){_l.log("Clearing batch queue "+e.queue_key),yl.localStorage.remove(e.queue_key)}));this.persistence=this.cookie=new hd(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=yl.UUID();this.get_distinct_id()||this.register_once({distinct_id:vd+s,$device_id:s},""),this.flags=new Bp({getFullApiRoute:yl.bind((function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags}),this),getConfigFunc:yl.bind(this.get_config,this),setConfigFunc:yl.bind(this.set_config,this),getPropertyFunc:yl.bind(this.get_property,this),trackingFunc:yl.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new Dp(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()},Cd.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))_l.log("Tab ID initialization skipped due to disable_persistence config");
1else if(yl.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;!yl.sessionStorage.get(r)&&yl.sessionStorage.get(t)||yl.sessionStorage.set(t,"$tab-"+yl.UUID()),yl.sessionStorage.set(r,"1"),this.tab_id=yl.sessionStorage.get(t),i.addEventListener("beforeunload",(function(){yl.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.")},Cd.prototype.get_tab_id=function(){return this.tab_id||null},Cd.prototype._should_load_recorder=function(){if(this.get_config("disable_persistence"))return _l.log("Load recorder check skipped due to disable_persistence config"),Promise.resolve(!1);var e=new Wl(ql),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(ph(e[r])||e[r].tabId===t)return!0;return!1})).catch(yl.bind((function(e){this.report_error("Error checking recording registry",e)}),this))},Cd.prototype._check_and_start_session_recording=Yl((function(e){if(i.MutationObserver){var t=yl.bind((function(e){var t=yl.bind((function(){this._recorder=this._recorder||new i.__mp_recorder(this),this._recorder.resumeRecording(e)}),this);yl.isUndefined(i.__mp_recorder)?dd(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)}))}else _l.critical("Browser does not support MutationObserver; skipping session recording")})),Cd.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)},Cd.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()},Cd.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()},Cd.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()},Cd.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")},Cd.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e},Cd.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();t&&(e="https://mixpanel.com/projects/replay-redirect?"+yl.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")}));return e},Cd.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Cd.prototype.__get_recorder=function(){return this._recorder},Cd.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=yl.info.campaignParams(null);yl.each(e,function(e,t){this.unregister(t)}.bind(this))}},Cd.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(cl.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(yl.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(cl.referrer)},Cd.prototype._dom_loaded=function(){yl.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||yl.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Cd.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(!Sd)return this.__dom_loaded_queue.push([e,t]),!1;var r=(new e).init(this);return r.track.apply(r,t)},Cd.prototype._prepare_callback=function(e,t){if(yl.isUndefined(e))return null;if(yd){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},Cd.prototype._send_request=function(e,t,r,n){var i=!0;if(_d)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||!yl.isFunction(r)&&"string"!=typeof r||(n=r,r=null),r=yl.extend(o,r||{}),yd||(r.method="GET");var a="POST"===r.method,c=bd&&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),yd||(n?t.callback=n:(u||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),yl.extend(t,this.get_config("api_extra_query_params")),e+="?"+yl.HTTPBuildQuery(t);var l=this;if("img"in t){var h=cl.createElement("img");h.src=e,cl.body.appendChild(h)}else if(c){try{i=bd(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(i?1:0)}catch(e){l.report_error(e)}}else if(yd)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"),yl.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(){var e;if(4===p.readyState)if(200===p.status){if(n)if(u){var t;try{t=yl.JSONDecode(p.responseText)}catch(e){if(l.report_error(e),!r.ignore_json_errors)return;t=p.responseText}n(t)}else n(Number(p.responseText))}else if(e=p.timeout&&!p.status&&(new Date).getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(e),n)if(u){var i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:e,retryAfter:i["Retry-After"]})}else n(0)},p.send(s)}catch(e){l.report_error(e),i=!1}else{var g=cl.createElement("script");g.type="text/javascript",g.async=!0,g.defer=!0,g.src=e;var m=cl.getElementsByTagName("script")[0];m.parentNode.insertBefore(g,m)}return i},Cd.prototype._execute_array=function(e){var t,r=[],n=[],i=[];yl.each(e,(function(e){e&&(t=e[0],yl.isArray(t)?i.push(e):"function"==typeof e?e.call(this):yl.isArray(e)&&"alias"===t?r.push(e):yl.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))}),this);var o=function(e,t){yl.each(e,(function(e){if(yl.isArray(e[0])){var r=t;yl.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)},Cd.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Cd.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},Cd.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=yl.bind((function(e){return new hh(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:yl.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:yl.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),stopAllBatchingFunc:yl.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()},Cd.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,yl.each(this.request_batchers,(function(e){e.start()})))},Cd.prototype.stop_batch_senders=function(){this._batch_requests=!1,yl.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Cd.prototype.push=function(e){this._execute_array([e])},Cd.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Cd.prototype._encode_data_for_request=function(e){var t=Ul(e);return this.get_config("api_payload_format")===md&&(t=yl.base64Encode(t)),{data:t}},Cd.prototype._track_or_batch=function(e,t){var r=yl.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Fl;var a=!0,c=yl.bind((function(){return s.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(_l.log("MIXPANEL REQUEST:"),_l.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},Cd.prototype.track=Yl((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=Fl),yl.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=yl.extend({},t)).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!yl.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")?yl.info.marketingParams():{};t=yl.extend({},yl.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");yl.isArray(u)?yl.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)}n(0)}})),Cd.prototype.set_group=Yl((function(e,t,r){yl.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)})),Cd.prototype.add_group=Yl((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)})),Cd.prototype.remove_group=Yl((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)})),Cd.prototype.track_with_groups=Yl((function(e,t,r,n){var i=yl.extend({},t||{});return yl.each(r,(function(e,t){null!=e&&(i[t]=e)})),this.track(e,i,n)})),Cd.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Cd.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Cd.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 Xp)._init(this,e,t),this._cached_groups[r]=n),n},Cd.prototype.track_pageview=Yl((function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=yl.extend(yl.info.mpPageViewProperties(),yl.info.campaignParams(),yl.info.clickParams()),i=yl.extend({},n,e);return this.track(r,i)})),Cd.prototype.track_links=function(){return this._track_dom.call(this,qp,arguments)},Cd.prototype.track_forms=function(){return this._track_dom.call(this,zp,arguments)},Cd.prototype.time_event=function(e){yl.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var xd={persistent:!0},Ed=function(e){var t;return t=yl.isObject(e)?e:yl.isUndefined(e)?{}:{days:e},yl.extend({},xd,t)};Cd.prototype.register=function(e,t){var r=Ed(t);r.persistent?this.persistence.register(e,r.days):yl.extend(this.unpersisted_superprops,e)},Cd.prototype.register_once=function(e,t,r){var n=Ed(r);n.persistent?this.persistence.register_once(e,t,n.days):(void 0===t&&(t="None"),yl.each(e,(function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)}),this))},Cd.prototype.unregister=function(e,t){(t=Ed(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Cd.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},Cd.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(vd))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==c&&e!==this.get_property(cd)&&(this.unregister(cd),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()},Cd.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=yl.UUID();this.register_once({distinct_id:vd+e,$device_id:e},""),this._check_and_start_session_recording()},Cd.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Cd.prototype.alias=function(e,t){if(e===this.get_property(ad))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return yl.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(cd,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)},Cd.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Cd.prototype.set_config=function(e){yl.isObject(e)&&(yl.extend(this.config,e),e.batch_size&&yl.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),Xu.DEBUG=Xu.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init())},Cd.prototype.get_config=function(e){return this.config[e]},Cd.prototype._run_hook=function(e){var t=(this.config.hooks[e]||fd).apply(this,nl.call(arguments,1
1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Cd.prototype.get_property=function(e){return this.persistence.load_prop([e])},Cd.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},Cd.prototype.toString=function(){var e=this.get_config("name");return e!==gd&&(e=gd+"."+e),e},Cd.prototype._event_is_disabled=function(e){return yl.isBlockedUA(hl)||this._flags.disable_all_events||yl.include(this.__disabled_events,e)},Cd.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&yl.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")&&!yl.cookie.get("mp_optout")||(yl.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Cd.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()},Cd.prototype._gdpr_call_func=function(e,t){return t=yl.extend({track:yl.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),yl.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})},Cd.prototype.opt_in_tracking=function(e){e=yl.extend({enable_persistence:!0},e),this._gdpr_call_func(Vl,e),this._gdpr_update_persistence(e)},Cd.prototype.opt_out_tracking=function(e){(e=yl.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($l,e),this._gdpr_update_persistence(e)},Cd.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(Gl,e)},Cd.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Hl,e)},Cd.prototype.clear_opt_in_out_tracking=function(e){e=yl.extend({enable_persistence:!0},e),this._gdpr_call_func(Xl,e),this._gdpr_update_persistence(e)},Cd.prototype.report_error=function(e,t){_l.error.apply(_l.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){_l.error(t)}},Cd.prototype.init=Cd.prototype.init,Cd.prototype.reset=Cd.prototype.reset,Cd.prototype.disable=Cd.prototype.disable,Cd.prototype.time_event=Cd.prototype.time_event,Cd.prototype.track=Cd.prototype.track,Cd.prototype.track_links=Cd.prototype.track_links,Cd.prototype.track_forms=Cd.prototype.track_forms,Cd.prototype.track_pageview=Cd.prototype.track_pageview,Cd.prototype.register=Cd.prototype.register,Cd.prototype.register_once=Cd.prototype.register_once,Cd.prototype.unregister=Cd.prototype.unregister,Cd.prototype.identify=Cd.prototype.identify,Cd.prototype.alias=Cd.prototype.alias,Cd.prototype.name_tag=Cd.prototype.name_tag,Cd.prototype.set_config=Cd.prototype.set_config,Cd.prototype.get_config=Cd.prototype.get_config,Cd.prototype.get_api_host=Cd.prototype.get_api_host,Cd.prototype.get_property=Cd.prototype.get_property,Cd.prototype.get_distinct_id=Cd.prototype.get_distinct_id,Cd.prototype.toString=Cd.prototype.toString,Cd.prototype.opt_out_tracking=Cd.prototype.opt_out_tracking,Cd.prototype.opt_in_tracking=Cd.prototype.opt_in_tracking,Cd.prototype.has_opted_out_tracking=Cd.prototype.has_opted_out_tracking,Cd.prototype.has_opted_in_tracking=Cd.prototype.has_opted_in_tracking,Cd.prototype.clear_opt_in_out_tracking=Cd.prototype.clear_opt_in_out_tracking,Cd.prototype.get_group=Cd.prototype.get_group,Cd.prototype.set_group=Cd.prototype.set_group,Cd.prototype.add_group=Cd.prototype.add_group,Cd.prototype.remove_group=Cd.prototype.remove_group,Cd.prototype.track_with_groups=Cd.prototype.track_with_groups,Cd.prototype.start_batch_senders=Cd.prototype.start_batch_senders,Cd.prototype.stop_batch_senders=Cd.prototype.stop_batch_senders,Cd.prototype.start_session_recording=Cd.prototype.start_session_recording,Cd.prototype.stop_session_recording=Cd.prototype.stop_session_recording,Cd.prototype.pause_session_recording=Cd.prototype.pause_session_recording,Cd.prototype.resume_session_recording=Cd.prototype.resume_session_recording,Cd.prototype.get_session_recording_properties=Cd.prototype.get_session_recording_properties,Cd.prototype.get_session_replay_url=Cd.prototype.get_session_replay_url,Cd.prototype.get_tab_id=Cd.prototype.get_tab_id,Cd.prototype.DEFAULT_API_ROUTES=wd,Cd.prototype.__get_recorder=Cd.prototype.__get_recorder,hd.prototype.properties=hd.prototype.properties,hd.prototype.update_search_keyword=hd.prototype.update_search_keyword,hd.prototype.update_referrer_info=hd.prototype.update_referrer_info,hd.prototype.get_cross_subdomain=hd.prototype.get_cross_subdomain,hd.prototype.clear=hd.prototype.clear;var Od={},Md=function(){pd.init=function(e,t,r){if(r)return pd[r]||(pd[r]=Od[r]=Id(e,t,r),pd[r]._loaded()),pd[r];var n=pd;
1Od[gd]?n=Od[gd]:e&&((n=Id(e,t,gd))._loaded(),Od[gd]=n),pd=n,1===Qp&&(i[gd]=pd),yl.each(Od,(function(e,t){t!==gd&&(pd[t]=e)})),pd._=yl}};var Ad=(dd=function(e,t){t()},Qp=0,pd=new Cd,Md(),pd.init(),function(){function e(){e.done||(e.done=!0,Sd=!0,_d=!1,yl.each(Od,(function(e){e._dom_loaded()})))}if(cl.addEventListener)"complete"===cl.readyState?e():cl.addEventListener("DOMContentLoaded",e,!1);else if(cl.attachEvent){cl.attachEvent("onreadystatechange",e);var t=!1;try{t=null===i.frameElement}catch(e){}cl.documentElement.doScroll&&t&&function t(){try{cl.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}yl.register_event(i,"load",e,!0)}(),pd)}).call(this,r(64).Buffer,r(56))}}]);
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.