Viewing File: /usr/local/cpanel/base/frontend/meridian/_assets/meridian-shell/assets/mixpanel.module.js
var e;if(typeof window>`u`){var t={hostname:``};e={crypto:{randomUUID:function(){throw Error(`unsupported`)}},navigator:{userAgent:``,onLine:!0},document:{createElement:function(){return{}},location:t,referrer:``},screen:{width:0,height:0},location:t,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else e=window;var n={DEBUG:!1,LIB_VERSION:`2.80.0`},r=`__mp_targeting`,i=`__mp_recorder`,a=`__MP_RECORDER_FILENAME__`,o=`__MP_TARGETING_FILENAME__`;function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){c(a,r,i,o,s,`next`,e)}function s(e){c(a,r,i,o,s,`throw`,e)}o(void 0)})}}function u(e,t,n){return u=ee()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&y(i,n.prototype),i},u.apply(null,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&d(e.prototype,t),e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function h(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}function g(e,t){return t!=null&&typeof Symbol<`u`&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function _(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function v(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){"@swc/helpers - typeof";return e&&typeof Symbol<`u`&&e.constructor===Symbol?`symbol`:typeof e}function x(e,t){if(e){if(typeof e==`string`)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}function S(e){var t=typeof Map==`function`?new Map:void 0;return S=function(e){if(e===null||!_(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,m(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y(n,e)},S(e)}function ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ee=function(){return!!e})()}function C(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=x(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function te(e,t){var n,r,i,a,o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=a[0]&2?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[a[0]&2,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function ne(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}var re=Object.defineProperty,ie=function(e,t,n){return t in e?re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},w=function(e,t,n){return ie(e,(t===void 0?`undefined`:b(t))===`symbol`?t:t+``,n)},T=Object.defineProperty,ae=function(e,t,n){return t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},oe=function(e,t,n){return ae(e,(t===void 0?`undefined`:b(t))===`symbol`?t:t+``,n)},se=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}(se||{}),ce={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},le={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},ue={},de=function(){return!!globalThis.Zone};function fe(e){if(ue[e])return ue[e];var t=globalThis[e],n=t.prototype,r=e in ce?ce[e]:void 0,i=!!(r&&r.every(function(e){return!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`)})),a=e in le?le[e]:void 0,o=!!(a&&a.every(function(e){return typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)}));if(i&&o&&!de())return ue[e]=t.prototype,t.prototype;try{var s=document.createElement(`iframe`);document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[e].prototype;return document.body.removeChild(s),l?ue[e]=l:n}catch{return n}}var pe={};function me(e,t,n){var r=e+`.`+String(n);if(pe[r])return pe[r].call(t);var i=fe(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?(pe[r]=a,a.call(t)):t[n]}var he={};function ge(e,t,n){var r=e+`.`+String(n);if(he[r])return he[r].bind(t);var i=fe(e)[n];return typeof i==`function`?(he[r]=i,i.bind(t)):t[n]}function E(e){return me(`Node`,e,`childNodes`)}function _e(e){return me(`Node`,e,`parentNode`)}function ve(e){return me(`Node`,e,`parentElement`)}function ye(e){return me(`Node`,e,`textContent`)}function be(e,t){return ge(`Node`,e,`contains`)(t)}function xe(e){return ge(`Node`,e,`getRootNode`)()}function Se(e){return!e||!(`host`in e)?null:me(`ShadowRoot`,e,`host`)}function Ce(e){return e.styleSheets}function we(e){return!e||!(`shadowRoot`in e)?null:me(`Element`,e,`shadowRoot`)}function Te(e,t){return me(`Element`,e,`querySelector`)(t)}function Ee(e,t){return me(`Element`,e,`querySelectorAll`)(t)}function De(){return fe(`MutationObserver`).constructor}function Oe(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var ke={childNodes:E,parentNode:_e,parentElement:ve,textContent:ye,contains:be,getRootNode:xe,host:Se,styleSheets:Ce,shadowRoot:we,querySelector:Te,querySelectorAll:Ee,mutationObserver:De,patch:Oe};function Ae(e){return e.nodeType===e.ELEMENT_NODE}function je(e){var t=e&&`host`in e&&`mode`in e&&ke.host(e)||null;return!!(t&&`shadowRoot`in t&&ke.shadowRoot(t)===e)}function Me(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Ne(e){return e.includes(` background-clip: text;`)&&!e.includes(` -webkit-background-clip: text;`)&&(e=e.replace(/\sbackground-clip:\s*text;/g,` -webkit-background-clip: text; background-clip: text;`)),e}function Pe(e){var t=e.cssText;if(t.split(`"`).length<3)return t;var n=[`@import`,`url(`+JSON.stringify(e.href)+`)`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(`+e.layerName+`)`),e.supportsText&&n.push(`supports(`+e.supportsText+`)`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function Fe(e){try{var t=e.rules||e.cssRules;if(!t)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),Ne(Array.from(t,function(e){return Ie(e,n)}).join(``))}catch{return null}}function Ie(e,t){if(Re(e)){var n;try{n=Fe(e.styleSheet)||Pe(e)}catch{n=e.cssText}return e.styleSheet.href?$e(n,e.styleSheet.href):n}var r=e.cssText;return ze(e)&&e.selectorText.includes(`:`)&&(r=Le(r)),t?$e(r,t):r}function Le(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function Re(e){return`styleSheet`in e}function ze(e){return`selectorText`in e}var Be=function(){function e(){oe(this,`idNodeMap`,new Map),oe(this,`nodeMetaMap`,new WeakMap)}var t=e.prototype;return t.getId=function(e){return e?this.getMeta(e)?.id??-1:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var n=this;t===void 0&&(t=!1);var r=this.getId(e);this.idNodeMap.delete(r),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return n.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var n=this.getNode(e);if(n){var r=this.nodeMetaMap.get(n);r&&this.nodeMetaMap.set(t,r)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function Ve(){return new Be}function He(e){var t=e.element,n=e.maskInputOptions,r=e.tagName,i=e.type,a=e.value,o=e.maskInputFn,s=a||``,c=i&&Ue(i);return(n[r.toLowerCase()]||c&&n[c])&&(s=o?o(s,t):`*`.repeat(s.length)),s}function Ue(e){return e.toLowerCase()}var We=`__rrweb_original__`;function Ge(e){var t=e.getContext(`2d`);if(!t)return!0;for(var n=50,r=0;r<e.width;r+=n)for(var i=0;i<e.height;i+=n){var a=t.getImageData,o=We in a?a[We]:a;if(new Uint32Array(o.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(function(e){return e!==0}))return!1}return!0}function Ke(e){var t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?Ue(t):null}function qe(e,t){var n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}function Je(e){var t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var Ye=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Xe=/^(?:[a-z+]+:)?\/\//i,Ze=/^www\..*/i,Qe=/^(data:)([^,]*),(.*)/i;function $e(e,t){return(e||``).replace(Ye,function(e,n,r,i,a,o){var s=r||a||o,c=n||i||``;if(!s)return e;if(Xe.test(s)||Ze.test(s)||Qe.test(s))return`url(`+c+s+c+`)`;if(s[0]===`/`)return`url(`+c+(Je(t)+s)+c+`)`;var l=t.split(`/`),u=s.split(`/`);l.pop();for(var d=C(u),f;!(f=d()).done;){var p=f.value;p!==`.`&&(p===`..`?l.pop():l.push(p))}return`url(`+c+l.join(`/`)+c+`)`})}function et(e,t){return t===void 0&&(t=!1),t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,``):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,``).replace(/0px/g,`0`)}function tt(e,t,n){n===void 0&&(n=!1);var r=Array.from(t.childNodes),i=[],a=0;if(r.length>1&&e&&typeof e==`string`){for(var o=et(e,n),s=o.length/e.length,c=1;c<r.length;c++)if(r[c].textContent&&typeof r[c].textContent==`string`){for(var l=et(r[c].textContent,n),u=100,d=3;d<l.length&&(l[d].match(/[a-zA-Z0-9]/)||l.indexOf(l.substring(0,d),1)!==-1);d++);for(;d<l.length;d++){var f=l.substring(0,d),p=o.split(f),m=-1;if(p.length===2)m=p[0].length;else if(p.length>2&&p[0]===``&&r[c-1].textContent!==``)m=o.indexOf(f,1);else if(p.length===1){if(f=f.substring(0,f.length-1),p=o.split(f),p.length<=1)return i.push(e),i;d=u+1}else d===l.length-1&&(m=o.indexOf(f));if(p.length>=2&&d>u){var h=r[c-1].textContent;if(h&&typeof h==`string`){var g=et(h).length;m=o.indexOf(f,g)}m===-1&&(m=p[0].length)}if(m!==-1){for(var _=Math.floor(m/s);_>0&&_<e.length;){if(a+=1,a>50*r.length)return i.push(e),i;var v=et(e.substring(0,_),n);if(v.length===m){i.push(e.substring(0,_)),e=e.substring(_),o=o.substring(m);break}v.length<m?_+=Math.max(1,Math.floor((m-v.length)/s)):_-=Math.max(1,Math.floor((v.length-m)*s))}break}}}}return i.push(e),i}function nt(e,t){return tt(e,t).join(`/* rr_split */`)}var rt=1,it=RegExp(`[^a-z0-9-_:]`),at=-2;function ot(){return rt++}function st(e){if(g(e,HTMLFormElement))return`form`;var t=Ue(e.tagName);return it.test(t)?`div`:t}var ct,lt,ut=/^[^ \t\n\r\u000c]+/,dt=/^[, \t\n\r\u000c]+/;function ft(e,t){if(t.trim()===``)return t;var n=0;function r(e){var r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}for(var i=[];r(dt),!(n>=t.length);){var a=r(ut);if(a.slice(-1)===`,`)a=mt(e,a.substring(0,a.length-1)),i.push(a);else{var o=``;a=mt(e,a);for(var s=!1;;){var c=t.charAt(n);if(c===``){i.push((a+o).trim());break}if(s)c===`)`&&(s=!1);else{if(c===`,`){n+=1,i.push((a+o).trim());break}c===`(`&&(s=!0)}o+=c,n+=1}}}return i.join(`, `)}var pt=new WeakMap;function mt(e,t){return!t||t.trim()===``?t:gt(e,t)}function ht(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function gt(e,t){var n=pt.get(e);if(n||(n=e.createElement(`a`),pt.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function _t(e,t,n,r){return r&&(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`)?mt(e,r):n===`srcset`?ft(e,r):n===`style`?$e(r,gt(e)):t===`object`&&n===`data`?mt(e,r):r)}function vt(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function yt(e,t,n){try{if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}if(n)return e.matches(n)}catch{}return!1}function bt(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?bt(ke.parentNode(e),t,n):!1;for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return n?bt(ke.parentNode(e),t,n):!1}function xt(e,t,n,r){var i;if(Ae(e)){if(i=e,!ke.childNodes(i).length)return!1}else if(ke.parentElement(e)===null)return!1;else i=ke.parentElement(e);try{if(typeof t==`string`){if(r){if(i.closest(`.`+t))return!0}else if(i.classList.contains(t))return!0}else if(bt(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function St(e,t,n){var r=e.contentWindow;if(r){var i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){var o=setTimeout(function(){i||=(t(),!0)},n);e.addEventListener(`load`,function(){clearTimeout(o),i=!0,t()});return}var s=`about:blank`;if(r.location.href!==s||e.src===s||e.src===``)return setTimeout(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}}function Ct(e,t,n){var r=!1,i;try{i=e.sheet}catch{return}if(!i){var a=setTimeout(function(){r||=(t(),!0)},n);e.addEventListener(`load`,function(){clearTimeout(a),r=!0,t()})}}function wt(e,t){var n=t.doc,r=t.mirror,i=t.blockClass,a=t.blockSelector,o=t.needsMask,s=t.inlineStylesheet,c=t.maskInputOptions,l=c===void 0?{}:c,u=t.maskTextFn,d=t.maskInputFn,f=t.dataURLOptions,p=f===void 0?{}:f,m=t.inlineImages,h=t.recordCanvas,g=t.keepIframeSrcFn,_=t.newlyAddedElement,v=_!==void 0&&_,y=t.cssCaptured,b=y!==void 0&&y,x=Tt(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:se.Document,childNodes:[]}:{type:se.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:se.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:return Dt(e,{doc:n,blockClass:i,blockSelector:a,inlineStylesheet:s,maskInputOptions:l,maskInputFn:d,dataURLOptions:p,inlineImages:m,recordCanvas:h,keepIframeSrcFn:g,newlyAddedElement:v,rootId:x});case e.TEXT_NODE:return Et(e,{doc:n,needsMask:o,maskTextFn:u,rootId:x,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:se.CDATA,textContent:``,rootId:x};case e.COMMENT_NODE:return{type:se.Comment,textContent:ke.textContent(e)||``,rootId:x};default:return!1}}function Tt(e,t){if(t.hasNode(e)){var n=t.getId(e);return n===1?void 0:n}}function Et(e,t){var n=t.needsMask,r=t.maskTextFn,i=t.rootId,a=t.cssCaptured,o=ke.parentNode(e),s=o&&o.tagName,c=``,l=s===`STYLE`||void 0,u=s===`SCRIPT`||void 0;return u?c=`SCRIPT_PLACEHOLDER`:a||(c=ke.textContent(e),l&&c&&(c=$e(c,gt(t.doc)))),!l&&!u&&c&&n&&(c=r?r(c,ke.parentElement(e)):c.replace(/[\S]/g,`*`)),{type:se.Text,textContent:c||``,rootId:i}}function Dt(e,t){for(var n=t.doc,r=t.blockClass,i=t.blockSelector,a=t.inlineStylesheet,o=t.maskInputOptions,s=o===void 0?{}:o,c=t.maskInputFn,l=t.dataURLOptions,u=l===void 0?{}:l,d=t.inlineImages,f=t.recordCanvas,p=t.keepIframeSrcFn,m=t.newlyAddedElement,h=m!==void 0&&m,g=t.rootId,_=yt(e,r,i),v=st(e),y={},b=e.attributes.length,x=0;x<b;x++){var S=e.attributes[x];vt(v,S.name,S.value)||(y[S.name]=_t(n,v,Ue(S.name),S.value))}if(v===`link`&&a){var ee=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),C=null;ee&&(C=Fe(ee)),C&&(delete y.rel,delete y.href,y._cssText=C)}if(v===`style`&&e.sheet){var te=Fe(e.sheet);te&&(e.childNodes.length>1&&(te=nt(te,e)),y._cssText=te)}if(v===`input`||v===`textarea`||v===`select`){var ne=e.value,re=e.checked;y.type!==`radio`&&y.type!==`checkbox`&&y.type!==`submit`&&y.type!==`button`&&ne?y.value=He({element:e,type:Ke(e),tagName:v,value:ne,maskInputOptions:s,maskInputFn:c}):re&&(y.checked=re)}if(v===`option`&&(e.selected&&!s.select?y.selected=!0:delete y.selected),v===`dialog`&&e.open&&(y.rr_open_mode=e.matches(`dialog:modal`)?`modal`:`non-modal`),v===`canvas`&&f){if(e.__context===`2d`)Ge(e)||(y.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){var ie=e.toDataURL(u.type,u.quality),w=n.createElement(`canvas`);w.width=e.width,w.height=e.height,ie!==w.toDataURL(u.type,u.quality)&&(y.rr_dataURL=ie)}}if(v===`img`&&d){ct||(ct=n.createElement(`canvas`),lt=ct.getContext(`2d`));var T=e,ae=T.currentSrc||T.getAttribute(`src`)||`<unknown-src>`,oe=T.crossOrigin,ce=function(){T.removeEventListener(`load`,ce);try{ct.width=T.naturalWidth,ct.height=T.naturalHeight,lt.drawImage(T,0,0),y.rr_dataURL=ct.toDataURL(u.type,u.quality)}catch(e){if(T.crossOrigin!==`anonymous`){T.crossOrigin=`anonymous`,T.complete&&T.naturalWidth!==0?ce():T.addEventListener(`load`,ce);return}console.warn(`Cannot inline img src=`+ae+`! Error: `+e)}T.crossOrigin===`anonymous`&&(oe?y.crossOrigin=oe:T.removeAttribute(`crossorigin`))};T.complete&&T.naturalWidth!==0?ce():T.addEventListener(`load`,ce)}if(v===`audio`||v===`video`){var le=y;le.rr_mediaState=e.paused?`paused`:`played`,le.rr_mediaCurrentTime=e.currentTime,le.rr_mediaPlaybackRate=e.playbackRate,le.rr_mediaMuted=e.muted,le.rr_mediaLoop=e.loop,le.rr_mediaVolume=e.volume}if(h||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),_){var ue=e.getBoundingClientRect(),de=ue.width,fe=ue.height;y={class:y.class,rr_width:``+de+`px`,rr_height:``+fe+`px`}}v===`iframe`&&!p(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src);var pe;try{customElements.get(v)&&(pe=!0)}catch{}return{type:se.Element,tagName:v,attributes:y,childNodes:[],isSVG:ht(e)||void 0,needBlock:_,rootId:g,isCustom:pe}}function D(e){return e==null?``:e.toLowerCase()}function Ot(e,t){return!!(t.comment&&e.type===se.Comment||e.type===se.Element&&(t.script&&(e.tagName===`script`||e.tagName===`link`&&(e.attributes.rel===`preload`&&e.attributes.as===`script`||e.attributes.rel===`modulepreload`)||e.tagName===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&qe(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(D(e.attributes.name).match(/^msapplication-tile(image|color)$/)||D(e.attributes.name)===`application-name`||D(e.attributes.rel)===`icon`||D(e.attributes.rel)===`apple-touch-icon`||D(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&D(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(D(e.attributes.property).match(/^(og|twitter|fb):/)||D(e.attributes.name).match(/^(og|twitter):/)||D(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(D(e.attributes.name)===`robots`||D(e.attributes.name)===`googlebot`||D(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(D(e.attributes.name)===`author`||D(e.attributes.name)===`generator`||D(e.attributes.name)===`framework`||D(e.attributes.name)===`publisher`||D(e.attributes.name)===`progid`||D(e.attributes.property).match(/^article:/)||D(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(D(e.attributes.name)===`google-site-verification`||D(e.attributes.name)===`yandex-verification`||D(e.attributes.name)===`csrf-token`||D(e.attributes.name)===`p:domain_verify`||D(e.attributes.name)===`verify-v1`||D(e.attributes.name)===`verification`||D(e.attributes.name)===`shopify-checkout-api-token`))))}function kt(e,t){var n=t.doc,r=t.mirror,i=t.blockClass,a=t.blockSelector,o=t.maskTextClass,s=t.maskTextSelector,c=t.skipChild,l=c!==void 0&&c,u=t.inlineStylesheet,d=u===void 0||u,f=t.maskInputOptions,p=f===void 0?{}:f,m=t.maskTextFn,h=t.maskInputFn,g=t.slimDOMOptions,_=t.dataURLOptions,v=_===void 0?{}:_,y=t.inlineImages,b=y!==void 0&&y,x=t.recordCanvas,S=x!==void 0&&x,ee=t.onSerialize,te=t.onIframeLoad,ne=t.iframeLoadTimeout,re=ne===void 0?5e3:ne,ie=t.onStylesheetLoad,w=t.stylesheetLoadTimeout,T=w===void 0?5e3:w,ae=t.keepIframeSrcFn,oe=ae===void 0?function(){return!1}:ae,ce=t.newlyAddedElement,le=ce!==void 0&&ce,ue=t.cssCaptured,de=ue!==void 0&&ue,fe=t.needsMask,pe=t.preserveWhiteSpace,me=pe===void 0||pe;fe||=xt(e,o,s,fe===void 0);var he=wt(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:fe,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,dataURLOptions:v,inlineImages:b,recordCanvas:S,keepIframeSrcFn:oe,newlyAddedElement:le,cssCaptured:de});if(!he)return console.warn(e,`not serialized`),null;var ge=r.hasNode(e)?r.getId(e):Ot(he,g)||!me&&he.type===se.Text&&!he.textContent.replace(/^\s+|\s+$/gm,``).length?at:ot(),E=Object.assign(he,{id:ge});if(r.add(e,E),ge===at)return null;ee&&ee(e);var _e=!l;if(E.type===se.Element){_e&&=!E.needBlock,delete E.needBlock;var ve=ke.shadowRoot(e);ve&&Me(ve)&&(E.isShadowHost=!0)}if((E.type===se.Document||E.type===se.Element)&&_e){g.headWhitespace&&E.type===se.Element&&E.tagName===`head`&&(me=!1);var ye={doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:fe,maskTextClass:o,maskTextSelector:s,skipChild:l,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:me,onSerialize:ee,onIframeLoad:te,iframeLoadTimeout:re,onStylesheetLoad:ie,stylesheetLoadTimeout:T,keepIframeSrcFn:oe,cssCaptured:!1};if(E.type!==se.Element||E.tagName!==`textarea`||E.attributes.value===void 0){E.type===se.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==`string`&&(ye.cssCaptured=!0);for(var be=C(Array.from(ke.childNodes(e))),xe;!(xe=be()).done;){var Se=xe.value,Ce=kt(Se,ye);Ce&&E.childNodes.push(Ce)}}var we=null;if(Ae(e)&&(we=ke.shadowRoot(e)))for(var Te=C(Array.from(ke.childNodes(we))),Ee;!(Ee=Te()).done;){var De=Ee.value,Oe=kt(De,ye);Oe&&(Me(we)&&(Oe.isShadow=!0),E.childNodes.push(Oe))}}var Ne=ke.parentNode(e);return Ne&&je(Ne)&&Me(Ne)&&(E.isShadow=!0),E.type===se.Element&&E.tagName===`iframe`&&St(e,function(){var t=e.contentDocument;if(t&&te){var n=kt(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,needsMask:fe,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:me,onSerialize:ee,onIframeLoad:te,iframeLoadTimeout:re,onStylesheetLoad:ie,stylesheetLoadTimeout:T,keepIframeSrcFn:oe});n&&te(e,n)}},re),E.type===se.Element&&E.tagName===`link`&&typeof E.attributes.rel==`string`&&(E.attributes.rel===`stylesheet`||E.attributes.rel===`preload`&&typeof E.attributes.href==`string`&&qe(E.attributes.href)===`css`)&&Ct(e,function(){if(ie){var t=kt(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:fe,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:p,maskTextFn:m,maskInputFn:h,slimDOMOptions:g,dataURLOptions:v,inlineImages:b,recordCanvas:S,preserveWhiteSpace:me,onSerialize:ee,onIframeLoad:te,iframeLoadTimeout:re,onStylesheetLoad:ie,stylesheetLoadTimeout:T,keepIframeSrcFn:oe});t&&ie(e,t)}},T),E}function At(e,t){var n=t||{},r=n.mirror,i=r===void 0?new Be:r,a=n.blockClass,o=a===void 0?`rr-block`:a,s=n.blockSelector,c=s===void 0?null:s,l=n.maskTextClass,u=l===void 0?`rr-mask`:l,d=n.maskTextSelector,f=d===void 0?null:d,p=n.inlineStylesheet,m=p===void 0||p,h=n.inlineImages,g=h!==void 0&&h,_=n.recordCanvas,v=_!==void 0&&_,y=n.maskAllInputs,b=y!==void 0&&y,x=n.maskTextFn,S=n.maskInputFn,ee=n.slimDOM,C=ee!==void 0&&ee,te=n.dataURLOptions,ne=n.preserveWhiteSpace,re=n.onSerialize,ie=n.onIframeLoad,w=n.iframeLoadTimeout,T=n.onStylesheetLoad,ae=n.stylesheetLoadTimeout,oe=n.keepIframeSrcFn;return kt(e,{doc:e,mirror:i,blockClass:o,blockSelector:c,maskTextClass:u,maskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:b===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b===!1?{password:!0}:b,maskTextFn:x,maskInputFn:S,slimDOMOptions:C===!0||C===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:C===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:C===!1?{}:C,dataURLOptions:te,inlineImages:g,recordCanvas:v,preserveWhiteSpace:ne,onSerialize:re,onIframeLoad:ie,iframeLoadTimeout:w,onStylesheetLoad:T,stylesheetLoadTimeout:ae,keepIframeSrcFn:oe===void 0?function(){return!1}:oe,newlyAddedElement:!1})}function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Mt(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return g(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Nt={exports:{}},O=String,Pt=function(){return{isColorSupported:!1,reset:O,bold:O,dim:O,italic:O,underline:O,inverse:O,hidden:O,strikethrough:O,black:O,red:O,green:O,yellow:O,blue:O,magenta:O,cyan:O,white:O,gray:O,bgBlack:O,bgRed:O,bgGreen:O,bgYellow:O,bgBlue:O,bgMagenta:O,bgCyan:O,bgWhite:O}};Nt.exports=Pt(),Nt.exports.createColors=Pt;var Ft=Nt.exports,k=Mt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),It=Ft,Lt=k,Rt=function(e){h(t,e);function t(n,r,i,a,o,s){var c=e.call(this,n)||this;return c.name=`CssSyntaxError`,c.reason=n,o&&(c.file=o),a&&(c.source=a),s&&(c.plugin=s),r!==void 0&&i!==void 0&&(typeof r==`number`?(c.line=r,c.column=i):(c.line=r.line,c.column=r.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return``;var n=this.source;e??=It.isColorSupported,Lt&&e&&(n=Lt(n));var r=n.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),o=String(a).length,s,c;if(e){var l=It.createColors(!0),u=l.bold,d=l.gray,f=l.red;s=function(e){return u(f(e))},c=function(e){return d(e)}}else s=c=function(e){return e};return r.slice(i,a).map(function(e,n){var r=i+1+n,a=` `+(` `+r).slice(-o)+` | `;if(r===t.line){var l=c(a.replace(/\d/g,` `))+e.slice(0,t.column-1).replace(/[^\t]/g,` `);return s(`>`)+c(a)+e+`
`+l+s(`^`)}return` `+c(a)+e}).join(`
`)},n.toString=function(){var e=this.showSourceCode();return e&&=`
`+e+`
`,this.name+`: `+this.message+e},t}(S(Error)),zt=Rt;Rt.default=Rt;var Bt={};Bt.isClean=Symbol(`isClean`),Bt.my=Symbol(`my`);var Vt={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:` `,beforeRule:`
`,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function Ht(e){return e[0].toUpperCase()+e.slice(1)}var Ut=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{var i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){for(var n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`),r=e.parent,i=0;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
`)){var a=this.raw(e,null,`indent`);if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);var r;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&&e.nodes[t].type===`comment`;)--t;for(var n=this.raw(e,`semicolon`),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)},t.decl=function(e,t){var n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;var i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return Vt[n];var a=e.root();if(a.rawCache||={},a.rawCache[n]!==void 0)return a.rawCache[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);var o=`raw`+Ht(n);return this[o]?r=this[o](a,e):a.walk(function(e){if(r=e.raws[t],r!==void 0)return!1}),r===void 0&&(r=Vt[n]),a.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){var i=n.raws.before.split(`
`);return t=i[i.length-1],t=t.replace(/\S/g,``),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)},t.stringify=function(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)},e}(),Wt=Ut;Ut.default=Ut;var Gt=Wt;function Kt(e,t){new Gt(t).stringify(e)}var qt=Kt;Kt.default=Kt;var Jt=Bt.isClean,Yt=Bt.my,Xt=zt,Zt=Wt,Qt=qt;function $t(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!==`proxyCache`){var i=e[r],a=i===void 0?`undefined`:b(i);r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(function(e){return $t(e,n)}):(a===`object`&&i!==null&&(i=$t(i)),n[r]=i)}return n}var en=function(){function e(e){for(var t in e===void 0&&(e={}),this.raws={},this[Jt]=!1,this[Yt]=!0,e)if(t===`nodes`){this.nodes=[];for(var n=C(e[t]),r;!(r=n()).done;){var i=r.value;typeof i.clone==`function`?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 e===void 0&&(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){e===void 0&&(e={});var t=$t(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Xt(e)},t.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:t===`root`?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[Jt]){this[Jt]=!1;for(var e=this;e=e.parent;)e[Jt]=!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 n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)n[a]===`
`?(r=1,i+=1):r+=1;return{column:r,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},n=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 r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new Zt().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){var e=[...arguments];if(this.parent){for(var t=this,n=!1,r=C(e),i;!(i=r()).done;){var a=i.value;a===this?n=!0:n?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a)}n||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&e.parent.type!==`document`;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=t==null;t||=new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&a!==`parent`&&a!==`proxyCache`){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(e===void 0?`undefined`:b(e))===`object`&&e.toJSON?e.toJSON(null,t):e});else if((o===void 0?`undefined`:b(o))===`object`&&o.toJSON)n[a]=o.toJSON(null,t);else if(a===`source`){var s=t.get(o.input);s??(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache},t.toString=function(e){e===void 0&&(e=Qt),e.stringify&&(e=e.stringify);var t=``;return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},f(e,[{key:`proxyOf`,get:function(){return this}}]),e}(),tn=en;en.default=en;var nn=function(e){h(t,e);function t(t){var n;return t&&t.value!==void 0&&typeof t.value!=`string`&&(t=p({},t,{value:String(t.value)})),n=e.call(this,t)||this,n.type=`decl`,n}return f(t,[{key:`variable`,get:function(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}]),t}(tn),rn=nn;nn.default=nn;var an=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,on={nanoid:function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=an[Math.random()*64|0];return t}},sn=k.SourceMapConsumer,cn=k.SourceMapGenerator,ln=k.existsSync,un=k.readFileSync,dn=k.dirname,fn=k.join;function pn(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var mn=function(){function e(e,t){if(t.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=dn(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||=new sn(this.text),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return pn(e.substr(RegExp.lastMatch.length));var r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()},t.isMap=function(e){return(e===void 0?`undefined`:b(e))===`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=dn(e),ln(e))return this.mapFile=e,un(e,`utf-8`).toString().trim()},t.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error(`Unable to load previous source map: `+n.toString());return r}}else if(g(t,sn))return cn.fromSourceMap(t).toString();else if(g(t,cn))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=fn(dn(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),hn=mn;mn.default=mn;var gn=k.SourceMapConsumer,_n=k.SourceMapGenerator,vn=k.fileURLToPath,yn=k.pathToFileURL,bn=k.isAbsolute,xn=k.resolve,Sn=on.nanoid,Cn=k,wn=zt,Tn=hn,En=Symbol(`fromOffsetCache`),Dn=!!(gn&&_n),On=!!(xn&&bn),kn=function(){function e(e,t){if(t===void 0&&(t={}),e==null||(e===void 0?`undefined`:b(e))===`object`&&!e.toString)throw Error(`PostCSS received `+e+` instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===``?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!On||/^\w+:\/\//.test(t.from)||bn(t.from)?t.from:xn(t.from)),On&&Dn){var n=new Tn(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=`<input css `+Sn(6)+`>`),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){r===void 0&&(r={});var i,a,o;if(t&&(t===void 0?`undefined`:b(t))===`object`){var s=t,c=n;if(typeof s.offset==`number`){var l=this.fromOffset(s.offset);t=l.line,n=l.col}else t=s.line,n=s.column;if(typeof c.offset==`number`){var u=this.fromOffset(c.offset);a=u.line,o=u.col}else a=c.line,o=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var f=this.origin(t,n,a,o);return i=f?new wn(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,r.plugin):new wn(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:o,line:a},this.css,this.file,r.plugin),i.input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(yn&&(i.input.url=yn(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,n;if(this[En])n=this[En];else{var r=this.css.split(`
`);n=Array(r.length);for(var i=0,a=0,o=r.length;a<o;a++)n[a]=i,i+=r[a].length+1;this[En]=n}t=n[n.length-1];var s=0;if(e>=t)s=n.length-1;else for(var c=n.length-2,l;s<c;)if(l=s+(c-s>>1),e<n[l])c=l-1;else if(e>=n[l+1])s=l+1;else{s=l;break}return{col:e-n[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:xn(this.map.consumer().sourceRoot||this.map.root||`.`,e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;var o;typeof n==`number`&&(o=i.originalPositionFor({column:r,line:n}));var s=bn(a.source)?yn(a.source):new URL(a.source,this.map.consumer().sourceRoot||yn(this.map.mapFile)),c={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol===`file:`){if(vn)c.file=vn(s);else throw Error(`file: protocol is not available in this PostCSS build`)}var l=i.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,n=[`hasBOM`,`css`,`file`,`id`];t<n.length;t++){var r=n[t];this[r]!=null&&(e[r]=this[r])}return this.map&&(e.map=p({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},f(e,[{key:`from`,get:function(){return this.file||this.id}}]),e}(),An=kn;kn.default=kn,Cn&&Cn.registerInput&&Cn.registerInput(kn);var jn=k.SourceMapConsumer,Mn=k.SourceMapGenerator,Nn=k.dirname,Pn=k.relative,Fn=k.resolve,In=k.sep,Ln=k.pathToFileURL,Rn=An,zn=!!(jn&&Mn),Bn=!!(Nn&&Fn&&Pn&&In),Vn=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`,t=`
`;this.css.includes(`\r
`)&&(t=`\r
`),this.css+=t+`/*# sourceMappingURL=`+e+` */`},t.applyPrevMaps=function(){for(var e=C(this.previous()),t;!(t=e()).done;){var n=t.value,r=this.toUrl(this.path(n.file)),i=n.root||Nn(n.file),a=void 0;this.mapOpts.sourcesContent===!1?(a=new jn(n.text),a.sourcesContent&&(a.sourcesContent=null)):a=n.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1){if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t);else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}},t.generate=function(){if(this.clearAnnotation(),Bn&&zn&&this.isMap())return this.generateMap();var e=``;return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Mn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Mn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css=``,this.map=new Mn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,function(s,c,l){if(e.css+=s,c&&l!==`end`&&(i.generated.line=t,i.generated.column=n-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,e.map.addMapping(i))),a=s.match(/\n/g),a?(t+=a.length,o=s.lastIndexOf(`
`),n=s.length-o):n+=s.length,c&&l!==`start`){var u=c.parent||{raws:{}};(!(c.type===`decl`||c.type===`atrule`&&!c.nodes)||c!==u.last||u.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=n-2,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=n-1,e.map.addMapping(i)))}})},t.isAnnotation=function(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(function(e){return e.annotation}):this.mapOpts.annotation},t.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(function(e){return e.inline})},t.isMap=function(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map},t.isSourcesContent=function(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(function(e){return e.withContent()}):this.mapOpts.sourcesContent},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`},t.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Nn(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=Nn(Fn(n,this.mapOpts.annotation)));var r=Pn(n,e);return this.memoizedPaths.set(e,r),r},t.previous=function(){var e=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new Rn(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(n,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Ln){var n=Ln(e).toString();return this.memoizedFileURLs.set(e,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;In===`\\`&&(e=e.replace(/\\/g,`/`));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),Hn=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`comment`,n}return t}(tn),Un=Hn;Hn.default=Hn;var Wn=Bt.isClean,Gn=Bt.my,Kn=rn,qn=Un,Jn=tn,Yn,Xn,Zn,Qn;function $n(e){return e.map(function(e){return e.nodes&&=$n(e.nodes),delete e.source,e})}function er(e){if(e[Wn]=!1,e.proxyOf.nodes)for(var t=C(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;er(r)}}var tr=function(e){h(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var e=C([...arguments]),t;!(t=e()).done;)for(var n=t.value,r=C(this.normalize(n,this.last)),i;!(i=r()).done;){var a=i.value;this.proxyOf.nodes.push(a)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n=C(this.nodes),r;!(r=n()).done;)r.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t=this.getIterator(),n,r;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?function(){var n=[...arguments],r;return(r=e)[t].apply(r,[].concat(n.map(function(e){return typeof e==`function`?function(t,n){return e(t.toProxy(),n)}:e})))}:t===`every`||t===`some`?function(n){return e[t](function(e){var t=[...arguments].slice(1);return n.apply(void 0,[e.toProxy()].concat(t))})}:t===`root`?function(){return e.root().toProxy()}:t===`nodes`?e.nodes.map(function(e){return e.toProxy()}):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}},n.index=function(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var i=C(r),a;!(a=i()).done;){var o=a.value;this.proxyOf.nodes.splice(n+1,0,o)}var s;for(var c in this.indexes)s=this.indexes[c],n<s&&(this.indexes[c]=s+r.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(var a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n,0,s)}var c;for(var l in this.indexes)c=this.indexes[l],n<=c&&(this.indexes[l]=c+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if(typeof e==`string`)e=$n(Yn(e).nodes);else if(e===void 0)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=C(e),a;!(a=i()).done;){var o=a.value;o.parent&&o.parent.removeChild(o,`ignore`)}}else if(e.type===`root`&&this.type!==`document`){e=e.nodes.slice(0);for(var s=C(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,`ignore`)}}else if(e.type)e=[e];else if(e.prop){if(e.value===void 0)throw Error(`Value field is missed in node creation`);typeof e.value!=`string`&&(e.value=String(e.value)),e=[new Kn(e)]}else if(e.selector)e=[new Xn(e)];else if(e.name)e=[new Zn(e)];else if(e.text)e=[new qn(e)];else throw Error(`Unknown node type in node creation`);return e.map(function(e){return e[Gn]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Wn]&&er(e),e.raws.before===void 0&&n&&n.raws.before!==void 0&&(e.raws.before=n.raws.before.replace(/\S/g,``)),e.parent=r.proxyOf,e})},n.prepend=function(){var e=[...arguments];e=e.reverse();for(var t=C(e),n;!(n=t()).done;){for(var r=n.value,i=this.normalize(r,this.first,`prepend`).reverse(),a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.unshift(s)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+i.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e=C(this.proxyOf.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`atrule`)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if(t.type===`comment`)return e(t,n)})},n.walkDecls=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`decl`)return t(e,n)}))},n.walkRules=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`rule`)return t(e,n)}))},f(t,[{key:`first`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:`last`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Jn);tr.registerParse=function(e){Yn=e},tr.registerRule=function(e){Xn=e},tr.registerAtRule=function(e){Zn=e},tr.registerRoot=function(e){Qn=e};var nr=tr;tr.default=tr,tr.rebuild=function(e){e.type===`atrule`?Object.setPrototypeOf(e,Zn.prototype):e.type===`rule`?Object.setPrototypeOf(e,Xn.prototype):e.type===`decl`?Object.setPrototypeOf(e,Kn.prototype):e.type===`comment`?Object.setPrototypeOf(e,qn.prototype):e.type===`root`&&Object.setPrototypeOf(e,Qn.prototype),e[Gn]=!0,e.nodes&&e.nodes.forEach(function(e){tr.rebuild(e)})};var rr=nr,ir,ar,or=function(e){h(t,e);function t(t){var n=e.call(this,p({type:`document`},t))||this;return n.nodes||=[],n}var n=t.prototype;return n.toResult=function(e){return e===void 0&&(e={}),new ir(new ar,this,e).stringify()},t}(rr);or.registerLazyResult=function(e){ir=e},or.registerProcessor=function(e){ar=e};var sr=or;or.default=or;var cr=function(){function e(e,t){if(t===void 0&&(t={}),this.type=`warning`,this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}var t=e.prototype;return t.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}(),lr=cr;cr.default=cr;var ur=lr,dr=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new ur(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return e.type===`warning`})},f(e,[{key:`content`,get:function(){return this.css}}]),e}(),fr=dr;dr.default=dr;var pr=39,mr=34,hr=92,gr=47,_r=10,vr=32,yr=12,br=9,xr=13,Sr=91,Cr=93,wr=40,Tr=41,Er=123,Dr=125,Or=59,kr=42,Ar=58,jr=64,Mr=/[\t\n\f\r "#'()/;[\\\]{}]/g,Nr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Pr=/.[\r\n"'(/\\]/,Fr=/[\da-f]/i,Ir=function(e,t){t===void 0&&(t={});var n=e.css.valueOf(),r=t.ignoreErrors,i,a,o,s,c,l,u,d,f,p,m=n.length,h=0,g=[],_=[];function v(){return h}function y(t){throw e.error(`Unclosed `+t,h)}function b(){return _.length===0&&h>=m}function x(e){if(_.length)return _.pop();if(!(h>=m)){var t=e?e.ignoreUnclosed:!1;switch(i=n.charCodeAt(h),i){case _r:case vr:case br:case xr:case yr:a=h;do a+=1,i=n.charCodeAt(a);while(i===vr||i===_r||i===br||i===xr||i===yr);p=[`space`,n.slice(h,a)],h=a-1;break;case Sr:case Cr:case Er:case Dr:case Ar:case Or:case Tr:var v=String.fromCharCode(i);p=[v,v,h];break;case wr:if(d=g.length?g.pop()[1]:``,f=n.charCodeAt(h+1),d===`url`&&f!==pr&&f!==mr&&f!==vr&&f!==_r&&f!==br&&f!==yr&&f!==xr){a=h;do{if(l=!1,a=n.indexOf(`)`,a+1),a===-1){if(r||t){a=h;break}y(`bracket`)}for(u=a;n.charCodeAt(u-1)===hr;)--u,l=!l}while(l);p=[`brackets`,n.slice(h,a+1),h,a],h=a}else a=n.indexOf(`)`,h+1),s=n.slice(h,a+1),a===-1||Pr.test(s)?p=[`(`,`(`,h]:(p=[`brackets`,s,h,a],h=a);break;case pr:case mr:o=i===pr?`'`:`"`,a=h;do{if(l=!1,a=n.indexOf(o,a+1),a===-1){if(r||t){a=h+1;break}y(`string`)}for(u=a;n.charCodeAt(u-1)===hr;)--u,l=!l}while(l);p=[`string`,n.slice(h,a+1),h,a],h=a;break;case jr:Mr.lastIndex=h+1,Mr.test(n),a=Mr.lastIndex===0?n.length-1:Mr.lastIndex-2,p=[`at-word`,n.slice(h,a+1),h,a],h=a;break;case hr:for(a=h,c=!0;n.charCodeAt(a+1)===hr;)a+=1,c=!c;if(i=n.charCodeAt(a+1),c&&i!==gr&&i!==vr&&i!==_r&&i!==br&&i!==xr&&i!==yr&&(a+=1,Fr.test(n.charAt(a)))){for(;Fr.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===vr&&(a+=1)}p=[`word`,n.slice(h,a+1),h,a],h=a;break;default:i===gr&&n.charCodeAt(h+1)===kr?(a=n.indexOf(`*/`,h+2)+1,a===0&&(r||t?a=n.length:y(`comment`)),p=[`comment`,n.slice(h,a+1),h,a],h=a):(Nr.lastIndex=h+1,Nr.test(n),a=Nr.lastIndex===0?n.length-1:Nr.lastIndex-2,p=[`word`,n.slice(h,a+1),h,a],g.push(p),h=a)}return h++,p}}function S(e){_.push(e)}return{back:S,endOfFile:b,nextToken:x,position:v}},Lr=nr,Rr=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`atrule`,n}var n=t.prototype;return n.append=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.append).call.apply(n,[this].concat(t))},n.prepend=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.prepend).call.apply(n,[this].concat(t))},t}(Lr),zr=Rr;Rr.default=Rr,Lr.registerAtRule(Rr);var Br=nr,Vr,Hr,Ur=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`root`,n.nodes||=[],n}var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if(r===`prepend`)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a=C(i),o;!(o=a()).done;){var s=o.value;s.raws.before=n.raws.before}}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return e===void 0&&(e={}),new Vr(new Hr,this,e).stringify()},t}(Br);Ur.registerLazyResult=function(e){Vr=e},Ur.registerProcessor=function(e){Hr=e};var Wr=Ur;Ur.default=Ur,Br.registerRoot(Ur);var Gr={comma:function(e){return Gr.split(e,[`,`],!0)},space:function(e){return Gr.split(e,[` `,`
`,` `])},split:function(e,t,n){for(var r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1,u=C(e),d;!(d=u()).done;){var f=d.value;l?l=!1:f===`\\`?l=!0:s?f===c&&(s=!1):f===`"`||f===`'`?(s=!0,c=f):f===`(`?o+=1:f===`)`?o>0&&--o:o===0&&t.includes(f)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=f}return(n||i!==``)&&r.push(i.trim()),r}},Kr=Gr;Gr.default=Gr;var qr=nr,Jr=Kr,Yr=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`rule`,n.nodes||=[],n}return f(t,[{key:`selectors`,get:function(){return Jr.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}]),t}(qr),Xr=Yr;Yr.default=Yr,qr.registerRule(Yr);var Zr=rn,Qr=Ir,$r=Un,ei=zr,ti=Wr,ni=Xr,ri={empty:!0,space:!0};function ii(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var ai=function(){function e(e){this.input=e,this.root=new ti,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=new ei;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,r,i,a=!1,o=!1,s=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?c.push(n===`(`?`)`:`]`):n===`{`&&c.length>0?c.push(`}`):n===c[c.length-1]&&c.pop(),c.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){o=!0;break}if(n===`}`){if(s.length>0){for(i=s.length-1,r=s[i];r&&r[0]===`space`;)r=s[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,`params`,s),a&&(e=s[s.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),o&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r,i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}},t.colon=function(e){for(var t=0,n,r,i,a=C(e.entries()),o;!(o=a()).done;){var s=o.value,c=s[0];if(n=s[1],r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return c}i=n}return!1},t.comment=function(e){var t=new $r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=Qr(this.input)},t.decl=function(e,t){var n=new Zr;this.init(n,e[0][2]);var r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||ii(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){var i=e[0][0];if(i===`:`||i===`space`||i===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;for(var a;e.length;){if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1]}(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var o=[],s;e.length&&(s=e[0][0],s===`space`||s===`comment`);)o.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()===`!important`){n.important=!0;var l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==` !important`&&(n.raws.important=l);break}if(a[1].toLowerCase()===`important`){for(var u=e.slice(0),d=``,f=c;f>0;f--){var p=u[f][0];if(d.trim().indexOf(`!`)===0&&p!==`space`)break;d=u.pop()[1]+d}d.trim().indexOf(`!`)===0&&(n.important=!0,n.raws.important=d,e=u)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(function(e){return e[0]!==`space`&&e[0]!==`comment`})&&(n.raws.between+=o.map(function(e){return e[1]}).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.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 ni;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&&t.type===`rule`&&!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=``,e.type!==`comment`&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o=n.length,s=``,c=!0,l,u,d=0;d<o;d+=1)i=n[d],a=i[0],a===`space`&&d===o-1&&!r?c=!1:a===`comment`?(u=n[d-1]?n[d-1][0]:`empty`,l=n[d+1]?n[d+1][0]:`empty`,!ri[u]&&!ri[l]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){var f=n.reduce(function(e,t){return e+t[1]},``);e.raws[t]={raw:f,value:s}}e[t]=s},t.rule=function(e){e.pop();var t=new ni;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,n=``;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=``;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n},t.stringFrom=function(e,t){for(var n=``,r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},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}(),oi=nr,si=ai,ci=An;function li(e,t){var n=new si(new ci(e,t));try{n.parse()}catch(e){throw e}return n.root}var ui=li;li.default=li,oi.registerParse(li);var di=Bt.isClean,fi=Bt.my,pi=Vn,mi=qt,hi=nr,gi=sr,_i=fr,vi=ui,yi=Wr,bi={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},xi={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},Si={Once:!0,postcssPlugin:!0,prepare:!0},Ci=0;function wi(e){return(e===void 0?`undefined`:b(e))===`object`&&typeof e.then==`function`}function Ti(e){var t=!1,n=bi[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,Ci,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,Ci,n+`Exit`]:[n,n+`Exit`]}function Ei(e){return{eventIndex:0,events:e.type===`document`?[`Document`,Ci,`DocumentExit`]:e.type===`root`?[`Root`,Ci,`RootExit`]:Ti(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Di(e){return e[di]=!1,e.nodes&&e.nodes.forEach(function(e){return Di(e)}),e}var Oi={},ki=function(){function e(t,n,r){var i=this;this.stringified=!1,this.processed=!1;var a;if((n===void 0?`undefined`:b(n))===`object`&&n!==null&&(n.type===`root`||n.type===`document`))a=Di(n);else if(g(n,e)||g(n,_i))a=Di(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=vi;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{a=o(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[fi]&&hi.rebuild(a)}this.result=new _i(t,a,r),this.helpers=p({},Oi,{postcss:Oi,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(e===void 0?`undefined`:b(e))===`object`&&e.prepare?p({},e,e.prepare(i.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.runAsync(),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error(`Use process(css).then(cb) to work with async plugins`)},t.handleError=function(e,t){var n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},n=C(this.plugins),r;!(r=n()).done;){var i=r.value;if((i===void 0?`undefined`:b(i))===`object`)for(var a in i){if(!xi[a]&&/^[A-Z]/.test(a))throw Error(`Unknown event `+a+` in `+i.postcssPlugin+`. Try to update PostCSS (`+this.processor.version+` now).`);if(!Si[a]){if(b(i[a])===`object`)for(var o in i[a])o===`*`?t(i,a,i[a][o]):t(i,a+`-`+o.toLowerCase(),i[a][o]);else typeof i[a]==`function`&&t(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return l(function(){var t,n,r,i,a,o,s,c,l,u,d,f;return te(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],r=e.runOnRoot(n),!wi(r))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,r];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];a=e.result.root,p.label=7;case 7:if(a[di])return[3,14];a[di]=!0,o=[Ei(a)],p.label=8;case 8:if(!(o.length>0))return[3,13];if(s=e.visitTick(o),!wi(s))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),l=o[o.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i,o;return te(this,function(s){switch(s.label){case 0:t=f.value,n=t[0],r=t[1],e.result.lastPlugin=n,s.label=1;case 1:return s.trys.push([1,6,,7]),a.type===`document`?(i=a.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(i)]):[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw o=s.sent(),e.handleError(o);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,ne(u())];case 16:p.sent(),p.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((e===void 0?`undefined`:b(e))===`object`&&e.Once){if(this.result.root.type===`document`){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return wi(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)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=mi;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new pi(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[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=C(this.plugins),t;!(t=e()).done;){var n=t.value;if(wi(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[di];)r[di]=!0,this.walkSync(r);if(this.listeners.OnceExit){if(r.type===`document`)for(var i=C(r.nodes),a;!(a=i()).done;){var o=a.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}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 n=C(e),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(wi(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){for(var s=t.iterator,c;c=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!c[di]){c[di]=!0,e.push(Ei(c));return}t.iterator=0,delete n.indexes[s]}for(var l=t.events;t.eventIndex<l.length;){var u=l[t.eventIndex];if(t.eventIndex+=1,u===Ci){n.nodes&&n.nodes.length&&(n[di]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[di]=!0;for(var n=C(Ti(e)),r;!(r=n()).done;){var i=r.value;if(i===Ci)e.nodes&&e.each(function(e){e[di]||t.walkSync(e)});else{var a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},f(e,[{key:`content`,get:function(){return this.stringify().content}},{key:`css`,get:function(){return this.stringify().css}},{key:`map`,get:function(){return this.stringify().map}},{key:`messages`,get:function(){return this.sync().messages}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return`LazyResult`}}]),e}();ki.registerPostcss=function(e){Oi=e};var Ai=ki;ki.default=ki,yi.registerLazyResult(ki),gi.registerLazyResult(ki);var ji=Vn,Mi=qt,Ni=ui,Pi=fr,Fi=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var r,i=Mi;this.result=new Pi(this._processor,r,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var o=new ji(i,r,this._opts,t);if(o.isMap()){var s=o.generate(),c=s[0],l=s[1];c&&(this.result.css=c),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},f(e,[{key:`content`,get:function(){return this.result.css}},{key:`css`,get:function(){return this.result.css}},{key:`map`,get:function(){return this.result.map}},{key:`messages`,get:function(){return[]}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){if(this._root)return this._root;var e,t=Ni;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}(),Ii=Fi;Fi.default=Fi;var Li=Ii,Ri=Ai,zi=sr,Bi=Wr,Vi=function(){function e(e){e===void 0&&(e=[]),this.version=`8.4.38`,this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],n=C(e),r;!(r=n()).done;){var i=r.value;if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),(i===void 0?`undefined`:b(i))===`object`&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((i===void 0?`undefined`:b(i))===`object`&&i.postcssPlugin)t.push(i);else if(typeof i==`function`)t.push(i);else if(!((i===void 0?`undefined`:b(i))===`object`&&(i.parse||i.stringify)))throw Error(i+` is not a PostCSS plugin`)}return t},t.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Li(this,e,t):new Ri(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Hi=Vi;Vi.default=Vi,Bi.registerProcessor(Vi),zi.registerProcessor(Vi);var Ui=rn,Wi=hn,Gi=Un,Ki=zr,qi=An,Ji=Wr,Yi=Xr;function Xi(e,t){if(Array.isArray(e))return e.map(function(e){return Xi(e)});var n=e.inputs,r=v(e,[`inputs`]);if(n){t=[];for(var i=C(n),a;!(a=i()).done;){var o=a.value,s=p({},o,{__proto__:qi.prototype});s.map&&=p({},s.map,{__proto__:Wi.prototype}),t.push(s)}}if(r.nodes&&=e.nodes.map(function(e){return Xi(e,t)}),r.source){var c=r.source,l=c.inputId;r.source=v(c,[`inputId`]),l!=null&&(r.source.input=t[l])}if(r.type===`root`)return new Ji(r);if(r.type===`decl`)return new Ui(r);if(r.type===`rule`)return new Yi(r);if(r.type===`comment`)return new Gi(r);if(r.type===`atrule`)return new Ki(r);throw Error(`Unknown node type: `+e.type)}var Zi=Xi;Xi.default=Xi;var Qi=zt,$i=rn,ea=Ai,ta=nr,na=Hi,ra=qt,ia=Zi,aa=sr,oa=lr,sa=Un,ca=zr,la=fr,ua=An,da=ui,fa=Kr,pa=Xr,ma=Wr,ha=tn;function A(){var e=[...arguments];return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new na(e)}A.plugin=function(e,t){var n=!1;function r(){var r=[...arguments];console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));var i=t.apply(void 0,[].concat(r));return i.postcssPlugin=e,i.postcssVersion=new na().version,i}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||=r(),i}}),r.process=function(e,t,n){return A([r(n)]).process(e,t)},r},A.stringify=ra,A.parse=da,A.fromJSON=ia,A.list=fa,A.comment=function(e){return new sa(e)},A.atRule=function(e){return new ca(e)},A.decl=function(e){return new $i(e)},A.rule=function(e){return new pa(e)},A.root=function(e){return new ma(e)},A.document=function(e){return new aa(e)},A.CssSyntaxError=Qi,A.Declaration=$i,A.Container=ta,A.Processor=na,A.Document=aa,A.Comment=sa,A.Warning=oa,A.AtRule=ca,A.Result=la,A.Input=ua,A.Rule=pa,A.Root=ma,A.Node=ha,ea.registerPostcss(A);var ga=A;A.default=A;var j=jt(ga);j.stringify,j.fromJSON,j.plugin,j.parse,j.list,j.document,j.comment,j.atRule,j.rule,j.decl,j.root,j.CssSyntaxError,j.Declaration,j.Container,j.Processor,j.Document,j.Comment,j.Warning,j.AtRule,j.Result,j.Input,j.Rule,j.Root,j.Node;var _a=Object.defineProperty,va=function(e,t,n){return t in e?_a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ya=function(e,t,n){return va(e,(t===void 0?`undefined`:b(t))===`symbol`?t:t+``,n)};function ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function xa(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return g(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Sa={exports:{}},M=String,Ca=function(){return{isColorSupported:!1,reset:M,bold:M,dim:M,italic:M,underline:M,inverse:M,hidden:M,strikethrough:M,black:M,red:M,green:M,yellow:M,blue:M,magenta:M,cyan:M,white:M,gray:M,bgBlack:M,bgRed:M,bgGreen:M,bgYellow:M,bgBlue:M,bgMagenta:M,bgCyan:M,bgWhite:M}};Sa.exports=Ca(),Sa.exports.createColors=Ca;var wa=Sa.exports,Ta=xa(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),Ea=wa,Da=Ta,Oa=function(e){h(t,e);function t(n,r,i,a,o,s){var c=e.call(this,n)||this;return c.name=`CssSyntaxError`,c.reason=n,o&&(c.file=o),a&&(c.source=a),s&&(c.plugin=s),r!==void 0&&i!==void 0&&(typeof r==`number`?(c.line=r,c.column=i):(c.line=r.line,c.column=r.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return``;var n=this.source;e??=Ea.isColorSupported,Da&&e&&(n=Da(n));var r=n.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),o=String(a).length,s,c;if(e){var l=Ea.createColors(!0),u=l.bold,d=l.gray,f=l.red;s=function(e){return u(f(e))},c=function(e){return d(e)}}else s=c=function(e){return e};return r.slice(i,a).map(function(e,n){var r=i+1+n,a=` `+(` `+r).slice(-o)+` | `;if(r===t.line){var l=c(a.replace(/\d/g,` `))+e.slice(0,t.column-1).replace(/[^\t]/g,` `);return s(`>`)+c(a)+e+`
`+l+s(`^`)}return` `+c(a)+e}).join(`
`)},n.toString=function(){var e=this.showSourceCode();return e&&=`
`+e+`
`,this.name+`: `+this.message+e},t}(S(Error)),ka=Oa;Oa.default=Oa;var Aa={};Aa.isClean=Symbol(`isClean`),Aa.my=Symbol(`my`);var ja={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:` `,beforeRule:`
`,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function Ma(e){return e[0].toUpperCase()+e.slice(1)}var Na=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{var i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){for(var n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`),r=e.parent,i=0;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
`)){var a=this.raw(e,null,`indent`);if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);var r;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&&e.nodes[t].type===`comment`;)--t;for(var n=this.raw(e,`semicolon`),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)},t.decl=function(e,t){var n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;var i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return ja[n];var a=e.root();if(a.rawCache||={},a.rawCache[n]!==void 0)return a.rawCache[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);var o=`raw`+Ma(n);return this[o]?r=this[o](a,e):a.walk(function(e){if(r=e.raws[t],r!==void 0)return!1}),r===void 0&&(r=ja[n]),a.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){var i=n.raws.before.split(`
`);return t=i[i.length-1],t=t.replace(/\S/g,``),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)},t.stringify=function(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)},e}(),Pa=Na;Na.default=Na;var Fa=Pa;function Ia(e,t){new Fa(t).stringify(e)}var La=Ia;Ia.default=Ia;var Ra=Aa.isClean,za=Aa.my,Ba=ka,Va=Pa,Ha=La;function Ua(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!==`proxyCache`){var i=e[r],a=i===void 0?`undefined`:b(i);r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(function(e){return Ua(e,n)}):(a===`object`&&i!==null&&(i=Ua(i)),n[r]=i)}return n}var Wa=function(){function e(e){for(var t in e===void 0&&(e={}),this.raws={},this[Ra]=!1,this[za]=!0,e)if(t===`nodes`){this.nodes=[];for(var n=C(e[t]),r;!(r=n()).done;){var i=r.value;typeof i.clone==`function`?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 e===void 0&&(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){e===void 0&&(e={});var t=Ua(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ba(e)},t.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:t===`root`?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[Ra]){this[Ra]=!1;for(var e=this;e=e.parent;)e[Ra]=!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 n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)n[a]===`
`?(r=1,i+=1):r+=1;return{column:r,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},n=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 r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new Va().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){var e=[...arguments];if(this.parent){for(var t=this,n=!1,r=C(e),i;!(i=r()).done;){var a=i.value;a===this?n=!0:n?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a)}n||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&e.parent.type!==`document`;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=t==null;t||=new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&a!==`parent`&&a!==`proxyCache`){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(e===void 0?`undefined`:b(e))===`object`&&e.toJSON?e.toJSON(null,t):e});else if((o===void 0?`undefined`:b(o))===`object`&&o.toJSON)n[a]=o.toJSON(null,t);else if(a===`source`){var s=t.get(o.input);s??(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache},t.toString=function(e){e===void 0&&(e=Ha),e.stringify&&(e=e.stringify);var t=``;return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},f(e,[{key:`proxyOf`,get:function(){return this}}]),e}(),Ga=Wa;Wa.default=Wa;var Ka=function(e){h(t,e);function t(t){var n;return t&&t.value!==void 0&&typeof t.value!=`string`&&(t=p({},t,{value:String(t.value)})),n=e.call(this,t)||this,n.type=`decl`,n}return f(t,[{key:`variable`,get:function(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}]),t}(Ga),qa=Ka;Ka.default=Ka;var Ja=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Ya={nanoid:function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=Ja[Math.random()*64|0];return t}},Xa=Ta.SourceMapConsumer,Za=Ta.SourceMapGenerator,Qa=Ta.existsSync,$a=Ta.readFileSync,eo=Ta.dirname,to=Ta.join;function no(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var ro=function(){function e(e,t){if(t.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=eo(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||=new Xa(this.text),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return no(e.substr(RegExp.lastMatch.length));var r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()},t.isMap=function(e){return(e===void 0?`undefined`:b(e))===`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=eo(e),Qa(e))return this.mapFile=e,$a(e,`utf-8`).toString().trim()},t.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error(`Unable to load previous source map: `+n.toString());return r}}else if(g(t,Xa))return Za.fromSourceMap(t).toString();else if(g(t,Za))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=to(eo(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),io=ro;ro.default=ro;var ao=Ta.SourceMapConsumer,oo=Ta.SourceMapGenerator,so=Ta.fileURLToPath,co=Ta.pathToFileURL,lo=Ta.isAbsolute,uo=Ta.resolve,fo=Ya.nanoid,po=Ta,mo=ka,ho=io,go=Symbol(`fromOffsetCache`),_o=!!(ao&&oo),vo=!!(uo&&lo),yo=function(){function e(e,t){if(t===void 0&&(t={}),e==null||(e===void 0?`undefined`:b(e))===`object`&&!e.toString)throw Error(`PostCSS received `+e+` instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===``?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!vo||/^\w+:\/\//.test(t.from)||lo(t.from)?t.from:uo(t.from)),vo&&_o){var n=new ho(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=`<input css `+fo(6)+`>`),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){r===void 0&&(r={});var i,a,o;if(t&&(t===void 0?`undefined`:b(t))===`object`){var s=t,c=n;if(typeof s.offset==`number`){var l=this.fromOffset(s.offset);t=l.line,n=l.col}else t=s.line,n=s.column;if(typeof c.offset==`number`){var u=this.fromOffset(c.offset);a=u.line,o=u.col}else a=c.line,o=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var f=this.origin(t,n,a,o);return i=f?new mo(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,r.plugin):new mo(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:o,line:a},this.css,this.file,r.plugin),i.input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(co&&(i.input.url=co(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,n;if(this[go])n=this[go];else{var r=this.css.split(`
`);n=Array(r.length);for(var i=0,a=0,o=r.length;a<o;a++)n[a]=i,i+=r[a].length+1;this[go]=n}t=n[n.length-1];var s=0;if(e>=t)s=n.length-1;else for(var c=n.length-2,l;s<c;)if(l=s+(c-s>>1),e<n[l])c=l-1;else if(e>=n[l+1])s=l+1;else{s=l;break}return{col:e-n[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:uo(this.map.consumer().sourceRoot||this.map.root||`.`,e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;var o;typeof n==`number`&&(o=i.originalPositionFor({column:r,line:n}));var s=lo(a.source)?co(a.source):new URL(a.source,this.map.consumer().sourceRoot||co(this.map.mapFile)),c={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol===`file:`){if(so)c.file=so(s);else throw Error(`file: protocol is not available in this PostCSS build`)}var l=i.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,n=[`hasBOM`,`css`,`file`,`id`];t<n.length;t++){var r=n[t];this[r]!=null&&(e[r]=this[r])}return this.map&&(e.map=p({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},f(e,[{key:`from`,get:function(){return this.file||this.id}}]),e}(),bo=yo;yo.default=yo,po&&po.registerInput&&po.registerInput(yo);var xo=Ta.SourceMapConsumer,So=Ta.SourceMapGenerator,Co=Ta.dirname,wo=Ta.relative,To=Ta.resolve,Eo=Ta.sep,Do=Ta.pathToFileURL,Oo=bo,ko=!!(xo&&So),Ao=!!(Co&&To&&wo&&Eo),jo=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`,t=`
`;this.css.includes(`\r
`)&&(t=`\r
`),this.css+=t+`/*# sourceMappingURL=`+e+` */`},t.applyPrevMaps=function(){for(var e=C(this.previous()),t;!(t=e()).done;){var n=t.value,r=this.toUrl(this.path(n.file)),i=n.root||Co(n.file),a=void 0;this.mapOpts.sourcesContent===!1?(a=new xo(n.text),a.sourcesContent&&(a.sourcesContent=null)):a=n.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1){if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t);else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}},t.generate=function(){if(this.clearAnnotation(),Ao&&ko&&this.isMap())return this.generateMap();var e=``;return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=So.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new So({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css=``,this.map=new So({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,function(s,c,l){if(e.css+=s,c&&l!==`end`&&(i.generated.line=t,i.generated.column=n-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,e.map.addMapping(i))),a=s.match(/\n/g),a?(t+=a.length,o=s.lastIndexOf(`
`),n=s.length-o):n+=s.length,c&&l!==`start`){var u=c.parent||{raws:{}};(!(c.type===`decl`||c.type===`atrule`&&!c.nodes)||c!==u.last||u.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=n-2,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=n-1,e.map.addMapping(i)))}})},t.isAnnotation=function(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(function(e){return e.annotation}):this.mapOpts.annotation},t.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(function(e){return e.inline})},t.isMap=function(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map},t.isSourcesContent=function(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(function(e){return e.withContent()}):this.mapOpts.sourcesContent},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`},t.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Co(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=Co(To(n,this.mapOpts.annotation)));var r=wo(n,e);return this.memoizedPaths.set(e,r),r},t.previous=function(){var e=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new Oo(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(n,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Do){var n=Do(e).toString();return this.memoizedFileURLs.set(e,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;Eo===`\\`&&(e=e.replace(/\\/g,`/`));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),Mo=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`comment`,n}return t}(Ga),No=Mo;Mo.default=Mo;var Po=Aa.isClean,Fo=Aa.my,Io=qa,Lo=No,Ro=Ga,zo,Bo,Vo,Ho;function Uo(e){return e.map(function(e){return e.nodes&&=Uo(e.nodes),delete e.source,e})}function Wo(e){if(e[Po]=!1,e.proxyOf.nodes)for(var t=C(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;Wo(r)}}var Go=function(e){h(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var e=C([...arguments]),t;!(t=e()).done;)for(var n=t.value,r=C(this.normalize(n,this.last)),i;!(i=r()).done;){var a=i.value;this.proxyOf.nodes.push(a)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n=C(this.nodes),r;!(r=n()).done;)r.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t=this.getIterator(),n,r;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?function(){var n=[...arguments],r;return(r=e)[t].apply(r,[].concat(n.map(function(e){return typeof e==`function`?function(t,n){return e(t.toProxy(),n)}:e})))}:t===`every`||t===`some`?function(n){return e[t](function(e){var t=[...arguments].slice(1);return n.apply(void 0,[e.toProxy()].concat(t))})}:t===`root`?function(){return e.root().toProxy()}:t===`nodes`?e.nodes.map(function(e){return e.toProxy()}):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}},n.index=function(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var i=C(r),a;!(a=i()).done;){var o=a.value;this.proxyOf.nodes.splice(n+1,0,o)}var s;for(var c in this.indexes)s=this.indexes[c],n<s&&(this.indexes[c]=s+r.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(var a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n,0,s)}var c;for(var l in this.indexes)c=this.indexes[l],n<=c&&(this.indexes[l]=c+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if(typeof e==`string`)e=Uo(zo(e).nodes);else if(e===void 0)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=C(e),a;!(a=i()).done;){var o=a.value;o.parent&&o.parent.removeChild(o,`ignore`)}}else if(e.type===`root`&&this.type!==`document`){e=e.nodes.slice(0);for(var s=C(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,`ignore`)}}else if(e.type)e=[e];else if(e.prop){if(e.value===void 0)throw Error(`Value field is missed in node creation`);typeof e.value!=`string`&&(e.value=String(e.value)),e=[new Io(e)]}else if(e.selector)e=[new Bo(e)];else if(e.name)e=[new Vo(e)];else if(e.text)e=[new Lo(e)];else throw Error(`Unknown node type in node creation`);return e.map(function(e){return e[Fo]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[Po]&&Wo(e),e.raws.before===void 0&&n&&n.raws.before!==void 0&&(e.raws.before=n.raws.before.replace(/\S/g,``)),e.parent=r.proxyOf,e})},n.prepend=function(){var e=[...arguments];e=e.reverse();for(var t=C(e),n;!(n=t()).done;){for(var r=n.value,i=this.normalize(r,this.first,`prepend`).reverse(),a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.unshift(s)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+i.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e=C(this.proxyOf.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`atrule`)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if(t.type===`comment`)return e(t,n)})},n.walkDecls=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`decl`)return t(e,n)}))},n.walkRules=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`rule`)return t(e,n)}))},f(t,[{key:`first`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:`last`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(Ro);Go.registerParse=function(e){zo=e},Go.registerRule=function(e){Bo=e},Go.registerAtRule=function(e){Vo=e},Go.registerRoot=function(e){Ho=e};var Ko=Go;Go.default=Go,Go.rebuild=function(e){e.type===`atrule`?Object.setPrototypeOf(e,Vo.prototype):e.type===`rule`?Object.setPrototypeOf(e,Bo.prototype):e.type===`decl`?Object.setPrototypeOf(e,Io.prototype):e.type===`comment`?Object.setPrototypeOf(e,Lo.prototype):e.type===`root`&&Object.setPrototypeOf(e,Ho.prototype),e[Fo]=!0,e.nodes&&e.nodes.forEach(function(e){Go.rebuild(e)})};var qo=Ko,Jo,Yo,Xo=function(e){h(t,e);function t(t){var n=e.call(this,p({type:`document`},t))||this;return n.nodes||=[],n}var n=t.prototype;return n.toResult=function(e){return e===void 0&&(e={}),new Jo(new Yo,this,e).stringify()},t}(qo);Xo.registerLazyResult=function(e){Jo=e},Xo.registerProcessor=function(e){Yo=e};var Zo=Xo;Xo.default=Xo;var Qo=function(){function e(e,t){if(t===void 0&&(t={}),this.type=`warning`,this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}var t=e.prototype;return t.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}(),$o=Qo;Qo.default=Qo;var es=$o,ts=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new es(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return e.type===`warning`})},f(e,[{key:`content`,get:function(){return this.css}}]),e}(),ns=ts;ts.default=ts;var rs=39,is=34,as=92,os=47,ss=10,cs=32,ls=12,us=9,ds=13,fs=91,ps=93,ms=40,hs=41,gs=123,_s=125,vs=59,ys=42,bs=58,xs=64,Ss=/[\t\n\f\r "#'()/;[\\\]{}]/g,Cs=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,ws=/.[\r\n"'(/\\]/,Ts=/[\da-f]/i,Es=function(e,t){t===void 0&&(t={});var n=e.css.valueOf(),r=t.ignoreErrors,i,a,o,s,c,l,u,d,f,p,m=n.length,h=0,g=[],_=[];function v(){return h}function y(t){throw e.error(`Unclosed `+t,h)}function b(){return _.length===0&&h>=m}function x(e){if(_.length)return _.pop();if(!(h>=m)){var t=e?e.ignoreUnclosed:!1;switch(i=n.charCodeAt(h),i){case ss:case cs:case us:case ds:case ls:a=h;do a+=1,i=n.charCodeAt(a);while(i===cs||i===ss||i===us||i===ds||i===ls);p=[`space`,n.slice(h,a)],h=a-1;break;case fs:case ps:case gs:case _s:case bs:case vs:case hs:var v=String.fromCharCode(i);p=[v,v,h];break;case ms:if(d=g.length?g.pop()[1]:``,f=n.charCodeAt(h+1),d===`url`&&f!==rs&&f!==is&&f!==cs&&f!==ss&&f!==us&&f!==ls&&f!==ds){a=h;do{if(l=!1,a=n.indexOf(`)`,a+1),a===-1){if(r||t){a=h;break}y(`bracket`)}for(u=a;n.charCodeAt(u-1)===as;)--u,l=!l}while(l);p=[`brackets`,n.slice(h,a+1),h,a],h=a}else a=n.indexOf(`)`,h+1),s=n.slice(h,a+1),a===-1||ws.test(s)?p=[`(`,`(`,h]:(p=[`brackets`,s,h,a],h=a);break;case rs:case is:o=i===rs?`'`:`"`,a=h;do{if(l=!1,a=n.indexOf(o,a+1),a===-1){if(r||t){a=h+1;break}y(`string`)}for(u=a;n.charCodeAt(u-1)===as;)--u,l=!l}while(l);p=[`string`,n.slice(h,a+1),h,a],h=a;break;case xs:Ss.lastIndex=h+1,Ss.test(n),a=Ss.lastIndex===0?n.length-1:Ss.lastIndex-2,p=[`at-word`,n.slice(h,a+1),h,a],h=a;break;case as:for(a=h,c=!0;n.charCodeAt(a+1)===as;)a+=1,c=!c;if(i=n.charCodeAt(a+1),c&&i!==os&&i!==cs&&i!==ss&&i!==us&&i!==ds&&i!==ls&&(a+=1,Ts.test(n.charAt(a)))){for(;Ts.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===cs&&(a+=1)}p=[`word`,n.slice(h,a+1),h,a],h=a;break;default:i===os&&n.charCodeAt(h+1)===ys?(a=n.indexOf(`*/`,h+2)+1,a===0&&(r||t?a=n.length:y(`comment`)),p=[`comment`,n.slice(h,a+1),h,a],h=a):(Cs.lastIndex=h+1,Cs.test(n),a=Cs.lastIndex===0?n.length-1:Cs.lastIndex-2,p=[`word`,n.slice(h,a+1),h,a],g.push(p),h=a)}return h++,p}}function S(e){_.push(e)}return{back:S,endOfFile:b,nextToken:x,position:v}},Ds=Ko,Os=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`atrule`,n}var n=t.prototype;return n.append=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.append).call.apply(n,[this].concat(t))},n.prepend=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.prepend).call.apply(n,[this].concat(t))},t}(Ds),ks=Os;Os.default=Os,Ds.registerAtRule(Os);var As=Ko,js,Ms,Ns=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`root`,n.nodes||=[],n}var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if(r===`prepend`)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a=C(i),o;!(o=a()).done;){var s=o.value;s.raws.before=n.raws.before}}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return e===void 0&&(e={}),new js(new Ms,this,e).stringify()},t}(As);Ns.registerLazyResult=function(e){js=e},Ns.registerProcessor=function(e){Ms=e};var Ps=Ns;Ns.default=Ns,As.registerRoot(Ns);var Fs={comma:function(e){return Fs.split(e,[`,`],!0)},space:function(e){return Fs.split(e,[` `,`
`,` `])},split:function(e,t,n){for(var r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1,u=C(e),d;!(d=u()).done;){var f=d.value;l?l=!1:f===`\\`?l=!0:s?f===c&&(s=!1):f===`"`||f===`'`?(s=!0,c=f):f===`(`?o+=1:f===`)`?o>0&&--o:o===0&&t.includes(f)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=f}return(n||i!==``)&&r.push(i.trim()),r}},Is=Fs;Fs.default=Fs;var Ls=Ko,Rs=Is,zs=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`rule`,n.nodes||=[],n}return f(t,[{key:`selectors`,get:function(){return Rs.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}]),t}(Ls),Bs=zs;zs.default=zs,Ls.registerRule(zs);var Vs=qa,Hs=Es,Us=No,Ws=ks,Gs=Ps,Ks=Bs,qs={empty:!0,space:!0};function Js(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var Ys=function(){function e(e){this.input=e,this.root=new Gs,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=new Ws;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,r,i,a=!1,o=!1,s=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?c.push(n===`(`?`)`:`]`):n===`{`&&c.length>0?c.push(`}`):n===c[c.length-1]&&c.pop(),c.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){o=!0;break}if(n===`}`){if(s.length>0){for(i=s.length-1,r=s[i];r&&r[0]===`space`;)r=s[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,`params`,s),a&&(e=s[s.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),o&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r,i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}},t.colon=function(e){for(var t=0,n,r,i,a=C(e.entries()),o;!(o=a()).done;){var s=o.value,c=s[0];if(n=s[1],r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return c}i=n}return!1},t.comment=function(e){var t=new Us;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=Hs(this.input)},t.decl=function(e,t){var n=new Vs;this.init(n,e[0][2]);var r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||Js(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){var i=e[0][0];if(i===`:`||i===`space`||i===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;for(var a;e.length;){if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1]}(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var o=[],s;e.length&&(s=e[0][0],s===`space`||s===`comment`);)o.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()===`!important`){n.important=!0;var l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==` !important`&&(n.raws.important=l);break}if(a[1].toLowerCase()===`important`){for(var u=e.slice(0),d=``,f=c;f>0;f--){var p=u[f][0];if(d.trim().indexOf(`!`)===0&&p!==`space`)break;d=u.pop()[1]+d}d.trim().indexOf(`!`)===0&&(n.important=!0,n.raws.important=d,e=u)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(function(e){return e[0]!==`space`&&e[0]!==`comment`})&&(n.raws.between+=o.map(function(e){return e[1]}).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new Ks;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!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=``,e.type!==`comment`&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o=n.length,s=``,c=!0,l,u,d=0;d<o;d+=1)i=n[d],a=i[0],a===`space`&&d===o-1&&!r?c=!1:a===`comment`?(u=n[d-1]?n[d-1][0]:`empty`,l=n[d+1]?n[d+1][0]:`empty`,!qs[u]&&!qs[l]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){var f=n.reduce(function(e,t){return e+t[1]},``);e.raws[t]={raw:f,value:s}}e[t]=s},t.rule=function(e){e.pop();var t=new Ks;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,n=``;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=``;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n},t.stringFrom=function(e,t){for(var n=``,r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},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}(),Xs=Ko,Zs=Ys,Qs=bo;function $s(e,t){var n=new Zs(new Qs(e,t));try{n.parse()}catch(e){throw e}return n.root}var ec=$s;$s.default=$s,Xs.registerParse($s);var tc=Aa.isClean,nc=Aa.my,rc=jo,ic=La,ac=Ko,oc=Zo,sc=ns,cc=ec,lc=Ps,uc={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},dc={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},fc={Once:!0,postcssPlugin:!0,prepare:!0},pc=0;function mc(e){return(e===void 0?`undefined`:b(e))===`object`&&typeof e.then==`function`}function hc(e){var t=!1,n=uc[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,pc,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,pc,n+`Exit`]:[n,n+`Exit`]}function gc(e){return{eventIndex:0,events:e.type===`document`?[`Document`,pc,`DocumentExit`]:e.type===`root`?[`Root`,pc,`RootExit`]:hc(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function _c(e){return e[tc]=!1,e.nodes&&e.nodes.forEach(function(e){return _c(e)}),e}var vc={},yc=function(){function e(t,n,r){var i=this;this.stringified=!1,this.processed=!1;var a;if((n===void 0?`undefined`:b(n))===`object`&&n!==null&&(n.type===`root`||n.type===`document`))a=_c(n);else if(g(n,e)||g(n,sc))a=_c(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=cc;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{a=o(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[nc]&&ac.rebuild(a)}this.result=new sc(t,a,r),this.helpers=p({},vc,{postcss:vc,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(e===void 0?`undefined`:b(e))===`object`&&e.prepare?p({},e,e.prepare(i.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.runAsync(),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error(`Use process(css).then(cb) to work with async plugins`)},t.handleError=function(e,t){var n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},n=C(this.plugins),r;!(r=n()).done;){var i=r.value;if((i===void 0?`undefined`:b(i))===`object`)for(var a in i){if(!dc[a]&&/^[A-Z]/.test(a))throw Error(`Unknown event `+a+` in `+i.postcssPlugin+`. Try to update PostCSS (`+this.processor.version+` now).`);if(!fc[a]){if(b(i[a])===`object`)for(var o in i[a])o===`*`?t(i,a,i[a][o]):t(i,a+`-`+o.toLowerCase(),i[a][o]);else typeof i[a]==`function`&&t(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return l(function(){var t,n,r,i,a,o,s,c,l,u,d,f;return te(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],r=e.runOnRoot(n),!mc(r))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,r];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];a=e.result.root,p.label=7;case 7:if(a[tc])return[3,14];a[tc]=!0,o=[gc(a)],p.label=8;case 8:if(!(o.length>0))return[3,13];if(s=e.visitTick(o),!mc(s))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),l=o[o.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i,o;return te(this,function(s){switch(s.label){case 0:t=f.value,n=t[0],r=t[1],e.result.lastPlugin=n,s.label=1;case 1:return s.trys.push([1,6,,7]),a.type===`document`?(i=a.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(i)]):[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw o=s.sent(),e.handleError(o);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,ne(u())];case 16:p.sent(),p.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((e===void 0?`undefined`:b(e))===`object`&&e.Once){if(this.result.root.type===`document`){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return mc(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)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=ic;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new rc(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[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=C(this.plugins),t;!(t=e()).done;){var n=t.value;if(mc(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[tc];)r[tc]=!0,this.walkSync(r);if(this.listeners.OnceExit){if(r.type===`document`)for(var i=C(r.nodes),a;!(a=i()).done;){var o=a.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}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 n=C(e),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(mc(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){for(var s=t.iterator,c;c=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!c[tc]){c[tc]=!0,e.push(gc(c));return}t.iterator=0,delete n.indexes[s]}for(var l=t.events;t.eventIndex<l.length;){var u=l[t.eventIndex];if(t.eventIndex+=1,u===pc){n.nodes&&n.nodes.length&&(n[tc]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[tc]=!0;for(var n=C(hc(e)),r;!(r=n()).done;){var i=r.value;if(i===pc)e.nodes&&e.each(function(e){e[tc]||t.walkSync(e)});else{var a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},f(e,[{key:`content`,get:function(){return this.stringify().content}},{key:`css`,get:function(){return this.stringify().css}},{key:`map`,get:function(){return this.stringify().map}},{key:`messages`,get:function(){return this.sync().messages}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return`LazyResult`}}]),e}();yc.registerPostcss=function(e){vc=e};var bc=yc;yc.default=yc,lc.registerLazyResult(yc),oc.registerLazyResult(yc);var xc=jo,Sc=La,Cc=ec,wc=ns,Tc=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var r,i=Sc;this.result=new wc(this._processor,r,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var o=new xc(i,r,this._opts,t);if(o.isMap()){var s=o.generate(),c=s[0],l=s[1];c&&(this.result.css=c),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},f(e,[{key:`content`,get:function(){return this.result.css}},{key:`css`,get:function(){return this.result.css}},{key:`map`,get:function(){return this.result.map}},{key:`messages`,get:function(){return[]}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){if(this._root)return this._root;var e,t=Cc;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}(),Ec=Tc;Tc.default=Tc;var Dc=Ec,Oc=bc,kc=Zo,Ac=Ps,jc=function(){function e(e){e===void 0&&(e=[]),this.version=`8.4.38`,this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],n=C(e),r;!(r=n()).done;){var i=r.value;if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),(i===void 0?`undefined`:b(i))===`object`&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((i===void 0?`undefined`:b(i))===`object`&&i.postcssPlugin)t.push(i);else if(typeof i==`function`)t.push(i);else if(!((i===void 0?`undefined`:b(i))===`object`&&(i.parse||i.stringify)))throw Error(i+` is not a PostCSS plugin`)}return t},t.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Dc(this,e,t):new Oc(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),Mc=jc;jc.default=jc,Ac.registerProcessor(jc),kc.registerProcessor(jc);var Nc=qa,Pc=io,Fc=No,Ic=ks,Lc=bo,Rc=Ps,zc=Bs;function Bc(e,t){if(Array.isArray(e))return e.map(function(e){return Bc(e)});var n=e.inputs,r=v(e,[`inputs`]);if(n){t=[];for(var i=C(n),a;!(a=i()).done;){var o=a.value,s=p({},o,{__proto__:Lc.prototype});s.map&&=p({},s.map,{__proto__:Pc.prototype}),t.push(s)}}if(r.nodes&&=e.nodes.map(function(e){return Bc(e,t)}),r.source){var c=r.source,l=c.inputId;r.source=v(c,[`inputId`]),l!=null&&(r.source.input=t[l])}if(r.type===`root`)return new Rc(r);if(r.type===`decl`)return new Nc(r);if(r.type===`rule`)return new zc(r);if(r.type===`comment`)return new Fc(r);if(r.type===`atrule`)return new Ic(r);throw Error(`Unknown node type: `+e.type)}var Vc=Bc;Bc.default=Bc;var Hc=ka,Uc=qa,Wc=bc,Gc=Ko,Kc=Mc,qc=La,Jc=Vc,Yc=Zo,Xc=$o,Zc=No,Qc=ks,$c=ns,el=bo,tl=ec,nl=Is,rl=Bs,il=Ps,al=Ga;function N(){var e=[...arguments];return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new Kc(e)}N.plugin=function(e,t){var n=!1;function r(){var r=[...arguments];console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));var i=t.apply(void 0,[].concat(r));return i.postcssPlugin=e,i.postcssVersion=new Kc().version,i}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||=r(),i}}),r.process=function(e,t,n){return N([r(n)]).process(e,t)},r},N.stringify=qc,N.parse=tl,N.fromJSON=Jc,N.list=nl,N.comment=function(e){return new Zc(e)},N.atRule=function(e){return new Qc(e)},N.decl=function(e){return new Uc(e)},N.rule=function(e){return new rl(e)},N.root=function(e){return new il(e)},N.document=function(e){return new Yc(e)},N.CssSyntaxError=Hc,N.Declaration=Uc,N.Container=Gc,N.Processor=Kc,N.Document=Yc,N.Comment=Zc,N.Warning=Xc,N.AtRule=Qc,N.Result=$c,N.Input=el,N.Rule=rl,N.Root=il,N.Node=al,Wc.registerPostcss(N);var ol=N;N.default=N;var P=ba(ol);P.stringify,P.fromJSON,P.plugin,P.parse,P.list,P.document,P.comment,P.atRule,P.rule,P.decl,P.root,P.CssSyntaxError,P.Declaration,P.Container,P.Processor,P.Document,P.Comment,P.Warning,P.AtRule,P.Result,P.Input,P.Rule,P.Root,P.Node;var sl=function(){function e(){ya(this,`parentElement`,null),ya(this,`parentNode`,null),ya(this,`ownerDocument`),ya(this,`firstChild`,null),ya(this,`lastChild`,null),ya(this,`previousSibling`,null),ya(this,`nextSibling`,null),ya(this,`ELEMENT_NODE`,1),ya(this,`TEXT_NODE`,3),ya(this,`nodeType`),ya(this,`nodeName`),ya(this,`RRNodeType`)}var t=e.prototype;return t.contains=function(t){if(!g(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.`)},t.insertBefore=function(e,t){throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.`)},t.removeChild=function(e){throw Error(`RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.`)},t.toString=function(){return`RRNode`},f(e,[{key:`childNodes`,get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),cl={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},ll={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},ul={},dl=function(){return!!globalThis.Zone};function fl(e){if(ul[e])return ul[e];var t=globalThis[e],n=t.prototype,r=e in cl?cl[e]:void 0,i=!!(r&&r.every(function(e){return!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`)})),a=e in ll?ll[e]:void 0,o=!!(a&&a.every(function(e){return typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)}));if(i&&o&&!dl())return ul[e]=t.prototype,t.prototype;try{var s=document.createElement(`iframe`);document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[e].prototype;return document.body.removeChild(s),l?ul[e]=l:n}catch{return n}}var pl={};function ml(e,t,n){var r=e+`.`+String(n);if(pl[r])return pl[r].call(t);var i=fl(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?(pl[r]=a,a.call(t)):t[n]}var hl={};function gl(e,t,n){var r=e+`.`+String(n);if(hl[r])return hl[r].bind(t);var i=fl(e)[n];return typeof i==`function`?(hl[r]=i,i.bind(t)):t[n]}function _l(e){return ml(`Node`,e,`childNodes`)}function vl(e){return ml(`Node`,e,`parentNode`)}function yl(e){return ml(`Node`,e,`parentElement`)}function bl(e){return ml(`Node`,e,`textContent`)}function xl(e,t){return gl(`Node`,e,`contains`)(t)}function Sl(e){return gl(`Node`,e,`getRootNode`)()}function Cl(e){return!e||!(`host`in e)?null:ml(`ShadowRoot`,e,`host`)}function wl(e){return e.styleSheets}function Tl(e){return!e||!(`shadowRoot`in e)?null:ml(`Element`,e,`shadowRoot`)}function El(e,t){return ml(`Element`,e,`querySelector`)(t)}function Dl(e,t){return ml(`Element`,e,`querySelectorAll`)(t)}function Ol(){return fl(`MutationObserver`).constructor}function kl(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var F={childNodes:_l,parentNode:vl,parentElement:yl,textContent:bl,contains:xl,getRootNode:Sl,host:Cl,styleSheets:wl,shadowRoot:Tl,querySelector:El,querySelectorAll:Dl,mutationObserver:Ol,patch:kl};function Al(e,t,n){n===void 0&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}var jl=`Please stop import mirror directly. Instead of that,\r
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
or you can use record.mirror to access the mirror instance during recording.`,Ml={map:{},getId:function(){return console.error(jl),-1},getNode:function(){return console.error(jl),null},removeNodeFromMap:function(){console.error(jl)},has:function(){return console.error(jl),!1},reset:function(){console.error(jl)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(Ml=new Proxy(Ml,{get:function(e,t,n){return t===`map`&&console.error(jl),Reflect.get(e,t,n)}}));function Nl(e,t,n){n===void 0&&(n={});var r=null,i=0;return function(){var a=[...arguments],o=Date.now();!i&&n.leading===!1&&(i=o);var s=t-(o-i),c=this;s<=0||s>t?(r&&=(clearTimeout(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=setTimeout(function(){i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function Pl(e,t,n,r,i){i===void 0&&(i=window);var a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout(function(){n.set.call(t,e)},0),a&&a.set&&a.set.call(this,e)}}),function(){return Pl(e,t,a||{},!0)}}var Fl=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Fl=function(){return new Date().getTime()});function Il(e){var t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t.documentElement.scrollLeft||t?.body&&F.parentElement(t.body)?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body&&F.parentElement(t.body)?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function Ll(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Rl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function zl(e){return e?e.nodeType===e.ELEMENT_NODE?e:F.parentElement(e):null}function Bl(e,t,n,r){if(!e)return!1;var i=zl(e);if(!i)return!1;try{if(typeof t==`string`){if(i.classList.contains(t)||r&&i.closest(`.`+t)!==null)return!0}else if(bt(i,t,r))return!0}catch{}return!!(n&&(i.matches(n)||r&&i.closest(n)!==null))}function Vl(e,t){return t.getId(e)!==-1}function Hl(e,t,n){return e.tagName===`TITLE`&&n.headTitleMutations?!0:t.getId(e)===at}function Ul(e,t){if(je(e))return!1;var n=t.getId(e);if(!t.has(n))return!0;var r=F.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:!r||Ul(r,t)}function Wl(e){return!!e.changedTouches}function Gl(e){e===void 0&&(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)}function Kl(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function ql(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function Jl(e){return e?g(e,sl)&&`shadowRoot`in e?!!e.shadowRoot:!!F.shadowRoot(e):!1}var Yl=function(){function e(){w(this,`id`,1),w(this,`styleIDMap`,new WeakMap),w(this,`idStyleMap`,new Map)}var t=e.prototype;return t.getId=function(e){return this.styleIDMap.get(e)??-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){if(this.has(e))return this.getId(e);var n=t===void 0?this.id++:t;return this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return t!==void 0&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function Xl(e){var t=null;return`getRootNode`in e&&F.getRootNode(e)?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&F.host(F.getRootNode(e))&&(t=F.host(F.getRootNode(e))),t}function Zl(e){for(var t=e,n;n=Xl(t);)t=n;return t}function Ql(e){var t=e.ownerDocument;if(!t)return!1;var n=Zl(e);return F.contains(t,n)}function $l(e){var t=e.ownerDocument;return t?F.contains(t,e)||Ql(e):!1}var I=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}(I||{}),L=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}(L||{}),eu=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}(eu||{}),tu=function(e){return e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e}(tu||{}),nu=function(e){return e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e}(nu||{}),ru=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}(ru||{}),iu=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}(iu||{});function au(e){return`__ln`in e}var ou=function(){function e(){w(this,`length`,0),w(this,`head`,null),w(this,`tail`,null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error(`Position outside of list range`);for(var t=this.head,n=0;n<e;n++)t=t?.next||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&au(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&au(e.nextSibling)&&e.nextSibling.__ln.previous){var r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),su=function(e,t){return e+`@`+t},cu=function(){function e(){var e=this;w(this,`frozen`,!1),w(this,`locked`,!1),w(this,`texts`,[]),w(this,`attributes`,[]),w(this,`attributeMap`,new WeakMap),w(this,`removes`,[]),w(this,`mapRemoves`,[]),w(this,`movedMap`,{}),w(this,`addedSet`,new Set),w(this,`movedSet`,new Set),w(this,`droppedSet`,new Set),w(this,`removesSubTreeCache`,new Set),w(this,`mutationCb`),w(this,`blockClass`),w(this,`blockSelector`),w(this,`maskTextClass`),w(this,`maskTextSelector`),w(this,`inlineStylesheet`),w(this,`maskInputOptions`),w(this,`maskTextFn`),w(this,`maskInputFn`),w(this,`keepIframeSrcFn`),w(this,`recordCanvas`),w(this,`inlineImages`),w(this,`slimDOMOptions`),w(this,`dataURLOptions`),w(this,`doc`),w(this,`mirror`),w(this,`iframeManager`),w(this,`stylesheetManager`),w(this,`shadowDomManager`),w(this,`canvasManager`),w(this,`processedNodeManager`),w(this,`unattachedDoc`),w(this,`processMutations`,function(t){t.forEach(e.processMutation),e.emit()}),w(this,`emit`,function(){if(!(e.frozen||e.locked)){for(var t=[],n=new Set,r=new ou,i=function(t){for(var n=t,r=at;r===at;)n&&=n.nextSibling,r=n&&e.mirror.getId(n);return r},a=function(a){var o=F.parentNode(a);if(!(!o||!$l(a))){var s=!1;if(a.nodeType===Node.TEXT_NODE){var c=o.tagName;if(c===`TEXTAREA`)return;c===`STYLE`&&e.addedSet.has(o)&&(s=!0)}var l=je(o)?e.mirror.getId(Xl(a)):e.mirror.getId(o),u=i(a);if(l===-1||u===-1)return r.addNode(a);var d=kt(a,{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){Kl(t,e.mirror)&&e.iframeManager.addIframe(t),ql(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),Jl(a)&&e.shadowDomManager.addShadowRoot(F.shadowRoot(a),e.doc)},onIframeLoad:function(t,n){e.iframeManager.attachIframe(t,n),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,n){e.stylesheetManager.attachLinkElement(t,n)},cssCaptured:s});d&&(t.push({parentId:l,nextId:u,node:d}),n.add(d.id))}};e.mapRemoves.length;){var o=e.mapRemoves.shift();e.cleanupRemovedNode(o),e.mirror.removeNodeFromMap(o)}for(var s=C(e.movedSet),c;!(c=s()).done;){var l=c.value;du(e.removesSubTreeCache,l,e.mirror)&&!e.movedSet.has(F.parentNode(l))||a(l)}for(var u=C(e.addedSet),d;!(d=u()).done;){var f=d.value;!pu(e.droppedSet,f)&&!du(e.removesSubTreeCache,f,e.mirror)||pu(e.movedSet,f)?a(f):e.droppedSet.add(f)}for(var p=null;r.length;){var m=null;if(p){var h=e.mirror.getId(F.parentNode(p.value)),g=i(p.value);h!==-1&&g!==-1&&(m=p)}if(!m)for(var _=r.tail;_;){var v=_;if(_=_.previous,v){var y=e.mirror.getId(F.parentNode(v.value));if(i(v.value)===-1)continue;if(y!==-1){m=v;break}var b=v.value,x=F.parentNode(b);if(x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var S=F.host(x);if(e.mirror.getId(S)!==-1){m=v;break}}}}if(!m){for(;r.head;)r.removeNode(r.head.value);break}p=m.previous,r.removeNode(m.value),a(m.value)}var ee={texts:e.texts.map(function(t){var n=t.node,r=F.parentNode(n);return r&&r.tagName===`TEXTAREA`&&e.genTextAreaValueMutation(r),{id:e.mirror.getId(n),value:t.value}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var n=t.attributes;if(typeof n.style==`string`){var r=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);r.length<n.style.length&&(r+i).split(`var(`).length===n.style.split(`var(`).length&&(n.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:n}}).filter(function(e){return!n.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};!ee.texts.length&&!ee.attributes.length&&!ee.removes.length&&!ee.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(ee))}}),w(this,`genTextAreaValueMutation`,function(t){var n=e.attributeMap.get(t);n||(n={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(n),e.attributeMap.set(t,n));var r=Array.from(F.childNodes(t),function(e){return F.textContent(e)||``}).join(``);n.attributes.value=He({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:Ke(t),value:r,maskInputFn:e.maskInputFn})}),w(this,`processMutation`,function(t){if(!Hl(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case`characterData`:var n=F.textContent(t.target);!Bl(t.target,e.blockClass,e.blockSelector,!1)&&n!==t.oldValue&&e.texts.push({value:xt(t.target,e.maskTextClass,e.maskTextSelector,!0)&&n?e.maskTextFn?e.maskTextFn(n,zl(t.target)):n.replace(/[\S]/g,`*`):n,node:t.target});break;case`attributes`:var r=t.target,i=t.attributeName,a=t.target.getAttribute(i);if(i===`value`){var o=Ke(r);a=He({element:r,maskInputOptions:e.maskInputOptions,tagName:r.tagName,type:o,value:a,maskInputFn:e.maskInputFn})}if(Bl(t.target,e.blockClass,e.blockSelector,!1)||a===t.oldValue)return;var s=e.attributeMap.get(t.target);if(r.tagName===`IFRAME`&&i===`src`&&!e.keepIframeSrcFn(a)){if(!r.contentDocument)i=`rr_src`;else return}if(s||(s={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(s),e.attributeMap.set(t.target,s)),i===`type`&&r.tagName===`INPUT`&&(t.oldValue||``).toLowerCase()===`password`&&r.setAttribute(`data-rr-is-password`,`true`),!vt(r.tagName,i)){if(s.attributes[i]=_t(e.doc,Ue(r.tagName),Ue(i),a),i===`style`){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch{e.unattachedDoc=e.doc}var c=e.unattachedDoc.createElement(`span`);t.oldValue&&c.setAttribute(`style`,t.oldValue);for(var l=C(Array.from(r.style)),u;!(u=l()).done;){var d=u.value,f=r.style.getPropertyValue(d),p=r.style.getPropertyPriority(d);f!==c.style.getPropertyValue(d)||p!==c.style.getPropertyPriority(d)?p===``?s.styleDiff[d]=f:s.styleDiff[d]=[f,p]:s._unchangedStyles[d]=[f,p]}for(var m=C(Array.from(c.style)),h;!(h=m()).done;){var g=h.value;r.style.getPropertyValue(g)===``&&(s.styleDiff[g]=!1)}}else i===`open`&&r.tagName===`DIALOG`&&(r.matches(`dialog:modal`)?s.attributes.rr_open_mode=`modal`:s.attributes.rr_open_mode=`non-modal`)}break;case`childList`:if(Bl(t.target,e.blockClass,e.blockSelector,!0))return;if(t.target.tagName===`TEXTAREA`){e.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(function(n){return e.genAdds(n,t.target)}),t.removedNodes.forEach(function(n){var r=e.mirror.getId(n),i=je(t.target)?e.mirror.getId(F.host(t.target)):e.mirror.getId(t.target);Bl(t.target,e.blockClass,e.blockSelector,!1)||Hl(n,e.mirror,e.slimDOMOptions)||!Vl(n,e.mirror)||(e.addedSet.has(n)?(lu(e.addedSet,n),e.droppedSet.add(n)):e.addedSet.has(t.target)&&r===-1||Ul(t.target,e.mirror)||(e.movedSet.has(n)&&e.movedMap[su(r,i)]?lu(e.movedSet,n):(e.removes.push({parentId:i,id:r,isShadow:je(t.target)&&Me(t.target)?!0:void 0}),uu(n,e.removesSubTreeCache))),e.mapRemoves.push(n))})}}),w(this,`genAdds`,function(t,n){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(Hl(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var r=null;n&&e.mirror.hasNode(n)&&(r=e.mirror.getId(n)),r&&r!==-1&&(e.movedMap[su(e.mirror.getId(t),r)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);Bl(t,e.blockClass,e.blockSelector,!1)||(F.childNodes(t).forEach(function(t){return e.genAdds(t)}),Jl(t)&&F.childNodes(F.shadowRoot(t)).forEach(function(n){e.processedNodeManager.add(n,e),e.genAdds(n,t)}))}}),w(this,`cleanupRemovedNode`,function(t){if(t.nodeName===`IFRAME`)try{e.iframeManager.removeIframe(t)}catch{}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch{}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;[`mutationCb`,`blockClass`,`blockSelector`,`maskTextClass`,`maskTextSelector`,`inlineStylesheet`,`maskInputOptions`,`maskTextFn`,`maskInputFn`,`keepIframeSrcFn`,`recordCanvas`,`inlineImages`,`slimDOMOptions`,`dataURLOptions`,`doc`,`mirror`,`iframeManager`,`stylesheetManager`,`shadowDomManager`,`canvasManager`,`processedNodeManager`].forEach(function(n){t[n]=e[n]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function lu(e,t){e.delete(t),F.childNodes(t).forEach(function(t){return lu(e,t)})}function uu(e,t){for(var n=[e];n.length;){var r=n.pop();t.has(r)||(t.add(r),F.childNodes(r).forEach(function(e){return n.push(e)}))}}function du(e,t,n){return e.size!==0&&fu(e,t)}function fu(e,t,n){var r=F.parentNode(t);return r?e.has(r):!1}function pu(e,t){return e.size!==0&&mu(e,t)}function mu(e,t){var n=F.parentNode(t);return n?e.has(n)?!0:mu(e,n):!1}var hu;function gu(e){hu=e}function _u(){hu=void 0}var R=function(e){return hu?function(){var t=[...arguments];try{return e.apply(void 0,[].concat(t))}catch(e){if(hu&&hu(e)===!0)return;throw e}}:e},vu=[];function yu(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{}return e&&e.target}function bu(e,t){var n=new cu;vu.push(n),n.init(e);var r=new(Ol())(R(n.processMutations.bind(n)));return r.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function xu(e){for(var t=vu.length-1;t>=0;t--)vu[t].getDoc()===e&&vu.splice(t,1)}function Su(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,i=e.mirror;if(n.mousemove===!1)return function(){};var a=typeof n.mousemove==`number`?n.mousemove:50,o=typeof n.mousemoveCallback==`number`?n.mousemoveCallback:500,s=[],c,l=Nl(R(function(e){var n=Date.now()-c;t(s.map(function(e){return e.timeOffset-=n,e}),e),s=[],c=null}),o),u=R(Nl(R(function(e){var t=yu(e),n=Wl(e)?e.changedTouches[0]:e,r=n.clientX,a=n.clientY;c||=Fl(),s.push({x:r,y:a,id:i.getId(t),timeOffset:Fl()-c}),l(typeof DragEvent<`u`&&g(e,DragEvent)?L.Drag:g(e,MouseEvent)?L.MouseMove:L.TouchMove)}),a,{trailing:!1})),d=[Al(`mousemove`,u,r),Al(`touchmove`,u,r),Al(`drag`,u,r)];return R(function(){d.forEach(function(e){return e()})})}function Cu(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.sampling;if(o.mouseInteraction===!1)return function(){};var s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=function(e){return function(n){var o=yu(n);if(!Bl(o,i,a,!0)){var s=null,c=e;if(`pointerType`in n){switch(n.pointerType){case`mouse`:s=tu.Mouse;break;case`touch`:s=tu.Touch;break;case`pen`:s=tu.Pen}s===tu.Touch?eu[e]===eu.MouseDown?c=`TouchStart`:eu[e]===eu.MouseUp&&(c=`TouchEnd`):tu.Pen}else Wl(n)&&(s=tu.Touch);s===null?eu[e]===eu.Click&&(s=l,l=null):(l=s,(c.startsWith(`Touch`)&&s===tu.Touch||c.startsWith(`Mouse`)&&s===tu.Mouse)&&(s=null));var u=Wl(n)?n.changedTouches[0]:n;if(u){var d=r.getId(o),f=u.clientX,m=u.clientY;R(t)(p({type:eu[c],id:d,x:f,y:m},s!==null&&{pointerType:s}))}}}};return Object.keys(eu).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1}).forEach(function(e){var t=Ue(e),r=u(e);if(window.PointerEvent)switch(eu[e]){case eu.MouseDown:case eu.MouseUp:t=t.replace(`mouse`,`pointer`);break;case eu.TouchStart:case eu.TouchEnd:return}c.push(Al(t,r,n))}),R(function(){c.forEach(function(e){return e()})})}function wu(e){var t=e.scrollCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.sampling;return Al(`scroll`,R(Nl(R(function(e){var o=yu(e);if(!(!o||Bl(o,i,a,!0))){var s=r.getId(o);if(o===n&&n.defaultView){var c=Il(n.defaultView);t({id:s,x:c.left,y:c.top})}else t({id:s,x:o.scrollLeft,y:o.scrollTop})}}),o.scroll||100)),n)}function Tu(e,t){var n=e.viewportResizeCb,r=t.win,i=-1,a=-1;return Al(`resize`,R(Nl(R(function(){var e=Ll(),t=Rl();(i!==e||a!==t)&&(n({width:Number(t),height:Number(e)}),i=e,a=t)}),200)),r)}var Eu=[`INPUT`,`TEXTAREA`,`SELECT`],Du=new WeakMap;function Ou(e){var t=e.inputCb,n=e.doc,r=e.mirror,i=e.blockClass,a=e.blockSelector,o=e.ignoreClass,s=e.ignoreSelector,c=e.maskInputOptions,l=e.maskInputFn,u=e.sampling,d=e.userTriggeredOnInput;function f(e){var t=yu(e),r=e.isTrusted,u=t&&t.tagName;if(t&&u===`OPTION`&&(t=F.parentElement(t)),!(!t||!u||Eu.indexOf(u)<0||Bl(t,i,a,!0))&&!(t.classList.contains(o)||s&&t.matches(s))){var f=t.value,p=!1,h=Ke(t)||``;h===`radio`||h===`checkbox`?p=t.checked:(c[u.toLowerCase()]||c[h])&&(f=He({element:t,maskInputOptions:c,tagName:u,type:h,value:f,maskInputFn:l})),m(t,d?{text:f,isChecked:p,userTriggered:r}:{text:f,isChecked:p});var g=t.name;h===`radio`&&g&&p&&n.querySelectorAll(`input[type="radio"][name="`+g+`"]`).forEach(function(e){if(e!==t){var n=e.value;m(e,d?{text:n,isChecked:!p,userTriggered:!1}:{text:n,isChecked:!p})}})}}function m(e,n){var i=Du.get(e);if(!i||i.text!==n.text||i.isChecked!==n.isChecked){Du.set(e,n);var a=r.getId(e);R(t)(p({},n,{id:a}))}}var h=(u.input===`last`?[`change`]:[`input`,`change`]).map(function(e){return Al(e,R(f),n)}),g=n.defaultView;if(!g)return function(){h.forEach(function(e){return e()})};var _=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,`value`),v=[[g.HTMLInputElement.prototype,`value`],[g.HTMLInputElement.prototype,`checked`],[g.HTMLSelectElement.prototype,`value`],[g.HTMLTextAreaElement.prototype,`value`],[g.HTMLSelectElement.prototype,`selectedIndex`],[g.HTMLOptionElement.prototype,`selected`]];if(_&&_.set){var y;(y=h).push.apply(y,[].concat(v.map(function(e){return Pl(e[0],e[1],{set:function(){R(f)({target:this,isTrusted:!1})}},!1,g)})))}return R(function(){h.forEach(function(e){return e()})})}function ku(e){var t=[];function n(e,t){if(Bu(`CSSGroupingRule`)&&g(e.parentRule,CSSGroupingRule)||Bu(`CSSMediaRule`)&&g(e.parentRule,CSSMediaRule)||Bu(`CSSSupportsRule`)&&g(e.parentRule,CSSSupportsRule)||Bu(`CSSConditionRule`)&&g(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){var r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}return n(e,t)}function Au(e,t,n){var r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function ju(e,t){var n=e.styleSheetRuleCb,r=e.mirror,i=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var o=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:R(function(e,t,a){var o=a[0],s=a[1],c=Au(t,r,i.styleMirror),l=c.id,u=c.styleId;return(l&&l!==-1||u&&u!==-1)&&n({id:l,styleId:u,adds:[{rule:o,index:s}]}),e.apply(t,a)})}),a.CSSStyleSheet.prototype.addRule=function(e,t,n){n===void 0&&(n=this.cssRules.length);var r=e+` { `+t+` }`;return a.CSSStyleSheet.prototype.insertRule.apply(this,[r,n])};var s=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:R(function(e,t,a){var o=a[0],s=Au(t,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,removes:[{index:o}]}),e.apply(t,a)})}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};var c;a.CSSStyleSheet.prototype.replace&&(c=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(c,{apply:R(function(e,t,a){var o=a[0],s=Au(t,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,replace:o}),e.apply(t,a)})}));var l;a.CSSStyleSheet.prototype.replaceSync&&(l=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:R(function(e,t,a){var o=a[0],s=Au(t,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,replaceSync:o}),e.apply(t,a)})}));var u={};Vu(`CSSGroupingRule`)?u.CSSGroupingRule=a.CSSGroupingRule:(Vu(`CSSMediaRule`)&&(u.CSSMediaRule=a.CSSMediaRule),Vu(`CSSConditionRule`)&&(u.CSSConditionRule=a.CSSConditionRule),Vu(`CSSSupportsRule`)&&(u.CSSSupportsRule=a.CSSSupportsRule));var d={};return Object.entries(u).forEach(function(e){var t=e[0],a=e[1];d[t]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(d[t].insertRule,{apply:R(function(e,t,a){var o=a[0],s=a[1],c=Au(t.parentStyleSheet,r,i.styleMirror),l=c.id,u=c.styleId;return(l&&l!==-1||u&&u!==-1)&&n({id:l,styleId:u,adds:[{rule:o,index:[].concat(ku(t),[s||0])}]}),e.apply(t,a)})}),a.prototype.deleteRule=new Proxy(d[t].deleteRule,{apply:R(function(e,t,a){var o=a[0],s=Au(t.parentStyleSheet,r,i.styleMirror),c=s.id,l=s.styleId;return(c&&c!==-1||l&&l!==-1)&&n({id:c,styleId:l,removes:[{index:[].concat(ku(t),[o])}]}),e.apply(t,a)})})}),R(function(){a.CSSStyleSheet.prototype.insertRule=o,a.CSSStyleSheet.prototype.deleteRule=s,c&&(a.CSSStyleSheet.prototype.replace=c),l&&(a.CSSStyleSheet.prototype.replaceSync=l),Object.entries(u).forEach(function(e){var t=e[0],n=e[1];n.prototype.insertRule=d[t].insertRule,n.prototype.deleteRule=d[t].deleteRule})})}function Mu(e,t){var n=e.mirror,r=e.stylesheetManager,i=null;i=t.nodeName===`#document`?n.getId(t):n.getId(F.host(t));var a=t.nodeName===`#document`?t.defaultView?.Document:t.ownerDocument?.defaultView?.ShadowRoot,o=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,`adoptedStyleSheets`):void 0;return i===null||i===-1||!a||!o?function(){}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:function(){return o.get?.call(this)},set:function(e){var t=o.set?.call(this,e);if(i!==null&&i!==-1)try{r.adoptStyleSheets(e,i)}catch{}return t}}),R(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function Nu(e,t){var n=e.styleDeclarationCb,r=e.mirror,i=e.ignoreCSSAttributes,a=e.stylesheetManager,o=t.win,s=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:R(function(e,t,o){var c=o[0],l=o[1],u=o[2];if(i.has(c))return s.apply(t,[c,l,u]);var d=Au(t.parentRule?.parentStyleSheet,r,a.styleMirror),f=d.id,p=d.styleId;return(f&&f!==-1||p&&p!==-1)&&n({id:f,styleId:p,set:{property:c,value:l,priority:u},index:ku(t.parentRule)}),e.apply(t,o)})});var c=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(c,{apply:R(function(e,t,o){var s=o[0];if(i.has(s))return c.apply(t,[s]);var l=Au(t.parentRule?.parentStyleSheet,r,a.styleMirror),u=l.id,d=l.styleId;return(u&&u!==-1||d&&d!==-1)&&n({id:u,styleId:d,remove:{property:s},index:ku(t.parentRule)}),e.apply(t,o)})}),R(function(){o.CSSStyleDeclaration.prototype.setProperty=s,o.CSSStyleDeclaration.prototype.removeProperty=c})}function Pu(e){var t=e.mediaInteractionCb,n=e.blockClass,r=e.blockSelector,i=e.mirror,a=e.sampling,o=e.doc,s=R(function(e){return Nl(R(function(a){var o=yu(a);if(!(!o||Bl(o,n,r,!0))){var s=o.currentTime,c=o.volume,l=o.muted,u=o.playbackRate,d=o.loop;t({type:e,id:i.getId(o),currentTime:s,volume:c,muted:l,playbackRate:u,loop:d})}}),a.media||500)}),c=[Al(`play`,s(ru.Play),o),Al(`pause`,s(ru.Pause),o),Al(`seeked`,s(ru.Seeked),o),Al(`volumechange`,s(ru.VolumeChange),o),Al(`ratechange`,s(ru.RateChange),o)];return R(function(){c.forEach(function(e){return e()})})}function Fu(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var i=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,n){var r=new o(e,t,n);return a.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};var s=kl(n.fonts,`add`,function(e){return function(n){return setTimeout(R(function(){var e=a.get(n);e&&(t(e),a.delete(n))}),0),e.apply(this,[n])}});return i.push(function(){r.FontFace=o}),i.push(s),R(function(){i.forEach(function(e){return e()})})}function Iu(e){var t=e.doc,n=e.mirror,r=e.blockClass,i=e.blockSelector,a=e.selectionCb,o=!0,s=R(function(){var e=t.getSelection();if(!(!e||o&&e?.isCollapsed)){o=e.isCollapsed||!1;for(var s=[],c=e.rangeCount||0,l=0;l<c;l++){var u=e.getRangeAt(l),d=u.startContainer,f=u.startOffset,p=u.endContainer,m=u.endOffset;Bl(d,r,i,!0)||Bl(p,r,i,!0)||s.push({start:n.getId(d),startOffset:f,end:n.getId(p),endOffset:m})}a({ranges:s})}});return s(),Al(`selectionchange`,s)}function Lu(e){var t=e.doc,n=e.customElementCb,r=t.defaultView;return!r||!r.customElements?function(){}:kl(r.customElements,`define`,function(e){return function(t,r,i){try{n({define:{name:t}})}catch{console.warn(`Custom element callback failed for `+t)}return e.apply(this,[t,r,i])}})}function Ru(e,t){var n=e.mutationCb,r=e.mousemoveCb,i=e.mouseInteractionCb,a=e.scrollCb,o=e.viewportResizeCb,s=e.inputCb,c=e.mediaInteractionCb,l=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,f=e.fontCb,p=e.selectionCb,m=e.customElementCb;e.mutationCb=function(){var e=[...arguments];if(t.mutation){var r;(r=t).mutation.apply(r,[].concat(e))}n.apply(void 0,[].concat(e))},e.mousemoveCb=function(){var e=[...arguments];if(t.mousemove){var n;(n=t).mousemove.apply(n,[].concat(e))}r.apply(void 0,[].concat(e))},e.mouseInteractionCb=function(){var e=[...arguments];if(t.mouseInteraction){var n;(n=t).mouseInteraction.apply(n,[].concat(e))}i.apply(void 0,[].concat(e))},e.scrollCb=function(){var e=[...arguments];if(t.scroll){var n;(n=t).scroll.apply(n,[].concat(e))}a.apply(void 0,[].concat(e))},e.viewportResizeCb=function(){var e=[...arguments];if(t.viewportResize){var n;(n=t).viewportResize.apply(n,[].concat(e))}o.apply(void 0,[].concat(e))},e.inputCb=function(){var e=[...arguments];if(t.input){var n;(n=t).input.apply(n,[].concat(e))}s.apply(void 0,[].concat(e))},e.mediaInteractionCb=function(){var e=[...arguments];if(t.mediaInteaction){var n;(n=t).mediaInteaction.apply(n,[].concat(e))}c.apply(void 0,[].concat(e))},e.styleSheetRuleCb=function(){var e=[...arguments];if(t.styleSheetRule){var n;(n=t).styleSheetRule.apply(n,[].concat(e))}l.apply(void 0,[].concat(e))},e.styleDeclarationCb=function(){var e=[...arguments];if(t.styleDeclaration){var n;(n=t).styleDeclaration.apply(n,[].concat(e))}u.apply(void 0,[].concat(e))},e.canvasMutationCb=function(){var e=[...arguments];if(t.canvasMutation){var n;(n=t).canvasMutation.apply(n,[].concat(e))}d.apply(void 0,[].concat(e))},e.fontCb=function(){var e=[...arguments];if(t.font){var n;(n=t).font.apply(n,[].concat(e))}f.apply(void 0,[].concat(e))},e.selectionCb=function(){var e=[...arguments];if(t.selection){var n;(n=t).selection.apply(n,[].concat(e))}p.apply(void 0,[].concat(e))},e.customElementCb=function(){var e=[...arguments];if(t.customElement){var n;(n=t).customElement.apply(n,[].concat(e))}m.apply(void 0,[].concat(e))}}function zu(e,t){t===void 0&&(t={});var n=e.doc.defaultView;if(!n)return function(){};Ru(e,t);var r;e.recordDOM&&(r=bu(e,e.doc));var i=Su(e),a=Cu(e),o=wu(e),s=Tu(e,{win:n}),c=Ou(e),l=Pu(e),u=function(){},d=function(){},f=function(){},p=function(){};e.recordDOM&&(u=ju(e,{win:n}),d=Mu(e,e.doc),f=Nu(e,{win:n}),e.collectFonts&&(p=Fu(e)));for(var m=Iu(e),h=Lu(e),g=[],_=C(e.plugins),v;!(v=_()).done;){var y=v.value;g.push(y.observer(y.callback,n,y.options))}return R(function(){vu.forEach(function(e){return e.reset()}),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(function(e){return e()})})}function Bu(e){return window[e]!==void 0}function Vu(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}for(var Hu=function(){function e(e){w(this,`iframeIdToRemoteIdMap`,new WeakMap),w(this,`iframeRemoteIdToIdMap`,new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,n,r){var i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o},t.getIds=function(e,t){var n=this,r=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getId(e,t,r,i)})},t.getRemoteId=function(e,t,n){var r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t},t.getRemoteIds=function(e,t){var n=this,r=this.getRemoteIdToIdMap(e);return t.map(function(t){return n.getRemoteId(e,t,r)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),Uu=function(){function e(e){w(this,`iframes`,new WeakMap),w(this,`crossOriginIframeMap`,new WeakMap),w(this,`crossOriginIframeMirror`,new Hu(ot)),w(this,`crossOriginIframeStyleMirror`),w(this,`crossOriginIframeRootIdMap`,new WeakMap),w(this,`iframeContentDocumentMap`,new WeakMap),w(this,`iframeObserverCleanupMap`,new WeakMap),w(this,`mirror`),w(this,`mutationCb`),w(this,`wrappedEmit`),w(this,`loadListener`),w(this,`stylesheetManager`),w(this,`recordCrossOriginIframes`),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Hu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var n=this.iframeObserverCleanupMap.get(e);if(n){try{n()}catch{}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener(`message`,this.handleMessage.bind(this))),(r=this.loadListener)==null||r.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(t.data.type===`rrweb`&&t.origin===t.data.origin&&e.source){var n=this.crossOriginIframeMap.get(e.source);if(n){var r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var n=this,r;switch(t.type){case I.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:I.IncrementalSnapshot,data:{source:L.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case I.Meta:case I.Load:case I.DomContentLoaded:return!1;case I.Plugin:return t;case I.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case I.IncrementalSnapshot:switch(t.data.source){case L.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 L.Drag:case L.TouchMove:case L.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,[`id`])}),t;case L.ViewportResize:return!1;case L.MediaInteraction:case L.MouseInteraction:case L.Scroll:case L.CanvasMutation:case L.Input:return this.replaceIds(t.data,e,[`id`]),t;case L.StyleSheetRule:case L.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case L.Font:return t;case L.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,[`start`,`end`])}),t;case L.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),(r=t.data.styles)==null||r.forEach(function(t){n.replaceStyleIds(t,e,[`styleId`])}),t}}return!1},t.replace=function(e,t,n,r){for(var i=C(r),a;!(a=i()).done;){var o=a.value;!Array.isArray(t[o])&&typeof t[o]!=`number`||(t[o]=Array.isArray(t[o])?e.getIds(n,t[o]):e.getId(n,t[o]))}return t},t.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},t.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},t.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEach(function(e){n.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var n=this;e.type!==iu.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(function(e){n.patchRootIdOnNode(e,t)})},e}(),Wu=function(){function e(e){w(this,`shadowDoms`,new WeakSet),w(this,`mutationCb`),w(this,`scrollCb`),w(this,`bypassOptions`),w(this,`mirror`),w(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 n=this;if(Me(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var r=bu(p({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return r.disconnect()}),this.restoreHandlers.push(wu(p({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(F.host(e))),n.restoreHandlers.push(Mu({mirror:n.mirror,stylesheetManager:n.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 n=this;this.restoreHandlers.push(kl(e.prototype,`attachShadow`,function(e){return function(r){var i=e.call(this,r),a=F.shadowRoot(this);return a&&$l(this)&&n.addShadowRoot(a,t),i}}))},t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Gu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Ku=typeof Uint8Array>`u`?[]:new Uint8Array(256),qu=0;qu<Gu.length;qu++)Ku[Gu.charCodeAt(qu)]=qu;var Ju=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=Gu[t[n]>>2],i+=Gu[(t[n]&3)<<4|t[n+1]>>4],i+=Gu[(t[n+1]&15)<<2|t[n+2]>>6],i+=Gu[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},Yu=new Map;function Xu(e,t){var n=Yu.get(e);return n||(n=new Map,Yu.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var Zu=function(e,t,n){if(!(!e||!(ed(e,t)||(e===void 0?`undefined`:b(e))===`object`))){var r=e.constructor.name,i=Xu(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a}};function Qu(e,t,n){return g(e,Array)?e.map(function(e){return Qu(e,t,n)}):e===null?e:g(e,Float32Array)||g(e,Float64Array)||g(e,Int32Array)||g(e,Uint32Array)||g(e,Uint8Array)||g(e,Uint16Array)||g(e,Int16Array)||g(e,Int8Array)||g(e,Uint8ClampedArray)?{rr_type:e.constructor.name,args:[Object.values(e)]}:g(e,ArrayBuffer)?{rr_type:e.constructor.name,base64:Ju(e)}:g(e,DataView)?{rr_type:e.constructor.name,args:[Qu(e.buffer,t,n),e.byteOffset,e.byteLength]}:g(e,HTMLImageElement)?{rr_type:e.constructor.name,src:e.src}:g(e,HTMLCanvasElement)?{rr_type:`HTMLImageElement`,src:e.toDataURL()}:g(e,ImageData)?{rr_type:e.constructor.name,args:[Qu(e.data,t,n),e.width,e.height]}:ed(e,t)||(e===void 0?`undefined`:b(e))===`object`?{rr_type:e.constructor.name,index:Zu(e,t,n)}:e}var $u=function(e,t,n){return e.map(function(e){return Qu(e,t,n)})},ed=function(e,t){return!![`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`,`WebGLVertexArrayObjectOES`].filter(function(e){return typeof t[e]==`function`}).find(function(n){return g(e,t[n])})};function td(e,t,n,r){for(var i=function(){var i=s.value;try{if(typeof t.CanvasRenderingContext2D.prototype[i]!=`function`)return`continue`;var o=kl(t.CanvasRenderingContext2D.prototype,i,function(a){return function(){var o=this,s=[...arguments];return Bl(this.canvas,n,r,!0)||setTimeout(function(){var n=$u(s,t,o);e(o.canvas,{type:nu[`2D`],property:i,args:n})},0),a.apply(this,s)}});a.push(o)}catch{var c=Pl(t.CanvasRenderingContext2D.prototype,i,{set:function(t){e(this.canvas,{type:nu[`2D`],property:i,args:[t],setter:!0})}});a.push(c)}},a=[],o=C(Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype)),s;!(s=o()).done;)i();return function(){a.forEach(function(e){return e()})}}function nd(e){return e===`experimental-webgl`?`webgl`:e}function rd(e,t,n,r){var i=[];try{var a=kl(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(i){var a=[...arguments].slice(1);if(!Bl(this,t,n,!0)){var o=nd(i);if(`__context`in this||(this.__context=o),r&&[`webgl`,`webgl2`].includes(o)){if(a[0]&&b(a[0])===`object`){var s=a[0];s.preserveDrawingBuffer||=!0}else a.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[i].concat(a))}});i.push(a)}catch{console.error(`failed to patch HTMLCanvasElement.prototype.getContext`)}return function(){i.forEach(function(e){return e()})}}function id(e,t,n,r,i,a){for(var o=function(){var o=l.value;if([`isContextLost`,`canvas`,`drawingBufferWidth`,`drawingBufferHeight`].includes(o))return`continue`;try{if(typeof e[o]!=`function`)return`continue`;var c=kl(e,o,function(e){return function(){var s=[...arguments],c=e.apply(this,s);if(Zu(c,a,this),`tagName`in this.canvas&&!Bl(this.canvas,r,i,!0)){var l={type:t,property:o,args:$u(s,a,this)};n(this.canvas,l)}return c}});s.push(c)}catch{var u=Pl(e,o,{set:function(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});s.push(u)}},s=[],c=C(Object.getOwnPropertyNames(e)),l;!(l=c()).done;)o();return s}function ad(e,t,n,r){var i,a=[];if((i=a).push.apply(i,[].concat(id(t.WebGLRenderingContext.prototype,nu.WebGL,e,n,r,t))),t.WebGL2RenderingContext!==void 0){var o;(o=a).push.apply(o,[].concat(id(t.WebGL2RenderingContext.prototype,nu.WebGL2,e,n,r,t)))}return function(){a.forEach(function(e){return e()})}}var od=`KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=`,sd=typeof window<`u`&&window.Blob&&new Blob([function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})}(od)],{type:`text/javascript;charset=utf-8`});function cd(e){var t;try{if(t=sd&&(window.URL||window.webkitURL).createObjectURL(sd),!t)throw``;var n=new Worker(t,{name:e?.name});return n.addEventListener(`error`,function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;base64,`+od,{name:e?.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var ld=function(){function e(e){var t=this;w(this,`pendingCanvasMutations`,new Map),w(this,`rafStamps`,{latestId:0,invokeId:null}),w(this,`mirror`),w(this,`mutationCb`),w(this,`resetObservers`),w(this,`frozen`,!1),w(this,`locked`,!1),w(this,`processMutation`,function(e,n){(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(n)});var n=e.sampling,r=n===void 0?`all`:n,i=e.win,a=e.blockClass,o=e.blockSelector,s=e.recordCanvas,c=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,s&&r===`all`&&this.initCanvasMutationObserver(i,a,o),s&&typeof r==`number`&&this.initCanvasFPSObserver(r,i,a,o,{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,n,r,i){var a=this,o=rd(t,n,r,!0),s=new Map,c=new cd;c.onmessage=function(e){var t=e.data.id;if(s.set(t,!1),`base64`in e.data){var n=e.data,r=n.base64,i=n.type,o=n.width,c=n.height;a.mutationCb({id:t,type:nu[`2D`],commands:[{property:`clearRect`,args:[0,0,o,c]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:r}],type:i}]},0,0]}]})}};var u=1e3/e,d=0,f,p=function(){var e=[];return t.document.querySelectorAll(`canvas`).forEach(function(t){Bl(t,n,r,!0)||e.push(t)}),e},m=function(e){if(d&&e-d<u){f=requestAnimationFrame(m);return}d=e;var t=a;p().forEach(l(function(e){var n,r,a;return te(this,function(o){switch(o.label){case 0:return n=t.mirror.getId(e),s.get(n)||e.width===0||e.height===0?[2]:(s.set(n,!0),[`webgl`,`webgl2`].includes(e.__context)&&(r=e.getContext(e.__context),r?.getContextAttributes()?.preserveDrawingBuffer===!1&&r.clear(r.COLOR_BUFFER_BIT)),[4,createImageBitmap(e)]);case 1:return a=o.sent(),c.postMessage({id:n,bitmap:a,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[a]),[2]}})})),f=requestAnimationFrame(m)};f=requestAnimationFrame(m),this.resetObservers=function(){o(),cancelAnimationFrame(f)}},t.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=rd(e,t,n,!1),i=td(this.processMutation.bind(this),e,t,n),a=ad(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){r(),i(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var r=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(!(!n||t===-1)){var r=n.map(function(e){return e.type,v(e,[`type`])}),i=n[0].type;this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}}},e}(),ud=function(){function e(e){w(this,`trackedLinkElements`,new WeakSet),w(this,`mutationCb`),w(this,`adoptedStyleSheetCb`),w(this,`styleMirror`,new Yl),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 n,r=function(){var e=s.value,t=void 0;n.styleMirror.has(e)?t=n.styleMirror.getId(e):(t=n.styleMirror.add(e),a.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,n){return{rule:Ie(t,e.href),index:n}})})),i.styleIds.push(t)};if(e.length!==0){for(var i={id:t,styleIds:[]},a=[],o=C(e),s;!(s=o()).done;)n=this,r();a.length>0&&(i.styles=a),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var n=e;if(n.adoptedStyleSheets)for(var r=C(n.adoptedStyleSheets),i;!(i=r()).done;){var a=i.value;this.styleMirror.remove(a)}}if(e.nodeName===`STYLE`){var o=e;o.sheet&&this.styleMirror.remove(o.sheet)}if(e.nodeName===`LINK`&&e.rel===`stylesheet`){var s=e;s.sheet&&this.styleMirror.remove(s.sheet)}e.childNodes&&e.childNodes.forEach(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch{}},t.trackStylesheetInLinkElement=function(e){},e}(),dd=function(){function e(){w(this,`nodeMap`,new WeakMap),w(this,`active`,!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(e){return e!==t})},t.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}();function fd(e){try{var t=new URL(e).origin;return t===`null`?null:t}catch{return null}}function pd(e){if(!Array.isArray(e)||e.length===0)throw Error(`[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.`);for(var t=new Set,n=0;n<e.length;n++){var r=e[n];if(typeof r!=`string`)throw Error(`[rrweb] allowedIframeOrigins[`+n+`] must be a string, got `+(r===void 0?`undefined`:b(r))+`.`);var i=fd(r);i&&t.add(i)}return Object.freeze(t)}var z,md,hd,gd=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var _d=document.createElement(`iframe`);document.body.appendChild(_d),Array.from=_d.contentWindow?.Array.from||Array.from,document.body.removeChild(_d)}}catch(e){console.debug(`Unable to override Array.from`,e)}var vd=Ve();function yd(e){e===void 0&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,i=e.blockClass,a=i===void 0?`rr-block`:i,o=e.blockSelector,s=o===void 0?null:o,c=e.ignoreClass,l=c===void 0?`rr-ignore`:c,u=e.ignoreSelector,d=u===void 0?null:u,f=e.maskTextClass,m=f===void 0?`rr-mask`:f,h=e.maskTextSelector,g=h===void 0?null:h,_=e.inlineStylesheet,v=_===void 0||_,y=e.maskAllInputs,b=e.maskInputOptions,x=e.slimDOMOptions,S=e.maskInputFn,ee=e.maskTextFn,te=e.hooks,ne=e.packFn,re=e.sampling,ie=re===void 0?{}:re,w=e.dataURLOptions,T=w===void 0?{}:w,ae=e.mousemoveWait,oe=e.recordDOM,se=oe===void 0||oe,ce=e.recordCanvas,le=ce!==void 0&&ce,ue=e.recordCrossOriginIframes,de=ue!==void 0&&ue,fe=e.allowedIframeOrigins,pe=e.recordAfter,me=pe===void 0?e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`:pe,he=e.userTriggeredOnInput,ge=he!==void 0&&he,E=e.collectFonts,_e=E!==void 0&&E,ve=e.inlineImages,ye=ve!==void 0&&ve,be=e.plugins,xe=e.keepIframeSrcFn,Se=xe===void 0?function(){return!1}:xe,Ce=e.ignoreCSSAttributes,we=Ce===void 0?new Set([]):Ce,Te=e.errorHandler;gu(Te);var Ee;de&&fe&&fe.length>0&&(Ee=pd(fe),Ee.size===0&&(Ee=void 0));var De=!de||window.parent===window,Oe=!1;if(!De)try{window.parent.document&&(Oe=!1)}catch{Oe=!0}if(De&&!t)throw Error(`emit function is required`);if(!De&&!Oe)return function(){};ae!==void 0&&ie.mousemove===void 0&&(ie.mousemove=ae),vd.reset();var ke=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b===void 0?{password:!0}:b,Ae=x===!0||x===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:x===`all`,headMetaDescKeywords:x===`all`,headTitleMutations:x===`all`}:x||{};Gl();var je,Me=0,Ne=function(e){for(var t=C(be||[]),n;!(n=t()).done;){var r=n.value;r.eventProcessor&&(e=r.eventProcessor(e))}return ne&&!Oe&&(e=ne(e)),e};z=function(e,i){var a=e;if(a.timestamp=Fl(),vu[0]?.isFrozen()&&a.type!==I.FullSnapshot&&(a.type!==I.IncrementalSnapshot||a.data.source!==L.Mutation)&&vu.forEach(function(e){return e.unfreeze()}),De)t?.(Ne(a),i);else if(Oe){var o={type:`rrweb`,event:Ne(a),origin:window.location.origin,isCheckout:i};if(Ee)for(var s=C(Ee),c;!(c=s()).done;){var l=c.value;window.parent.postMessage(o,l)}else window.parent.postMessage(o,`*`)}if(a.type===I.FullSnapshot)je=a,Me=0;else if(a.type===I.IncrementalSnapshot){if(a.data.source===L.Mutation&&a.data.isAttachIframe)return;Me++;var u=r&&Me>=r,d=n&&a.timestamp-je.timestamp>n;(u||d)&&md(!0)}};for(var Pe=function(e){z({type:I.IncrementalSnapshot,data:p({source:L.Mutation},e)})},Fe=function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.Scroll},e)})},Ie=function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.CanvasMutation},e)})},Le=new ud({mutationCb:Pe,adoptedStyleSheetCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.AdoptedStyleSheet},e)})}}),Re=new Uu({mirror:vd,mutationCb:Pe,stylesheetManager:Le,recordCrossOriginIframes:de,wrappedEmit:z}),ze=C(be||[]),Be;!(Be=ze()).done;){var Ve=Be.value;Ve.getMirror&&Ve.getMirror({nodeMirror:vd,crossOriginIframeMirror:Re.crossOriginIframeMirror,crossOriginIframeStyleMirror:Re.crossOriginIframeStyleMirror})}var He=new dd;hd=new ld({recordCanvas:le,mutationCb:Ie,win:window,blockClass:a,blockSelector:s,mirror:vd,sampling:ie.canvas,dataURLOptions:T});var Ue=new Wu({mutationCb:Pe,scrollCb:Fe,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:m,maskTextSelector:g,inlineStylesheet:v,maskInputOptions:ke,dataURLOptions:T,maskTextFn:ee,maskInputFn:S,recordCanvas:le,inlineImages:ye,sampling:ie,slimDOMOptions:Ae,iframeManager:Re,stylesheetManager:Le,canvasManager:hd,keepIframeSrcFn:Se,processedNodeManager:He},mirror:vd});md=function(e){if(e===void 0&&(e=!1),se){z({type:I.Meta,data:{href:window.location.href,width:Rl(),height:Ll()}},e),Le.reset(),Ue.init(),vu.forEach(function(e){return e.lock()});var t=At(document,{mirror:vd,blockClass:a,blockSelector:s,maskTextClass:m,maskTextSelector:g,inlineStylesheet:v,maskAllInputs:ke,maskTextFn:ee,maskInputFn:S,slimDOM:Ae,dataURLOptions:T,recordCanvas:le,inlineImages:ye,onSerialize:function(e){Kl(e,vd)&&Re.addIframe(e),ql(e,vd)&&Le.trackLinkElement(e),Jl(e)&&Ue.addShadowRoot(F.shadowRoot(e),document)},onIframeLoad:function(e,t){Re.attachIframe(e,t),Ue.observeAttachShadow(e)},onStylesheetLoad:function(e,t){Le.attachLinkElement(e,t)},keepIframeSrcFn:Se});if(!t)return console.warn(`Failed to snapshot the document`);z({type:I.FullSnapshot,data:{node:t,initialOffset:Il(window)}},e),vu.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Le.adoptStyleSheets(document.adoptedStyleSheets,vd.getId(document))}};try{var We=[],Ge=function(e){return R(zu)({mutationCb:Pe,mousemoveCb:function(e,t){return z({type:I.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.MouseInteraction},e)})},scrollCb:Fe,viewportResizeCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.ViewportResize},e)})},inputCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.Input},e)})},mediaInteractionCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.MediaInteraction},e)})},styleSheetRuleCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.StyleSheetRule},e)})},styleDeclarationCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.StyleDeclaration},e)})},canvasMutationCb:Ie,fontCb:function(e){return z({type:I.IncrementalSnapshot,data:p({source:L.Font},e)})},selectionCb:function(e){z({type:I.IncrementalSnapshot,data:p({source:L.Selection},e)})},customElementCb:function(e){z({type:I.IncrementalSnapshot,data:p({source:L.CustomElement},e)})},blockClass:a,ignoreClass:l,ignoreSelector:d,maskTextClass:m,maskTextSelector:g,maskInputOptions:ke,inlineStylesheet:v,sampling:ie,recordDOM:se,recordCanvas:le,inlineImages:ye,userTriggeredOnInput:ge,collectFonts:_e,doc:e,maskInputFn:S,maskTextFn:ee,keepIframeSrcFn:Se,blockSelector:s,slimDOMOptions:Ae,dataURLOptions:T,mirror:vd,iframeManager:Re,stylesheetManager:Le,shadowDomManager:Ue,processedNodeManager:He,canvasManager:hd,ignoreCSSAttributes:we,plugins:(be?.filter(function(e){return e.observer}))?.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return z({type:I.Plugin,data:{plugin:e.name,payload:t}})}}})||[]},te)};Re.addLoadListener(function(e){try{var t=e.contentDocument,n=Ge(t);We.push(n);var r=Re.getObserverCleanup(e);Re.setObserverCleanup(e,function(){if(r)try{r()}catch{}try{n();var e=We.indexOf(n);e!==-1&&We.splice(e,1),xu(t)}catch{}})}catch(e){console.warn(e)}});var Ke=function(){md(),We.push(Ge(document)),gd=!0};return document.readyState===`interactive`||document.readyState===`complete`?Ke():(We.push(Al(`DOMContentLoaded`,function(){z({type:I.DomContentLoaded,data:{}}),me===`DOMContentLoaded`&&Ke()})),We.push(Al(`load`,function(){z({type:I.Load,data:{}}),me===`load`&&Ke()},window))),function(){We.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes(`cross-origin`)||console.warn(e)}}),He.destroy(),gd=!1,_u()}}catch(e){console.warn(e)}}yd.addCustomEvent=function(e,t){if(!gd)throw Error(`please add custom event after start recording`);z({type:I.Custom,data:{tag:e,payload:t}})},yd.freezePage=function(){vu.forEach(function(e){return e.freeze()})},yd.takeFullSnapshot=function(e){if(!gd)throw Error(`please take full snapshot after start recording`);md(e)},yd.mirror=vd;var bd;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(bd||={}),yd.addCustomEvent,yd.freezePage,yd.takeFullSnapshot;var xd={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},Sd={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},Cd={},wd=function(){return!!globalThis.Zone};function Td(e){if(Cd[e])return Cd[e];var t=globalThis[e],n=t.prototype,r=e in xd?xd[e]:void 0,i=!!(r&&r.every(function(e){return!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`)})),a=e in Sd?Sd[e]:void 0,o=!!(a&&a.every(function(e){return typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)}));if(i&&o&&!wd())return Cd[e]=t.prototype,t.prototype;try{var s=document.createElement(`iframe`);document.body.appendChild(s);var c=s.contentWindow;if(!c)return t.prototype;var l=c[e].prototype;return document.body.removeChild(s),l?Cd[e]=l:n}catch{return n}}var Ed={};function Dd(e,t,n){var r=e+`.`+String(n);if(Ed[r])return Ed[r].call(t);var i=Td(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?(Ed[r]=a,a.call(t)):t[n]}var Od={};function kd(e,t,n){var r=e+`.`+String(n);if(Od[r])return Od[r].bind(t);var i=Td(e)[n];return typeof i==`function`?(Od[r]=i,i.bind(t)):t[n]}function Ad(e){return Dd(`Node`,e,`childNodes`)}function jd(e){return Dd(`Node`,e,`parentNode`)}function Md(e){return Dd(`Node`,e,`parentElement`)}function Nd(e){return Dd(`Node`,e,`textContent`)}function Pd(e,t){return kd(`Node`,e,`contains`)(t)}function Fd(e){return kd(`Node`,e,`getRootNode`)()}function Id(e){return!e||!(`host`in e)?null:Dd(`ShadowRoot`,e,`host`)}function Ld(e){return e.styleSheets}function Rd(e){return!e||!(`shadowRoot`in e)?null:Dd(`Element`,e,`shadowRoot`)}function zd(e,t){return Dd(`Element`,e,`querySelector`)(t)}function Bd(e,t){return Dd(`Element`,e,`querySelectorAll`)(t)}function Vd(){return Td(`MutationObserver`).constructor}function Hd(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Ud={childNodes:Ad,parentNode:jd,parentElement:Md,textContent:Nd,contains:Pd,getRootNode:Fd,host:Id,styleSheets:Ld,shadowRoot:Rd,querySelector:zd,querySelectorAll:Bd,mutationObserver:Vd,patch:Hd};function Wd(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return Wd(Ud.parentNode(e),t);for(var r=e.classList.length;r--;){var i=e.classList[r];if(t.test(i))return!0}return Wd(Ud.parentNode(e),t)}function Gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Kd(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return g(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var qd={exports:{}},B=String,Jd=function(){return{isColorSupported:!1,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};qd.exports=Jd(),qd.exports.createColors=Jd;var Yd=qd.exports,Xd=Kd(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),Zd=Yd,Qd=Xd,$d=function(e){h(t,e);function t(n,r,i,a,o,s){var c=e.call(this,n)||this;return c.name=`CssSyntaxError`,c.reason=n,o&&(c.file=o),a&&(c.source=a),s&&(c.plugin=s),r!==void 0&&i!==void 0&&(typeof r==`number`?(c.line=r,c.column=i):(c.line=r.line,c.column=r.column,c.endLine=i.line,c.endColumn=i.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var n=t.prototype;return n.setMessage=function(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason},n.showSourceCode=function(e){var t=this;if(!this.source)return``;var n=this.source;e??=Zd.isColorSupported,Qd&&e&&(n=Qd(n));var r=n.split(/\r?\n/),i=Math.max(this.line-3,0),a=Math.min(this.line+2,r.length),o=String(a).length,s,c;if(e){var l=Zd.createColors(!0),u=l.bold,d=l.gray,f=l.red;s=function(e){return u(f(e))},c=function(e){return d(e)}}else s=c=function(e){return e};return r.slice(i,a).map(function(e,n){var r=i+1+n,a=` `+(` `+r).slice(-o)+` | `;if(r===t.line){var l=c(a.replace(/\d/g,` `))+e.slice(0,t.column-1).replace(/[^\t]/g,` `);return s(`>`)+c(a)+e+`
`+l+s(`^`)}return` `+c(a)+e}).join(`
`)},n.toString=function(){var e=this.showSourceCode();return e&&=`
`+e+`
`,this.name+`: `+this.message+e},t}(S(Error)),ef=$d;$d.default=$d;var tf={};tf.isClean=Symbol(`isClean`),tf.my=Symbol(`my`);var nf={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:` `,beforeRule:`
`,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function rf(e){return e[0].toUpperCase()+e.slice(1)}var af=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{var i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}},t.beforeAfter=function(e,t){for(var n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`),r=e.parent,i=0;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
`)){var a=this.raw(e,null,`indent`);if(a.length)for(var o=0;o<i;o++)n+=a}return n},t.block=function(e,t){var n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);var r;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&&e.nodes[t].type===`comment`;)--t;for(var n=this.raw(e,`semicolon`),r=0;r<e.nodes.length;r++){var i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}},t.comment=function(e){var t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)},t.decl=function(e,t){var n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,n){var r;if(n||=t,t&&(r=e.raws[t],r!==void 0))return r;var i=e.parent;if(n===`before`&&(!i||i.type===`root`&&i.first===e||i&&i.type===`document`))return``;if(!i)return nf[n];var a=e.root();if(a.rawCache||={},a.rawCache[n]!==void 0)return a.rawCache[n];if(n===`before`||n===`after`)return this.beforeAfter(e,n);var o=`raw`+rf(n);return this[o]?r=this[o](a,e):a.walk(function(e){if(r=e.raws[t],r!==void 0)return!1}),r===void 0&&(r=nf[n]),a.rawCache[n]=r,r},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawBeforeComment=function(e,t){var n;return e.walkComments(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n},t.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(e){if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
`)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
`)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t},t.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){var i=n.raws.before.split(`
`);return t=i[i.length-1],t=t.replace(/\S/g,``),!1}}),t},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t},t.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)},t.stringify=function(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)},e}(),of=af;af.default=af;var sf=of;function cf(e,t){new sf(t).stringify(e)}var lf=cf;cf.default=cf;var uf=tf.isClean,df=tf.my,ff=ef,pf=of,mf=lf;function hf(e,t){var n=new e.constructor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r!==`proxyCache`){var i=e[r],a=i===void 0?`undefined`:b(i);r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(function(e){return hf(e,n)}):(a===`object`&&i!==null&&(i=hf(i)),n[r]=i)}return n}var gf=function(){function e(e){for(var t in e===void 0&&(e={}),this.raws={},this[uf]=!1,this[df]=!0,e)if(t===`nodes`){this.nodes=[];for(var n=C(e[t]),r;!(r=n()).done;){var i=r.value;typeof i.clone==`function`?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 e===void 0&&(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){e===void 0&&(e={});var t=hf(this);for(var n in e)t[n]=e[n];return t},t.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),r=n.end,i=n.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new ff(e)},t.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:t===`root`?function(){return e.root().toProxy()}:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[uf]){this[uf]=!1;for(var e=this;e=e.parent;)e[uf]=!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 n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n},t.positionInside=function(e,t){for(var n=t||this.toString(),r=this.source.start.column,i=this.source.start.line,a=0;a<e;a++)n[a]===`
`?(r=1,i+=1):r+=1;return{column:r,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},n=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 r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},t.raw=function(e,t){return new pf().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){var e=[...arguments];if(this.parent){for(var t=this,n=!1,r=C(e),i;!(i=r()).done;){var a=i.value;a===this?n=!0:n?(this.parent.insertAfter(t,a),t=a):this.parent.insertBefore(t,a)}n||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&e.parent.type!==`document`;)e=e.parent;return e},t.toJSON=function(e,t){var n={},r=t==null;t||=new Map;var i=0;for(var a in this)if(Object.prototype.hasOwnProperty.call(this,a)&&a!==`parent`&&a!==`proxyCache`){var o=this[a];if(Array.isArray(o))n[a]=o.map(function(e){return(e===void 0?`undefined`:b(e))===`object`&&e.toJSON?e.toJSON(null,t):e});else if((o===void 0?`undefined`:b(o))===`object`&&o.toJSON)n[a]=o.toJSON(null,t);else if(a===`source`){var s=t.get(o.input);s??(s=i,t.set(o.input,i),i++),n[a]={end:o.end,inputId:s,start:o.start}}else n[a]=o}return r&&(n.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),n},t.toProxy=function(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache},t.toString=function(e){e===void 0&&(e=mf),e.stringify&&(e=e.stringify);var t=``;return e(this,function(e){t+=e}),t},t.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},f(e,[{key:`proxyOf`,get:function(){return this}}]),e}(),_f=gf;gf.default=gf;var vf=function(e){h(t,e);function t(t){var n;return t&&t.value!==void 0&&typeof t.value!=`string`&&(t=p({},t,{value:String(t.value)})),n=e.call(this,t)||this,n.type=`decl`,n}return f(t,[{key:`variable`,get:function(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}]),t}(_f),yf=vf;vf.default=vf;var bf=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,xf={nanoid:function(e){e===void 0&&(e=21);for(var t=``,n=e;n--;)t+=bf[Math.random()*64|0];return t}},Sf=Xd.SourceMapConsumer,Cf=Xd.SourceMapGenerator,wf=Xd.existsSync,Tf=Xd.readFileSync,Ef=Xd.dirname,Df=Xd.join;function Of(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var kf=function(){function e(e,t){if(t.map!==!1){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);var n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ef(this.mapFile)),r&&(this.text=r)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||=new Sf(this.text),this.consumerCache},t.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Of(e.substr(RegExp.lastMatch.length));var r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()},t.isMap=function(e){return(e===void 0?`undefined`:b(e))===`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}},t.loadFile=function(e){if(this.root=Ef(e),wf(e))return this.mapFile=e,Tf(e,`utf-8`).toString().trim()},t.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){var n=t(e);if(n){var r=this.loadFile(n);if(!r)throw Error(`Unable to load previous source map: `+n.toString());return r}}else if(g(t,Sf))return Cf.fromSourceMap(t).toString();else if(g(t,Cf))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=Df(Ef(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Af=kf;kf.default=kf;var jf=Xd.SourceMapConsumer,Mf=Xd.SourceMapGenerator,Nf=Xd.fileURLToPath,Pf=Xd.pathToFileURL,Ff=Xd.isAbsolute,If=Xd.resolve,Lf=xf.nanoid,Rf=Xd,zf=ef,Bf=Af,Vf=Symbol(`fromOffsetCache`),Hf=!!(jf&&Mf),Uf=!!(If&&Ff),Wf=function(){function e(e,t){if(t===void 0&&(t={}),e==null||(e===void 0?`undefined`:b(e))===`object`&&!e.toString)throw Error(`PostCSS received `+e+` instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===``?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!Uf||/^\w+:\/\//.test(t.from)||Ff(t.from)?t.from:If(t.from)),Uf&&Hf){var n=new Bf(this.css,t);if(n.text){this.map=n;var r=n.consumer().file;!this.file&&r&&(this.file=this.mapResolve(r))}}this.file||(this.id=`<input css `+Lf(6)+`>`),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,n,r){r===void 0&&(r={});var i,a,o;if(t&&(t===void 0?`undefined`:b(t))===`object`){var s=t,c=n;if(typeof s.offset==`number`){var l=this.fromOffset(s.offset);t=l.line,n=l.col}else t=s.line,n=s.column;if(typeof c.offset==`number`){var u=this.fromOffset(c.offset);a=u.line,o=u.col}else a=c.line,o=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var f=this.origin(t,n,a,o);return i=f?new zf(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,r.plugin):new zf(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:o,line:a},this.css,this.file,r.plugin),i.input={column:n,endColumn:o,endLine:a,line:t,source:this.css},this.file&&(Pf&&(i.input.url=Pf(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){var t,n;if(this[Vf])n=this[Vf];else{var r=this.css.split(`
`);n=Array(r.length);for(var i=0,a=0,o=r.length;a<o;a++)n[a]=i,i+=r[a].length+1;this[Vf]=n}t=n[n.length-1];var s=0;if(e>=t)s=n.length-1;else for(var c=n.length-2,l;s<c;)if(l=s+(c-s>>1),e<n[l])c=l-1;else if(e>=n[l+1])s=l+1;else{s=l;break}return{col:e-n[s]+1,line:s+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:If(this.map.consumer().sourceRoot||this.map.root||`.`,e)},t.origin=function(e,t,n,r){if(!this.map)return!1;var i=this.map.consumer(),a=i.originalPositionFor({column:t,line:e});if(!a.source)return!1;var o;typeof n==`number`&&(o=i.originalPositionFor({column:r,line:n}));var s=Ff(a.source)?Pf(a.source):new URL(a.source,this.map.consumer().sourceRoot||Pf(this.map.mapFile)),c={column:a.column,endColumn:o&&o.column,endLine:o&&o.line,line:a.line,url:s.toString()};if(s.protocol===`file:`){if(Nf)c.file=Nf(s);else throw Error(`file: protocol is not available in this PostCSS build`)}var l=i.sourceContentFor(a.source);return l&&(c.source=l),c},t.toJSON=function(){for(var e={},t=0,n=[`hasBOM`,`css`,`file`,`id`];t<n.length;t++){var r=n[t];this[r]!=null&&(e[r]=this[r])}return this.map&&(e.map=p({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},f(e,[{key:`from`,get:function(){return this.file||this.id}}]),e}(),Gf=Wf;Wf.default=Wf,Rf&&Rf.registerInput&&Rf.registerInput(Wf);var Kf=Xd.SourceMapConsumer,qf=Xd.SourceMapGenerator,Jf=Xd.dirname,Yf=Xd.relative,Xf=Xd.resolve,Zf=Xd.sep,Qf=Xd.pathToFileURL,$f=Gf,ep=!!(Kf&&qf),tp=!!(Jf&&Xf&&Yf&&Zf),np=function(){function e(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`,t=`
`;this.css.includes(`\r
`)&&(t=`\r
`),this.css+=t+`/*# sourceMappingURL=`+e+` */`},t.applyPrevMaps=function(){for(var e=C(this.previous()),t;!(t=e()).done;){var n=t.value,r=this.toUrl(this.path(n.file)),i=n.root||Jf(n.file),a=void 0;this.mapOpts.sourcesContent===!1?(a=new Kf(n.text),a.sourcesContent&&(a.sourcesContent=null)):a=n.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1){if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t);else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}},t.generate=function(){if(this.clearAnnotation(),tp&&ep&&this.isMap())return this.generateMap();var e=``;return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qf.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qf({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var e=this;this.css=``,this.map=new qf({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,function(s,c,l){if(e.css+=s,c&&l!==`end`&&(i.generated.line=t,i.generated.column=n-1,c.source&&c.source.start?(i.source=e.sourcePath(c),i.original.line=c.source.start.line,i.original.column=c.source.start.column-1,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,e.map.addMapping(i))),a=s.match(/\n/g),a?(t+=a.length,o=s.lastIndexOf(`
`),n=s.length-o):n+=s.length,c&&l!==`start`){var u=c.parent||{raws:{}};(!(c.type===`decl`||c.type===`atrule`&&!c.nodes)||c!==u.last||u.raws.semicolon)&&(c.source&&c.source.end?(i.source=e.sourcePath(c),i.original.line=c.source.end.line,i.original.column=c.source.end.column-1,i.generated.line=t,i.generated.column=n-2,e.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=t,i.generated.column=n-1,e.map.addMapping(i)))}})},t.isAnnotation=function(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(function(e){return e.annotation}):this.mapOpts.annotation},t.isInline=function(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;var e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(function(e){return e.inline})},t.isMap=function(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map},t.isSourcesContent=function(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(function(e){return e.withContent()}):this.mapOpts.sourcesContent},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`},t.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Jf(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(n=Jf(Xf(n,this.mapOpts.annotation)));var r=Yf(n,e);return this.memoizedPaths.set(e,r),r},t.previous=function(){var e=this;if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;e.previousMaps.includes(n)||e.previousMaps.push(n)}});else{var t=new $f(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.usesFileUrls?e.toFileUrl(r):e.toUrl(e.path(r));e.map.setSourceContent(i,n.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(n,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Qf){var n=Qf(e).toString();return this.memoizedFileURLs.set(e,n),n}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;Zf===`\\`&&(e=e.replace(/\\/g,`/`));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},e}(),rp=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`comment`,n}return t}(_f),ip=rp;rp.default=rp;var ap=tf.isClean,op=tf.my,sp=yf,cp=ip,lp=_f,up,dp,fp,pp;function mp(e){return e.map(function(e){return e.nodes&&=mp(e.nodes),delete e.source,e})}function hp(e){if(e[ap]=!1,e.proxyOf.nodes)for(var t=C(e.proxyOf.nodes),n;!(n=t()).done;){var r=n.value;hp(r)}}var gp=function(e){h(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.append=function(){for(var e=C([...arguments]),t;!(t=e()).done;)for(var n=t.value,r=C(this.normalize(n,this.last)),i;!(i=r()).done;){var a=i.value;this.proxyOf.nodes.push(a)}return this.markDirty(),this},n.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var n=C(this.nodes),r;!(r=n()).done;)r.value.cleanRaws(t)},n.each=function(e){if(this.proxyOf.nodes){for(var t=this.getIterator(),n,r;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}},n.every=function(e){return this.nodes.every(e)},n.getIterator=function(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},n.getProxyProcessor=function(){return{get:function(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?function(){var n=[...arguments],r;return(r=e)[t].apply(r,[].concat(n.map(function(e){return typeof e==`function`?function(t,n){return e(t.toProxy(),n)}:e})))}:t===`every`||t===`some`?function(n){return e[t](function(e){var t=[...arguments].slice(1);return n.apply(void 0,[e.toProxy()].concat(t))})}:t===`root`?function(){return e.root().toProxy()}:t===`nodes`?e.nodes.map(function(e){return e.toProxy()}):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set:function(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}},n.index=function(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},n.insertAfter=function(e,t){var n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var i=C(r),a;!(a=i()).done;){var o=a.value;this.proxyOf.nodes.splice(n+1,0,o)}var s;for(var c in this.indexes)s=this.indexes[c],n<s&&(this.indexes[c]=s+r.length);return this.markDirty(),this},n.insertBefore=function(e,t){var n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(var a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.splice(n,0,s)}var c;for(var l in this.indexes)c=this.indexes[l],n<=c&&(this.indexes[l]=c+i.length);return this.markDirty(),this},n.normalize=function(e,n){var r=this;if(typeof e==`string`)e=mp(up(e).nodes);else if(e===void 0)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i=C(e),a;!(a=i()).done;){var o=a.value;o.parent&&o.parent.removeChild(o,`ignore`)}}else if(e.type===`root`&&this.type!==`document`){e=e.nodes.slice(0);for(var s=C(e),c;!(c=s()).done;){var l=c.value;l.parent&&l.parent.removeChild(l,`ignore`)}}else if(e.type)e=[e];else if(e.prop){if(e.value===void 0)throw Error(`Value field is missed in node creation`);typeof e.value!=`string`&&(e.value=String(e.value)),e=[new sp(e)]}else if(e.selector)e=[new dp(e)];else if(e.name)e=[new fp(e)];else if(e.text)e=[new cp(e)];else throw Error(`Unknown node type in node creation`);return e.map(function(e){return e[op]||t.rebuild(e),e=e.proxyOf,e.parent&&e.parent.removeChild(e),e[ap]&&hp(e),e.raws.before===void 0&&n&&n.raws.before!==void 0&&(e.raws.before=n.raws.before.replace(/\S/g,``)),e.parent=r.proxyOf,e})},n.prepend=function(){var e=[...arguments];e=e.reverse();for(var t=C(e),n;!(n=t()).done;){for(var r=n.value,i=this.normalize(r,this.first,`prepend`).reverse(),a=C(i),o;!(o=a()).done;){var s=o.value;this.proxyOf.nodes.unshift(s)}for(var c in this.indexes)this.indexes[c]=this.indexes[c]+i.length}return this.markDirty(),this},n.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},n.removeAll=function(){for(var e=C(this.proxyOf.nodes),t;!(t=e()).done;){var n=t.value;n.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},n.removeChild=function(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);var t;for(var n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this},n.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this},n.some=function(e){return this.nodes.some(e)},n.walk=function(e){return this.each(function(t,n){var r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})},n.walkAtRules=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`atrule`)return t(e,n)}))},n.walkComments=function(e){return this.walk(function(t,n){if(t.type===`comment`)return e(t,n)})},n.walkDecls=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`decl`)return t(e,n)}))},n.walkRules=function(e,t){return t?g(e,RegExp)?this.walk(function(n,r){if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if(e.type===`rule`)return t(e,n)}))},f(t,[{key:`first`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:`last`,get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(lp);gp.registerParse=function(e){up=e},gp.registerRule=function(e){dp=e},gp.registerAtRule=function(e){fp=e},gp.registerRoot=function(e){pp=e};var _p=gp;gp.default=gp,gp.rebuild=function(e){e.type===`atrule`?Object.setPrototypeOf(e,fp.prototype):e.type===`rule`?Object.setPrototypeOf(e,dp.prototype):e.type===`decl`?Object.setPrototypeOf(e,sp.prototype):e.type===`comment`?Object.setPrototypeOf(e,cp.prototype):e.type===`root`&&Object.setPrototypeOf(e,pp.prototype),e[op]=!0,e.nodes&&e.nodes.forEach(function(e){gp.rebuild(e)})};var vp=_p,yp,bp,xp=function(e){h(t,e);function t(t){var n=e.call(this,p({type:`document`},t))||this;return n.nodes||=[],n}var n=t.prototype;return n.toResult=function(e){return e===void 0&&(e={}),new yp(new bp,this,e).stringify()},t}(vp);xp.registerLazyResult=function(e){yp=e},xp.registerProcessor=function(e){bp=e};var Sp=xp;xp.default=xp;var Cp=function(){function e(e,t){if(t===void 0&&(t={}),this.type=`warning`,this.text=e,t.node&&t.node.source){var n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(var r in t)this[r]=t[r]}var t=e.prototype;return t.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}(),wp=Cp;Cp.default=Cp;var Tp=wp,Ep=function(){function e(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Tp(e,t);return this.messages.push(n),n},t.warnings=function(){return this.messages.filter(function(e){return e.type===`warning`})},f(e,[{key:`content`,get:function(){return this.css}}]),e}(),Dp=Ep;Ep.default=Ep;var Op=39,kp=34,Ap=92,jp=47,Mp=10,Np=32,Pp=12,Fp=9,Ip=13,Lp=91,Rp=93,zp=40,Bp=41,Vp=123,Hp=125,Up=59,Wp=42,Gp=58,Kp=64,qp=/[\t\n\f\r "#'()/;[\\\]{}]/g,Jp=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Yp=/.[\r\n"'(/\\]/,Xp=/[\da-f]/i,Zp=function(e,t){t===void 0&&(t={});var n=e.css.valueOf(),r=t.ignoreErrors,i,a,o,s,c,l,u,d,f,p,m=n.length,h=0,g=[],_=[];function v(){return h}function y(t){throw e.error(`Unclosed `+t,h)}function b(){return _.length===0&&h>=m}function x(e){if(_.length)return _.pop();if(!(h>=m)){var t=e?e.ignoreUnclosed:!1;switch(i=n.charCodeAt(h),i){case Mp:case Np:case Fp:case Ip:case Pp:a=h;do a+=1,i=n.charCodeAt(a);while(i===Np||i===Mp||i===Fp||i===Ip||i===Pp);p=[`space`,n.slice(h,a)],h=a-1;break;case Lp:case Rp:case Vp:case Hp:case Gp:case Up:case Bp:var v=String.fromCharCode(i);p=[v,v,h];break;case zp:if(d=g.length?g.pop()[1]:``,f=n.charCodeAt(h+1),d===`url`&&f!==Op&&f!==kp&&f!==Np&&f!==Mp&&f!==Fp&&f!==Pp&&f!==Ip){a=h;do{if(l=!1,a=n.indexOf(`)`,a+1),a===-1){if(r||t){a=h;break}y(`bracket`)}for(u=a;n.charCodeAt(u-1)===Ap;)--u,l=!l}while(l);p=[`brackets`,n.slice(h,a+1),h,a],h=a}else a=n.indexOf(`)`,h+1),s=n.slice(h,a+1),a===-1||Yp.test(s)?p=[`(`,`(`,h]:(p=[`brackets`,s,h,a],h=a);break;case Op:case kp:o=i===Op?`'`:`"`,a=h;do{if(l=!1,a=n.indexOf(o,a+1),a===-1){if(r||t){a=h+1;break}y(`string`)}for(u=a;n.charCodeAt(u-1)===Ap;)--u,l=!l}while(l);p=[`string`,n.slice(h,a+1),h,a],h=a;break;case Kp:qp.lastIndex=h+1,qp.test(n),a=qp.lastIndex===0?n.length-1:qp.lastIndex-2,p=[`at-word`,n.slice(h,a+1),h,a],h=a;break;case Ap:for(a=h,c=!0;n.charCodeAt(a+1)===Ap;)a+=1,c=!c;if(i=n.charCodeAt(a+1),c&&i!==jp&&i!==Np&&i!==Mp&&i!==Fp&&i!==Ip&&i!==Pp&&(a+=1,Xp.test(n.charAt(a)))){for(;Xp.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===Np&&(a+=1)}p=[`word`,n.slice(h,a+1),h,a],h=a;break;default:i===jp&&n.charCodeAt(h+1)===Wp?(a=n.indexOf(`*/`,h+2)+1,a===0&&(r||t?a=n.length:y(`comment`)),p=[`comment`,n.slice(h,a+1),h,a],h=a):(Jp.lastIndex=h+1,Jp.test(n),a=Jp.lastIndex===0?n.length-1:Jp.lastIndex-2,p=[`word`,n.slice(h,a+1),h,a],g.push(p),h=a)}return h++,p}}function S(e){_.push(e)}return{back:S,endOfFile:b,nextToken:x,position:v}},Qp=_p,$p=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`atrule`,n}var n=t.prototype;return n.append=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.append).call.apply(n,[this].concat(t))},n.prepend=function(){var t=[...arguments],n;return this.proxyOf.nodes||(this.nodes=[]),(n=e.prototype.prepend).call.apply(n,[this].concat(t))},t}(Qp),em=$p;$p.default=$p,Qp.registerAtRule($p);var tm=_p,nm,rm,im=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`root`,n.nodes||=[],n}var n=t.prototype;return n.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n){if(r===`prepend`)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var a=C(i),o;!(o=a()).done;){var s=o.value;s.raws.before=n.raws.before}}return i},n.removeChild=function(t,n){var r=this.index(t);return!n&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},n.toResult=function(e){return e===void 0&&(e={}),new nm(new rm,this,e).stringify()},t}(tm);im.registerLazyResult=function(e){nm=e},im.registerProcessor=function(e){rm=e};var am=im;im.default=im,tm.registerRoot(im);var om={comma:function(e){return om.split(e,[`,`],!0)},space:function(e){return om.split(e,[` `,`
`,` `])},split:function(e,t,n){for(var r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1,u=C(e),d;!(d=u()).done;){var f=d.value;l?l=!1:f===`\\`?l=!0:s?f===c&&(s=!1):f===`"`||f===`'`?(s=!0,c=f):f===`(`?o+=1:f===`)`?o>0&&--o:o===0&&t.includes(f)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=f}return(n||i!==``)&&r.push(i.trim()),r}},sm=om;om.default=om;var cm=_p,lm=sm,um=function(e){h(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`rule`,n.nodes||=[],n}return f(t,[{key:`selectors`,get:function(){return lm.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}]),t}(cm),dm=um;um.default=um,cm.registerRule(um);var fm=yf,pm=Zp,mm=ip,hm=em,gm=am,_m=dm,vm={empty:!0,space:!0};function ym(e){for(var t=e.length-1;t>=0;t--){var n=e[t],r=n[3]||n[2];if(r)return r}}var bm=function(){function e(e){this.input=e,this.root=new gm,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=new hm;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,r,i,a=!1,o=!1,s=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?c.push(n===`(`?`)`:`]`):n===`{`&&c.length>0?c.push(`}`):n===c[c.length-1]&&c.pop(),c.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){o=!0;break}if(n===`}`){if(s.length>0){for(i=s.length-1,r=s[i];r&&r[0]===`space`;)r=s[--i];r&&(t.source.end=this.getPosition(r[3]||r[2]),t.source.end.offset++)}this.end(e);break}s.push(e)}else s.push(e);if(this.tokenizer.endOfFile()){a=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,`params`,s),a&&(e=s[s.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),o&&(t.nodes=[],this.current=t)},t.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,r,i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}},t.colon=function(e){for(var t=0,n,r,i,a=C(e.entries()),o;!(o=a()).done;){var s=o.value,c=s[0];if(n=s[1],r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return c}i=n}return!1},t.comment=function(e){var t=new mm;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text=``,t.raws.left=n,t.raws.right=``;else{var r=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},t.createTokenizer=function(){this.tokenizer=pm(this.input)},t.decl=function(e,t){var n=new fm;this.init(n,e[0][2]);var r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||ym(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){var i=e[0][0];if(i===`:`||i===`space`||i===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;for(var a;e.length;){if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1]}(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var o=[],s;e.length&&(s=e[0][0],s===`space`||s===`comment`);)o.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(a=e[c],a[1].toLowerCase()===`!important`){n.important=!0;var l=this.stringFrom(e,c);l=this.spacesFromEnd(e)+l,l!==` !important`&&(n.raws.important=l);break}if(a[1].toLowerCase()===`important`){for(var u=e.slice(0),d=``,f=c;f>0;f--){var p=u[f][0];if(d.trim().indexOf(`!`)===0&&p!==`space`)break;d=u.pop()[1]+d}d.trim().indexOf(`!`)===0&&(n.important=!0,n.raws.important=d,e=u)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(function(e){return e[0]!==`space`&&e[0]!==`comment`})&&(n.raws.between+=o.map(function(e){return e[1]}).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.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 _m;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&&t.type===`rule`&&!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=``,e.type!==`comment`&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,n,r){for(var i,a,o=n.length,s=``,c=!0,l,u,d=0;d<o;d+=1)i=n[d],a=i[0],a===`space`&&d===o-1&&!r?c=!1:a===`comment`?(u=n[d-1]?n[d-1][0]:`empty`,l=n[d+1]?n[d+1][0]:`empty`,!vm[u]&&!vm[l]?s.slice(-1)===`,`?c=!1:s+=i[1]:c=!1):s+=i[1];if(!c){var f=n.reduce(function(e,t){return e+t[1]},``);e.raws[t]={raw:f,value:s}}e[t]=s},t.rule=function(e){e.pop();var t=new _m;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,n=``;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n},t.spacesAndCommentsFromStart=function(e){for(var t,n=``;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n},t.spacesFromEnd=function(e){for(var t,n=``;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n},t.stringFrom=function(e,t){for(var n=``,r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},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}(),xm=_p,Sm=bm,Cm=Gf;function wm(e,t){var n=new Sm(new Cm(e,t));try{n.parse()}catch(e){throw e}return n.root}var Tm=wm;wm.default=wm,xm.registerParse(wm);var Em=tf.isClean,Dm=tf.my,Om=np,km=lf,Am=_p,jm=Sp,Mm=Dp,Nm=Tm,Pm=am,Fm={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},Im={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},Lm={Once:!0,postcssPlugin:!0,prepare:!0},Rm=0;function zm(e){return(e===void 0?`undefined`:b(e))===`object`&&typeof e.then==`function`}function Bm(e){var t=!1,n=Fm[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,Rm,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,Rm,n+`Exit`]:[n,n+`Exit`]}function Vm(e){return{eventIndex:0,events:e.type===`document`?[`Document`,Rm,`DocumentExit`]:e.type===`root`?[`Root`,Rm,`RootExit`]:Bm(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function Hm(e){return e[Em]=!1,e.nodes&&e.nodes.forEach(function(e){return Hm(e)}),e}var Um={},Wm=function(){function e(t,n,r){var i=this;this.stringified=!1,this.processed=!1;var a;if((n===void 0?`undefined`:b(n))===`object`&&n!==null&&(n.type===`root`||n.type===`document`))a=Hm(n);else if(g(n,e)||g(n,Mm))a=Hm(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var o=Nm;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{a=o(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[Dm]&&Am.rebuild(a)}this.result=new Mm(t,a,r),this.helpers=p({},Um,{postcss:Um,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(e===void 0?`undefined`:b(e))===`object`&&e.prepare?p({},e,e.prepare(i.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.runAsync(),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error(`Use process(css).then(cb) to work with async plugins`)},t.handleError=function(e,t){var n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(t,n,r){e.listeners[n]||(e.listeners[n]=[]),e.listeners[n].push([t,r])},n=C(this.plugins),r;!(r=n()).done;){var i=r.value;if((i===void 0?`undefined`:b(i))===`object`)for(var a in i){if(!Im[a]&&/^[A-Z]/.test(a))throw Error(`Unknown event `+a+` in `+i.postcssPlugin+`. Try to update PostCSS (`+this.processor.version+` now).`);if(!Lm[a]){if(b(i[a])===`object`)for(var o in i[a])o===`*`?t(i,a,i[a][o]):t(i,a+`-`+o.toLowerCase(),i[a][o]);else typeof i[a]==`function`&&t(i,a,i[a])}}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return l(function(){var t,n,r,i,a,o,s,c,l,u,d,f;return te(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],r=e.runOnRoot(n),!zm(r))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,r];case 3:return p.sent(),[3,5];case 4:throw i=p.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];a=e.result.root,p.label=7;case 7:if(a[Em])return[3,14];a[Em]=!0,o=[Vm(a)],p.label=8;case 8:if(!(o.length>0))return[3,13];if(s=e.visitTick(o),!zm(s))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,s];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),l=o[o.length-1].node,e.handleError(c,l);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];u=function(){var t,n,r,i,o;return te(this,function(s){switch(s.label){case 0:t=f.value,n=t[0],r=t[1],e.result.lastPlugin=n,s.label=1;case 1:return s.trys.push([1,6,,7]),a.type===`document`?(i=a.nodes.map(function(t){return r(t,e.helpers)}),[4,Promise.all(i)]):[3,3];case 2:return s.sent(),[3,5];case 3:return[4,r(a,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw o=s.sent(),e.handleError(o);case 7:return[2]}})},d=C(e.listeners.OnceExit),p.label=15;case 15:return(f=d()).done?[3,18]:[5,ne(u())];case 16:p.sent(),p.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((e===void 0?`undefined`:b(e))===`object`&&e.Once){if(this.result.root.type===`document`){var n=this.result.root.nodes.map(function(n){return e.Once(n,t.helpers)});return zm(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)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=km;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new Om(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[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=C(this.plugins),t;!(t=e()).done;){var n=t.value;if(zm(this.runOnRoot(n)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var r=this.result.root;!r[Em];)r[Em]=!0,this.walkSync(r);if(this.listeners.OnceExit){if(r.type===`document`)for(var i=C(r.nodes),a;!(a=i()).done;){var o=a.value;this.visitSync(this.listeners.OnceExit,o)}else this.visitSync(this.listeners.OnceExit,r)}}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 n=C(e),r;!(r=n()).done;){var i=r.value,a=i[0],o=i[1];this.result.lastPlugin=a;var s=void 0;try{s=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(zm(s))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],n=t.node,r=t.visitors;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){var i=r[t.visitorIndex],a=i[0],o=i[1];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=a;try{return o(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){for(var s=t.iterator,c;c=n.nodes[n.indexes[s]];)if(n.indexes[s]+=1,!c[Em]){c[Em]=!0,e.push(Vm(c));return}t.iterator=0,delete n.indexes[s]}for(var l=t.events;t.eventIndex<l.length;){var u=l[t.eventIndex];if(t.eventIndex+=1,u===Rm){n.nodes&&n.nodes.length&&(n[Em]=!0,t.iterator=n.getIterator());return}if(this.listeners[u]){t.visitors=this.listeners[u];return}}e.pop()},t.walkSync=function(e){var t=this;e[Em]=!0;for(var n=C(Bm(e)),r;!(r=n()).done;){var i=r.value;if(i===Rm)e.nodes&&e.each(function(e){e[Em]||t.walkSync(e)});else{var a=this.listeners[i];if(a&&this.visitSync(a,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},f(e,[{key:`content`,get:function(){return this.stringify().content}},{key:`css`,get:function(){return this.stringify().css}},{key:`map`,get:function(){return this.stringify().map}},{key:`messages`,get:function(){return this.sync().messages}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return`LazyResult`}}]),e}();Wm.registerPostcss=function(e){Um=e};var Gm=Wm;Wm.default=Wm,Pm.registerLazyResult(Wm),jm.registerLazyResult(Wm);var Km=np,qm=lf,Jm=Tm,Ym=Dp,Xm=function(){function e(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;var r,i=qm;this.result=new Ym(this._processor,r,this._opts),this.result.css=t;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var o=new Km(i,r,this._opts,t);if(o.isMap()){var s=o.generate(),c=s[0],l=s[1];c&&(this.result.css=c),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},f(e,[{key:`content`,get:function(){return this.result.css}},{key:`css`,get:function(){return this.result.css}},{key:`map`,get:function(){return this.result.map}},{key:`messages`,get:function(){return[]}},{key:`opts`,get:function(){return this.result.opts}},{key:`processor`,get:function(){return this.result.processor}},{key:`root`,get:function(){if(this._root)return this._root;var e,t=Jm;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}(),Zm=Xm;Xm.default=Xm;var Qm=Zm,$m=Gm,eh=Sp,th=am,nh=function(){function e(e){e===void 0&&(e=[]),this.version=`8.4.38`,this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t=[],n=C(e),r;!(r=n()).done;){var i=r.value;if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),(i===void 0?`undefined`:b(i))===`object`&&Array.isArray(i.plugins))t=t.concat(i.plugins);else if((i===void 0?`undefined`:b(i))===`object`&&i.postcssPlugin)t.push(i);else if(typeof i==`function`)t.push(i);else if(!((i===void 0?`undefined`:b(i))===`object`&&(i.parse||i.stringify)))throw Error(i+` is not a PostCSS plugin`)}return t},t.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Qm(this,e,t):new $m(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}(),rh=nh;nh.default=nh,th.registerProcessor(nh),eh.registerProcessor(nh);var ih=yf,ah=Af,oh=ip,sh=em,ch=Gf,lh=am,uh=dm;function dh(e,t){if(Array.isArray(e))return e.map(function(e){return dh(e)});var n=e.inputs,r=v(e,[`inputs`]);if(n){t=[];for(var i=C(n),a;!(a=i()).done;){var o=a.value,s=p({},o,{__proto__:ch.prototype});s.map&&=p({},s.map,{__proto__:ah.prototype}),t.push(s)}}if(r.nodes&&=e.nodes.map(function(e){return dh(e,t)}),r.source){var c=r.source,l=c.inputId;r.source=v(c,[`inputId`]),l!=null&&(r.source.input=t[l])}if(r.type===`root`)return new lh(r);if(r.type===`decl`)return new ih(r);if(r.type===`rule`)return new uh(r);if(r.type===`comment`)return new oh(r);if(r.type===`atrule`)return new sh(r);throw Error(`Unknown node type: `+e.type)}var fh=dh;dh.default=dh;var ph=ef,mh=yf,hh=Gm,gh=_p,_h=rh,vh=lf,yh=fh,bh=Sp,xh=wp,Sh=ip,Ch=em,wh=Dp,Th=Gf,Eh=Tm,Dh=sm,Oh=dm,kh=am,Ah=_f;function V(){var e=[...arguments];return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new _h(e)}V.plugin=function(e,t){var n=!1;function r(){var r=[...arguments];console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
https://www.w3ctech.com/topic/2226`));var i=t.apply(void 0,[].concat(r));return i.postcssPlugin=e,i.postcssVersion=new _h().version,i}var i;return Object.defineProperty(r,"postcss",{get:function(){return i||=r(),i}}),r.process=function(e,t,n){return V([r(n)]).process(e,t)},r},V.stringify=vh,V.parse=Eh,V.fromJSON=yh,V.list=Dh,V.comment=function(e){return new Sh(e)},V.atRule=function(e){return new Ch(e)},V.decl=function(e){return new mh(e)},V.rule=function(e){return new Oh(e)},V.root=function(e){return new kh(e)},V.document=function(e){return new bh(e)},V.CssSyntaxError=ph,V.Declaration=mh,V.Container=gh,V.Processor=_h,V.Document=bh,V.Comment=Sh,V.Warning=xh,V.AtRule=Ch,V.Result=wh,V.Input=Th,V.Rule=Oh,V.Root=kh,V.Node=Ah,hh.registerPostcss(V);var jh=V;V.default=V;var H=Gd(jh);H.stringify,H.fromJSON,H.plugin,H.parse,H.list,H.document,H.comment,H.atRule,H.rule,H.decl,H.root,H.CssSyntaxError,H.Declaration,H.Container,H.Processor,H.Document,H.Comment,H.Warning,H.AtRule,H.Result,H.Input,H.Rule,H.Root,H.Node;var Mh=Object.defineProperty,Nh=function(e,t,n){return t in e?Mh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ph=function(e,t,n){return Nh(e,(t===void 0?`undefined`:b(t))===`symbol`?t:t+``,n)};function Fh(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch{return function(){}}}var Ih=function(){function e(e){Ph(this,`fileName`),Ph(this,`functionName`),Ph(this,`lineNumber`),Ph(this,`columnNumber`),this.fileName=e.fileName||``,this.functionName=e.functionName||``,this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}var t=e.prototype;return t.toString=function(){var e=this.lineNumber||``,t=this.columnNumber||``;return this.functionName?this.functionName+` (`+this.fileName+`:`+e+`:`+t+`)`:this.fileName+`:`+e+`:`+t},e}(),Lh=/(^|@)\S+:\d+/,Rh=/^\s*at .*(\S+:\d+|\(native\))/m,zh=/^(eval@)?(\[native code])?$/,Bh={parse:function(e){return e?e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0?this.parseOpera(e):e.stack&&e.stack.match(Rh)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn(`[console-record-plugin]: Failed to parse error object:`,e),[]):[]},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));if(!t)throw Error(`Cannot parse given url: `+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split(`
`).filter(function(e){return!!e.match(Rh)},this).map(function(e){e.indexOf(`(eval `)>-1&&(e=e.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(\),.*$)/g,``));var t=e.replace(/^\s+/,``).replace(/\(eval code/g,`(`),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],``):t;var r=t.split(/\s+/).slice(1),i=this.extractLocation(n?n[1]:r.pop());return new Ih({functionName:r.join(` `)||void 0,fileName:[`eval`,`<anonymous>`].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split(`
`).filter(function(e){return!e.match(zh)},this).map(function(e){if(e.indexOf(` > eval`)>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),e.indexOf(`@`)===-1&&e.indexOf(`:`)===-1)return new Ih({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),r=n&&n[1]?n[1]:void 0,i=this.extractLocation(e.replace(t,``));return new Ih({functionName:r,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(`
`)>-1&&e.message.split(`
`).length>e.stacktrace.split(`
`).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split(`
`),r=[],i=2,a=n.length;i<a;i+=2){var o=t.exec(n[i]);o&&r.push(new Ih({fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,n=e.stacktrace.split(`
`),r=[],i=0,a=n.length;i<a;i+=2){var o=t.exec(n[i]);o&&r.push(new Ih({functionName:o[3]||void 0,fileName:o[2],lineNumber:parseFloat(o[1])}))}return r},parseOpera11:function(e){return e.stack.split(`
`).filter(function(e){return!!e.match(Lh)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split(`@`),n=this.extractLocation(t.pop());return new Ih({functionName:(t.shift()||``).replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function Vh(e){if(!e||!e.outerHTML)return``;for(var t=``;e.parentElement;){var n=e.localName;if(!n)break;n=n.toLowerCase();var r=e.parentElement,i=[];if(r.children&&r.children.length>0)for(var a=0;a<r.children.length;a++){var o=r.children[a];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===n&&i.push(o)}i.length>1&&(n+=`:eq(`+i.indexOf(e)+`)`),t=n+(t?`>`+t:``),e=r}return t}function Hh(e){return Object.prototype.toString.call(e)===`[object Object]`}function Uh(e,t){if(t===0)return!0;for(var n=C(Object.keys(e)),r;!(r=n()).done;){var i=r.value;if(Hh(e[i])&&Uh(e[i],t-1))return!0}return!1}function Wh(e,t){var n={numOfKeysLimit:50,depthOfLimit:4};Object.assign(n,t);var r=[],i=[];return JSON.stringify(e,function(e,t){if(r.length>0){var n=r.indexOf(this);~n?r.splice(n+1):r.push(this),~n?i.splice(n,1/0,e):i.push(e),~r.indexOf(t)&&(t=r[0]===t?`[Circular ~]`:`[Circular ~.`+i.slice(0,r.indexOf(t)).join(`.`)+`]`)}else r.push(t);if(t===null)return t;if(t===void 0)return`undefined`;if(a(t))return o(t);if((t===void 0?`undefined`:b(t))===`bigint`)return t.toString()+`n`;if(g(t,Event)){var s={};for(var c in t){var l=t[c];s[c]=Array.isArray(l)?Vh(l.length?l[0]:null):l}return s}return g(t,Node)?g(t,HTMLElement)?t?t.outerHTML:``:t.nodeName:g(t,Error)?t.stack?t.stack+`
End of stack for Error object`:t.name+`: `+t.message:t});function a(e){return!!(Hh(e)&&Object.keys(e).length>n.numOfKeysLimit||typeof e==`function`||Hh(e)&&Uh(e,n.depthOfLimit))}function o(e){var t=e.toString();return n.stringLengthLimit&&t.length>n.stringLengthLimit&&(t=``+t.slice(0,n.stringLengthLimit)+`...`),t}}var Gh={level:[`assert`,`clear`,`count`,`countReset`,`debug`,`dir`,`dirxml`,`error`,`group`,`groupCollapsed`,`groupEnd`,`info`,`log`,`table`,`time`,`timeEnd`,`timeLog`,`trace`,`warn`],lengthThreshold:1e3,logger:`console`};function Kh(e,t,n){var r=n?Object.assign({},Gh,n):Gh,i=r.logger;if(!i)return function(){};var a=typeof i==`string`?t[i]:i,o=0,s=!1,c=[];if(r.level.includes(`error`)){var l=function(t){var n=t.message,i=t.error;e({level:`error`,trace:Bh.parse(i).map(function(e){return e.toString()}),payload:[Wh(n,r.stringifyOptions)]})};t.addEventListener(`error`,l),c.push(function(){t.removeEventListener(`error`,l)});var u=function(t){var n,i;g(t.reason,Error)?(n=t.reason,i=[Wh(`Uncaught (in promise) `+n.name+`: `+n.message,r.stringifyOptions)]):(n=Error(),i=[Wh(`Uncaught (in promise)`,r.stringifyOptions),Wh(t.reason,r.stringifyOptions)]),e({level:`error`,trace:Bh.parse(n).map(function(e){return e.toString()}),payload:i})};t.addEventListener(`unhandledrejection`,u),c.push(function(){t.removeEventListener(`unhandledrejection`,u)})}for(var d=C(r.level),f;!(f=d()).done;){var p=f.value;c.push(m(a,p))}return function(){c.forEach(function(e){return e()})};function m(t,n){var i=this;return t[n]?Fh(t,n,function(t){var a=i;return function(){var i=[...arguments];if(t.apply(a,i),!(n===`assert`&&i[0])&&!s){s=!0;try{var c=Bh.parse(Error()).map(function(e){return e.toString()}).splice(1),l=(n===`assert`?i.slice(1):i).map(function(e){return Wh(e,r.stringifyOptions)});o++,o<r.lengthThreshold?e({level:n,trace:c,payload:l}):o===r.lengthThreshold&&e({level:`warn`,trace:[],payload:[Wh(`The number of log records reached the threshold.`)]})}catch(e){t.apply(void 0,[`rrweb logger error:`,e].concat(i))}finally{s=!1}}}}):function(){}}}var qh=`rrweb/console@1`,Jh=function(e){return{name:qh,observer:Kh,options:e}},Yh=e.setImmediate,Xh,Zh,Qh,$h=Object.prototype.toString,eg=Yh===void 0?setTimeout:function(e){return Yh(e)};try{Object.defineProperty({},"x",{}),Xh=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:r!==!1})}}catch{Xh=function(e,t,n){return e[t]=n,e}}Qh=(function(){var e,t,n;function r(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,a){n=new r(i,a),t?t.next=n:e=n,t=n,n=void 0},drain:function(){var n=e;for(e=t=Zh=void 0;n;)n.fn.call(n.self),n=n.next}}})();function tg(e,t){Qh.add(e,t),Zh||=eg(Qh.drain)}function ng(e){var t,n=typeof e;return e!==null&&(n===`object`||n===`function`)&&(t=e.then),typeof t==`function`&&t}function rg(){for(var e=0;e<this.chain.length;e++)ig(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function ig(e,t,n){var r,i;try{t===!1?n.reject(e.msg):(r=t===!0?e.msg:t.call(void 0,e.msg),r===n.promise?n.reject(TypeError(`Promise-chain cycle`)):(i=ng(r))?i.call(r,n.resolve,n.reject):n.resolve(r))}catch(e){n.reject(e)}}function ag(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=ng(e))?tg(function(){var r=new cg(n);try{t.call(e,function(){ag.apply(r,arguments)},function(){og.apply(r,arguments)})}catch(e){og.call(r,e)}}):(n.msg=e,n.state=1,n.chain.length>0&&tg(rg,n))}catch(e){og.call(new cg(n),e)}}}function og(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&tg(rg,t))}function sg(e,t,n,r){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)})(i)}function cg(e){this.def=e,this.triggered=!1}function lg(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function ug(e){if(typeof e!=`function`)throw TypeError(`Not a function`);if(this.__NPO__!==0)throw TypeError(`Not a promise`);this.__NPO__=1;var t=new lg(this);this.then=function(e,n){var r={success:typeof e!=`function`||e,failure:typeof n==`function`&&n};return r.promise=new this.constructor(function(e,t){if(typeof e!=`function`||typeof t!=`function`)throw TypeError(`Not a function`);r.resolve=e,r.reject=t}),t.chain.push(r),t.state!==0&&tg(rg,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){ag.call(t,e)},function(e){og.call(t,e)})}catch(e){og.call(t,e)}}var dg=Xh({},`constructor`,ug,!1);ug.prototype=dg,Xh(dg,`__NPO__`,0,!1),Xh(ug,`resolve`,function(e){var t=this;return e&&typeof e==`object`&&e.__NPO__===1?e:new t(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);t(e)})}),Xh(ug,`reject`,function(e){return new this(function(t,n){if(typeof t!=`function`||typeof n!=`function`)throw TypeError(`Not a function`);n(e)})}),Xh(ug,`all`,function(e){var t=this;return $h.call(e)===`[object Array]`?e.length===0?t.resolve([]):new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);var i=e.length,a=Array(i),o=0;sg(t,e,function(e,t){a[e]=t,++o===i&&n(a)},r)}):t.reject(TypeError(`Not an array`))}),Xh(ug,`race`,function(e){var t=this;return $h.call(e)===`[object Array]`?new t(function(n,r){if(typeof n!=`function`||typeof r!=`function`)throw TypeError(`Not a function`);sg(t,e,function(e,t){n(t)},r)}):t.reject(TypeError(`Not an array`))});var U=typeof Promise<`u`&&Promise.toString().indexOf(`[native code]`)!==-1?Promise:ug,fg=864e5,pg=8e3,mg=Array.prototype,hg=Function.prototype,gg=Object.prototype,_g=mg.slice,vg=gg.toString,yg=gg.hasOwnProperty,bg=e.console,xg=e.navigator,W=e.document,Sg=e.opera,Cg=e.screen,wg=xg.userAgent,Tg=hg.bind,Eg=mg.forEach,Dg=mg.indexOf,Og=mg.map,kg=Array.isArray,Ag={},G={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}},K={log:function(){if(n.DEBUG&&!G.isUndefined(bg)&&bg)try{bg.log.apply(bg,arguments)}catch{G.each(arguments,function(e){bg.log(e)})}},warn:function(){if(n.DEBUG&&!G.isUndefined(bg)&&bg){var e=[`Mixpanel warning:`].concat(G.toArray(arguments));try{bg.warn.apply(bg,e)}catch{G.each(e,function(e){bg.warn(e)})}}},error:function(){if(n.DEBUG&&!G.isUndefined(bg)&&bg){var e=[`Mixpanel error:`].concat(G.toArray(arguments));try{bg.error.apply(bg,e)}catch{G.each(e,function(e){bg.error(e)})}}},critical:function(){if(!G.isUndefined(bg)&&bg){var e=[`Mixpanel error:`].concat(G.toArray(arguments));try{bg.error.apply(bg,e)}catch{G.each(e,function(e){bg.error(e)})}}}},jg=function(e,t){return function(){return arguments[0]=`[`+t+`] `+arguments[0],e.apply(K,arguments)}},Mg=function(e){return{log:jg(K.log,e),warn:jg(K.warn,e),error:jg(K.error,e),critical:jg(K.critical,e)}},Ng=function(e){return function(){try{return e.apply(this,arguments)}catch(e){K.critical(`Implementation error. Please turn on debug and contact support@mixpanel.com.`),n.DEBUG&&K.critical(e)}}},Pg=function(e){var t=e.prototype;for(var n in t)typeof t[n]==`function`&&(t[n]=Ng(t[n]))};G.bind=function(e,t){var n,r;if(Tg&&e.bind===Tg)return Tg.apply(e,_g.call(arguments,1));if(!G.isFunction(e))throw TypeError();return n=_g.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(_g.call(arguments)));var i={};i.prototype=e.prototype;var a=new i;i.prototype=null;var o=e.apply(a,n.concat(_g.call(arguments)));return Object(o)===o?o:a},r},G.each=function(e,t,n){if(e!=null){if(Eg&&e.forEach===Eg)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,i=e.length;r<i;r++)if(r in e&&t.call(n,e[r],r,e)===Ag)return}else for(var a in e)if(yg.call(e,a)&&t.call(n,e[a],a,e)===Ag)return}},G.extend=function(e){return G.each(_g.call(arguments,1),function(t){for(var n in t)t[n]!==void 0&&(e[n]=t[n])}),e},G.isArray=kg||function(e){return vg.call(e)===`[object Array]`},G.isFunction=function(e){return typeof e==`function`},G.isArguments=function(e){return!!(e&&yg.call(e,`callee`))},G.toArray=function(e){return e?e.toArray?e.toArray():G.isArray(e)||G.isArguments(e)?_g.call(e):G.values(e):[]},G.map=function(e,t,n){if(Og&&e.map===Og)return e.map(t,n);var r=[];return G.each(e,function(e){r.push(t.call(n,e))}),r},G.keys=function(e){var t=[];return e===null||G.each(e,function(e,n){t[t.length]=n}),t},G.values=function(e){var t=[];return e===null||G.each(e,function(e){t[t.length]=e}),t},G.include=function(e,t){var n=!1;return e===null?n:Dg&&e.indexOf===Dg?e.indexOf(t)!=-1:(G.each(e,function(e){if(n||=e===t)return Ag}),n)},G.includes=function(e,t){return e.indexOf(t)!==-1},G.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},G.isObject=function(e){return e===Object(e)&&!G.isArray(e)},G.isEmptyObject=function(e){if(G.isObject(e)){for(var t in e)if(yg.call(e,t))return!1;return!0}return!1},G.isUndefined=function(e){return e===void 0},G.isString=function(e){return vg.call(e)==`[object String]`},G.isDate=function(e){return vg.call(e)==`[object Date]`},G.isNumber=function(e){return vg.call(e)==`[object Number]`},G.isElement=function(e){return!!(e&&e.nodeType===1)},G.encodeDates=function(e){return G.each(e,function(t,n){G.isDate(t)?e[n]=G.formatDate(t):G.isObject(t)&&(e[n]=G.encodeDates(t))}),e},G.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},G.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())},G.strip_empty_properties=function(e){var t={};return G.each(e,function(e,n){G.isString(e)&&e.length>0&&(t[n]=e)}),t},G.truncate=function(e,t){var n;return typeof e==`string`?n=e.slice(0,t):G.isArray(e)?(n=[],G.each(e,function(e){n.push(G.truncate(e,t))})):G.isObject(e)?(n={},G.each(e,function(e,r){n[r]=G.truncate(e,t)})):n=e,n},G.JSONEncode=(function(){return function(e){var t=e,n=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":`\\b`," ":`\\t`,"\n":`\\n`,"\f":`\\f`,"\r":`\\r`,'"':`\\"`,"\\":`\\\\`};return t.lastIndex=0,t.test(e)?`"`+e.replace(t,function(e){var t=n[e];return typeof t==`string`?t:`\\u`+(`0000`+e.charCodeAt(0).toString(16)).slice(-4)})+`"`:`"`+e+`"`},r=function(e,t){var i=``,a=` `,o=0,s=``,c=``,l=0,u=i,d=[],f=t[e];switch(f&&typeof f==`object`&&typeof f.toJSON==`function`&&(f=f.toJSON(e)),typeof f){case`string`:return n(f);case`number`:return isFinite(f)?String(f):`null`;case`boolean`:case`null`:return String(f);case`object`:if(!f)return`null`;if(i+=a,d=[],vg.apply(f)===`[object Array]`){for(l=f.length,o=0;o<l;o+=1)d[o]=r(o,f)||`null`;return c=d.length===0?`[]`:i?`[
`+i+d.join(`,
`+i)+`
`+u+`]`:`[`+d.join(`,`)+`]`,i=u,c}for(s in f)yg.call(f,s)&&(c=r(s,f),c&&d.push(n(s)+(i?`: `:`:`)+c));return c=d.length===0?`{}`:i?`{`+d.join(`,`)+u+`}`:`{`+d.join(`,`)+`}`,i=u,c}};return r(``,{"":t})}})(),G.JSONDecode=(function(){var e,t,n={'"':`"`,"\\":`\\`,"/":`/`,b:`\b`,f:`\f`,n:`
`,r:`\r`,t:` `},r,i=function(t){var n=SyntaxError(t);throw n.at=e,n.text=r,n},a=function(n){return n&&n!==t&&i(`Expected '`+n+`' instead of '`+t+`'`),t=r.charAt(e),e+=1,t},o=function(){var e,n=``;for(t===`-`&&(n=`-`,a(`-`));t>=`0`&&t<=`9`;)n+=t,a();if(t===`.`)for(n+=`.`;a()&&t>=`0`&&t<=`9`;)n+=t;if(t===`e`||t===`E`)for(n+=t,a(),(t===`-`||t===`+`)&&(n+=t,a());t>=`0`&&t<=`9`;)n+=t,a();if(e=+n,!isFinite(e))i(`Bad number`);else return e},s=function(){var e,r,o=``,s;if(t===`"`)for(;a();){if(t===`"`)return a(),o;if(t===`\\`){if(a(),t===`u`){for(s=0,r=0;r<4&&(e=parseInt(a(),16),isFinite(e));r+=1)s=s*16+e;o+=String.fromCharCode(s)}else if(typeof n[t]==`string`)o+=n[t];else break}else o+=t}i(`Bad string`)},c=function(){for(;t&&t<=` `;)a()},l=function(){switch(t){case`t`:return a(`t`),a(`r`),a(`u`),a(`e`),!0;case`f`:return a(`f`),a(`a`),a(`l`),a(`s`),a(`e`),!1;case`n`:return a(`n`),a(`u`),a(`l`),a(`l`),null}i(`Unexpected "`+t+`"`)},u,d=function(){var e=[];if(t===`[`){if(a(`[`),c(),t===`]`)return a(`]`),e;for(;t;){if(e.push(u()),c(),t===`]`)return a(`]`),e;a(`,`),c()}}i(`Bad array`)},f=function(){var e,n={};if(t===`{`){if(a(`{`),c(),t===`}`)return a(`}`),n;for(;t;){if(e=s(),c(),a(`:`),Object.hasOwnProperty.call(n,e)&&i(`Duplicate key "`+e+`"`),n[e]=u(),c(),t===`}`)return a(`}`),n;a(`,`),c()}}i(`Bad object`)};return u=function(){switch(c(),t){case`{`:return f();case`[`:return d();case`"`:return s();case`-`:return o();default:return t>=`0`&&t<=`9`?o():l()}},function(n){var a;return r=n,e=0,t=` `,a=u(),c(),t&&i(`Syntax error`),a}})(),G.base64Encode=function(e){var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,n,r,i,a,o,s,c,l,u=0,d=0,f=``,p=[];if(!e)return e;e=G.utf8Encode(e);do n=e.charCodeAt(u++),r=e.charCodeAt(u++),i=e.charCodeAt(u++),l=n<<16|r<<8|i,a=l>>18&63,o=l>>12&63,s=l>>6&63,c=l&63,p[d++]=t.charAt(a)+t.charAt(o)+t.charAt(s)+t.charAt(c);while(u<e.length);switch(f=p.join(``),e.length%3){case 1:f=f.slice(0,-2)+`==`;break;case 2:f=f.slice(0,-1)+`=`}return f},G.utf8Encode=function(e){e=(e+``).replace(/\r\n/g,`
`).replace(/\r/g,`
`);var t=``,n,r,i=0,a;for(n=r=0,i=e.length,a=0;a<i;a++){var o=e.charCodeAt(a),s=null;o<128?r++:s=o>127&&o<2048?String.fromCharCode(o>>6|192,o&63|128):String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),s!==null&&(r>n&&(t+=e.substring(n,r)),t+=s,n=r=a+1)}return r>n&&(t+=e.substring(n,e.length)),t},G.UUID=function(){try{return e.crypto.randomUUID()}catch{for(var t=Array(36),n=0;n<36;n++)t[n]=Math.floor(Math.random()*16);return t[14]=4,t[19]=t[19]&=-5,t[19]=t[19]|=8,t[8]=t[13]=t[18]=t[23]=`-`,G.map(t,function(e){return e.toString(16)}).join(``)}};var Fg=[`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`];G.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<Fg.length;t++)if(e.indexOf(Fg[t])!==-1)return!0;return!1},G.HTTPBuildQuery=function(e,t){var n,r,i=[];return G.isUndefined(t)&&(t=`&`),G.each(e,function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),i[i.length]=r+`=`+n}),i.join(t)},G.getQueryParam=function(e,t){t=t.replace(/[[]/g,`\\[`).replace(/[\]]/g,`\\]`);var n=`[\\?&]`+t+`=([^&#]*)`,r=new RegExp(n).exec(e);if(r===null||r&&typeof r[1]!=`string`&&r[1].length)return``;var i=r[1];try{i=decodeURIComponent(i)}catch{K.error(`Skipping decoding for malformed query param: `+i)}return i.replace(/\+/g,` `)},G.cookie={get:function(e){for(var t=e+`=`,n=W.cookie.split(`;`),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==` `;)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=G.JSONDecode(G.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,n,r,i,a,o){var s=``,c=``,l=``;if(o)s=`; domain=`+o;else if(r){var u=Zg(W.location.hostname);s=u?`; domain=.`+u:``}if(n){var d=new Date;d.setTime(d.getTime()+n*1e3),c=`; expires=`+d.toGMTString()}a&&(i=!0,l=`; SameSite=None`),i&&(l+=`; secure`),W.cookie=e+`=`+encodeURIComponent(t)+c+`; path=/`+s+l},set:function(e,t,n,r,i,a,o){var s=``,c=``,l=``;if(o)s=`; domain=`+o;else if(r){var u=Zg(W.location.hostname);s=u?`; domain=.`+u:``}if(n){var d=new Date;d.setTime(d.getTime()+n*24*60*60*1e3),c=`; expires=`+d.toGMTString()}a&&(i=!0,l=`; SameSite=None`),i&&(l+=`; secure`);var f=e+`=`+encodeURIComponent(t)+c+`; path=/`+s+l;return W.cookie=f,f},remove:function(e,t,n){G.cookie.set(e,``,-1,t,!1,!1,n)}};var Ig=function(e){var t=!0;try{var n=`__mplss_`+qg(8),r=`xyz`;e.setItem(n,r),e.getItem(n)!==r&&(t=!1),e.removeItem(n)}catch{t=!1}return t},Lg=null,Rg=function(e,t){return Lg!==null&&!t?Lg:Lg=Ig(e)},zg=null,Bg=function(e,t){return zg!==null&&!t?zg:zg=Ig(e)};function Vg(e,t,n){var r=function(e){K.error(t+` error: `+e)};return{is_supported:function(r){var i=n(e,r);return i||K.error(t+` unsupported`),i},error:r,get:function(t){try{return e.getItem(t)}catch(e){r(e)}return null},parse:function(t){try{return G.JSONDecode(e.getItem(t))||{}}catch{}return null},set:function(t,n){try{e.setItem(t,n)}catch(e){r(e)}},remove:function(t){try{e.removeItem(t)}catch(e){r(e)}}}}var Hg=function(){try{return e.localStorage}catch{return null}};G.localStorage=Vg(Hg(),`localStorage`,Rg),G.sessionStorage=Vg(function(){try{return e.sessionStorage}catch{return null}}(),`sessionStorage`,Bg),G.register_event=(function(){var t=function(e,t,r,i,a){if(!e){K.error(`No valid element provided to register_event`);return}if(e.addEventListener&&!i)e.addEventListener(t,r,!!a);else{var o=`on`+t,s=e[o];e[o]=n(e,r,s)}};function n(t,n,i){return function(a){if(a||=r(e.event),a){var o=!0,s,c;return G.isFunction(i)&&(s=i(a)),c=n.call(t,a),(!1===s||!1===c)&&(o=!1),o}}}function r(e){return e&&(e.preventDefault=r.preventDefault,e.stopPropagation=r.stopPropagation),e}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},t})();var Ug=RegExp(`^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$`);G.dom_query=(function(){function e(e){return e.all?e.all:e.getElementsByTagName(`*`)}var t=/[\t\r\n]/g;function n(e,n){var r=` `+n+` `;return(` `+e.className+` `).replace(t,` `).indexOf(r)>=0}function r(t){if(!W.getElementsByTagName)return[];var r=t.split(` `),i,a,o,s,c,l,u,d,f,p,m=[W];for(l=0;l<r.length;l++){if(i=r[l].replace(/^\s+/,``).replace(/\s+$/,``),i.indexOf(`#`)>-1){a=i.split(`#`),o=a[0];var h=a[1],g=W.getElementById(h);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];m=[g];continue}if(i.indexOf(`.`)>-1){a=i.split(`.`),o=a[0];var _=a[1];for(o||=`*`,s=[],c=0,u=0;u<m.length;u++)for(f=o==`*`?e(m[u]):m[u].getElementsByTagName(o),d=0;d<f.length;d++)s[c++]=f[d];for(m=[],p=0,u=0;u<s.length;u++)s[u].className&&G.isString(s[u].className)&&n(s[u],_)&&(m[p++]=s[u]);continue}var v=i.match(Ug);if(v){o=v[1];var y=v[2],b=v[3],x=v[4];for(o||=`*`,s=[],c=0,u=0;u<m.length;u++)for(f=o==`*`?e(m[u]):m[u].getElementsByTagName(o),d=0;d<f.length;d++)s[c++]=f[d];m=[],p=0;var S;switch(b){case`=`:S=function(e){return e.getAttribute(y)==x};break;case`~`:S=function(e){return e.getAttribute(y).match(RegExp(`\\b`+x+`\\b`))};break;case`|`:S=function(e){return e.getAttribute(y).match(RegExp(`^`+x+`-?`))};break;case`^`:S=function(e){return e.getAttribute(y).indexOf(x)===0};break;case`$`:S=function(e){return e.getAttribute(y).lastIndexOf(x)==e.getAttribute(y).length-x.length};break;case`*`:S=function(e){return e.getAttribute(y).indexOf(x)>-1};break;default:S=function(e){return e.getAttribute(y)}}for(m=[],p=0,u=0;u<s.length;u++)S(s[u])&&(m[p++]=s[u]);continue}for(o=i,s=[],c=0,u=0;u<m.length;u++)for(f=m[u].getElementsByTagName(o),d=0;d<f.length;d++)s[c++]=f[d];m=s}return m}return function(e){return G.isElement(e)?[e]:G.isObject(e)&&!G.isUndefined(e.length)?e:r.call(this,e)}})();var Wg=[`utm_source`,`utm_medium`,`utm_campaign`,`utm_content`,`utm_term`,`utm_id`,`utm_source_platform`,`utm_campaign_id`,`utm_creative_format`,`utm_marketing_tactic`],Gg=[`dclid`,`fbclid`,`gclid`,`ko_click_id`,`li_fat_id`,`msclkid`,`sccid`,`ttclid`,`twclid`,`wbraid`];G.info={campaignParams:function(e){var t=``,n={};return G.each(Wg,function(r){t=G.getQueryParam(W.URL,r),t.length?n[r]=t:e!==void 0&&(n[r]=e)}),n},clickParams:function(){var e=``,t={};return G.each(Gg,function(n){e=G.getQueryParam(W.URL,n),e.length&&(t[n]=e)}),t},marketingParams:function(){return G.extend(G.info.campaignParams(),G.info.clickParams())},searchEngine:function(e){return e.search(`https?://(.*)google.([^/?]*)`)===0?`google`:e.search(`https?://(.*)bing.com`)===0?`bing`:e.search(`https?://(.*)yahoo.com`)===0?`yahoo`:e.search(`https?://(.*)duckduckgo.com`)===0?`duckduckgo`:null},searchInfo:function(e){var t=G.info.searchEngine(e),n=t==`yahoo`?`p`:`q`,r={};if(t!==null){r.$search_engine=t;var i=G.getQueryParam(e,n);i.length&&(r.mp_keyword=i)}return r},browser:function(e,t,n){return t||=``,n||G.includes(e,` OPR/`)?G.includes(e,`Mini`)?`Opera Mini`:`Opera`:/(BlackBerry|PlayBook|BB10)/i.test(e)?`BlackBerry`:G.includes(e,`IEMobile`)||G.includes(e,`WPDesktop`)?`Internet Explorer Mobile`:G.includes(e,`SamsungBrowser/`)?`Samsung Internet`:G.includes(e,`Edge`)||G.includes(e,`Edg/`)?`Microsoft Edge`:G.includes(e,`FBIOS`)?`Facebook Mobile`:G.includes(e,`Whale/`)?`Whale Browser`:G.includes(e,`Chrome`)?`Chrome`:G.includes(e,`CriOS`)?`Chrome iOS`:G.includes(e,`UCWEB`)||G.includes(e,`UCBrowser`)?`UC Browser`:G.includes(e,`FxiOS`)?`Firefox iOS`:G.includes(t,`Apple`)?G.includes(e,`Mobile`)?`Mobile Safari`:`Safari`:G.includes(e,`Android`)?`Android Mobile`:G.includes(e,`Konqueror`)?`Konqueror`:G.includes(e,`Firefox`)?`Firefox`:G.includes(e,`MSIE`)||G.includes(e,`Trident/`)?`Internet Explorer`:G.includes(e,`Gecko`)?`Mozilla`:``},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[G.info.browser(e,t,n)];if(r===void 0)return null;var i=e.match(r);return i?parseFloat(i[i.length-2]):null},os:function(){var e=wg;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 e.location.href},properties:function(e){return typeof e!=`object`&&(e={}),G.extend(G.strip_empty_properties({$os:G.info.os(),$browser:G.info.browser(wg,xg.vendor,Sg),$referrer:W.referrer,$referring_domain:G.info.referringDomain(W.referrer),$device:G.info.device(wg)}),{$current_url:G.info.currentUrl(),$browser_version:G.info.browserVersion(wg,xg.vendor,Sg),$screen_height:Cg.height,$screen_width:Cg.width,mp_lib:`web`,$lib_version:n.LIB_VERSION,$insert_id:qg(),time:G.timestamp()/1e3},G.strip_empty_properties(e))},people_properties:function(){return G.extend(G.strip_empty_properties({$os:G.info.os(),$browser:G.info.browser(wg,xg.vendor,Sg)}),{$browser_version:G.info.browserVersion(wg,xg.vendor,Sg)})},mpPageViewProperties:function(){return G.strip_empty_properties({current_page_title:W.title,current_domain:e.location.hostname,current_url_path:e.location.pathname,current_url_protocol:e.location.protocol,current_url_search:e.location.search})}};var Kg=function(e,t){var n=null,r=[];return function(i){var a=this;return r.push(i),n||=new U(function(i){setTimeout(function(){var t=e.apply(a,[r]);n=null,r=[],i(t)},t)}),n}},qg=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},Jg=function(){var e=G.UUID().replace(/-/g,``),t=G.UUID().replace(/-/g,``).substring(0,16);return`00-`+e+`-`+t+`-01`},Yg=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Xg=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Zg=function(e){var t=Xg,n=e.split(`.`),r=n[n.length-1];(r.length>4||r===`com`||r===`org`)&&(t=Yg);var i=e.match(t);return i?i[0]:``},Qg=function(){var t=e.navigator.onLine;return G.isUndefined(t)||t},$g=function(){},e_=function(e,t){for(var n=!1,r=0;r<t.length;r++)if(e.match(t[r])){n=!0;break}return n},t_=null,n_=null;typeof JSON<`u`&&(t_=JSON.stringify,n_=JSON.parse),t_||=G.JSONEncode,n_||=G.JSONDecode;var r_=function(t,n,r){if(!e.CompressionStream)return!1;var i=G.info.browser(t,n,r),a=G.info.browserVersion(t,n,r);return!((i===`Safari`||i===`Mobile Safari`)&&a>=16.4&&a<16.6)};G.info=G.info,G.info.browser=G.info.browser,G.info.browserVersion=G.info.browserVersion,G.info.device=G.info.device,G.info.properties=G.info.properties,G.isBlockedUA=G.isBlockedUA,G.isEmptyObject=G.isEmptyObject,G.isObject=G.isObject,G.JSONDecode=G.JSONDecode,G.JSONEncode=G.JSONEncode,G.toArray=G.toArray,G.NPO=ug;var i_=function(e,t,n){this.dbName=e,this.storeName=t,this.version=n.version,this.storeNamesInDb=n.storeNames,this.dbPromise=null};i_.prototype._openDb=function(){var t=this.dbName,n=this.version,r=this.storeNamesInDb;return new U(function(i,a){var o=e.indexedDB.open(t,n);o.onerror=function(){a(o.error)},o.onsuccess=function(){i(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},i_.prototype.init=function(){return e.indexedDB?(this.dbPromise||=this._openDb(),this.dbPromise.then(function(t){return t instanceof e.IDBDatabase?U.resolve():U.reject(t)})):U.reject(`indexedDB is not supported in this browser`)},i_.prototype.isInitialized=function(){return!!this.dbPromise},i_.prototype.makeTransaction=function(e,t){var n=this.storeName,r=function(r){return new U(function(i,a){var o=r.transaction(n,e);o.oncomplete=function(){i(o)},o.onabort=o.onerror=function(){a(o.error)},t(o.objectStore(n))})};return this.dbPromise.then(r).catch(function(e){return e&&e.name===`InvalidStateError`?(this.dbPromise=this._openDb(),this.dbPromise.then(r)):U.reject(e)}.bind(this))},i_.prototype.setItem=function(e,t){return this.makeTransaction(`readwrite`,function(n){n.put(t,e)})},i_.prototype.getItem=function(e){var t;return this.makeTransaction(`readonly`,function(n){t=n.get(e)}).then(function(){return t.result})},i_.prototype.removeItem=function(e){return this.makeTransaction(`readwrite`,function(t){t.delete(e)})},i_.prototype.getAll=function(){var e;return this.makeTransaction(`readonly`,function(t){e=t.getAll()}).then(function(){return e.result})};var a_=`mixpanelBrowserDb`,o_=`mixpanelRecordingEvents`,s_=`mixpanelRecordingRegistry`,c_={version:1,storeNames:[o_,s_]},l_=`__mp_opt_in_out_`;function u_(e,t){S_(!0,e,t)}function d_(e,t){S_(!1,e,t)}function f_(e,t){return b_(e,t)===`1`}function p_(e,t){if(x_(t))return K.warn(`This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"`),!0;var n=b_(e,t)===`0`;return n&&K.warn(`You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.`),n}function m_(e){return C_(e,function(e){return this.get_config(e)})}function h_(e){return C_(e,function(e){return this._get_config(e)})}function g_(e){return C_(e,function(e){return this._get_config(e)})}function __(e,t){t||={},v_(t).remove(y_(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function v_(e){return e||={},e.persistenceType===`localStorage`?G.localStorage:G.cookie}function y_(e,t){return t||={},(t.persistencePrefix||l_)+e}function b_(e,t){return v_(t).get(y_(e,t))}function x_(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||e,r=n.navigator||{},i=!1;return G.each([r.doNotTrack,r.msDoNotTrack,n.doNotTrack],function(e){G.includes([!0,1,`1`,`yes`],e)&&(i=!0)}),i}function S_(e,t,n){if(!G.isString(t)||!t.length){K.error(`gdpr.`+(e?`optIn`:`optOut`)+` called with an invalid token`);return}n||={},v_(n).set(y_(t,n),+!!e,G.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||`$opt_in`,n.trackProperties,{send_immediately:!0})}function C_(e,t){return function(){var n=!1;try{var r=t.call(this,`token`),i=t.call(this,`ignore_dnt`),a=t.call(this,`opt_out_tracking_persistence_type`),o=t.call(this,`opt_out_tracking_cookie_prefix`),s=t.call(this,`window`);r&&(n=p_(r,{ignoreDnt:i,persistenceType:a,persistencePrefix:o,window:s}))}catch(e){K.error(`Unexpected error when checking tracking opt-out status: `+e)}if(!n)return e.apply(this,arguments);var c=arguments[arguments.length-1];typeof c==`function`&&c(0)}}var w_=Mg(`lock`),T_=function(e,t){t||={},this.storageKey=e,this.storage=t.storage||Hg(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||U};T_.prototype.withLock=function(e,t){var n=this.promiseImpl;return new n(G.bind(function(n,r){var i=t||new Date().getTime()+`|`+Math.random(),a=new Date().getTime(),o=this.storageKey,s=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,u=o+`:X`,d=o+`:Y`,f=o+`:Z`,p=function(e){if(new Date().getTime()-a>c){w_.error(`Timeout waiting for mutex on `+o+`; clearing lock. [`+i+`]`),l.removeItem(f),l.removeItem(d),g();return}setTimeout(function(){try{e()}catch(e){r(e)}},s*(Math.random()+.1))},m=function(e,t){e()?t():p(function(){m(e,t)})},h=function(){var e=l.getItem(d);return e&&e!==i?!1:(l.setItem(d,i),l.getItem(d)===i||(Rg(l,!0)||r(Error(`localStorage support dropped while acquiring lock`)),!1))},g=function(){l.setItem(u,i),m(h,function(){if(l.getItem(u)===i){_();return}p(function(){if(l.getItem(d)!==i){g();return}m(function(){return!l.getItem(f)},_)})})},_=function(){l.setItem(f,`1`);var t=function(){l.removeItem(f),l.getItem(d)===i&&l.removeItem(d),l.getItem(u)===i&&l.removeItem(u)};e().then(function(e){t(),n(e)}).catch(function(e){t(),r(e)})};try{if(Rg(l,!0))g();else throw Error(`localStorage support check failed`)}catch(e){r(e)}},this))};var E_=function(e){this.storage=e||Hg()};E_.prototype.init=function(){return this.storage?U.resolve():U.reject(Error(`localStorage is not available`))},E_.prototype.isInitialized=function(){return!0},E_.prototype.setItem=function(e,t){return new U(G.bind(function(n,r){try{this.storage.setItem(e,t_(t))}catch(e){r(e)}n()},this))},E_.prototype.getItem=function(e){return new U(G.bind(function(t,n){var r;try{r=n_(this.storage.getItem(e))}catch(e){n(e)}t(r)},this))},E_.prototype.removeItem=function(e){return new U(G.bind(function(t,n){try{this.storage.removeItem(e)}catch(e){n(e)}t()},this))};var D_=Mg(`batch`),O_=function(e,t){t||={},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new E_,this.lock=new T_(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||G.bind(D_.error,D_),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,this.enqueuePersisted=t.enqueueThrottleMs?Kg(G.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):G.bind(function(e){return this._enqueuePersisted([e])},this)};O_.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?U.resolve():this.queueStorage.init().then(G.bind(function(){this.initialized=!0},this)).catch(G.bind(function(e){this.reportError(`Error initializing queue persistence. Disabling persistence`,e),this.initialized=!0,this.usePersistence=!1},this))},O_.prototype.enqueue=function(e,t){var n={id:qg(),flushAfter:new Date().getTime()+t*2,payload:e};return this.usePersistence?this.enqueuePersisted(n):(this.memQueue.push(n),U.resolve(!0))},O_.prototype._enqueuePersisted=function(e){var t=G.bind(function(){return this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(G.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(G.bind(function(t){return this.reportError(`Error enqueueing items`,t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(G.bind(function(e){return this.reportError(`Error acquiring storage lock`,e),!1},this))},O_.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(n){if(n.length){var r={};G.each(t,function(e){r[e.id]=!0});for(var i=0;i<n.length;i++){var a=n[i];if(new Date().getTime()>a.flushAfter&&!r[a.id]&&(a.orphaned=!0,t.push(a),t.length>=e))break}}return t},this)):U.resolve(t)};var k_=function(e,t){var n=[];return G.each(e,function(e){e.id&&!t[e.id]&&n.push(e)}),n};O_.prototype.removeItemsByID=function(e){var t={};if(G.each(e,function(e){t[e]=!0}),this.memQueue=k_(this.memQueue,t),this.usePersistence){var n=G.bind(function(){return this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(e){return e=k_(e,t),this.saveToStorage(e)},this)).then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(e){for(var n=0;n<e.length;n++){var r=e[n];if(r.id&&t[r.id])throw Error(`Item not removed from storage`)}return!0},this)).catch(G.bind(function(t){return this.reportError(`Error removing items`,t,e),!1},this))},this);return this.lock.withLock(n,this.pid).catch(G.bind(function(e){return this.reportError(`Error acquiring storage lock`,e),!Rg(this.lock.storage,!0)&&n().then(G.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(G.bind(function(e){return this.reportError(`Error clearing queue`,e),!1},this))},this))}return U.resolve(!0)};var A_=function(e,t){var n=[];return G.each(e,function(e){var r=e.id;if(r in t){var i=t[r];i!==null&&(e.payload=i,n.push(e))}else n.push(e)}),n};O_.prototype.updatePayloads=function(e){return this.memQueue=A_(this.memQueue,e),this.usePersistence?this.lock.withLock(G.bind(function(){return this.ensureInit().then(G.bind(function(){return this.readFromStorage()},this)).then(G.bind(function(t){return t=A_(t,e),this.saveToStorage(t)},this)).catch(G.bind(function(t){return this.reportError(`Error updating items`,e,t),!1},this))},this),this.pid).catch(G.bind(function(e){return this.reportError(`Error acquiring storage lock`,e),!1},this)):U.resolve(!0)},O_.prototype.readFromStorage=function(){return this.ensureInit().then(G.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(G.bind(function(e){return e&&(G.isArray(e)||(this.reportError(`Invalid storage entry:`,e),e=null)),e||[]},this)).catch(G.bind(function(e){return this.reportError(`Error retrieving queue`,e),[]},this))},O_.prototype.saveToStorage=function(e){return this.ensureInit().then(G.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(G.bind(function(e){return this.reportError(`Error saving queue`,e),!1},this))},O_.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(G.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):U.resolve()};var j_=6e5,M_=Mg(`batch`),N_=function(e,t){this.errorReporter=t.errorReporter,this.queue=new O_(e,{errorReporter:G.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};N_.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)},N_.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},N_.prototype.stop=function(){this.stopped=!0,this.timeoutID&&=(clearTimeout(this.timeoutID),null)},N_.prototype.clear=function(){return this.queue.clear()},N_.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},N_.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},N_.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(G.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},N_.prototype.sendRequestPromise=function(e,t){return new U(G.bind(function(n){this.sendRequest(e,t,n)},this))},N_.prototype.flush=function(e){if(this.requestInProgress)return M_.log(`Flush: Request already in progress`),U.resolve();this.requestInProgress=!0,e||={};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),i=this.batchSize;return this.queue.fillBatch(i).then(G.bind(function(a){var o=a.length===i,s=[],c={};if(G.each(a,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=G.extend({},t.properties,{mp_sent_by_lib_version:n.LIB_VERSION}));var r=!0,i=e.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError(`[dupe] item ID sent too many times, not sending`,{item:e,batchSize:a.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError(`[dupe] found item with no ID`,{item:e}),r&&s.push(t)}c[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),U.resolve();var l=G.bind(function(){return this.queue.removeItemsByID(G.map(a,function(e){return e.id})).then(G.bind(function(e){return G.each(a,G.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:a.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError(`[dupe] found item with no ID while removing`,{item:e})},this)),e?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),U.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError(`Too many queue failures; disabling batching system.`),this.stopAllBatching()):this.resetFlush(),U.resolve())},this))},this),u=G.bind(function(n){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(c);if(G.isObject(n)&&n.error===`timeout`&&new Date().getTime()-r>=t)return this.reportError(`Network timeout; retrying`),this.flush();if(G.isObject(n)&&(n.httpStatusCode>=500||n.httpStatusCode===429||n.httpStatusCode<=0&&!Qg()||n.error===`timeout`)){var o=this.flushInterval*2;return n.retryAfter&&(o=parseInt(n.retryAfter,10)*1e3||o),o=Math.min(j_,o),this.reportError(`Error; retry in `+o+` ms`),this.scheduleFlush(o),U.resolve()}if(G.isObject(n)&&n.httpStatusCode===413){if(a.length>1){var s=Math.max(1,Math.floor(i/2));return this.batchSize=Math.min(this.batchSize,s,a.length-1),this.reportError(`413 response; reducing batch size to `+this.batchSize),this.resetFlush(),U.resolve()}return this.reportError(`Single-event request too large; dropping`,a),this.resetBatchSize(),l()}return l()}catch(e){this.reportError(`Error handling API response`,e),this.resetFlush()}},this),d={method:`POST`,verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(d.transport=`sendBeacon`),M_.log(`MIXPANEL REQUEST:`,s),this.sendRequestPromise(s,d).then(u)},this)).catch(G.bind(function(e){this.reportError(`Error flushing request queue`,e),this.resetFlush()},this))},N_.prototype.reportError=function(e,t){if(M_.error.apply(M_.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){M_.error(e)}};var P_=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},F_=250,I_=function(e,t){if(!G.isArray(e))return e&&t.critical(`record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled.`),[];for(var n=[],r=0;r<e.length;r++)try{var i=new URL(e[r]).origin;if(i===`null`){t.critical(e[r]+` has an opaque origin. Skipping this entry.`);continue}n.push(i)}catch{t.critical(e[r]+` is not a valid origin URL. Skipping this entry.`)}return n},L_=`change`,R_=`click`,z_=`hashchange`,B_=`input`,V_=`load`,H_=`mp_locationchange`,U_=`popstate`,W_=`scrollend`,G_=`scroll`,K_=`select`,q_=`submit`,J_=`toggle`,Y_=`visibilitychange`,X_=[`clientX`,`clientY`,`offsetX`,`offsetY`,`pageX`,`pageY`,`screenX`,`screenY`,`x`,`y`],Z_=[`mp-include`],Q_=[`mp-no-track`],$_=Q_.concat([`mp-sensitive`]),ev=[`aria-label`,`aria-labelledby`,`aria-describedby`,`href`,`name`,`role`,`title`,`type`],tv={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},nv={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},rv={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},iv=[`onclick`,`onmousedown`,`onmouseup`,`onpointerdown`,`onpointerup`,`ontouchend`,`ontouchstart`],av=5,q=Mg(`autocapture`);function ov(e){for(var t={},n=sv(e).split(` `),r=0;r<n.length;r++){var i=n[r];i&&(t[i]=!0)}return t}function sv(e){switch(typeof e.className){case`string`:return e.className;case`object`:return e.className.baseVal||e.getAttribute(`class`)||``;default:return``}}function cv(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!hv(e));return e}function lv(e,t,n,r,i,a){var o={$classes:sv(e).split(` `),$tag_name:e.tagName.toLowerCase()},s=e.id;s&&(o.$id=s),Sv(e,t,i,a)&&G.each(ev.concat(r),function(t){if(e.hasAttribute(t)&&!n[t]){var r=e.getAttribute(t);Cv(r)&&(o[`$attr-`+t]=r)}});for(var c=1,l=1,u=e;u=cv(u);)c++,u.tagName===e.tagName&&l++;return o.$nth_child=c,o.$nth_of_type=l,o}function uv(t,n){var r=n.allowElementCallback,i=n.allowSelectors||[],a=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],c=n.captureTextContent||!1,l=n.captureExtraAttrs||[],u=n.capturedForHeatMap||!1,d={};G.each(a,function(e){d[e]=!0});var f=null,p=t.target===void 0?t.srcElement:t.target;if(_v(p)&&(p=p.parentNode),bv(p,t)&&pv(p,t,r,i)&&!mv(p,t,o,s)){for(var m=[p],h=p;h.parentNode&&!gv(h,`body`);)m.push(h.parentNode),h=h.parentNode;var g=[],_,v=!1;if(G.each(m,function(e){var n=Sv(e,t,r,i);!d.href&&e.tagName.toLowerCase()===`a`&&(_=e.getAttribute(`href`),_=n&&Cv(_)&&_),mv(e,t,o,s)&&(v=!0),g.push(lv(e,t,d,l,r,i))},this),!v){var y=W.documentElement;if(f={$event_type:t.type,$host:e.location.host,$pathname:e.location.pathname,$elements:g,$el_attr__href:_,$viewportHeight:Math.max(y.clientHeight,e.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,e.innerWidth||0),$pageHeight:W.body.offsetHeight||0,$pageWidth:W.body.offsetWidth||0},G.each(l,function(e){if(!d[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);Cv(t)&&(f[`$el_attr__`+e]=t)}}),c&&(b=dv(p,t,r,i),b&&b.length&&(f.$el_text=b)),t.type===R_&&(G.each(X_,function(e){e in t&&(f[`$`+e]=t[e])}),u&&(f.$captured_for_heatmap=!0),p=fv(t)),c){var b=dv(p,t,r,i);b&&b.length&&(f.$el_text=b)}if(p){if(!pv(p,t,r,i)||mv(p,t,o,s))return null;var x=lv(p,t,d,l,r,i);f.$target=x,f.$el_classes=x.$classes,G.extend(f,G.strip_empty_properties({$el_id:x.$id,$el_tag_name:x.$tag_name}))}}}return f}function dv(e,t,n,r){var i=``;return Sv(e,t,n,r)&&e.childNodes&&e.childNodes.length&&G.each(e.childNodes,function(e){_v(e)&&e.textContent&&(i+=G.trim(e.textContent).split(/(\s+)/).filter(Cv).join(``).replace(/[\r\n]/g,` `).replace(/[ ]+/g,` `).substring(0,255))}),G.trim(i)}function fv(e){for(var t=e.target,n=e.composedPath(),r=0;r<n.length;r++){var i=n[r];if(gv(i,`a`)||gv(i,`button`)||gv(i,`input`)||gv(i,`select`)||i.getAttribute&&i.getAttribute(`role`)===`button`){t=i;break}if(i===t)break}return t}function pv(e,t,n,r){if(n)try{if(!n(e,t))return!1}catch(e){return q.critical(`Error while checking element in allowElementCallback`,e),!1}if(!r.length)return!0;for(var i=0;i<r.length;i++){var a=r[i];try{if(e.matches(a))return!0}catch(e){q.critical(`Error while checking selector: `+a,e)}}return!1}function mv(e,t,n,r){var i;if(n)try{if(n(e,t))return!0}catch(e){return q.critical(`Error while checking element in blockElementCallback`,e),!0}if(r&&r.length)for(i=0;i<r.length;i++){var a=r[i];try{if(e.matches(a))return!0}catch(e){q.critical(`Error while checking selector: `+a,e)}}var o=ov(e);for(i=0;i<Q_.length;i++)if(o[Q_[i]])return!0;return!1}function hv(e){return e&&e.nodeType===1}function gv(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function _v(e){return e&&e.nodeType===3}function vv(){try{return!!W.createElement(`div`).matches}catch{return!1}}function yv(){return typeof WeakSet<`u`}function bv(e,t){if(!e||gv(e,`html`)||!hv(e))return!1;switch(e.tagName.toLowerCase()){case`form`:return t.type===q_;case`input`:return[`button`,`submit`].indexOf(e.getAttribute(`type`))===-1?t.type===L_:t.type===R_;case`select`:case`textarea`:return t.type===L_;default:return t.type===R_}}function xv(e){var t=(e.name||e.id||``).toString().toLowerCase();return!!(typeof t==`string`&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,``)))}function Sv(e,t,n,r){var i;if(!pv(e,t,n,r))return!1;for(var a=e;a.parentNode&&!gv(a,`body`);a=a.parentNode){var o=ov(a);for(i=0;i<$_.length;i++)if(o[$_[i]])return!1}var s=ov(e);for(i=0;i<Z_.length;i++)if(s[Z_[i]])return!0;if(gv(e,`input`)||gv(e,`select`)||gv(e,`textarea`)||e.getAttribute(`contenteditable`)===`true`)return!1;var c=e.type||``;if(typeof c==`string`)switch(c.toLowerCase()){case`hidden`:return!1;case`password`:return!1}return!xv(e)}function Cv(e){return!(e===null||G.isUndefined(e)||typeof e==`string`&&(e=G.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||``).replace(/[- ]/g,``))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))}function wv(t){var n=`onscrollend`in e,r=Ng(t),i=W_;if(!n){var a=null,o=100;r=Ng(function(){clearTimeout(a),a=setTimeout(t,o)}),i=G_}return{listener:r,eventType:i}}function Tv(e){for(var t=0;t<iv.length;t++)if(e.hasAttribute(iv[t]))return!0;return!1}function Ev(e){var t=e.getAttribute(`role`);return t?tv[t.trim().split(/\s+/)[0].toLowerCase()]:!1}function Dv(e){var t=e.tagName.toLowerCase();return!!(t===`button`||t===`input`||t===`select`||t===`textarea`||t===`details`||t===`dialog`||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||Tv(e)||Ev(e)||t===`a`&&e.hasAttribute(`href`)||e.hasAttribute(`tabindex`))}function Ov(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(nv[t])return!0;if(Dv(e))return!1;for(var n=e.parentElement,r=0;n&&r<av;){if(Dv(n))return!1;if(n.getRootNode&&n.getRootNode()!==W){var i=n.getRootNode();if(i.host&&Dv(i.host))return!1}n=n.parentElement,r++}return!!rv[t]}function kv(e){return`composedPath`in e?e.composedPath():[]}function Av(e){var t=kv(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var jv=`.mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask`,Mv=`data-rr-is-password`,Nv=[`password`,`email`,`tel`,`hidden`];function Pv(e){return e?Array.isArray(e)?e:[e]:[]}function Fv(e){var t={input:{maskingSelector:``,unmaskingSelector:``,maskAll:!0},text:{maskingSelector:``,unmaskingSelector:``,maskAll:!0}},n=e.get_config(`record_mask_input_selector`),r=e.get_config(`record_unmask_input_selector`),i=e.get_config(`record_mask_all_inputs`);t.input.maskingSelector=Pv(n).join(`,`),t.input.unmaskingSelector=Pv(r).join(`,`),i!==void 0&&(t.input.maskAll=i);var a=e.get_config(`record_mask_text_selector`),o=e.get_config(`record_unmask_text_selector`),s=e.get_config(`record_mask_all_text`),c=e.get_config(`record_mask_text_class`),l=Pv(a);if(c){if(c instanceof RegExp)t.text._legacyClassRegex=c;else{var u=`.`+c;l.indexOf(u)===-1&&l.push(u)}}return t.text.maskingSelector=l.join(`,`),t.text.unmaskingSelector=Pv(o).join(`,`),s===void 0&&a!==void 0?t.text.maskAll=!1:s!==void 0&&(t.text.maskAll=s),t}function Iv(e,t){return t?!!e.closest(t):!1}function Lv(e,t){var n=(e.getAttribute(`type`)||``).toLowerCase();if(Nv.indexOf(n)!==-1)return!0;var r=(e.getAttribute(`autocomplete`)||``).toLowerCase();return r&&r!==``&&r!==`off`||e.hasAttribute(Mv)||xv(e)?!0:t.input.maskAll?!Iv(e,t.input.unmaskingSelector):!!(Iv(e,t.input.maskingSelector)||Iv(e,jv))}function Rv(e,t){return e?t.text._legacyClassRegex&&Wd(e,t.text._legacyClassRegex)?!0:t.text.maskAll?!Iv(e,t.text.unmaskingSelector):!!(Iv(e,t.text.maskingSelector)||Iv(e,jv)):!1}var zv=Mg(`network-plugin`);function Bv(e){return Math.round(Date.now()-e.performance.now())}var Vv={initiatorTypes:[`audio`,`beacon`,`body`,`css`,`early-hint`,`embed`,`fetch`,`frame`,`iframe`,`icon`,`image`,`img`,`input`,`link`,`navigation`,`object`,`ping`,`script`,`track`,`video`,`xmlhttprequest`],ignoreRequestFn:function(){return!1},recordHeaders:{request:[],response:[]},recordBodyUrls:{request:[],response:[]},recordInitialRequests:!1};function Hv(e){return e.entryType===`navigation`}function Uv(e){return e.entryType===`resource`}function Wv(e,t){for(var n=e.length-1;n>=0;--n)if(t(e[n]))return e[n]}function Gv(e,t,n){if(!(t in e)||typeof e[t]!=`function`)return function(){};var r=e[t];return e[t]=n(r),function(){e[t]=r}}var Kv=1048576;function qv(e){return!e||typeof e!=`string`?e:e.length>Kv?(zv.error(`Body truncated from `+e.length+` to `+Kv+` characters`),e.substring(0,Kv)+`... [truncated]`):e}function Jv(e,t,n){if(!t.PerformanceObserver)return zv.error(`PerformanceObserver not supported`),function(){};n.recordInitialRequests&&e({requests:t.performance.getEntries().filter(function(e){return Hv(e)||Uv(e)&&n.initiatorTypes.includes(e.initiatorType)}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:`responseStatus`in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Bv(t)}}),isInitial:!0});var r=new t.PerformanceObserver(function(r){e({requests:r.getEntries().filter(function(e){return Uv(e)&&n.initiatorTypes.includes(e.initiatorType)&&e.initiatorType!==`xmlhttprequest`&&e.initiatorType!==`fetch`}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:`responseStatus`in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:Bv(t)}})})});return r.observe({entryTypes:[`navigation`,`resource`]}),function(){r.disconnect()}}function Yv(e,t,n){return!t[e]||t[e].length===0?!1:t[e].includes(n.toLowerCase())}function Xv(e,t,n){return!t[e]||t[e].length===0?!1:e_(n,t[e])}function Zv(e){if(e==null)return null;var t;if(typeof e==`string`)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=G.HTTPBuildQuery(e);else if(G.isObject(e))try{t=JSON.stringify(e)}catch{return`Failed to stringify response object`}else return`Cannot read body of type `+typeof e;return qv(t)}function Qv(e){return new Promise(function(t){var n=setTimeout(function(){t(`Timeout while trying to read body`)},500);try{e.clone().text().then(function(e){clearTimeout(n),t(qv(e))},function(e){clearTimeout(n),t(`Failed to read body: `+String(e))})}catch(e){clearTimeout(n),t(`Failed to read body: `+String(e))}})}function $v(e,t,n,r,i,a){if(a===void 0&&(a=0),a>10)return zv.error(`Cannot find performance entry`),Promise.resolve(null);var o=Wv(e.performance.getEntriesByName(n),function(e){return Uv(e)&&e.initiatorType===t&&(!r||e.startTime>=r)&&(!i||e.startTime<=i)});return o?Promise.resolve(o):new Promise(function(e){setTimeout(e,50*a)}).then(function(){return $v(e,t,n,r,i,a+1)})}function ey(e,t,n){if(!n.initiatorTypes.includes(`xmlhttprequest`))return function(){};var r=Gv(t.XMLHttpRequest.prototype,`open`,function(r){return function(i,a,o,s,c){o===void 0&&(o=!0);var l=this,u=new Request(a,{method:i}),d={},f,p,m={},h=l.setRequestHeader.bind(l);l.setRequestHeader=function(e,t){return Yv(`request`,n.recordHeaders,e)&&(m[e]=t),h(e,t)},d.requestHeaders=m;var g=l.send.bind(l);l.send=function(e){return Xv(`request`,n.recordBodyUrls,u.url)&&(d.requestBody=Zv(e)),f=t.performance.now(),g(e)},l.addEventListener(`readystatechange`,function(){if(l.readyState===l.DONE){p=t.performance.now();var r={},i=l.getAllResponseHeaders();i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(`: `);if(t!==-1){var i=e.substring(0,t),a=e.substring(t+2);i&&Yv(`response`,n.recordHeaders,i)&&(r[i]=a)}}}),d.responseHeaders=r,Xv(`response`,n.recordBodyUrls,u.url)&&(d.responseBody=Zv(l.response)),$v(t,`xmlhttprequest`,u.url,f,p).then(function(n){if(!n){zv.error(`Failed to get performance entry for XHR request to `+u.url);return}e({requests:[{url:n.name,method:u.method,initiatorType:n.initiatorType,status:l.status,startTime:Math.round(n.startTime),endTime:Math.round(n.responseEnd),timeOrigin:Bv(t),requestHeaders:d.requestHeaders,requestBody:d.requestBody,responseHeaders:d.responseHeaders,responseBody:d.responseBody}]})}).catch(function(e){zv.error(`Error recording XHR request to `+u.url+`: `+String(e))})}}),r.call(l,i,a,o,s,c)}});return function(){r()}}function ty(e,t,n){if(!n.initiatorTypes.includes(`fetch`))return function(){};var r=Gv(t,`fetch`,function(r){return function(){var i=new Request(arguments[0],arguments[1]),a,o={},s,c,l,u=Promise.resolve(void 0),d=Promise.resolve(void 0);try{var f={};i.headers.forEach(function(e,t){Yv(`request`,n.recordHeaders,t)&&(f[t]=e)}),o.requestHeaders=f,Xv(`request`,n.recordBodyUrls,i.url)&&(u=Qv(i).then(function(e){o.requestBody=e})),s=t.performance.now(),l=r.apply(t,arguments).then(function(e){a=e,c=t.performance.now();var r={};return a.headers.forEach(function(e,t){Yv(`response`,n.recordHeaders,t)&&(r[t]=e)}),o.responseHeaders=r,Xv(`response`,n.recordBodyUrls,i.url)&&(d=Qv(a).then(function(e){o.responseBody=e})),a})}catch(e){l=Promise.reject(e)}return Promise.all([u,d,l]).then(function(){return $v(t,`fetch`,i.url,s,c)}).then(function(n){if(!n){zv.error(`Failed to get performance entry for fetch request to `+i.url);return}e({requests:[{url:n.name,method:i.method,initiatorType:n.initiatorType,status:a?a.status:void 0,startTime:Math.round(n.startTime),endTime:Math.round(n.responseEnd),timeOrigin:Bv(t),requestHeaders:o.requestHeaders,requestBody:o.requestBody,responseHeaders:o.responseHeaders,responseBody:o.responseBody}]})}).catch(function(e){zv.error(`Error recording fetch request to `+i.url+`: `+String(e))}),l}});return function(){r()}}function ny(e,t,n){if(!(`performance`in t))return function(){};var r=Object.assign({},Vv.recordHeaders,n.recordHeaders||{}),i=Object.assign({},Vv.recordBodyUrls,n.recordBodyUrls||{});n=Object.assign({},n,{recordHeaders:r,recordBodyUrls:i});var a=Object.assign({},Vv,n),o=function(t){var n=t.requests.filter(function(e){return!e_(e.url,a.ignoreRequestUrls||[])&&!a.ignoreRequestFn(e)});(n.length>0||t.isInitial)&&e(Object.assign({},t,{requests:n}))},s=Jv(o,t,a),c=ey(o,t,a),l=ty(o,t,a);return function(){s(),c(),l()}}var ry=`rrweb/network@1.mp`,iy=function(e){return{name:ry,observer:ny,options:e}},ay=Mg(`recorder`),oy=e.CompressionStream,sy={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},cy=new Set([L.MouseMove,L.MouseInteraction,L.Scroll,L.ViewportResize,L.Input,L.TouchMove,L.MediaInteraction,L.Drag,L.Selection]);function ly(e){return e.type===I.IncrementalSnapshot&&cy.has(e.data.source)}var uy=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||$g,this._onMaxLengthReached=e.onMaxLengthReached||$g,this._onBatchSent=e.onBatchSent||$g,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=fg,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=Rg(e.sharedLockStorage||Hg(),!0)&&!this.getConfig(`disable_persistence`);this.batcherKey=`__mprec_`+this.getConfig(`name`)+`_`+this.getConfig(`token`)+`_`+this.replayId,this.queueStorage=new i_(a_,o_,c_),this.batcher=new N_(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:sy,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:F_,sharedLockTimeoutMS:1e4})};uy.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 n=this._mixpanel.get_property(`$user_id`);return n&&(e.$user_id=n),e},uy.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError(`Error initializing IndexedDB storage for unloading persisted data.`)}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},uy.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},uy.prototype.get_config=function(e){return this.getConfig(e)},uy.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError(`rrweb record function not provided. `);return}if(this._stopRecording!==null){ay.log(`Recording already in progress, skipping startRecording.`);return}this.recordMaxMs=this.getConfig(`record_max_ms`),this.recordMaxMs>fg&&(this.recordMaxMs=fg,ay.critical(`record_max_ms cannot be greater than `+fg+`ms. Capping value.`)),this.maxExpires||=new Date().getTime()+this.recordMaxMs,this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=G.info.currentUrl(),this.replayStartUrl=G.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig(`record_idle_timeout_ms`);this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}.bind(this);t();var n=this.getConfig(`record_block_selector`);(n===``||n===null)&&(n=void 0);var r=Fv(this._mixpanel),i=[];if(this.getConfig(`record_network`)){var a=this.getConfig(`record_network_options`)||{},o=(a.ignoreRequestUrls||[]).slice();o.push(this._getApiRoute()),a.ignoreRequestUrls=o,i.push(iy(a))}this.getConfig(`record_console`)&&i.push(Jh({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var s=I_(this.getConfig(`record_allowed_iframe_origins`),ay);try{this._stopRecording=this._rrwebRecord({emit:function(e){if(this.idleExpires&&this.idleExpires<e.timestamp){this._onIdleTimeout();return}this._recordMinMsCheckStart===null&&(this._recordMinMsCheckStart=e.timestamp),ly(e)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(this.lastEventTimestamp===null||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp)}.bind(this),blockClass:this.getConfig(`record_block_class`),blockSelector:n,collectFonts:this.getConfig(`record_collect_fonts`),dataURLOptions:{type:`image/webp`,quality:.6},maskAllInputs:!0,maskTextSelector:`*`,maskInputFn:this._getMaskFn(Lv,r),maskTextFn:this._getMaskFn(Rv,r),recordCrossOriginIframes:s.length>0,allowedIframeOrigins:s,recordCanvas:this.getConfig(`record_canvas`),sampling:{canvas:15},plugins:i})}catch(e){this.reportError(`Unexpected error when starting rrweb recording.`,e)}if(typeof this._stopRecording!=`function`){this.reportError(`rrweb failed to start, skipping this recording.`),this._stopRecording=null,this.stopRecording();return}var c=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),c)},uy.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},uy.prototype.isRrwebStopped=function(){return this._stopRecording===null},uy.prototype.flushEventsWithOptOut=function(e,t,n){var r=function(e){e===0&&(this.stopRecording(),n({error:`Tracking has been opted out, stopping recording.`}))}.bind(this);this._flushEvents(e,t,n,r)},uy.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError(`Error getting tab ID for serialization `,t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},uy.deserialize=function(e,t){return new uy(G.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},uy.prototype._getApiRoute=function(){return this.getConfig(`api_routes`).record},uy.prototype._sendRequest=function(t,n,r,i){var a=function(e,n){e.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=G.info.currentUrl()),this._onBatchSent(),i({status:0,httpStatusCode:e.status,responseBody:n,retryAfter:e.headers.get(`Retry-After`)})}.bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host(`record`)||this.getConfig(`api_host`);e.fetch(o+`/`+this._getApiRoute()+`?`+new URLSearchParams(n),{method:`POST`,headers:{Authorization:`Basic `+btoa(this.getConfig(`token`)+`:`),"Content-Type":`application/octet-stream`},body:r}).then(function(e){e.json().then(function(t){a(e,t)}).catch(function(e){i({error:e})})}).catch(function(e){i({error:e,httpStatusCode:0})})},uy.prototype._flushEvents=m_(function(e,t,r){var i=e.length;if(i>0){for(var a=this.replayId,o=1/0,s=-1/0,c=!1,l=0;l<i;l++)o=Math.min(o,e[l].timestamp),s=Math.max(s,e[l].timestamp),e[l].type===I.FullSnapshot&&(c=!0);if(this.seqNo===0){if(!c){r({error:`First batch does not contain a full snapshot. Aborting recording.`}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||=(this.reportError(`Replay start time not set but seqNo is not 0. Using current batch start time as a fallback.`),o);var u=s-this.replayStartTime,d={$current_url:this.batchStartUrl,$lib_version:n.LIB_VERSION,batch_start_time:o/1e3,mp_lib:`web`,replay_id:a,replay_length_ms:u,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(e);if(Object.assign(d,this.getUserIdInfo()),r_(wg,xg.vendor,Sg)){var p=new Blob([f],{type:`application/json`}).stream().pipeThrough(new oy(`gzip`));new Response(p).blob().then(function(e){d.format=`gzip`,this._sendRequest(a,d,e,r)}.bind(this))}else d.format=`body`,this._sendRequest(a,d,f,r)}}),uy.prototype.reportError=function(e,t){ay.error.apply(ay.error,arguments);try{!t&&!(e instanceof Error)&&(e=Error(e)),this.getConfig(`error_reporter`)(e,t)}catch(e){ay.error(e)}},uy.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},uy.prototype._getRecordMinMs=function(){var e=this.getConfig(`record_min_ms`);return e>pg?(ay.critical(`record_min_ms cannot be greater than `+pg+`ms. Capping value.`),pg):e},uy.prototype._getMaskFn=function(e,t){return function(n,r){if(!n.trim().length)return``;var i=!0;try{i=e(r,t)}catch(e){this.reportError(`Error checking if text should be masked, defaulting to masked`,e)}if(i){var a=Math.min(n.length,1e4);return`*`.repeat(a)}return n}.bind(this)};var dy=function(e){this.idb=new i_(a_,s_,c_),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};dy.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config(`disable_persistence`)},dy.prototype.handleError=function(e){this.errorReporter(`IndexedDB error: `,e)},dy.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return U.resolve();var t=e.tabId;return t?this.idb.init().then(function(){return this.idb.setItem(t,e)}.bind(this)).catch(this.handleError.bind(this)):(console.warn(`No tab ID is set, cannot persist recording metadata.`),U.resolve())},dy.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 P_(e)?null:e}.bind(this)).catch(this.handleError.bind(this)):U.resolve(null)},dy.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},dy.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))},dy.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):U.resolve()},dy.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 P_(e)}).map(function(e){return uy.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 U.all(t)}.bind(this)).catch(this.handleError.bind(this)):U.resolve([])};var fy=Mg(`recorder`),py=function(e,t,n){this.mixpanelInstance=e,this.rrwebRecord=t||yd,this.sharedLockStorage=n,this.recordingRegistry=new dy({mixpanelInstance:this.mixpanelInstance,errorReporter:fy.error,sharedLockStorage:n}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};py.prototype.startRecording=function(e){if(e||={},this.activeRecording&&!this.activeRecording.isRrwebStopped()){fy.log(`Recording already in progress, skipping startRecording.`);return}var t=function(){fy.log(`Idle timeout reached, restarting recording.`),this.resetRecording()}.bind(this),n=function(){fy.log(`Max recording length reached, stopping recording.`),this.resetRecording()}.bind(this),r=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:r,onIdleTimeout:t,onMaxLengthReached:n,replayId:G.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return this.activeRecording=e.activeSerializedRecording?uy.deserialize(e.activeSerializedRecording,i):new uy(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},py.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))},py.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},py.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var n=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),n}return U.resolve()},py.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),U.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(fy.log(`No resumable recording found.`),null)}.bind(this))},py.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},py.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},py.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(py.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),e[i]=py;function my(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var hy={exports:{}},gy=hy.exports,_y;function vy(){return _y?hy.exports:(_y=1,(function(e,t){(function(t,n){e.exports=n()})(gy,function(){Array.isArray||(Array.isArray=function(e){return Object.prototype.toString.call(e)===`[object Array]`});function e(e){for(var t=[],n=0,r=e.length;n<r;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t}var t={},n={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return n===void 0?e<t:e<t&&t<n},"<=":function(e,t,n){return n===void 0?e<=t:e<=t&&t<=n},"!!":function(e){return t.truthy(e)},"!":function(e){return!t.truthy(e)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!t||t.indexOf===void 0?!1:t.indexOf(e)!==-1},cat:function(){return Array.prototype.join.call(arguments,``)},substr:function(e,t,n){if(n<0){var r=String(e).substr(t);return r.substr(0,r.length+n)}return String(e).substr(t,n)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return t===void 0?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var n=t===void 0?null:t,r=this;if(e===void 0||e===``||e===null)return r;for(var i=String(e).split(`.`),a=0;a<i.length;a++)if(r==null||(r=r[i[a]],r===void 0))return n;return r},missing:function(){for(var e=[],n=Array.isArray(arguments[0])?arguments[0]:arguments,r=0;r<n.length;r++){var i=n[r],a=t.apply({var:i},this);(a===null||a===``)&&e.push(i)}return e},missing_some:function(e,n){var r=t.apply({missing:n},this);return n.length-r.length>=e?[]:r}};return t.is_logic=function(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).length===1},t.truthy=function(e){return Array.isArray(e)&&e.length===0?!1:!!e},t.get_operator=function(e){return Object.keys(e)[0]},t.get_values=function(e){return e[t.get_operator(e)]},t.apply=function(e,r){if(Array.isArray(e))return e.map(function(e){return t.apply(e,r)});if(!t.is_logic(e))return e;var i=t.get_operator(e),a=e[i],o,s,c,l,u;if(Array.isArray(a)||(a=[a]),i===`if`||i==`?:`){for(o=0;o<a.length-1;o+=2)if(t.truthy(t.apply(a[o],r)))return t.apply(a[o+1],r);return a.length===o+1?t.apply(a[o],r):null}if(i===`and`){for(o=0;o<a.length;o+=1)if(s=t.apply(a[o],r),!t.truthy(s))return s;return s}if(i===`or`){for(o=0;o<a.length;o+=1)if(s=t.apply(a[o],r),t.truthy(s))return s;return s}if(i===`filter`)return l=t.apply(a[0],r),c=a[1],Array.isArray(l)?l.filter(function(e){return t.truthy(t.apply(c,e))}):[];if(i===`map`)return l=t.apply(a[0],r),c=a[1],Array.isArray(l)?l.map(function(e){return t.apply(c,e)}):[];if(i===`reduce`)return l=t.apply(a[0],r),c=a[1],u=a[2]===void 0?null:t.apply(a[2],r),Array.isArray(l)?l.reduce(function(e,n){return t.apply(c,{current:n,accumulator:e})},u):u;if(i===`all`){if(l=t.apply(a[0],r),c=a[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(!t.truthy(t.apply(c,l[o])))return!1;return!0}if(i===`none`){if(l=t.apply(a[0],r),c=a[1],!Array.isArray(l)||!l.length)return!0;for(o=0;o<l.length;o+=1)if(t.truthy(t.apply(c,l[o])))return!1;return!0}if(i===`some`){if(l=t.apply(a[0],r),c=a[1],!Array.isArray(l)||!l.length)return!1;for(o=0;o<l.length;o+=1)if(t.truthy(t.apply(c,l[o])))return!0;return!1}if(a=a.map(function(e){return t.apply(e,r)}),n.hasOwnProperty(i)&&typeof n[i]==`function`)return n[i].apply(r,a);if(i.indexOf(`.`)>0){var d=String(i).split(`.`),f=n;for(o=0;o<d.length;o++){if(!f.hasOwnProperty(d[o]))throw Error(`Unrecognized operation `+i+` (failed at `+d.slice(0,o+1).join(`.`)+`)`);f=f[d[o]]}return f.apply(r,a)}throw Error(`Unrecognized operation `+i)},t.uses_data=function(n){var r=[];if(t.is_logic(n)){var i=t.get_operator(n),a=n[i];Array.isArray(a)||(a=[a]),i===`var`?r.push(a[0]):a.forEach(function(e){r.push.apply(r,t.uses_data(e))})}return e(r)},t.add_operation=function(e,t){n[e]=t},t.rm_operation=function(e){delete n[e]},t.rule_like=function(e,n){if(n===e||n===`@`)return!0;if(n===`number`)return typeof e==`number`;if(n===`string`)return typeof e==`string`;if(n===`array`)return Array.isArray(e)&&!t.is_logic(e);if(t.is_logic(n)){if(t.is_logic(e)){var r=t.get_operator(n),i=t.get_operator(e);if(r===`@`||r===i)return t.rule_like(t.get_values(e,!1),t.get_values(n,!1))}return!1}if(Array.isArray(n)){if(Array.isArray(e)){if(n.length!==e.length)return!1;for(var a=0;a<n.length;a+=1)if(!t.rule_like(e[a],n[a]))return!1;return!0}return!1}return!1},t})})(hy),hy.exports)}var yy=my(vy()),by=function(e,t,n){if(e!==n.event_name)return{matches:!1};var r=n.property_filters,i=!0;if(r&&!G.isEmptyObject(r))try{i=yy.apply(r,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},xy={};xy.eventMatchesCriteria=by,e[r]=Promise.resolve(xy);var Sy=30,Cy=1e3,wy=4;function Ty(){this.clicks=[]}Ty.prototype.isRageClick=function(e,t){t||={};var n=t.threshold_px||Sy,r=t.timeout_ms||Cy,i=t.click_count||wy;if(t.interactive_elements_only){var a=Av(e);if(!a||Ov(a))return!1}var o=Date.now(),s=e.pageX,c=e.pageY,l=this.clicks[this.clicks.length-1];if(l&&o-l.timestamp<r&&Math.sqrt((s-l.x)**2+(c-l.y)**2)<n){if(this.clicks.push({x:s,y:c,timestamp:o}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:s,y:c,timestamp:o}];return!1};function Ey(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}Ey.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return Av(e)},Ey.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=kv(e),n=0;n<t.length;n++){var r=t[n];r&&r.shadowRoot&&this.observeShadowRoot(r.shadowRoot)}},Ey.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var n=new window.MutationObserver(function(){t.changeCallback()});n.observe(e,this.observerConfig),this.shadowObservers.push(n)}catch(e){q.critical(`Error while observing shadow root`,e)}}},Ey.prototype.start=function(){if(!this.observedShadowRoots){if(!yv()){q.critical(`Shadow DOM observation unavailable: WeakSet not supported`);return}this.observedShadowRoots=new WeakSet}},Ey.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){q.critical(`Error while disconnecting shadow DOM observer`,e)}this.shadowObservers=[],this.observedShadowRoots=null}};var Dy=500,Oy=[L_,B_,q_,K_,J_],ky=[W_],Ay=[z_],jy={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:[`style`,`class`,`hidden`,`checked`,`selected`,`value`,`display`,`visibility`]};function My(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}My.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||=e.target||e.srcElement,!t||Ov(t)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},My.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var n=this.addClick(e);return n&&this.triggerProcessing(t),n},My.prototype.getDeadClicks=function(e){if(this.pendingClicks.length===0)return[];var t=e.timeout_ms,n=Date.now(),r=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],a=0;a<r.length;a++){var o=r[a];n-o.timestamp>=t?this.hasChangesAfter(o.timestamp)||i.push(o):this.pendingClicks.push(o)}return i},My.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},My.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},My.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},My.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,n=this;this.processingTimeout=setTimeout(function(){if(n.processingActive){for(var t=n.getDeadClicks(e),r=0;r<t.length;r++)n.onDeadClickCallback(t[r].event);n.pendingClicks.length>0?n.processRecursively(e):n.processingActive=!1}},t)},My.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;Oy.forEach(function(t){var n=function(){e.recordChangeEvent()};document.addEventListener(t,n,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:n,options:{capture:!0,passive:!0}})}),Ay.forEach(function(t){var n=function(){e.recordChangeEvent()};window.addEventListener(t,n),e.eventListeners.push({target:window,event:t,handler:n})}),ky.forEach(function(t){var n=function(){e.recordChangeEvent()};window.addEventListener(t,n,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:n,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,jy)}catch(e){q.critical(`Error while setting up mutation observer`,e)}if(window.customElements)try{this.shadowDOMObserver=new Ey(function(){e.recordChangeEvent()},jy),this.shadowDOMObserver.start()}catch(e){q.critical(`Error while setting up shadow DOM observer`,e),this.shadowDOMObserver=null}}},My.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&=(clearTimeout(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){q.critical(`Error while removing event listener`,e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){q.critical(`Error while disconnecting mutation observer`,e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){q.critical(`Error while stopping shadow DOM observer`,e)}this.shadowDOMObserver=null}}};var Ny=`autocapture`,Py=`track_pageview`,Fy=`full-url`,Iy=`url-with-path-and-query-string`,Ly=`url-with-path`,Ry=`allow_element_callback`,zy=`allow_selectors`,By=`allow_url_regexes`,Vy=`block_attrs`,Hy=`block_element_callback`,Uy=`block_selectors`,Wy=`block_url_regexes`,Gy=`capture_extra_attrs`,Ky=`capture_text_content`,qy=`scroll_capture_all`,Jy=`scroll_depth_percent_checkpoints`,Yy=`click`,Xy=`dead_click`,Zy=`input`,Qy=`pageview`,$y=`rage_click`,eb=`scroll`,tb=`page_leave`,nb=`submit`,rb={};rb[zy]=[],rb[By]=[],rb[Vy]=[],rb[Hy]=null,rb[Uy]=[],rb[Wy]=[],rb[Gy]=[],rb[Ky]=!1,rb[qy]=!1,rb[Jy]=[25,50,75,100],rb[Yy]=!0,rb[Xy]=!0,rb[Zy]=!0,rb[Qy]=Fy,rb[$y]=!0,rb[eb]=!0,rb[tb]=!1,rb[nb]=!0;var ib={$mp_autocapture:!0},ab=`$mp_click`,ob=`$mp_dead_click`,sb=`$mp_input_change`,cb=`$mp_rage_click`,lb=`$mp_scroll`,ub=`$mp_submit`,db=`$mp_page_leave`,fb=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};fb.prototype.init=function(){if(!vv()){q.critical(`Autocapture unavailable: missing required DOM APIs`);return}this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking()},fb.prototype.getFullConfig=function(){var e=this.mp.get_config(Ny);return e?G.isObject(e)?G.extend({},rb,e):rb:{}},fb.prototype.getConfig=function(e){return this.getFullConfig()[e]},fb.prototype.currentUrlBlocked=function(){var e=G.info.currentUrl(),t=this.getConfig(By)||[];if(t.length)try{return!e_(e,t)}catch(e){return q.critical(`Error while checking block URL regexes: `,e),!0}var n=this.getConfig(Wy)||[];if(!n||!n.length)return!1;try{return e_(e,n)}catch(e){return q.critical(`Error while checking block URL regexes: `,e),!0}},fb.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Ny)?this.getConfig(Qy):this.mp.get_config(Py)},fb.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var n=this.mp.is_recording_heatmap_data()&&(t===ab&&!this.getConfig(Yy)||t===cb&&!this._getClickTrackingConfig($y)||t===ob&&!this._getClickTrackingConfig(Xy)),r=uv(e,{allowElementCallback:this.getConfig(Ry),allowSelectors:this.getConfig(zy),blockAttrs:this.getConfig(Vy),blockElementCallback:this.getConfig(Hy),blockSelectors:this.getConfig(Uy),captureExtraAttrs:this.getConfig(Gy),captureTextContent:this.getConfig(Ky),capturedForHeatMap:n});r&&(G.extend(r,ib),this.mp.track(t,r))}},fb.prototype.initPageListeners=function(){if(e.removeEventListener(U_,this.listenerPopstate),e.removeEventListener(z_,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(tb)&&!this.mp.get_config(`record_heatmap_data`))){this.listenerPopstate=function(){e.dispatchEvent(new Event(H_))},this.listenerHashchange=function(){e.dispatchEvent(new Event(H_))},e.addEventListener(U_,this.listenerPopstate),e.addEventListener(z_,this.listenerHashchange);var t=e.history.pushState;typeof t==`function`&&(e.history.pushState=function(n,r,i){t.call(e.history,n,r,i),e.dispatchEvent(new Event(H_))});var n=e.history.replaceState;typeof n==`function`&&(e.history.replaceState=function(t,r,i){n.call(e.history,t,r,i),e.dispatchEvent(new Event(H_))})}},fb.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?t===!0?{}:typeof t==`object`?t:{}:null},fb.prototype._trackPageLeave=function(t,n,r){if(!this.hasTrackedScrollSession&&!(!this.getConfig(tb)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var i=Math.max(W.documentElement.clientHeight,e.innerHeight||0),a=Math.round(Math.max(this.maxScrollViewDepth-i,0)/(r-i)*100),o=Math.round(i/r*100);r<=i&&(a=100,o=100);var s=G.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:a,$fold_line_percentage:o,$scroll_height:r,$event_type:t.type,$current_url:n||G.info.currentUrl(),$viewportHeight:i,$viewportWidth:Math.max(W.documentElement.clientWidth,e.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},ib);this.mp.track(db,s,{transport:`sendBeacon`})}},fb.prototype._initScrollDepthTracking=function(){if(e.removeEventListener(G_,this.listenerScrollDepth),e.removeEventListener(W_,this.listenerScrollDepth),this.mp.get_config(`record_heatmap_data`)){q.log(`Initializing scroll depth tracking`),this.maxScrollViewDepth=Math.max(W.documentElement.clientHeight,e.innerHeight||0);var t=wv(function(){if(!this.currentUrlBlocked()){var t=Math.max(W.documentElement.clientHeight,e.innerHeight||0)+e.scrollY;t>this.maxScrollViewDepth&&(this.maxScrollViewDepth=t),this.previousScrollHeight=W.body.scrollHeight}}.bind(this));this.listenerScrollDepth=t.listener,e.addEventListener(t.eventType,this.listenerScrollDepth)}},fb.prototype.initClickTracking=function(){e.removeEventListener(R_,this.listenerClick,!0),!(!this.getConfig(Yy)&&!this.mp.get_config(`record_heatmap_data`))&&(q.log(`Initializing click tracking`),this.listenerClick=function(e){!this.getConfig(Yy)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,ab)}.bind(this),e.addEventListener(R_,this.listenerClick,!0))},fb.prototype.initDeadClickTracking=function(){if(!this._getClickTrackingConfig(Xy)&&!this.mp.get_config(`record_heatmap_data`)){this.stopDeadClickTracking();return}q.log(`Initializing dead click tracking`),this._deadClickTracker||(this._deadClickTracker=new My(function(e){this.trackDomEvent(e,ob)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(e){var t=this._getClickTrackingConfig(Xy);if(!(!t&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var n=t||{};n.timeout_ms||=Dy,this._deadClickTracker.trackClick(e,n)}}.bind(this),e.addEventListener(R_,this.listenerDeadClick,!0))},fb.prototype.initInputTracking=function(){e.removeEventListener(L_,this.listenerChange,!0),this.getConfig(Zy)&&(q.log(`Initializing input tracking`),this.listenerChange=function(e){this.getConfig(Zy)&&this.trackDomEvent(e,sb)}.bind(this),e.addEventListener(L_,this.listenerChange,!0))},fb.prototype.initPageviewTracking=function(){if(e.removeEventListener(H_,this.listenerLocationchange),!(!this.pageviewTrackingConfig()&&!this.mp.get_config(`record_heatmap_data`))){q.log(`Initializing pageview tracking`);var t=``,n=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(n=this.mp.track_pageview(ib)),n&&(t=G.info.currentUrl()),this.listenerLocationchange=Ng(function(){if(!this.currentUrlBlocked()){var e=G.info.currentUrl(),n=!1,r=e.split(`#`)[0].split(`?`)[0]!==t.split(`#`)[0].split(`?`)[0],i=this.pageviewTrackingConfig();!i&&this.mp.is_recording_heatmap_data()&&(i=Fy),i===Fy?n=e!==t:i===Iy?n=e.split(`#`)[0]!==t.split(`#`)[0]:i===Ly&&(n=r),n&&(this.mp.track_pageview(ib)&&(t=e),r&&(this.lastScrollCheckpoint=0,q.log(`Path change: re-initializing scroll depth checkpoints`)))}}.bind(this)),e.addEventListener(H_,this.listenerLocationchange)}},fb.prototype.initRageClickTracking=function(){e.removeEventListener(R_,this.listenerRageClick,!0),!(!this._getClickTrackingConfig($y)&&!this.mp.get_config(`record_heatmap_data`))&&(q.log(`Initializing rage click tracking`),this._rageClickTracker||=new Ty,this.listenerRageClick=function(e){var t=this._getClickTrackingConfig($y);!t&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,cb)}.bind(this),e.addEventListener(R_,this.listenerRageClick,!0))},fb.prototype.initScrollTracking=function(){if(e.removeEventListener(W_,this.listenerScroll),e.removeEventListener(G_,this.listenerScroll),this.getConfig(eb)){q.log(`Initializing scroll tracking`),this.lastScrollCheckpoint=0;var t=wv(function(){if(this.getConfig(eb)&&!this.currentUrlBlocked()){var t=this.getConfig(qy),n=(this.getConfig(Jy)||[]).slice().sort(function(e,t){return e-t}),r=e.scrollY,i=G.extend({$scroll_top:r},ib);try{var a=W.body.scrollHeight,o=Math.round(r/(a-e.innerHeight)*100);if(i.$scroll_height=a,i.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<n.length;s++){var c=n[s];o>=c&&this.lastScrollCheckpoint<c&&(i.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,t=!0)}}catch(e){q.critical(`Error while calculating scroll percentage`,e)}t&&this.mp.track(lb,i)}}.bind(this));this.listenerScroll=t.listener,e.addEventListener(t.eventType,this.listenerScroll)}},fb.prototype.initSubmitTracking=function(){e.removeEventListener(q_,this.listenerSubmit,!0),this.getConfig(nb)&&(q.log(`Initializing submit tracking`),this.listenerSubmit=function(e){this.getConfig(nb)&&this.trackDomEvent(e,ub)}.bind(this),e.addEventListener(q_,this.listenerSubmit,!0))},fb.prototype.initPageLeaveTracking=function(){if(W.removeEventListener(Y_,this.listenerPageLeaveVisibilitychange),e.removeEventListener(H_,this.listenerPageLeaveLocationchange),e.removeEventListener(V_,this.listenerPageLoad),!(!this.getConfig(tb)&&!this.mp.get_config(`record_heatmap_data`))){q.log(`Initializing page visibility tracking.`),this._initScrollDepthTracking();var t=G.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=W.body.scrollHeight}.bind(this),e.addEventListener(V_,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Ng(function(n){if(!this.currentUrlBlocked()){var r=G.info.currentUrl();r!==t&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=r,this.maxScrollViewDepth=Math.max(W.documentElement.clientHeight,e.innerHeight||0),this.previousScrollHeight=W.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),e.addEventListener(H_,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(e){W.hidden&&this._trackPageLeave(e,t,this.previousScrollHeight)}.bind(this),W.addEventListener(Y_,this.listenerPageLeaveVisibilitychange)}},fb.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&=(e.removeEventListener(R_,this.listenerDeadClick,!0),null),this._deadClickTracker&&=(this._deadClickTracker.stopTracking(),null)},Pg(fb);var pb=function(t,n){return e[r]&&typeof e[r].then==`function`||(e[r]=new Promise(function(e){t(n,e)}).then(function(){var t=e[r];if(t&&typeof t.then==`function`)return t;throw Error(`targeting failed to load`)}).catch(function(t){throw delete e[r],t})),e[r]},mb=Mg(`flags`),hb=`mixpanelFlagsDb`,gb=`mixpanelFlags`,_b={version:1,storeNames:[gb]},vb=`persisted_variants_for_`,yb=864e5,bb=Object.freeze({NETWORK_ONLY:`networkOnly`,NETWORK_FIRST:`networkFirst`,PERSISTENCE_UNTIL_NETWORK_SUCCESS:`persistenceUntilNetworkSuccess`}),xb=[bb.NETWORK_ONLY,bb.NETWORK_FIRST,bb.PERSISTENCE_UNTIL_NETWORK_SUCCESS],Sb=function(e,t,n){this.idb=new i_(hb,gb,_b),this.persistenceConfig=e,this.persistedVariantsKey=vb+t,this.isGloballyDisabled=n||function(){return!1}};Sb.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?bb.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},Sb.prototype.getTtlMs=function(){return this._isConfigValid()?this.persistenceConfig.persistenceTtlMs??yb:yb},Sb.prototype._isConfigValid=function(){var e=this.persistenceConfig;return e?xb.indexOf(e.variantLookupPolicy)===-1?(mb.error(`Invalid variantLookupPolicy:`,e.variantLookupPolicy),!1):e.persistenceTtlMs!==void 0&&e.persistenceTtlMs!==null&&e.persistenceTtlMs<=0?(mb.error(`If provided, persistenceTtlMs must be a positive number. Provided value:`,e.persistenceTtlMs),!1):!0:!1},Sb.prototype.loadFlagsFromStorage=function(e){var t=G.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===bb.NETWORK_ONLY)return t();var n=this.getTtlMs();return this.idb.init().then(G.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(G.bind(function(r){if(!r)return mb.log(`No persisted variants found in IndexedDB`),null;if(n&&Date.now()-r.persistedAt>=n)return mb.log(`Persisted variants are expiring`),null;if(!e||r.distinctId!==e.distinct_id)return mb.log(`Persisted variants found, but for a different distinct_id so clearing.`),t();var i=new Map;return G.each(r.flagVariants,function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:`persistence`,persisted_at_in_ms:r.persistedAt,ttl_in_ms:n})}),mb.log(`Loaded`,i.size,`variants from IndexedDB for distinct_id`,r.distinctId),{flags:i,pendingFirstTimeEvents:r.pendingFirstTimeEvents||{},persistedAtMs:r.persistedAt,ttlMs:n}},this)).catch(G.bind(function(e){return mb.error(`Failed to load persisted variants from IndexedDB, so clearing`,e),t()},this))},Sb.prototype.save=function(e,t,n){if(this.getPolicy()===bb.NETWORK_ONLY)return Promise.resolve();var r={};t.forEach(function(e,t){r[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:r,pendingFirstTimeEvents:n||{}};return this.idb.init().then(G.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){mb.log(`Saved`,t.size,`variants to IndexedDB for distinct_id`,i.distinctId)}).catch(function(e){mb.error(`Failed to persist variants to IndexedDB:`,e)})},Sb.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(G.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){mb.log(`Cleared persisted variants from IndexedDB`)}).catch(function(e){mb.error(`Failed to clear persisted variants from IndexedDB:`,e)})};var J=Mg(`flags`),Cb=`flags`,wb=`context`,Tb=`persistence`,Eb={};Eb[wb]={};var Db=function(e,t){return e+`:`+t},Ob=function(e){return e.split(`:`)[0]},kb=function(e){return G.isObject(e)?G.extend({},e,{variant_source:`fallback`}):{value:e,variant_source:`fallback`}},Y=function(t){this.fetch=e.fetch,this.getFullApiRoute=t.getFullApiRoute,this.getMpConfig=t.getConfigFunc,this.setMpConfig=t.setConfigFunc,this.getMpProperty=t.getPropertyFunc,this.track=t.trackingFunc,this.loadExtraBundle=t.loadExtraBundle||function(){},this.targetingSrc=t.targetingSrc||``};Y.prototype.init=function(){if(!this.minApisSupported()){J.critical(`Feature Flags unavailable: missing minimum required APIs`);return}return this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new Sb(this.getConfig(Tb),this.getMpConfig(`token`),G.bind(function(){return this.getMpConfig(`disable_persistence`)},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(G.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(G.bind(function(){return this.fetchFlags()},this)).catch(function(){J.error(`Error initializing feature flags`)})},Y.prototype._buildContext=function(){return G.extend({distinct_id:this.getMpProperty(`distinct_id`),device_id:this.getMpProperty(`$device_id`)},this.getConfig(wb))},Y.prototype.reset=function(){return this.persistence?(this.flags=null,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this.trackedFeatures=new Set,this.fetchPromise=null,this._fetchInProgressStartTime=null,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence.clear().then(G.bind(function(){return this.fetchFlags()},this)).catch(function(){J.error(`Error during flags reset`)})):Promise.resolve()},Y.prototype.getFullConfig=function(){var e=this.getMpConfig(Cb);return e?G.isObject(e)?G.extend({},Eb,e):Eb:{}},Y.prototype.getConfig=function(e){return this.getFullConfig()[e]},Y.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Cb)},Y.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return J.critical(`Feature Flags not enabled, cannot update context`),Promise.resolve();var n=this.getMpConfig(Cb);G.isObject(n)||(n={});var r=t&&t.replace?{}:this.getConfig(wb);n[wb]=G.extend({},r,e);var i={};return i[Cb]=n,this.setMpConfig(i),this.fetchFlags().catch(function(){J.error(`Error fetching flags during updateContext`)})},Y.prototype.areFlagsReady=function(){return this.isSystemEnabled()||J.error(`Feature Flags not enabled`),!!this.flags},Y.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this._buildContext(),r=t.distinct_id,i=Jg();J.log(`Fetching flags for distinct ID: `+r);var a=new URLSearchParams;a.set(`context`,JSON.stringify(t)),a.set(`token`,this.getMpConfig(`token`)),a.set(`mp_lib`,`web`),a.set(`$lib_version`,n.LIB_VERSION);var o=this.getFullApiRoute()+`?`+a.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(e,o,{method:`GET`,headers:{Authorization:`Basic `+btoa(this.getMpConfig(`token`)+`:`),traceparent:i}}).then(function(e){return this.markFetchComplete(),e.json()}.bind(this)).then(function(e){var n=e.flags;if(!n)throw Error(`No flags in API response`);var r=new Map,a={};G.each(n,function(e,t){var n=!1,i=t+`:`;if(G.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(i)&&(n=!0)}),n){var a=this.flags&&this.flags.get(t);a&&r.set(t,a)}else r.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:`network`})},this);var o=e.pending_first_time_events;o&&o.length>0&&G.each(o,function(e){var t=e.flag_key,n=Db(t,e.first_time_event_hash);this.activatedFirstTimeEvents[n]||(a[n]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&G.each(this.activatedFirstTimeEvents,function(e,t){var n=Ob(t);e&&!r.has(n)&&this.flags&&this.flags.has(n)&&r.set(n,this.flags.get(n))},this),this.flags=r,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=a,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=i,this._loadTargetingIfNeeded(),this.persistence.save(t,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),J.error(e),e}.bind(this)),this.fetchPromise},Y.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(J.error(`loadFlags called before init`),Promise.resolve()):Promise.resolve()},Y.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){J.error(`Fetch in progress started time not set, cannot mark fetch complete`);return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null},Y.prototype._loadTargetingIfNeeded=function(){var e=!1;G.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!G.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){J.log(`targeting loaded for property filter evaluation`)})},Y.prototype.getTargeting=function(){return pb(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(e){J.error(`Failed to load targeting: `+e)}.bind(this))},Y.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||G.isEmptyObject(this.pendingFirstTimeEvents)||(e[r]&&G.isFunction(e[r].then)?e[r].then(function(e){this._processFirstTimeEventCheck(t,n,e)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))},Y.prototype._processFirstTimeEventCheck=function(e,t,n){G.each(this.pendingFirstTimeEvents,function(r,i){if(!this.activatedFirstTimeEvents[i]){var a=r.flag_key,o;if(!n&&r.property_filters&&!G.isEmptyObject(r.property_filters)){J.warn(`Skipping event check for "`+a+`" - property filters require targeting library`);return}if(!n)o={matches:e===r.event_name,error:null};else{var s={event_name:r.event_name,property_filters:r.property_filters};o=n.eventMatchesCriteria(e,t,s)}if(o.error){J.error(`Error checking first-time event for flag "`+a+`": `+o.error);return}if(o.matches){J.log(`First-time event matched for flag "`+a+`": `+e);var c={key:r.pending_variant.variant_key,value:r.pending_variant.variant_value,experiment_id:r.pending_variant.experiment_id,is_experiment_active:r.pending_variant.is_experiment_active};this.flags.set(a,c),this.trackedFeatures.delete(a),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(r.flag_id,r.project_id,r.first_time_event_hash)}}},this)},Y.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,``)+`/`+e+`/first-time-events`},Y.prototype.recordFirstTimeEvent=function(t,r,i){var a=this.getMpProperty(`distinct_id`),o=Jg(),s=new URLSearchParams;s.set(`mp_lib`,`web`),s.set(`$lib_version`,n.LIB_VERSION);var c=this.getFirstTimeEventApiRoute(t)+`?`+s.toString(),l={distinct_id:a,project_id:r,first_time_event_hash:i};J.log(`Recording first-time event for flag: `+t),this.fetch.call(e,c,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Basic `+btoa(this.getMpConfig(`token`)+`:`),traceparent:o},body:JSON.stringify(l)}).catch(function(e){J.error(`Failed to record first-time event for flag `+t+`: `+e)})},Y.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){J.critical(`Feature Flags not initialized`),e(kb(t))});var n=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(G.bind(function(){if(n===bb.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(G.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return J.error(e),kb(t)}):kb(t);var r=G.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(r).catch(r):kb(t)},this))},Y.prototype._loadedPersistenceIsStale=function(){return!this._loadedPersistedAtMs||!this._loadedTtlMs?!1:Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},Y.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return J.log(`Loaded persisted variants are past TTL so returning fallback for "`+e+`"`),kb(t);if(!this.areFlagsReady())return J.log(`Flags not loaded yet`),kb(t);var n=this.flags.get(e);return n?(this.trackFeatureCheck(e,n),n):(J.log(`No flag found: "`+e+`"`),kb(t))},Y.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return J.critical(`Feature Flags not initialized`),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(G.bind(function(){if(e===bb.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(G.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return J.error(e),new Map}):new Map;var t=G.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},Y.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(J.log(`Loaded persisted variants are past TTL so returning empty Map`),new Map):this.flags||new Map},Y.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return J.error(e),t})},Y.prototype.getFeatureData=function(e,t){return J.critical(`mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead.`),this.getVariantValue(e,t)},Y.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},Y.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then(function(){return this.isEnabledSync(e,t)}.bind(this)).catch(function(e){return J.error(e),t})},Y.prototype.isEnabledSync=function(e,t){t||=!1;var n=this.getVariantValueSync(e,t);return n!==!0&&n!==!1&&(J.error(`Feature flag "`+e+`" value: `+n+` is not a boolean; returning fallback value: `+t),n=t),n};function Ab(e){return e!=null}Y.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var n={"Experiment name":e,"Variant name":t.key,$experiment_type:`feature_flag`,"Variant fetch start time":Ab(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":Ab(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};Ab(t.experiment_id)&&(n.$experiment_id=t.experiment_id),Ab(t.is_experiment_active)&&(n.$is_experiment_active=t.is_experiment_active),Ab(t.is_qa_tester)&&(n.$is_qa_tester=t.is_qa_tester),Ab(t.variant_source)&&(n.$variant_source=t.variant_source),Ab(t.persisted_at_in_ms)&&(n.$persisted_at_in_ms=t.persisted_at_in_ms),Ab(t.ttl_in_ms)&&(n.$ttl_in_ms=t.ttl_in_ms),this.track(`$experiment_started`,n)}},Y.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},Y.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise<`u`&&typeof Map<`u`&&typeof Set<`u`},Pg(Y),Y.prototype.are_flags_ready=Y.prototype.areFlagsReady,Y.prototype.get_variant=Y.prototype.getVariant,Y.prototype.get_variant_sync=Y.prototype.getVariantSync,Y.prototype.get_all_variants=Y.prototype.getAllVariants,Y.prototype.get_all_variants_sync=Y.prototype.getAllVariantsSync,Y.prototype.get_variant_value=Y.prototype.getVariantValue,Y.prototype.get_variant_value_sync=Y.prototype.getVariantValueSync,Y.prototype.is_enabled=Y.prototype.isEnabled,Y.prototype.is_enabled_sync=Y.prototype.isEnabledSync,Y.prototype.load_flags=Y.prototype.loadFlags,Y.prototype.update_context=Y.prototype.updateContext,Y.prototype.when_ready=Y.prototype.whenReady,Y.prototype.get_feature_data=Y.prototype.getFeatureData,Y.prototype.getTargeting=Y.prototype.getTargeting;var jb=Mg(`recorder`),Mb=`mp_iframe_handshake_request`,Nb=`mp_iframe_handshake_response`,Pb=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Pb.prototype.shouldLoadRecorder=function(){if(this.getMpConfig(`disable_persistence`))return K.log(`Load recorder check skipped due to disable_persistence config`),U.resolve(!1);var e=new i_(a_,s_,c_),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var n=0;n<e.length;n++)if(P_(e[n])||e[n].tabId===t)return!0;return!1}).catch(G.bind(function(e){return this.reportError(`Error checking recording registry`,e),!1},this))},Pb.prototype.checkAndStartSessionRecording=function(t,n){if(!e.MutationObserver)return K.critical(`Browser does not support MutationObserver; skipping session recording`),U.resolve();var r=G.bind(function(t){return new U(G.bind(function(n){var r=Ng(G.bind(function(){this._recorder=this._recorder||new e[i](this.mixpanelInstance),this._recorder.resumeRecording(t),n()},this));if(G.isUndefined(e[i])){var o=this.recorderSrc||this.libBasePath+a;this.loadExtraBundle(o,r)}else r()},this))},this),o=I_(this.getMpConfig(`record_allowed_iframe_origins`),jb);if(o.length>0&&(this._setupParentFrameListener(o),e.parent!==e))return this._setupChildFrameListener(o,r),this._sendParentFrameRequestWithRetry(o),U.resolve();var s=G.isUndefined(n)?this.getMpConfig(`record_sessions_percent`):n,c=s>0&&Math.random()*100<=s;return t||c?r(!0):this.shouldLoadRecorder().then(G.bind(function(e){return e?r(!1):U.resolve()},this))},Pb.prototype.isRecording=function(){if(!this._recorder||!G.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError(`Error checking if recording is active`,e),!1}},Pb.prototype.startRecordingOnEvent=function(e,t){var n=this.isRecording(),r=this.getMpConfig(`recording_event_triggers`);if(!n&&r){var i=r[e];if(i&&typeof i.percentage==`number`){var a=i.percentage,s=i.property_filters;if(s&&!G.isEmptyObject(s)){var c=this.targetingSrc||this.libBasePath+o;pb(this.loadExtraBundle,c).then(function(n){try{n.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,a)}catch(e){K.critical(`Could not parse recording event trigger properties logic:`,e)}}.bind(this)).catch(function(e){K.critical(`Failed to load targeting library:`,e)})}else this.checkAndStartSessionRecording(!1,a)}}},Pb.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():U.resolve()},Pb.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():U.resolve()},Pb.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():U.resolve()},Pb.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig(`record_heatmap_data`)},Pb.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},Pb.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e=`https://mixpanel.com/projects/replay-redirect?`+G.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig(`token`)})),e},Pb.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},Pb.prototype.getRecorder=function(){return this._recorder},Pb.prototype._setupChildFrameListener=function(t,n){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(i){if(t.indexOf(i.origin)!==-1){var a=i.data;a&&a.type===Nb&&a.token===r.getMpConfig(`token`)&&a.replayId&&(r._parentReplayId=a.replayId,a.distinctId&&r.mixpanelInstance.identify(a.distinctId),r._parentFrameRetryActive=!1,e.removeEventListener(`message`,r._childFrameMessageHandler),r._childFrameMessageHandler=null,n(!0))}},e.addEventListener(`message`,this._childFrameMessageHandler)}},Pb.prototype._sendParentFrameRequest=function(t){var n={};n.type=Mb,n.token=this.getMpConfig(`token`);for(var r=0;r<t.length;r++)try{e.parent.postMessage(n,t[r])}catch{}},Pb.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,n=10,r=0,i=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e);function a(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=n||(t._sendParentFrameRequest(e),i*=2,a())},i)}a()},Pb.prototype._setupParentFrameListener=function(t){if(!this._parentFrameMessageHandler){var n=this;this._parentFrameMessageHandler=function(e){if(t.indexOf(e.origin)!==-1){var r=e.data;if(r&&r.type===Mb&&r.token===n.getMpConfig(`token`)){var i=n.getSessionReplayId();if(i){var a={};a.type=Nb,a.token=n.getMpConfig(`token`),a.replayId=i,a.distinctId=n.getDistinctId(),e.source.postMessage(a,e.origin)}}}},e.addEventListener(`message`,this._parentFrameMessageHandler)}},Pg(Pb);var Fb=function(){};Fb.prototype.create_properties=function(){},Fb.prototype.event_handler=function(){},Fb.prototype.after_track_handler=function(){},Fb.prototype.init=function(e){return this.mp=e,this},Fb.prototype.track=function(e,t,n,r){var i=this,a=G.dom_query(e);if(a.length===0){K.error(`The DOM query (`+e+`) returned 0 elements`);return}return G.each(a,function(e){G.register_event(e,this.override_event,function(e){var a={},o=i.create_properties(n,this),s=i.mp.get_config(`track_links_timeout`);i.event_handler(e,this,a),window.setTimeout(i.track_callback(r,o,a,!0),s),i.mp.track(t,o,i.track_callback(r,o,a))})},this),!0},Fb.prototype.track_callback=function(e,t,n,r){r||=!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,!(e&&e(r,t)===!1)&&i.after_track_handler(t,n,r))}},Fb.prototype.create_properties=function(e,t){return typeof e==`function`?e(t):G.extend({},e)};var Ib=function(){this.override_event=`click`};G.inherit(Ib,Fb),Ib.prototype.create_properties=function(e,t){var n=Ib.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},Ib.prototype.event_handler=function(e,t,n){n.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target===`_blank`,n.href=t.href,n.new_tab||e.preventDefault()},Ib.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var Lb=function(){this.override_event=`submit`};G.inherit(Lb,Fb),Lb.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},Lb.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Rb=`$set`,zb=`$set_once`,Bb=`$unset`,Vb=`$add`,Hb=`$append`,Ub=`$union`,Wb=`$remove`,Gb=`$delete`,Kb={set_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[Rb]=r,n},unset_action:function(e){var t={},n=[];return G.isArray(e)||(e=[e]),G.each(e,function(e){this._is_reserved_property(e)||n.push(e)},this),t[Bb]=n,t},set_once_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[zb]=r,n},union_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=G.isArray(e)?e:[e])},this):r[e]=G.isArray(t)?t:[t],n[Ub]=r,n},append_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[Hb]=r,n},remove_action:function(e,t){var n={},r={};return G.isObject(e)?G.each(e,function(e,t){this._is_reserved_property(t)||(r[t]=e)},this):r[e]=t,n[Wb]=r,n},delete_action:function(){var e={};return e[Gb]=``,e}},X=function(){};G.extend(X.prototype,Kb),X.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},X.prototype.set=g_(function(e,t,n){var r=this.set_action(e,t);return G.isObject(e)&&(n=t),this._send_request(r,n)}),X.prototype.set_once=g_(function(e,t,n){var r=this.set_once_action(e,t);return G.isObject(e)&&(n=t),this._send_request(r,n)}),X.prototype.unset=g_(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),X.prototype.union=g_(function(e,t,n){G.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),X.prototype.delete=g_(function(e){var t=this.delete_action();return this._send_request(t,e)}),X.prototype.remove=g_(function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)}),X.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 n=G.encodeDates(e);return this._mixpanel._track_or_batch({type:`groups`,data:n,endpoint:this._mixpanel.get_api_host(`groups`)+`/`+this._get_config(`api_routes`).groups,batcher:this._mixpanel.request_batchers.groups},t)},X.prototype._is_reserved_property=function(e){return e===`$group_key`||e===`$group_id`},X.prototype._get_config=function(e){return this._mixpanel.get_config(e)},X.prototype.toString=function(){return this._mixpanel.toString()+`.group.`+this._group_key+`.`+this._group_id},X.prototype.remove=X.prototype.remove,X.prototype.set=X.prototype.set,X.prototype.set_once=X.prototype.set_once,X.prototype.union=X.prototype.union,X.prototype.unset=X.prototype.unset,X.prototype.toString=X.prototype.toString;var Z=function(){};G.extend(Z.prototype,Kb),Z.prototype._init=function(e){this._mixpanel=e},Z.prototype.set=h_(function(e,t,n){var r=this.set_action(e,t);return G.isObject(e)&&(n=t),this._get_config(`save_referrer`)&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[Rb]=G.extend({},G.info.people_properties(),r[Rb]),this._send_request(r,n)}),Z.prototype.set_once=h_(function(e,t,n){var r=this.set_once_action(e,t);return G.isObject(e)&&(n=t),this._send_request(r,n)}),Z.prototype.unset=h_(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),Z.prototype.increment=h_(function(e,t,n){var r={},i={};return G.isObject(e)?(G.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e))){K.error(`Invalid increment value passed to mixpanel.people.increment - must be a number`);return}i[t]=e}},this),n=t):(G.isUndefined(t)&&(t=1),i[e]=t),r[Vb]=i,this._send_request(r,n)}),Z.prototype.append=h_(function(e,t,n){G.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)}),Z.prototype.remove=h_(function(e,t,n){G.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)}),Z.prototype.union=h_(function(e,t,n){G.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),Z.prototype.track_charge=h_(function(){K.error(`mixpanel.people.track_charge() is deprecated and no longer has any effect.`)}),Z.prototype.clear_charges=function(e){return this.set(`$transactions`,[],e)},Z.prototype.delete_user=function(){if(!this._identify_called()){K.error(`mixpanel.people.delete_user() requires you to call identify() first`);return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},Z.prototype.toString=function(){return this._mixpanel.toString()+`.people`},Z.prototype._send_request=function(e,t){e.$token=this._get_config(`token`),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property(`$device_id`),r=this._mixpanel.get_property(`$user_id`),i=this._mixpanel.get_property(`$had_persisted_distinct_id`);n&&(e.$device_id=n),r&&(e.$user_id=r),i&&(e.$had_persisted_distinct_id=i);var a=G.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:`people`,data:a,endpoint:this._mixpanel.get_api_host(`people`)+`/`+this._get_config(`api_routes`).engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),G.isUndefined(t)||(this._get_config(`verbose`)?t({status:-1,error:null}):t(-1)),G.truncate(a,255))},Z.prototype._get_config=function(e){return this._mixpanel.get_config(e)},Z.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},Z.prototype._enqueue=function(e){Rb in e?this._mixpanel.persistence._add_to_people_queue(Rb,e):zb in e?this._mixpanel.persistence._add_to_people_queue(zb,e):Bb in e?this._mixpanel.persistence._add_to_people_queue(Bb,e):Vb in e?this._mixpanel.persistence._add_to_people_queue(Vb,e):Hb in e?this._mixpanel.persistence._add_to_people_queue(Hb,e):Wb in e?this._mixpanel.persistence._add_to_people_queue(Wb,e):Ub in e?this._mixpanel.persistence._add_to_people_queue(Ub,e):K.error(`Invalid call to _enqueue():`,e)},Z.prototype._flush_one_queue=function(e,t,n,r){var i=this,a=G.extend({},this._mixpanel.persistence.load_queue(e)),o=a;!G.isUndefined(a)&&G.isObject(a)&&!G.isEmptyObject(a)&&(i._mixpanel.persistence._pop_from_people_queue(e,a),i._mixpanel.persistence.save(),r&&(o=r(a)),t.call(i,o,function(t,r){t===0&&i._mixpanel.persistence._add_to_people_queue(e,a),G.isUndefined(n)||n(t,r)}))},Z.prototype._flush=function(e,t,n,r,i,a,o){var s=this;this._flush_one_queue(Rb,this.set,e),this._flush_one_queue(zb,this.set_once,r),this._flush_one_queue(Bb,this.unset,a,function(e){return G.keys(e)}),this._flush_one_queue(Vb,this.increment,t),this._flush_one_queue(Ub,this.union,i);var c=this._mixpanel.persistence.load_queue(Hb);if(!G.isUndefined(c)&&G.isArray(c)&&c.length)for(var l,u=function(e,t){e===0&&s._mixpanel.persistence._add_to_people_queue(Hb,l),G.isUndefined(n)||n(e,t)},d=c.length-1;d>=0;d--)c=this._mixpanel.persistence.load_queue(Hb),l=c.pop(),s._mixpanel.persistence.save(),G.isEmptyObject(l)||s.append(l,u);var f=this._mixpanel.persistence.load_queue(Wb);if(!G.isUndefined(f)&&G.isArray(f)&&f.length)for(var p,m=function(e,t){e===0&&s._mixpanel.persistence._add_to_people_queue(Wb,p),G.isUndefined(o)||o(e,t)},h=f.length-1;h>=0;h--)f=this._mixpanel.persistence.load_queue(Wb),p=f.pop(),s._mixpanel.persistence.save(),G.isEmptyObject(p)||s.remove(p,m)},Z.prototype._is_reserved_property=function(e){return e===`$distinct_id`||e===`$token`||e===`$device_id`||e===`$user_id`||e===`$had_persisted_distinct_id`},Z.prototype.set=Z.prototype.set,Z.prototype.set_once=Z.prototype.set_once,Z.prototype.unset=Z.prototype.unset,Z.prototype.increment=Z.prototype.increment,Z.prototype.append=Z.prototype.append,Z.prototype.remove=Z.prototype.remove,Z.prototype.union=Z.prototype.union,Z.prototype.track_charge=Z.prototype.track_charge,Z.prototype.clear_charges=Z.prototype.clear_charges,Z.prototype.delete_user=Z.prototype.delete_user,Z.prototype.toString=Z.prototype.toString;var qb=`__mps`,Jb=`__mpso`,Yb=`__mpus`,Xb=`__mpa`,Zb=`__mpap`,Qb=`__mpr`,$b=`__mpu`,ex=`$people_distinct_id`,tx=`__alias`,nx=`__timers`,rx=[qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx],Q=function(e){this.props={},this.campaign_params_saved=!1,this.name=e.persistence_name?`mp_`+e.persistence_name:`mp_`+e.token+`_mixpanel`;var t=e.persistence;t!==`cookie`&&t!==`localStorage`&&(K.critical(`Unknown persistence type `+t+`; falling back to cookie`),t=e.persistence=`cookie`),this.storage=t===`localStorage`&&G.localStorage.is_supported()?G.localStorage:G.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};Q.prototype.properties=function(){var e={};return this.load(),G.each(this.props,function(t,n){G.include(rx,n)||(e[n]=t)}),e},Q.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=G.extend({},e))}},Q.prototype.upgrade=function(){var e,t;this.storage===G.localStorage?(e=G.cookie.parse(this.name),G.cookie.remove(this.name),G.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===G.cookie&&(t=G.localStorage.parse(this.name),G.localStorage.remove(this.name),t&&this.register_once(t))},Q.prototype.save=function(){this.disabled||this.storage.set(this.name,t_(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},Q.prototype.load_prop=function(e){return this.load(),this.props[e]},Q.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},Q.prototype.clear=function(){this.remove(),this.props={}},Q.prototype.register_once=function(e,t,n){return G.isObject(e)?(t===void 0&&(t=`None`),this.expire_days=n===void 0?this.default_expiry:n,this.load(),G.each(e,function(e,n){(!this.props.hasOwnProperty(n)||this.props[n]===t)&&(this.props[n]=e)},this),this.save(),!0):!1},Q.prototype.register=function(e,t){return G.isObject(e)?(this.expire_days=t===void 0?this.default_expiry:t,this.load(),G.extend(this.props,e),this.save(),!0):!1},Q.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},Q.prototype.update_search_keyword=function(e){this.register(G.info.searchInfo(e))},Q.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||`$direct`,$initial_referring_domain:G.info.referringDomain(e)||`$direct`},``)},Q.prototype.get_referrer_info=function(){return G.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},Q.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)},Q.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},Q.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},Q.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},Q.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},Q.prototype.get_cross_subdomain=function(){return this.cross_subdomain},Q.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},Q.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],i=this._get_or_create_queue(Rb),a=this._get_or_create_queue(zb),o=this._get_or_create_queue(Bb),s=this._get_or_create_queue(Vb),c=this._get_or_create_queue(Ub),l=this._get_or_create_queue(Wb,[]),u=this._get_or_create_queue(Hb,[]);n===qb?(G.extend(i,r),this._pop_from_people_queue(Vb,r),this._pop_from_people_queue(Ub,r),this._pop_from_people_queue(Bb,r)):n===Jb?(G.each(r,function(e,t){t in a||(a[t]=e)}),this._pop_from_people_queue(Bb,r)):n===Yb?G.each(r,function(e){G.each([i,a,s,c],function(t){e in t&&delete t[e]}),G.each(u,function(t){e in t&&delete t[e]}),o[e]=!0}):n===Xb?(G.each(r,function(e,t){t in i?i[t]+=e:(t in s||(s[t]=0),s[t]+=e)},this),this._pop_from_people_queue(Bb,r)):n===$b?(G.each(r,function(e,t){G.isArray(e)&&(t in c||(c[t]=[]),G.each(e,function(e){G.include(c[t],e)||c[t].push(e)}))}),this._pop_from_people_queue(Bb,r)):n===Qb?(l.push(r),this._pop_from_people_queue(Hb,r)):n===Zb&&(u.push(r),this._pop_from_people_queue(Bb,r)),K.log(`MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):`),K.log(t),this.save()},Q.prototype._pop_from_people_queue=function(e,t){var n=this.props[this._get_queue_key(e)];G.isUndefined(n)||G.each(t,function(t,r){e===Hb||e===Wb?G.each(n,function(e){e[r]===t&&delete e[r]}):delete n[r]},this)},Q.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},Q.prototype._get_queue_key=function(e){if(e===Rb)return qb;if(e===zb)return Jb;if(e===Bb)return Yb;if(e===Vb)return Xb;if(e===Hb)return Zb;if(e===Wb)return Qb;if(e===Ub)return $b;K.error(`Invalid queue:`,e)},Q.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=G.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},Q.prototype.set_event_timer=function(e,t){var n=this.load_prop(nx)||{};n[e]=t,this.props[nx]=n,this.save()},Q.prototype.remove_event_timer=function(e){var t=(this.load_prop(nx)||{})[e];return G.isUndefined(t)||(delete this.props[nx][e],this.save()),t};var ix,ax=function(e,t){throw Error(e+` not available in this build.`)},ox,sx=0,cx=1,lx=`mixpanel`,ux=`base64`,dx=`json`,fx=`$device:`,px=`strict`,mx=`fallback`,hx=`disabled`,gx=e.XMLHttpRequest&&`withCredentials`in new XMLHttpRequest,_x=!gx&&wg.indexOf(`MSIE`)===-1&&wg.indexOf(`Mozilla`)===-1,vx=null;xg.sendBeacon&&(vx=function(){return xg.sendBeacon.apply(xg,arguments)});var yx={track:`track/`,engage:`engage/`,groups:`groups/`,record:`record/`,flags:`flags/`,settings:`settings/`},bx={api_host:`https://api-js.mixpanel.com`,api_hosts:{},api_routes:yx,api_extra_query_params:{},api_method:`POST`,api_transport:`XHR`,api_payload_format:ux,app_host:`https://mixpanel.com`,autocapture:!1,cdn:`https://cdn.mxpnl.com`,cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:$g,flags:!1,persistence:`cookie`,persistence_name:``,cookie_domain:``,cookie_name:``,loaded:$g,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:`localStorage`,opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp(`^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$`),record_block_selector:`img, video, audio`,record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:fg,record_min_ms:0,record_network:!1,record_network_options:{},record_sessions_percent:0,recorder_src:null,targeting_src:null,lib_base_path:`https://cdn.mxpnl.com/libs/`,remote_settings_mode:hx},xx=!1,$=function(){},Sx=function(t,r,i){var a,o=i===lx?ox:ox[i];if(o&&ix===sx)a=o;else{if(o&&!G.isArray(o)){K.error(`You have already initialized `+i);return}a=new $}if(a._cached_groups={},a._init(t,r,i),a.people=new Z,a.people._init(a),!a.get_config(`skip_first_touch_marketing`)){var s=G.info.campaignParams(null),c={},l=!1;G.each(s,function(e,t){c[`initial_`+t]=e,e&&(l=!0)}),l&&a.people.set_once(c)}n.DEBUG=n.DEBUG||a.get_config(`debug`);var u=ix===sx?`module`:`snippet`;return e.dispatchEvent(new e.CustomEvent(`$mp_sdk_to_extension_event`,{detail:{instance:a,source:u,token:t,name:i,info:G.info}})),!G.isUndefined(o)&&G.isArray(o)&&(a._execute_array.call(a.people,o.people),a._execute_array(o)),a};$.prototype.init=function(e,t,n){if(G.isUndefined(n)){this.report_error(`You must name your new library: init(token, config, name)`);return}if(n===lx){this.report_error(`You must initialize the main mixpanel object right after you include the Mixpanel js snippet`);return}var r=Sx(e,t,n);return ox[n]=r,r._loaded(),r},$.prototype._init=function(t,n,r){n||={},this.__loaded=!0,this.config={};var i={};if(`api_payload_format`in n||(n.api_host||bx.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format=dx),this.hooks={},this.set_config(G.extend({},bx,i,n,{name:r,token:t,callback_fn:(r===lx?r:lx+`.`+r)+`._jsc`})),this.recorderManager=new Pb({mixpanelInstance:this,getConfigFunc:G.bind(this.get_config,this),setConfigFunc:G.bind(this.set_config,this),getTabIdFunc:G.bind(this.get_tab_id,this),reportErrorFunc:G.bind(this.report_error,this),getDistinctIdFunc:G.bind(this.get_distinct_id,this),recorderSrc:this.get_config(`recorder_src`),targetingSrc:this.get_config(`targeting_src`),libBasePath:this.get_config(`lib_base_path`),loadExtraBundle:ax}),this._jsc=$g,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this._remote_settings_strict_disabled=!1,this.request_batchers={},this._batch_requests=this.get_config(`batch_requests`),this._batch_requests){if(!G.localStorage.is_supported(!0)||!gx)this._batch_requests=!1,K.log(`Turning off Mixpanel request-queueing; needs XHR and localStorage support`),G.each(this.get_batcher_configs(),function(e){K.log(`Clearing batch queue `+e.queue_key),G.localStorage.remove(e.queue_key)});else if(this.init_batchers(),vx&&e.addEventListener){var a=G.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);e.addEventListener(`pagehide`,function(e){e.persisted&&a()}),e.addEventListener(`visibilitychange`,function(){W.visibilityState===`hidden`&&a()})}}this.persistence=this.cookie=new Q(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=G.UUID();this.get_distinct_id()||this.register_once({distinct_id:fx+s,$device_id:s},``),this.flags=new Y({getFullApiRoute:G.bind(function(){return this.get_api_host(`flags`)+`/`+this.get_config(`api_routes`).flags},this),getConfigFunc:G.bind(this.get_config,this),setConfigFunc:G.bind(this.set_config,this),getPropertyFunc:G.bind(this.get_property,this),trackingFunc:G.bind(this.track,this),loadExtraBundle:ax,targetingSrc:this.get_config(`targeting_src`)||this.get_config(`lib_base_path`)+o}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var c=this.get_config(`remote_settings_mode`);this.__session_recording_init_promise=c===px||c===mx?this._fetch_remote_settings(c).then(G.bind(function(){return this._check_and_start_session_recording()},this)):this._check_and_start_session_recording(),this.autocapture=new fb(this),this.autocapture.init()},$.prototype._init_tab_id=function(){if(this.get_config(`disable_persistence`))K.log(`Tab ID initialization skipped due to disable_persistence config`);else if(G.sessionStorage.is_supported())try{var t=this.get_config(`name`)+`_`+this.get_config(`token`),n=`mp_tab_id_`+t,r=`mp_gen_new_tab_id_`+t;(G.sessionStorage.get(r)||!G.sessionStorage.get(n))&&G.sessionStorage.set(n,`$tab-`+G.UUID()),G.sessionStorage.set(r,`1`),this.tab_id=G.sessionStorage.get(n),e.addEventListener(`beforeunload`,function(){G.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.`)},$.prototype.get_tab_id=function(){return this.tab_id||null},$.prototype._check_and_start_session_recording=m_(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),$.prototype._start_recording_on_event=Ng(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(G.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),$.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},$.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},$.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},$.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},$.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},$.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},$.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},$.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},$.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},$.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=G.info.campaignParams(null);G.each(e,function(e,t){this.unregister(t)}.bind(this))}},$.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(W.referrer),this.get_config(`store_google`)&&!this.get_config(`stop_utm_persistence`)&&this.register(G.info.campaignParams()),this.get_config(`save_referrer`)&&this.persistence.update_referrer_info(W.referrer)},$.prototype._dom_loaded=function(){G.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||G.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},$.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(!xx)return this.__dom_loaded_queue.push([e,t]),!1;var n=new e().init(this);return n.track.apply(n,t)},$.prototype._prepare_callback=function(e,t){if(G.isUndefined(e))return null;if(gx)return function(n){e(n,t)};var n=this._jsc,r=``+Math.floor(Math.random()*1e8),i=this.get_config(`callback_fn`)+`[`+r+`]`;return n[r]=function(i){delete n[r],e(i,t)},i},$.prototype._send_request=function(e,t,n,r){var i=!0;if(_x)return this.__request_queue.push(arguments),i;var a={method:this.get_config(`api_method`),transport:this.get_config(`api_transport`),verbose:this.get_config(`verbose`)},o=null;!r&&(G.isFunction(n)||typeof n==`string`)&&(r=n,n=null),n=G.extend(a,n||{}),gx||(n.method=`GET`);var s=n.method===`POST`,c=vx&&s&&n.transport.toLowerCase()===`sendbeacon`,l=n.verbose;t.verbose&&(l=!0),this.get_config(`test`)&&(t.test=1),l&&(t.verbose=1),this.get_config(`img`)&&(t.img=1),gx||(r?t.callback=r:(l||this.get_config(`test`))&&(t.callback=`(function(){})`)),t.ip=+!!this.get_config(`ip`),t._=new Date().getTime().toString(),s&&(o=`data=`+encodeURIComponent(t.data),delete t.data),G.extend(t,this.get_config(`api_extra_query_params`)),e+=`?`+G.HTTPBuildQuery(t);var u=this;if(`img`in t){var d=W.createElement(`img`);d.src=e,W.body.appendChild(d)}else if(c){try{i=vx(e,o)}catch(e){u.report_error(e),i=!1}try{r&&r(+!!i)}catch(e){u.report_error(e)}}else if(gx)try{var f=new XMLHttpRequest;f.open(n.method,e,!0);var p=this.get_config(`xhr_headers`);if(s&&(p[`Content-Type`]=`application/x-www-form-urlencoded`),G.each(p,function(e,t){f.setRequestHeader(t,e)}),n.timeout_ms&&f.timeout!==void 0){f.timeout=n.timeout_ms;var m=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4){if(f.status===200){if(r){if(l){var e;try{e=G.JSONDecode(f.responseText)}catch(t){if(u.report_error(t),n.ignore_json_errors)e=f.responseText;else return}r(e)}else r(Number(f.responseText))}}else{var t=f.timeout&&!f.status&&new Date().getTime()-m>=f.timeout?`timeout`:`Bad HTTP status: `+f.status+` `+f.statusText;if(u.report_error(t),r){if(l){var i=f.responseHeaders||{};r({status:0,httpStatusCode:f.status,error:t,retryAfter:i[`Retry-After`]})}else r(0)}}}},f.send(o)}catch(e){u.report_error(e),i=!1}else{var h=W.createElement(`script`);h.type=`text/javascript`,h.async=!0,h.defer=!0,h.src=e;var g=W.getElementsByTagName(`script`)[0];g.parentNode.insertBefore(h,g)}return i},$.prototype._fetch_remote_settings=function(t){var r=this,i=function(){t===`strict`&&(r.set_config({record_sessions_percent:0}),r._remote_settings_strict_disabled=!0)};if(!e.AbortController)return K.critical(`Remote settings unavailable: missing minimum required APIs`),i(),Promise.resolve();var a=this.get_api_host(`settings`)+`/`+this.get_config(`api_routes`).settings,o={$lib_version:n.LIB_VERSION,mp_lib:`web`,sdk_config:`1`},s=G.HTTPBuildQuery(o),c=a+`?`+s,l=new AbortController,u=setTimeout(function(){l.abort()},500),d={method:`GET`,headers:{Authorization:`Basic `+btoa(r.get_config(`token`)+`:`)},signal:l.signal};return e.fetch(c,d).then(function(e){if(clearTimeout(u),!e.ok){K.critical(`Network response was not ok`),i();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var t=e.sdk_config.config,n={};G.each(t,function(e,t){bx.hasOwnProperty(t)&&(n[t]=e)}),G.isEmptyObject(n)?(K.critical(`No valid config keys found in remote settings.`),i()):r.set_config(n)}else i()}).catch(function(e){clearTimeout(u),K.critical(`Failed to fetch remote settings`,e),i()})},$.prototype._execute_array=function(e){var t,n=[],r=[],i=[];G.each(e,function(e){e&&(t=e[0],G.isArray(t)?i.push(e):typeof e==`function`?e.call(this):G.isArray(e)&&t===`alias`?n.push(e):G.isArray(e)&&t.indexOf(`track`)!==-1&&typeof this[t]==`function`?i.push(e):r.push(e))},this);var a=function(e,t){G.each(e,function(e){if(G.isArray(e[0])){var n=t;G.each(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};a(n,this),a(r,this),a(i,this)},$.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},$.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},$.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=G.bind(function(e){return new N_(e.queue_key,{libConfig:this.config,errorReporter:this.get_config(`error_reporter`),sendRequestFunc:G.bind(function(t,n,r){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),n,this._prepare_callback(r,t))},this),beforeSendHook:G.bind(function(t){var n=this._run_hook(`before_send_`+e.type,t);return n?n[0]:null},this),stopAllBatchingFunc:G.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()},$.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,G.each(this.request_batchers,function(e){e.start()}))},$.prototype.stop_batch_senders=function(){this._batch_requests=!1,G.each(this.request_batchers,function(e){e.stop(),e.clear()})},$.prototype.push=function(e){this._execute_array([e])},$.prototype.enable=function(e){var t,n,r,i;if(e===void 0)this._flags.disable_all_events=!1;else{for(t={},n=[],r=0;r<e.length;r++)t[e[r]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||n.push(this.__disabled_events[i]);this.__disabled_events=n}},$.prototype.disable=function(e){e===void 0?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},$.prototype._encode_data_for_request=function(e){var t=t_(e);return this.get_config(`api_payload_format`)===ux&&(t=G.base64Encode(t)),{data:t}},$.prototype._track_or_batch=function(e,t){var n=G.truncate(e.data,255),r=e.endpoint,i=e.batcher,a=e.should_send_immediately,o=e.send_request_options||{};t||=$g;var s=!0,c=G.bind(function(){return o.skip_hooks||(n=this._run_hook(`before_send_`+e.type,n),n&&=n[0]),n?(K.log(`MIXPANEL REQUEST:`),K.log(n),this._send_request(r,this._encode_data_for_request(n),o,this._prepare_callback(t,n))):null},this);return this._batch_requests&&!a?i.enqueue(n).then(function(e){e?t(1,n):c()}):s=c(),s&&n},$.prototype.track=m_(function(e,t,n,r){var i;if(!(n&&n.skip_hooks)){if(i=this._run_hook(`before_track`,e,t),i===null)return;e=i[0],t=i[1]}!r&&typeof n==`function`&&(r=n,n=null),n||={};var a=n.transport;a&&(n.transport=a);var o=n.send_immediately;if(typeof r!=`function`&&(r=$g),G.isUndefined(e)){this.report_error(`No event name provided to mixpanel.track`);return}if(this._event_is_disabled(e)){r(0);return}t=G.extend({},t),t.token=this.get_config(`token`);var s=this.persistence.remove_event_timer(e);if(!G.isUndefined(s)){var c=new Date().getTime()-s;t.$duration=parseFloat((c/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config(`track_marketing`)?G.info.marketingParams():{};t=G.extend({},G.info.properties({mp_loader:this.get_config(`mp_loader`)}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var u=this.get_config(`property_blacklist`);G.isArray(u)?G.each(u,function(e){delete t[e]}):this.report_error(`Invalid value for property_blacklist config: `+u),this._start_recording_on_event(e,t);var d={event:e,properties:t};return i=this._track_or_batch({type:`events`,data:d,endpoint:this.get_api_host(`events`)+`/`+this.get_config(`api_routes`).track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),$.prototype.set_group=m_(function(e,t,n){G.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)}),$.prototype.add_group=m_(function(e,t,n){var r=this.get_property(e),i={};return r===void 0?(i[e]=[t],this.register(i)):r.indexOf(t)===-1&&(r.push(t),i[e]=r,this.register(i)),this.people.union(e,t,n)}),$.prototype.remove_group=m_(function(e,t,n){var r=this.get_property(e);if(r!==void 0){var i=r.indexOf(t);i>-1&&(r.splice(i,1),this.register({group_key:r})),r.length===0&&this.unregister(e)}return this.people.remove(e,t,n)}),$.prototype.track_with_groups=m_(function(e,t,n,r){var i=G.extend({},t||{});return G.each(n,function(e,t){e!=null&&(i[t]=e)}),this.track(e,i,r)}),$.prototype._create_map_key=function(e,t){return e+`_`+JSON.stringify(t)},$.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},$.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return(r===void 0||r._group_key!==e||r._group_id!==t)&&(r=new X,r._init(this,e,t),this._cached_groups[n]=r),r},$.prototype.track_pageview=m_(function(e,t){typeof e!=`object`&&(e={}),t||={};var n=t.event_name||`$mp_web_page_view`,r=G.extend(G.info.mpPageViewProperties(),G.info.campaignParams(),G.info.clickParams()),i=G.extend({},r,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(n,i)}),$.prototype.track_links=function(){return this._track_dom.call(this,Ib,arguments)},$.prototype.track_forms=function(){return this._track_dom.call(this,Lb,arguments)},$.prototype.time_event=function(e){if(G.isUndefined(e)){this.report_error(`No event name provided to mixpanel.time_event`);return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var Cx={persistent:!0},wx=function(e){var t=G.isObject(e)?e:G.isUndefined(e)?{}:{days:e};return G.extend({},Cx,t)};$.prototype.register=function(e,t){var n=this._run_hook(`before_register`,e,t);if(n!==null){e=n[0],t=n[1];var r=wx(t);r.persistent?this.persistence.register(e,r.days):G.extend(this.unpersisted_superprops,e)}},$.prototype.register_once=function(e,t,n){var r=this._run_hook(`before_register_once`,e,t,n);if(r!==null){e=r[0],t=r[1],n=r[2];var i=wx(n);i.persistent?this.persistence.register_once(e,t,i.days):(t===void 0&&(t=`None`),G.each(e,function(e,n){(!this.unpersisted_superprops.hasOwnProperty(n)||this.unpersisted_superprops[n]===t)&&(this.unpersisted_superprops[n]=e)},this))}},$.prototype.unregister=function(e,t){var n=this._run_hook(`before_unregister`,e,t);n!==null&&(e=n[0],t=n[1],t=wx(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},$.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},$.prototype.identify=function(e,t,n,r,i,a,o,s){var c=this._run_hook(`before_identify`,e);if(c===null)return-1;e=c[0];var l=this.get_distinct_id();if(e&&l!==e){if(typeof e==`string`&&e.indexOf(fx)===0)return this.report_error(`distinct_id cannot have $device: prefix`),-1;this.register({$user_id:e})}if(!this.get_property(`$device_id`)){var u=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},``)}e!==l&&e!==this.get_property(tx)&&(this.unregister(tx),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,i,a,o,s),e!==l&&this.track(`$identify`,{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0}),e!==l&&this.flags.fetchFlags().catch(function(){K.error(`[flags] Error fetching flags during identify`)})},$.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=G.UUID();this.register_once({distinct_id:fx+e,$device_id:e},``),this._check_and_start_session_recording(),this.flags.reset()},$.prototype.get_distinct_id=function(){return this.get_property(`distinct_id`)},$.prototype.alias=function(e,t){if(e===this.get_property(ex))return this.report_error(`Attempting to create alias for existing People user - aborting.`),-2;var n=this;return G.isUndefined(t)&&(t=this.get_distinct_id()),e===t?(this.report_error(`alias matches current distinct_id - skipping api call.`),this.identify(e),-1):(this._register_single(tx,e),this.track(`$create_alias`,{alias:e,distinct_id:t},{skip_hooks:!0},function(){n.identify(e)}))},$.prototype.name_tag=function(e){this._register_single(`mp_name_tag`,e)},$.prototype.set_config=function(e){G.isObject(e)&&(G.extend(this.config,e),e.batch_size&&G.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),n.DEBUG=n.DEBUG||this.get_config(`debug`),(`autocapture`in e||`record_heatmap_data`in e)&&this.autocapture&&this.autocapture.init(),G.isObject(e.hooks)&&(this.hooks={},G.each(e.hooks,function(e,t){if(G.isFunction(e))this.hooks[t]=[e];else if(G.isArray(e)){this.hooks[t]=[];for(var n=0;n<e.length;n++)G.isFunction(e[n])||K.critical(`Invalid hook added. Hook is not a function`),this.hooks[t].push(e[n])}else K.critical(`Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.`)},this)))},$.prototype.get_config=function(e){return this.config[e]},$.prototype._run_hook=function(e){var t=_g.call(arguments,1);return G.each(this.hooks[e],function(n){if(t===null)return null;var r=n.apply(this,t);r===void 0?(this.report_error(e+` hook did not return a valid value`),t=null):(G.isArray(r)||(r=[r]),t.splice.apply(t,[0,r.length].concat(r)))},this),t},$.prototype.get_property=function(e){return this.persistence.load_prop([e])},$.prototype.get_api_host=function(e){return this.get_config(`api_hosts`)[e]||this.get_config(`api_host`)},$.prototype.toString=function(){var e=this.get_config(`name`);return e!==lx&&(e=lx+`.`+e),e},$.prototype._event_is_disabled=function(e){return G.isBlockedUA(wg)||this._flags.disable_all_events||G.include(this.__disabled_events,e)},$.prototype._gdpr_init=function(){this.get_config(`opt_out_tracking_persistence_type`)===`localStorage`&&G.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`)||G.cookie.get(`mp_optout`))&&(G.cookie.remove(`mp_optout`),this.opt_out_tracking({clear_persistence:this.get_config(`opt_out_persistence_by_default`)}))},$.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!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()},$.prototype._gdpr_call_func=function(e,t){return t=G.extend({track:G.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),G.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})},$.prototype.opt_in_tracking=function(e){e=G.extend({enable_persistence:!0},e),this._gdpr_call_func(u_,e),this._gdpr_update_persistence(e)},$.prototype.opt_out_tracking=function(e){e=G.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(d_,e),this._gdpr_update_persistence(e)},$.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(f_,e)},$.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(p_,e)},$.prototype.clear_opt_in_out_tracking=function(e){e=G.extend({enable_persistence:!0},e),this._gdpr_call_func(__,e),this._gdpr_update_persistence(e)},$.prototype.report_error=function(e,t){K.error.apply(K.error,arguments);try{!t&&!(e instanceof Error)&&(e=Error(e)),this.get_config(`error_reporter`)(e,t)}catch(e){K.error(e)}},$.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},$.prototype.remove_hook=function(e,t){var n;this.hooks[e]&&(n=this.hooks[e].indexOf(t),n===-1?K.log(`remove_hook failed. Matching hook was not found`):this.hooks[e].splice(n,1))},$.prototype.init=$.prototype.init,$.prototype.reset=$.prototype.reset,$.prototype.enable=$.prototype.enable,$.prototype.disable=$.prototype.disable,$.prototype.time_event=$.prototype.time_event,$.prototype.track=$.prototype.track,$.prototype.track_links=$.prototype.track_links,$.prototype.track_forms=$.prototype.track_forms,$.prototype.track_pageview=$.prototype.track_pageview,$.prototype.register=$.prototype.register,$.prototype.register_once=$.prototype.register_once,$.prototype.unregister=$.prototype.unregister,$.prototype.identify=$.prototype.identify,$.prototype.alias=$.prototype.alias,$.prototype.name_tag=$.prototype.name_tag,$.prototype.set_config=$.prototype.set_config,$.prototype.get_config=$.prototype.get_config,$.prototype.get_api_host=$.prototype.get_api_host,$.prototype.get_property=$.prototype.get_property,$.prototype.get_distinct_id=$.prototype.get_distinct_id,$.prototype.toString=$.prototype.toString,$.prototype.opt_out_tracking=$.prototype.opt_out_tracking,$.prototype.opt_in_tracking=$.prototype.opt_in_tracking,$.prototype.has_opted_out_tracking=$.prototype.has_opted_out_tracking,$.prototype.has_opted_in_tracking=$.prototype.has_opted_in_tracking,$.prototype.clear_opt_in_out_tracking=$.prototype.clear_opt_in_out_tracking,$.prototype.get_group=$.prototype.get_group,$.prototype.set_group=$.prototype.set_group,$.prototype.add_group=$.prototype.add_group,$.prototype.remove_group=$.prototype.remove_group,$.prototype.add_hook=$.prototype.add_hook,$.prototype.remove_hook=$.prototype.remove_hook,$.prototype.track_with_groups=$.prototype.track_with_groups,$.prototype.start_batch_senders=$.prototype.start_batch_senders,$.prototype.stop_batch_senders=$.prototype.stop_batch_senders,$.prototype.start_session_recording=$.prototype.start_session_recording,$.prototype.stop_session_recording=$.prototype.stop_session_recording,$.prototype.pause_session_recording=$.prototype.pause_session_recording,$.prototype.resume_session_recording=$.prototype.resume_session_recording,$.prototype.get_session_recording_properties=$.prototype.get_session_recording_properties,$.prototype.get_session_replay_url=$.prototype.get_session_replay_url,$.prototype.get_tab_id=$.prototype.get_tab_id,$.prototype.DEFAULT_API_ROUTES=yx,$.prototype.__get_recorder=$.prototype.__get_recorder,$.prototype.__get_recording_init_promise=$.prototype.__get_recording_init_promise,Q.prototype.properties=Q.prototype.properties,Q.prototype.update_search_keyword=Q.prototype.update_search_keyword,Q.prototype.update_referrer_info=Q.prototype.update_referrer_info,Q.prototype.get_cross_subdomain=Q.prototype.get_cross_subdomain,Q.prototype.clear=Q.prototype.clear;var Tx={},Ex=function(){G.each(Tx,function(e,t){t!==lx&&(ox[t]=e)}),ox._=G},Dx=function(){ox.init=function(t,n,r){if(r)return ox[r]||(ox[r]=Tx[r]=Sx(t,n,r),ox[r]._loaded()),ox[r];var i=ox;Tx[lx]?i=Tx[lx]:t&&(i=Sx(t,n,lx),i._loaded(),Tx[lx]=i),ox=i,ix===cx&&(e[lx]=ox),Ex()}},Ox=function(){function t(){t.done||(t.done=!0,xx=!0,_x=!1,G.each(Tx,function(e){e._dom_loaded()}))}function n(){try{W.documentElement.doScroll(`left`)}catch{setTimeout(n,1);return}t()}if(W.addEventListener)W.readyState===`complete`?t():W.addEventListener(`DOMContentLoaded`,t,!1);else if(W.attachEvent){W.attachEvent(`onreadystatechange`,t);var r=!1;try{r=e.frameElement===null}catch{}W.documentElement.doScroll&&r&&n()}G.register_event(e,`load`,t,!0)};function kx(e){return ax=e,ix=sx,ox=new $,Dx(),ox.init(),Ox(),ox}function Ax(e,t){t()}var jx=kx(Ax);export{jx as default};
;!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4b346e9b-fc72-4803-913b-160f11633b92",e._sentryDebugIdIdentifier="sentry-dbid-4b346e9b-fc72-4803-913b-160f11633b92")}catch(e){}}();
//# debugId=4b346e9b-fc72-4803-913b-160f11633b92
Back to Directory