mixpanel-browser 2.77.0 → 2.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +6 -9
- package/.eslintrc.json +12 -0
- package/.github/workflows/openfeature-provider-tests.yml +31 -0
- package/CHANGELOG.md +11 -0
- package/build.sh +2 -2
- package/dist/async-modules/{mixpanel-recorder-wIWnMDLA.min.js → mixpanel-recorder-D5HJyV2E.min.js} +2 -2
- package/dist/async-modules/mixpanel-recorder-D5HJyV2E.min.js.map +1 -0
- package/dist/async-modules/{mixpanel-recorder-DLKbUIEE.js → mixpanel-recorder-P6SEnnPV.js} +57 -33
- package/dist/async-modules/mixpanel-targeting-1L9FyetZ.min.js +2 -0
- package/dist/async-modules/mixpanel-targeting-1L9FyetZ.min.js.map +1 -0
- package/dist/async-modules/{mixpanel-targeting-CmVvUyFM.js → mixpanel-targeting-BBMVbgJF.js} +24 -13
- package/dist/mixpanel-core.cjs.d.ts +46 -1
- package/dist/mixpanel-core.cjs.js +671 -272
- package/dist/mixpanel-recorder.js +57 -33
- package/dist/mixpanel-recorder.min.js +1 -1
- package/dist/mixpanel-recorder.min.js.map +1 -1
- package/dist/mixpanel-targeting.js +24 -13
- package/dist/mixpanel-targeting.min.js +1 -1
- package/dist/mixpanel-targeting.min.js.map +1 -1
- package/dist/mixpanel-with-async-modules.cjs.d.ts +46 -1
- package/dist/mixpanel-with-async-modules.cjs.js +673 -274
- package/dist/mixpanel-with-async-recorder.cjs.d.ts +46 -1
- package/dist/mixpanel-with-async-recorder.cjs.js +673 -274
- package/dist/mixpanel-with-recorder.d.ts +46 -1
- package/dist/mixpanel-with-recorder.js +596 -197
- package/dist/mixpanel-with-recorder.min.d.ts +46 -1
- package/dist/mixpanel-with-recorder.min.js +1 -1
- package/dist/mixpanel.amd.d.ts +46 -1
- package/dist/mixpanel.amd.js +596 -197
- package/dist/mixpanel.cjs.d.ts +46 -1
- package/dist/mixpanel.cjs.js +596 -197
- package/dist/mixpanel.globals.js +673 -274
- package/dist/mixpanel.min.js +200 -189
- package/dist/mixpanel.module.d.ts +46 -1
- package/dist/mixpanel.module.js +596 -197
- package/dist/mixpanel.umd.d.ts +46 -1
- package/dist/mixpanel.umd.js +596 -197
- package/package.json +1 -1
- package/packages/openfeature-web-provider/README.md +357 -0
- package/packages/openfeature-web-provider/package-lock.json +1636 -0
- package/packages/openfeature-web-provider/package.json +51 -0
- package/packages/openfeature-web-provider/rollup.config.browser.mjs +26 -0
- package/packages/openfeature-web-provider/src/MixpanelProvider.ts +302 -0
- package/packages/openfeature-web-provider/src/index.ts +1 -0
- package/packages/openfeature-web-provider/src/types.ts +72 -0
- package/packages/openfeature-web-provider/test/MixpanelProvider.spec.ts +484 -0
- package/packages/openfeature-web-provider/tsconfig.json +15 -0
- package/src/autocapture/index.js +7 -2
- package/src/config.js +1 -1
- package/src/flags/CLAUDE.md +24 -0
- package/src/flags/flags-persistence.js +176 -0
- package/src/flags/index.js +278 -98
- package/src/index.d.ts +46 -1
- package/src/mixpanel-core.js +27 -8
- package/src/recorder/idb-config.js +16 -0
- package/src/recorder/recording-registry.js +7 -2
- package/src/recorder/session-recording.js +9 -4
- package/src/recorder-manager.js +7 -2
- package/src/request-queue.js +1 -2
- package/src/shared-lock.js +2 -3
- package/src/storage/indexed-db.js +16 -15
- package/src/storage/local-storage.js +5 -3
- package/src/utils.js +25 -12
- package/testServer.js +2 -0
- package/tsconfig.base.json +9 -0
- package/dist/async-modules/mixpanel-recorder-wIWnMDLA.min.js.map +0 -1
- package/dist/async-modules/mixpanel-targeting-CTcftSJC.min.js +0 -2
- package/dist/async-modules/mixpanel-targeting-CTcftSJC.min.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){"use strict";var E;if(typeof window=="undefined"){var pu={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:pu,referrer:""},screen:{width:0,height:0},location:pu,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var $e={DEBUG:!1,LIB_VERSION:"2.77.0"},Ge="__mp_targeting",_o="__mp_recorder",Gp="__MP_RECORDER_FILENAME__",du="__MP_TARGETING_FILENAME__";function vu(t,n){(n==null||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function gu(t,n,i,e,r,o,s){try{var a=t[o](s),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(e,r)}function yn(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var o=t.apply(n,i);function s(u){gu(o,e,r,s,a,"next",u)}function a(u){gu(o,e,r,s,a,"throw",u)}s(void 0)})}}function _n(t,n,i){return mu()?_n=Reflect.construct:_n=function(r,o,s){var a=[null];a.push.apply(a,o);var u=Function.bind.apply(r,a),c=new u;return s&&Mr(c,s.prototype),c},_n.apply(null,arguments)}function jp(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ne(t,n,i){return n&&jp(t.prototype,n),t}function z(){return z=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t},z.apply(this,arguments)}function wo(t){return wo=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},wo(t)}function ue(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Mr(t,n)}function A(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function Vp(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function $t(t,n){if(t==null)return{};var i={},e=Object.keys(t),r,o;for(o=0;o<e.length;o++)r=e[o],!(n.indexOf(r)>=0)&&(i[r]=t[r]);return i}function Mr(t,n){return Mr=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Mr(t,n)}function M(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function Hp(t,n){if(t){if(typeof t=="string")return vu(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return vu(t,n)}}function Tr(t){var n=typeof Map=="function"?new Map:void 0;return Tr=function(e){if(e===null||!Vp(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return _n(e,arguments,wo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Mr(r,e)},Tr(t)}function mu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(mu=function(){return!!t})()}function I(t,n){var i=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=Hp(t))||n){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pt(t,n){var i,e,r,o,s={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,e&&(r=c[0]&2?e.return:c[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,c[1])).done)return r;switch(e=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,e=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){s=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){s.label=c[1];break}if(c[0]===6&&s.label<r[1]){s.label=r[1],r=c;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(c);break}r[2]&&s.ops.pop(),s.trys.pop();continue}c=n.call(t,s)}catch(l){c=[6,l],e=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function bo(t){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&t[n],e=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var Yp=Object.defineProperty,Kp=function(t,n,i){return n in t?Yp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},x=function(t,n,i){return Kp(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)},yu,Jp=Object.defineProperty,Xp=function(t,n,i){return n in t?Jp(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},_u=function(t,n,i){return Xp(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)},Ie=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Ie||{}),wu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},bu={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},wn={},Zp=function(){return!!globalThis.Zone};function So(t){if(wn[t])return wn[t];var n=globalThis[t],i=n.prototype,e=t in wu?wu[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in bu?bu[t]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Zp())return wn[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?wn[t]=c:i}catch(l){return i}}var Co={};function dt(t,n,i){var e,r=t+"."+String(i);if(Co[r])return Co[r].call(n);var o=So(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(Co[r]=s,s.call(n)):n[i]}var Eo={};function Su(t,n,i){var e=t+"."+String(i);if(Eo[e])return Eo[e].bind(n);var r=So(t),o=r[i];return typeof o!="function"?n[i]:(Eo[e]=o,o.bind(n))}function Qp(t){return dt("Node",t,"childNodes")}function ed(t){return dt("Node",t,"parentNode")}function td(t){return dt("Node",t,"parentElement")}function rd(t){return dt("Node",t,"textContent")}function nd(t,n){return Su("Node",t,"contains")(n)}function id(t){return Su("Node",t,"getRootNode")()}function od(t){return!t||!("host"in t)?null:dt("ShadowRoot",t,"host")}function sd(t){return t.styleSheets}function ad(t){return!t||!("shadowRoot"in t)?null:dt("Element",t,"shadowRoot")}function ud(t,n){return dt("Element",t,"querySelector")(n)}function cd(t,n){return dt("Element",t,"querySelectorAll")(n)}function ld(){return So("MutationObserver").constructor}function fd(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(o){return function(){}}}var Re={childNodes:Qp,parentNode:ed,parentElement:td,textContent:rd,contains:nd,getRootNode:id,host:od,styleSheets:sd,shadowRoot:ad,querySelector:ud,querySelectorAll:cd,mutationObserver:ld,patch:fd};function Cu(t){return t.nodeType===t.ELEMENT_NODE}function $r(t){var n=t&&"host"in t&&"mode"in t&&Re.host(t)||null;return!!(n&&"shadowRoot"in n&&Re.shadowRoot(n)===t)}function Pr(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function hd(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function pd(t){var n=t.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?i.push("layer"):t.layerName&&i.push("layer("+t.layerName+")"),t.supportsText&&i.push("supports("+t.supportsText+")"),t.media.length&&i.push(t.media.mediaText),i.join(" ")+";"}function Io(t){try{var n=t.rules||t.cssRules;if(!n)return null;var i=t.href;!i&&t.ownerNode&&t.ownerNode.ownerDocument&&(i=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return Eu(r,i)}).join("");return hd(e)}catch(r){return null}}function Eu(t,n){if(vd(t)){var i;try{i=Io(t.styleSheet)||pd(t)}catch(r){i=t.cssText}return t.styleSheet.href?Cn(i,t.styleSheet.href):i}else{var e=t.cssText;return gd(t)&&t.selectorText.includes(":")&&(e=dd(e)),n?Cn(e,n):e}}function dd(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function vd(t){return"styleSheet"in t}function gd(t){return"selectorText"in t}var Iu=(function(){function t(){_u(this,"idNodeMap",new Map),_u(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var o=(r=this.getMeta(e))==null?void 0:r.id;return o!=null?o:-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e,r){var o=this;r===void 0&&(r=!1);var s=this.getId(e);this.idNodeMap.delete(s),r&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return o.removeNodeFromMap(a,r)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var o=r.id;this.idNodeMap.set(o,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var o=this.getNode(e);if(o){var s=this.nodeMetaMap.get(o);s&&this.nodeMetaMap.set(r,s)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function md(){return new Iu}function bn(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,o=t.value,s=t.maskInputFn,a=o||"",u=r&&Nt(r);return(i[e.toLowerCase()]||u&&i[u])&&(s?a=s(a,n):a="*".repeat(a.length)),a}function Nt(t){return t.toLowerCase()}var Ou="__rrweb_original__";function yd(t){var n=t.getContext("2d");if(!n)return!0;for(var i=50,e=0;e<t.width;e+=i)for(var r=0;r<t.height;r+=i){var o=n.getImageData,s=Ou in o?o[Ou]:o,a=new Uint32Array(s.call(n,e,r,Math.min(i,t.width-e),Math.min(i,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Sn(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Nt(n):null}function xu(t,n){var i;try{i=new URL(t,n!=null?n:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),o;return(o=r==null?void 0:r[1])!=null?o:null}function _d(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var wd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,bd=/^(?:[a-z+]+:)?\/\//i,Sd=/^www\..*/i,Cd=/^(data:)([^,]*),(.*)/i;function Cn(t,n){return(t||"").replace(wd,function(i,e,r,o,s,a){var u=r||s||a,c=e||o||"";if(!u)return i;if(bd.test(u)||Sd.test(u)||Cd.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(_d(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var h=I(f),g;!(g=h()).done;){var d=g.value;d!=="."&&(d===".."?l.pop():l.push(d))}return"url("+c+l.join("/")+c+")"})}function En(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Ed(t,n,i){i===void 0&&(i=!1);var e=Array.from(n.childNodes),r=[],o=0;if(e.length>1&&t&&typeof t=="string"){for(var s=En(t,i),a=s.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var c=En(e[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var h=c.substring(0,f),g=s.split(h),d=-1;if(g.length===2)d=g[0].length;else if(g.length>2&&g[0]===""&&e[u-1].textContent!=="")d=s.indexOf(h,1);else if(g.length===1){if(h=h.substring(0,h.length-1),g=s.split(h),g.length<=1)return r.push(t),r;f=l+1}else f===c.length-1&&(d=s.indexOf(h));if(g.length>=2&&f>l){var y=e[u-1].textContent;if(y&&typeof y=="string"){var v=En(y).length;d=s.indexOf(h,v)}d===-1&&(d=g[0].length)}if(d!==-1){for(var m=Math.floor(d/a);m>0&&m<t.length;){if(o+=1,o>50*e.length)return r.push(t),r;var _=En(t.substring(0,m),i);if(_.length===d){r.push(t.substring(0,m)),t=t.substring(m),s=s.substring(d);break}else _.length<d?m+=Math.max(1,Math.floor((d-_.length)/a)):m-=Math.max(1,Math.floor((_.length-d)*a))}break}}}}return r.push(t),r}function Id(t,n){return Ed(t,n).join("/* rr_split */")}var Od=1,xd=new RegExp("[^a-z0-9-_:]"),Nr=-2;function ku(){return Od++}function kd(t){if(A(t,HTMLFormElement))return"form";var n=Nt(t.tagName);return xd.test(n)?"div":n}var er,Ru,Rd=/^[^ \t\n\r\u000c]+/,Ad=/^[, \t\n\r\u000c]+/;function Md(t,n){if(n.trim()==="")return n;var i=0;function e(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];e(Ad),!(i>=n.length);){var o=e(Rd);if(o.slice(-1)===",")o=tr(t,o.substring(0,o.length-1)),r.push(o);else{var s="";o=tr(t,o);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((o+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((o+s).trim());break}else u==="("&&(a=!0);s+=u,i+=1}}}return r.join(", ")}var Au=new WeakMap;function tr(t,n){return!n||n.trim()===""?n:Oo(t,n)}function Td(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Oo(t,n){var i=Au.get(t);if(i||(i=t.createElement("a"),Au.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Mu(t,n,i,e){return e&&(i==="src"||i==="href"&&!(n==="use"&&e[0]==="#")||i==="xlink:href"&&e[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?tr(t,e):i==="srcset"?Md(t,e):i==="style"?Cn(e,Oo(t)):n==="object"&&i==="data"?tr(t,e):e)}function Tu(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function $d(t,n,i){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(i)return t.matches(i)}catch(o){}return!1}function In(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?In(Re.parentNode(t),n,i):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return i?In(Re.parentNode(t),n,i):!1}function $u(t,n,i,e){var r;if(Cu(t)){if(r=t,!Re.childNodes(r).length)return!1}else{if(Re.parentElement(t)===null)return!1;r=Re.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(In(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(o){}return!1}function Pd(t,n,i){var e=t.contentWindow;if(e){var r=!1,o;try{o=e.document.readyState}catch(u){return}if(o!=="complete"){var s=setTimeout(function(){r||(n(),r=!0)},i);t.addEventListener("load",function(){clearTimeout(s),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function Nd(t,n,i){var e=!1,r;try{r=t.sheet}catch(s){return}if(!r){var o=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(o),e=!0,n()})}}function Ld(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,h=n.dataURLOptions,g=h===void 0?{}:h,d=n.inlineImages,y=n.recordCanvas,v=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,b=n.cssCaptured,C=b===void 0?!1:b,S=Dd(i,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Ie.Document,childNodes:[],compatMode:t.compatMode}:{type:Ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return Ud(t,{doc:i,blockClass:r,blockSelector:o,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:d,recordCanvas:y,keepIframeSrcFn:v,newlyAddedElement:_,rootId:S});case t.TEXT_NODE:return Fd(t,{doc:i,needsMask:s,maskTextFn:l,rootId:S,cssCaptured:C});case t.CDATA_SECTION_NODE:return{type:Ie.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Ie.Comment,textContent:Re.textContent(t)||"",rootId:S};default:return!1}}function Dd(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function Fd(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,o=n.cssCaptured,s=Re.parentNode(t),a=s&&s.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":o||(u=Re.textContent(t),c&&u&&(u=Cn(u,Oo(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,Re.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ie.Text,textContent:u||"",rootId:r}}function Ud(t,n){for(var i=n.doc,e=n.blockClass,r=n.blockSelector,o=n.inlineStylesheet,s=n.maskInputOptions,a=s===void 0?{}:s,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,h=n.recordCanvas,g=n.keepIframeSrcFn,d=n.newlyAddedElement,y=d===void 0?!1:d,v=n.rootId,m=$d(t,e,r),_=kd(t),b={},C=t.attributes.length,S=0;S<C;S++){var O=t.attributes[S];Tu(_,O.name,O.value)||(b[O.name]=Mu(i,_,Nt(O.name),O.value))}if(_==="link"&&o){var R=Array.from(i.styleSheets).find(function(Be){return Be.href===t.href}),k=null;R&&(k=Io(R)),k&&(delete b.rel,delete b.href,b._cssText=k)}if(_==="style"&&t.sheet){var $=Io(t.sheet);$&&(t.childNodes.length>1&&($=Id($,t)),b._cssText=$)}if(_==="input"||_==="textarea"||_==="select"){var W=t.value,ge=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&W?b.value=bn({element:t,type:Sn(t),tagName:_,value:W,maskInputOptions:a,maskInputFn:u}):ge&&(b.checked=ge)}if(_==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),_==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&h){if(t.__context==="2d")yd(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var L=t.toDataURL(l.type,l.quality),G=i.createElement("canvas");G.width=t.width,G.height=t.height;var pe=G.toDataURL(l.type,l.quality);L!==pe&&(b.rr_dataURL=L)}}if(_==="img"&&f){er||(er=i.createElement("canvas"),Ru=er.getContext("2d"));var Y=t,De=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",Ne=Y.crossOrigin,ke=function(){Y.removeEventListener("load",ke);try{er.width=Y.naturalWidth,er.height=Y.naturalHeight,Ru.drawImage(Y,0,0),b.rr_dataURL=er.toDataURL(l.type,l.quality)}catch(Be){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke);return}else console.warn("Cannot inline img src="+De+"! Error: "+Be)}Y.crossOrigin==="anonymous"&&(Ne?b.crossOrigin=Ne:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke)}if(_==="audio"||_==="video"){var he=b;he.rr_mediaState=t.paused?"paused":"played",he.rr_mediaCurrentTime=t.currentTime,he.rr_mediaPlaybackRate=t.playbackRate,he.rr_mediaMuted=t.muted,he.rr_mediaLoop=t.loop,he.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),m){var xe=t.getBoundingClientRect(),Gt=xe.width,tt=xe.height;b={class:b.class,rr_width:""+Gt+"px",rr_height:""+tt+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var jt;try{customElements.get(_)&&(jt=!0)}catch(Be){}return{type:Ie.Element,tagName:_,attributes:b,childNodes:[],isSVG:Td(t)||void 0,needBlock:m,rootId:v,isCustom:jt}}function ee(t){return t==null?"":t.toLowerCase()}function Bd(t,n){if(n.comment&&t.type===Ie.Comment)return!0;if(t.type===Ie.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&xu(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(ee(t.attributes.name).match(/^msapplication-tile(image|color)$/)||ee(t.attributes.name)==="application-name"||ee(t.attributes.rel)==="icon"||ee(t.attributes.rel)==="apple-touch-icon"||ee(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&ee(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(ee(t.attributes.property).match(/^(og|twitter|fb):/)||ee(t.attributes.name).match(/^(og|twitter):/)||ee(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(ee(t.attributes.name)==="robots"||ee(t.attributes.name)==="googlebot"||ee(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(ee(t.attributes.name)==="author"||ee(t.attributes.name)==="generator"||ee(t.attributes.name)==="framework"||ee(t.attributes.name)==="publisher"||ee(t.attributes.name)==="progid"||ee(t.attributes.property).match(/^article:/)||ee(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(ee(t.attributes.name)==="google-site-verification"||ee(t.attributes.name)==="yandex-verification"||ee(t.attributes.name)==="csrf-token"||ee(t.attributes.name)==="p:domain_verify"||ee(t.attributes.name)==="verify-v1"||ee(t.attributes.name)==="verification"||ee(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function rr(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,o=n.blockSelector,s=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,h=n.maskInputOptions,g=h===void 0?{}:h,d=n.maskTextFn,y=n.maskInputFn,v=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,b=n.inlineImages,C=b===void 0?!1:b,S=n.recordCanvas,O=S===void 0?!1:S,R=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,W=$===void 0?5e3:$,ge=n.onStylesheetLoad,L=n.stylesheetLoadTimeout,G=L===void 0?5e3:L,pe=n.keepIframeSrcFn,Y=pe===void 0?function(){return!1}:pe,De=n.newlyAddedElement,Ne=De===void 0?!1:De,ke=n.cssCaptured,he=ke===void 0?!1:ke,xe=n.needsMask,Gt=n.preserveWhiteSpace,tt=Gt===void 0?!0:Gt;if(!xe){var jt=xe===void 0;xe=$u(t,s,a,jt)}var Be=Ld(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,dataURLOptions:_,inlineImages:C,recordCanvas:O,keepIframeSrcFn:Y,newlyAddedElement:Ne,cssCaptured:he});if(!Be)return console.warn(t,"not serialized"),null;var Mt;e.hasNode(t)?Mt=e.getId(t):Bd(Be,v)||!tt&&Be.type===Ie.Text&&!Be.textContent.replace(/^\s+|\s+$/gm,"").length?Mt=Nr:Mt=ku();var J=Object.assign(Be,{id:Mt});if(e.add(t,J),Mt===Nr)return null;R&&R(t);var xr=!c;if(J.type===Ie.Element){xr=xr&&!J.needBlock,delete J.needBlock;var kr=Re.shadowRoot(t);kr&&Pr(kr)&&(J.isShadowHost=!0)}if((J.type===Ie.Document||J.type===Ie.Element)&&xr){v.headWhitespace&&J.type===Ie.Element&&J.tagName==="head"&&(tt=!1);var Tt={doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:tt,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y,cssCaptured:!1};if(!(J.type===Ie.Element&&J.tagName==="textarea"&&J.attributes.value!==void 0)){J.type===Ie.Element&&J.attributes._cssText!==void 0&&typeof J.attributes._cssText=="string"&&(Tt.cssCaptured=!0);for(var po=I(Array.from(Re.childNodes(t))),Rr;!(Rr=po()).done;){var vo=Rr.value,go=rr(vo,Tt);go&&J.childNodes.push(go)}}var mn=null;if(Cu(t)&&(mn=Re.shadowRoot(t)))for(var Vt=I(Array.from(Re.childNodes(mn))),Ht;!(Ht=Vt()).done;){var Yt=Ht.value,Kt=rr(Yt,Tt);Kt&&(Pr(mn)&&(Kt.isShadow=!0),J.childNodes.push(Kt))}}var Jt=Re.parentNode(t);return Jt&&$r(Jt)&&Pr(Jt)&&(J.isShadow=!0),J.type===Ie.Element&&J.tagName==="iframe"&&Pd(t,function(){var ht=t.contentDocument;if(ht&&k){var Ar=rr(ht,{doc:ht,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:tt,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});Ar&&k(t,Ar)}},W),J.type===Ie.Element&&J.tagName==="link"&&typeof J.attributes.rel=="string"&&(J.attributes.rel==="stylesheet"||J.attributes.rel==="preload"&&typeof J.attributes.href=="string"&&xu(J.attributes.href)==="css")&&Nd(t,function(){if(ge){var ht=rr(t,{doc:i,mirror:e,blockClass:r,blockSelector:o,needsMask:xe,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:d,maskInputFn:y,slimDOMOptions:v,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:tt,onSerialize:R,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});ht&&ge(t,ht)}},G),J}function zd(t,n){var i=n||{},e=i.mirror,r=e===void 0?new Iu:e,o=i.blockClass,s=o===void 0?"rr-block":o,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,h=f===void 0?null:f,g=i.inlineStylesheet,d=g===void 0?!0:g,y=i.inlineImages,v=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,b=i.maskAllInputs,C=b===void 0?!1:b,S=i.maskTextFn,O=i.maskInputFn,R=i.slimDOM,k=R===void 0?!1:R,$=i.dataURLOptions,W=i.preserveWhiteSpace,ge=i.onSerialize,L=i.onIframeLoad,G=i.iframeLoadTimeout,pe=i.onStylesheetLoad,Y=i.stylesheetLoadTimeout,De=i.keepIframeSrcFn,Ne=De===void 0?function(){return!1}:De,ke=C===!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}:C===!1?{password:!0}:C,he=k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k;return rr(t,{doc:t,mirror:r,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:ke,maskTextFn:S,maskInputFn:O,slimDOMOptions:he,dataURLOptions:$,inlineImages:v,recordCanvas:_,preserveWhiteSpace:W,onSerialize:ge,onIframeLoad:L,iframeLoadTimeout:G,onStylesheetLoad:pe,stylesheetLoadTimeout:Y,keepIframeSrcFn:Ne,newlyAddedElement:!1})}function qd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Wd(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return A(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var xo={exports:{}},ie=String,Pu=function(){return{isColorSupported:!1,reset:ie,bold:ie,dim:ie,italic:ie,underline:ie,inverse:ie,hidden:ie,strikethrough:ie,black:ie,red:ie,green:ie,yellow:ie,blue:ie,magenta:ie,cyan:ie,white:ie,gray:ie,bgBlack:ie,bgRed:ie,bgGreen:ie,bgYellow:ie,bgBlue:ie,bgMagenta:ie,bgCyan:ie,bgWhite:ie}};xo.exports=Pu(),xo.exports.createColors=Pu;var Gd=xo.exports,jd={},Vd=Object.freeze(Object.defineProperty({__proto__:null,default:jd},Symbol.toStringTag,{value:"Module"})),me=Wd(Vd),Nu=Gd,Lu=me,ko=(function(t){ue(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Nu.isColorSupported),Lu&&r&&(s=Lu(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,h;if(r){var g=Nu.createColors(!0),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(m))},h=function(m){return y(m)}}else f=h=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var S=h(C.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(C)+m+"\n "+S+f("^")}return" "+h(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Tr(Error)),Ro=ko;ko.default=ko;var vt={};vt.isClean=Symbol("isClean"),vt.my=Symbol("my");var Du={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hd(t){return t[0].toUpperCase()+t.slice(1)}var Ao=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var o=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Du[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+Hd(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Du[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Fu=Ao;Ao.default=Ao;var Yd=Fu;function Mo(t,n){var i=new Yd(n);i.stringify(t)}var On=Mo;Mo.default=Mo;var xn=vt.isClean,Kd=vt.my,Jd=Ro,Xd=Fu,Zd=On;function To(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r=="undefined"?"undefined":M(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return To(s,i)}):(o==="object"&&r!==null&&(r=To(r)),i[e]=r)}return i}var $o=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[xn]=!1,this[Kd]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=To(this);for(var o in e)r[o]=e[o];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new Jd(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[xn]){this[xn]=!1;for(var e=this;e=e.parent;)e[xn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new Xd;return o.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Zd),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ne(t,[{key:"proxyOf",get:function(){return this}}]),t})(),kn=$o;$o.default=$o;var Qd=kn,Po=(function(t){ue(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ne(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Qd),Rn=Po;Po.default=Po;var ev="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tv=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=ev[Math.random()*64|0];return n},rv={nanoid:tv},Uu=me.SourceMapConsumer,Bu=me.SourceMapGenerator,nv=me.existsSync,iv=me.readFileSync,No=me.dirname,ov=me.join;function sv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Lo=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=No(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Uu(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return sv(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=No(e),nv(e))return this.mapFile=e,iv(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(A(r,Uu))return Bu.fromSourceMap(r).toString();if(A(r,Bu))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=ov(No(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),zu=Lo;Lo.default=Lo;var av=me.SourceMapConsumer,uv=me.SourceMapGenerator,qu=me.fileURLToPath,An=me.pathToFileURL,Do=me.isAbsolute,Fo=me.resolve,cv=rv.nanoid,Uo=me,Wu=Ro,lv=zu,Bo=Symbol("fromOffsetCache"),fv=!!(av&&uv),Gu=!!(Fo&&Do),Mn=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":M(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Gu||/^\w+:\/\//.test(e.from)||Do(e.from)?this.file=e.from:this.file=Fo(e.from)),Gu&&fv){var r=new lv(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+cv(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":M(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);r=h.line,o=h.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var d=this.fromOffset(r);r=d.line,o=d.col}var y=this.origin(r,o,u,c);return y?a=new Wu(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Wu(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(An&&(a.input.url=An(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[Bo])o=this[Bo];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[Bo]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Fo(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;Do(u.source)?l=An(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||An(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(qu)f.file=qu(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ne(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Tn=Mn;Mn.default=Mn,Uo&&Uo.registerInput&&Uo.registerInput(Mn);var ju=me.SourceMapConsumer,$n=me.SourceMapGenerator,Pn=me.dirname,Vu=me.relative,Hu=me.resolve,Yu=me.sep,Ku=me.pathToFileURL,hv=Tn,pv=!!(ju&&$n),dv=!!(Pn&&Hu&&Vu&&Yu),vv=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Pn(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ju(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),dv&&pv&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=$n.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new $n({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]},n.generateString=function(){var e=this;this.css="",this.map=new $n({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,h){if(e.css+=l,f&&h!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var o=this.opts.to?Pn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Pn(Hu(o,this.mapOpts.annotation)));var s=Vu(o,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new hv(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Ku){var o=Ku(e).toString();return this.memoizedFileURLs.set(e,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Yu==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Ju=vv,gv=kn,zo=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(gv),Nn=zo;zo.default=zo;var Xu=vt.isClean,Zu=vt.my,Qu=Rn,ec=Nn,mv=kn,tc,qo,Wo,rc;function nc(t){return t.map(function(n){return n.nodes&&(n.nodes=nc(n.nodes)),delete n.source,n})}function ic(t){if(t[Xu]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;ic(e)}}var rt=(function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(h,g){return f(h.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=nc(tc(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Qu(r)]}else if(r.selector)r=[new qo(r)];else if(r.name)r=[new Wo(r)];else if(r.text)r=[new ec(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Zu]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Xu]&&ic(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ne(n,[{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]}}]),n})(mv);rt.registerParse=function(t){tc=t},rt.registerRule=function(t){qo=t},rt.registerAtRule=function(t){Wo=t},rt.registerRoot=function(t){rc=t};var Lt=rt;rt.default=rt,rt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Wo.prototype):t.type==="rule"?Object.setPrototypeOf(t,qo.prototype):t.type==="decl"?Object.setPrototypeOf(t,Qu.prototype):t.type==="comment"?Object.setPrototypeOf(t,ec.prototype):t.type==="root"&&Object.setPrototypeOf(t,rc.prototype),t[Zu]=!0,t.nodes&&t.nodes.forEach(function(n){rt.rebuild(n)})};var yv=Lt,oc,sc,Lr=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new oc(new sc,this,r);return o.stringify()},n})(yv);Lr.registerLazyResult=function(t){oc=t},Lr.registerProcessor=function(t){sc=t};var Go=Lr;Lr.default=Lr;var ac={},uc=function(n){ac[n]||(ac[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},jo=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in e)this[o]=e[o]}var n=t.prototype;return n.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},t})(),cc=jo;jo.default=jo;var _v=cc,Vo=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new _v(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ne(t,[{key:"content",get:function(){return this.css}}]),t})(),Ho=Vo;Vo.default=Vo;var Yo=39,lc=34,Ln=92,fc=47,Dn=10,Dr=32,Fn=12,Un=9,Bn=13,wv=91,bv=93,Sv=40,Cv=41,Ev=123,Iv=125,Ov=59,xv=42,kv=58,Rv=64,zn=/[\t\n\f\r "#'()/;[\\\]{}]/g,qn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Av=/.[\r\n"'(/\\]/,hc=/[\da-f]/i,Mv=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,d,y=e.length,v=0,m=[],_=[];function b(){return v}function C(k){throw n.error("Unclosed "+k,v)}function S(){return _.length===0&&v>=y}function O(k){if(_.length)return _.pop();if(!(v>=y)){var $=k?k.ignoreUnclosed:!1;switch(o=e.charCodeAt(v),o){case Dn:case Dr:case Un:case Bn:case Fn:{s=v;do s+=1,o=e.charCodeAt(s);while(o===Dr||o===Dn||o===Un||o===Bn||o===Fn);d=["space",e.slice(v,s)],v=s-1;break}case wv:case bv:case Ev:case Iv:case kv:case Ov:case Cv:{var W=String.fromCharCode(o);d=[W,W,v];break}case Sv:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==Yo&&g!==lc&&g!==Dr&&g!==Dn&&g!==Un&&g!==Fn&&g!==Bn){s=v;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=v;break}else C("bracket");for(f=s;e.charCodeAt(f-1)===Ln;)f-=1,l=!l}while(l);d=["brackets",e.slice(v,s+1),v,s],v=s}else s=e.indexOf(")",v+1),u=e.slice(v,s+1),s===-1||Av.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case Yo:case lc:{a=o===Yo?"'":'"',s=v;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=v+1;break}else C("string");for(f=s;e.charCodeAt(f-1)===Ln;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case Rv:{zn.lastIndex=v+1,zn.test(e),zn.lastIndex===0?s=e.length-1:s=zn.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case Ln:{for(s=v,c=!0;e.charCodeAt(s+1)===Ln;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==fc&&o!==Dr&&o!==Dn&&o!==Un&&o!==Bn&&o!==Fn&&(s+=1,hc.test(e.charAt(s)))){for(;hc.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Dr&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===fc&&e.charCodeAt(v+1)===xv?(s=e.indexOf("*/",v+2)+1,s===0&&(r||$?s=e.length:C("comment")),d=["comment",e.slice(v,s+1),v,s],v=s):(qn.lastIndex=v+1,qn.test(e),qn.lastIndex===0?s=e.length-1:s=qn.lastIndex-2,d=["word",e.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function R(k){_.push(k)}return{back:R,endOfFile:S,nextToken:O,position:b}},pc=Lt,Wn=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(pc),Ko=Wn;Wn.default=Wn,pc.registerAtRule(Wn);var dc=Lt,vc,gc,nr=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new vc(new gc,this,r);return o.stringify()},n})(dc);nr.registerLazyResult=function(t){vc=t},nr.registerProcessor=function(t){gc=t};var Fr=nr;nr.default=nr,dc.registerRoot(nr);var Ur={comma:function(n){return Ur.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Ur.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=I(n),h;!(h=f()).done;){var g=h.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},mc=Ur;Ur.default=Ur;var yc=Lt,Tv=mc,Gn=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ne(n,[{key:"selectors",get:function(){return Tv.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(yc),Jo=Gn;Gn.default=Gn,yc.registerRule(Gn);var $v=Rn,Pv=Mv,Nv=Nn,Lv=Ko,Dv=Fr,_c=Jo,wc={empty:!0,space:!0};function Fv(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Uv=(function(){function t(i){this.input=i,this.root=new Dv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Lv;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],h=l[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(e){var r=new Nv;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Pv(this.input)},n.decl=function(e,r){var o=new $v;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||Fv(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new _c;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,o,s){for(var a,u,c=o.length,l="",f=!0,h,g,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",h=o[d+1]?o[d+1][0]:"empty",!wc[g]&&!wc[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(v,m){return v+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new _c;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Bv=Uv,zv=Lt,qv=Bv,Wv=Tn;function jn(t,n){var i=new Wv(t,n),e=new qv(i);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var Xo=jn;jn.default=jn,zv.registerParse(jn);var je=vt.isClean,Gv=vt.my,jv=Ju,Vv=On,Hv=Lt,Yv=Go,Kv=uc,bc=Ho,Jv=Xo,Xv=Fr,Zv={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Qv={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},eg={Once:!0,postcssPlugin:!0,prepare:!0},ir=0;function Br(t){return(typeof t=="undefined"?"undefined":M(t))==="object"&&typeof t.then=="function"}function Sc(t){var n=!1,i=Zv[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,ir,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,ir,i+"Exit"]:[i,i+"Exit"]}function Cc(t){var n;return t.type==="document"?n=["Document",ir,"DocumentExit"]:t.type==="root"?n=["Root",ir,"RootExit"]:n=Sc(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Zo(t){return t[je]=!1,t.nodes&&t.nodes.forEach(function(n){return Zo(n)}),t}var Qo={},or=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Zo(e);else if(A(e,t)||A(e,bc))s=Zo(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Jv;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Gv]&&Hv.rebuild(s)}this.result=new bc(i,s,r),this.helpers=z({},Qo,{postcss:Qo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?z({},u,u.prepare(o.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!Qv[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!eg[u])if(M(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return yn(function(){var r,o,s,a,u,c,l,f,h,g,d,y;return Pt(this,function(v){switch(v.label){case 0:e.plugin=0,r=0,v.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!Br(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,v.label=7;case 7:if(u[je])return[3,14];u[je]=!0,c=[Cc(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Br(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.sent(),h=c[c.length-1].node,e.handleError(f,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Pt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(R){return b(R,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},d=I(e.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,bo(g())];case 16:v.sent(),v.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Br(o[0])?Promise.all(o):o}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Vv;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new jv(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(Br(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[je];)a[je]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Kv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Br(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[je]){f[je]=!0,e.push(Cc(f));return}r.iterator=0,delete o.indexes[l]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===ir){o.nodes&&o.nodes.length&&(o[je]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[je]=!0;for(var o=Sc(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===ir)e.nodes&&e.each(function(l){l[je]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ne(t,[{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"}}]),t})();or.registerPostcss=function(t){Qo=t};var Ec=or;or.default=or,Xv.registerLazyResult(or),Yv.registerLazyResult(or);var tg=Ju,rg=On,ng=uc,ig=Xo,og=Ho,es=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=rg;this.result=new og(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new tg(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ng("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ne(t,[{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,r=ig;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),sg=es;es.default=es;var ag=sg,ug=Ec,cg=Go,lg=Fr,zr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new ag(this,e,r):new ug(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),fg=zr;zr.default=zr,lg.registerProcessor(zr),cg.registerProcessor(zr);var hg=Rn,pg=zu,dg=Nn,vg=Ko,gg=Tn,mg=Fr,yg=Jo;function qr(t,n){if(Array.isArray(t))return t.map(function(f){return qr(f)});var i=t.inputs,e=$t(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=z({},s,{__proto__:gg.prototype});a.map&&(a.map=z({},a.map,{__proto__:pg.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return qr(f,n)})),e.source){var u=e.source,c=u.inputId,l=$t(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new mg(e);if(e.type==="decl")return new hg(e);if(e.type==="rule")return new yg(e);if(e.type==="comment")return new dg(e);if(e.type==="atrule")return new vg(e);throw new Error("Unknown node type: "+t.type)}var _g=qr;qr.default=qr;var wg=Ro,Ic=Rn,bg=Ec,Sg=Lt,ts=fg,Cg=On,Eg=_g,Oc=Go,Ig=cc,xc=Nn,kc=Ko,Og=Ho,xg=Tn,kg=Xo,Rg=mc,Rc=Jo,Ac=Fr,Ag=kn;function X(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ts(n)}X.plugin=function(n,i){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new ts().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return X([r(u)]).process(s,a)},r},X.stringify=Cg,X.parse=kg,X.fromJSON=Eg,X.list=Rg,X.comment=function(t){return new xc(t)},X.atRule=function(t){return new kc(t)},X.decl=function(t){return new Ic(t)},X.rule=function(t){return new Rc(t)},X.root=function(t){return new Ac(t)},X.document=function(t){return new Oc(t)},X.CssSyntaxError=wg,X.Declaration=Ic,X.Container=Sg,X.Processor=ts,X.Document=Oc,X.Comment=xc,X.Warning=Ig,X.AtRule=kc,X.Result=Og,X.Input=xg,X.Rule=Rc,X.Root=Ac,X.Node=Ag,bg.registerPostcss(X);var Mg=X;X.default=X;var ce=qd(Mg);ce.stringify,ce.fromJSON,ce.plugin,ce.parse,ce.list,ce.document,ce.comment,ce.atRule,ce.rule,ce.decl,ce.root,ce.CssSyntaxError,ce.Declaration,ce.Container,ce.Processor,ce.Document,ce.Comment,ce.Warning,ce.AtRule,ce.Result,ce.Input,ce.Rule,ce.Root,ce.Node;var Tg=Object.defineProperty,$g=function(t,n,i){return n in t?Tg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Fe=function(t,n,i){return $g(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)};function Pg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ng(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return A(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var rs={exports:{}},oe=String,Mc=function(){return{isColorSupported:!1,reset:oe,bold:oe,dim:oe,italic:oe,underline:oe,inverse:oe,hidden:oe,strikethrough:oe,black:oe,red:oe,green:oe,yellow:oe,blue:oe,magenta:oe,cyan:oe,white:oe,gray:oe,bgBlack:oe,bgRed:oe,bgGreen:oe,bgYellow:oe,bgBlue:oe,bgMagenta:oe,bgCyan:oe,bgWhite:oe}};rs.exports=Mc(),rs.exports.createColors=Mc;var Lg=rs.exports,Dg={},Fg=Object.freeze(Object.defineProperty({__proto__:null,default:Dg},Symbol.toStringTag,{value:"Module"})),ye=Ng(Fg),Tc=Lg,$c=ye,ns=(function(t){ue(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=Tc.isColorSupported),$c&&r&&(s=$c(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,h;if(r){var g=Tc.createColors(!0),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(m))},h=function(m){return y(m)}}else f=h=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var S=h(C.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(C)+m+"\n "+S+f("^")}return" "+h(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Tr(Error)),is=ns;ns.default=ns;var gt={};gt.isClean=Symbol("isClean"),gt.my=Symbol("my");var Pc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ug(t){return t[0].toUpperCase()+t.slice(1)}var os=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var o=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Pc[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+Ug(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=Pc[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Nc=os;os.default=os;var Bg=Nc;function ss(t,n){var i=new Bg(n);i.stringify(t)}var Vn=ss;ss.default=ss;var Hn=gt.isClean,zg=gt.my,qg=is,Wg=Nc,Gg=Vn;function as(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r=="undefined"?"undefined":M(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return as(s,i)}):(o==="object"&&r!==null&&(r=as(r)),i[e]=r)}return i}var us=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Hn]=!1,this[zg]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=as(this);for(var o in e)r[o]=e[o];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new qg(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Hn]){this[Hn]=!1;for(var e=this;e=e.parent;)e[Hn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new Wg;return o.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Gg),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ne(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Yn=us;us.default=us;var jg=Yn,cs=(function(t){ue(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ne(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(jg),Kn=cs;cs.default=cs;var Vg="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hg=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=Vg[Math.random()*64|0];return n},Yg={nanoid:Hg},Lc=ye.SourceMapConsumer,Dc=ye.SourceMapGenerator,Kg=ye.existsSync,Jg=ye.readFileSync,ls=ye.dirname,Xg=ye.join;function Zg(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var fs=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=ls(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Lc(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return Zg(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=ls(e),Kg(e))return this.mapFile=e,Jg(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(A(r,Lc))return Dc.fromSourceMap(r).toString();if(A(r,Dc))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Xg(ls(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Fc=fs;fs.default=fs;var Qg=ye.SourceMapConsumer,em=ye.SourceMapGenerator,Uc=ye.fileURLToPath,Jn=ye.pathToFileURL,hs=ye.isAbsolute,ps=ye.resolve,tm=Yg.nanoid,ds=ye,Bc=is,rm=Fc,vs=Symbol("fromOffsetCache"),nm=!!(Qg&&em),zc=!!(ps&&hs),Xn=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":M(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!zc||/^\w+:\/\//.test(e.from)||hs(e.from)?this.file=e.from:this.file=ps(e.from)),zc&&nm){var r=new rm(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+tm(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":M(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);r=h.line,o=h.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var d=this.fromOffset(r);r=d.line,o=d.col}var y=this.origin(r,o,u,c);return y?a=new Bc(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Bc(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Jn&&(a.input.url=Jn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[vs])o=this[vs];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[vs]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ps(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;hs(u.source)?l=Jn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Jn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Uc)f.file=Uc(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ne(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Zn=Xn;Xn.default=Xn,ds&&ds.registerInput&&ds.registerInput(Xn);var qc=ye.SourceMapConsumer,Qn=ye.SourceMapGenerator,ei=ye.dirname,Wc=ye.relative,Gc=ye.resolve,jc=ye.sep,Vc=ye.pathToFileURL,im=Zn,om=!!(qc&&Qn),sm=!!(ei&&Gc&&Wc&&jc),am=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||ei(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new qc(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),sm&&om&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=Qn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Qn({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]},n.generateString=function(){var e=this;this.css="",this.map=new Qn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,h){if(e.css+=l,f&&h!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var o=this.opts.to?ei(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=ei(Gc(o,this.mapOpts.annotation)));var s=Wc(o,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new im(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Vc){var o=Vc(e).toString();return this.memoizedFileURLs.set(e,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;jc==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Hc=am,um=Yn,gs=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(um),ti=gs;gs.default=gs;var Yc=gt.isClean,Kc=gt.my,Jc=Kn,Xc=ti,cm=Yn,Zc,ms,ys,Qc;function el(t){return t.map(function(n){return n.nodes&&(n.nodes=el(n.nodes)),delete n.source,n})}function tl(t){if(t[Yc]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;tl(e)}}var nt=(function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(h,g){return f(h.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=el(Zc(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Jc(r)]}else if(r.selector)r=[new ms(r)];else if(r.name)r=[new ys(r)];else if(r.text)r=[new Xc(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Kc]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Yc]&&tl(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ne(n,[{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]}}]),n})(cm);nt.registerParse=function(t){Zc=t},nt.registerRule=function(t){ms=t},nt.registerAtRule=function(t){ys=t},nt.registerRoot=function(t){Qc=t};var Dt=nt;nt.default=nt,nt.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,ys.prototype):t.type==="rule"?Object.setPrototypeOf(t,ms.prototype):t.type==="decl"?Object.setPrototypeOf(t,Jc.prototype):t.type==="comment"?Object.setPrototypeOf(t,Xc.prototype):t.type==="root"&&Object.setPrototypeOf(t,Qc.prototype),t[Kc]=!0,t.nodes&&t.nodes.forEach(function(n){nt.rebuild(n)})};var lm=Dt,rl,nl,Wr=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new rl(new nl,this,r);return o.stringify()},n})(lm);Wr.registerLazyResult=function(t){rl=t},Wr.registerProcessor=function(t){nl=t};var _s=Wr;Wr.default=Wr;var il={},ol=function(n){il[n]||(il[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},ws=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in e)this[o]=e[o]}var n=t.prototype;return n.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},t})(),sl=ws;ws.default=ws;var fm=sl,bs=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new fm(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ne(t,[{key:"content",get:function(){return this.css}}]),t})(),Ss=bs;bs.default=bs;var Cs=39,al=34,ri=92,ul=47,ni=10,Gr=32,ii=12,oi=9,si=13,hm=91,pm=93,dm=40,vm=41,gm=123,mm=125,ym=59,_m=42,wm=58,bm=64,ai=/[\t\n\f\r "#'()/;[\\\]{}]/g,ui=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Sm=/.[\r\n"'(/\\]/,cl=/[\da-f]/i,Cm=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,d,y=e.length,v=0,m=[],_=[];function b(){return v}function C(k){throw n.error("Unclosed "+k,v)}function S(){return _.length===0&&v>=y}function O(k){if(_.length)return _.pop();if(!(v>=y)){var $=k?k.ignoreUnclosed:!1;switch(o=e.charCodeAt(v),o){case ni:case Gr:case oi:case si:case ii:{s=v;do s+=1,o=e.charCodeAt(s);while(o===Gr||o===ni||o===oi||o===si||o===ii);d=["space",e.slice(v,s)],v=s-1;break}case hm:case pm:case gm:case mm:case wm:case ym:case vm:{var W=String.fromCharCode(o);d=[W,W,v];break}case dm:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==Cs&&g!==al&&g!==Gr&&g!==ni&&g!==oi&&g!==ii&&g!==si){s=v;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=v;break}else C("bracket");for(f=s;e.charCodeAt(f-1)===ri;)f-=1,l=!l}while(l);d=["brackets",e.slice(v,s+1),v,s],v=s}else s=e.indexOf(")",v+1),u=e.slice(v,s+1),s===-1||Sm.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case Cs:case al:{a=o===Cs?"'":'"',s=v;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=v+1;break}else C("string");for(f=s;e.charCodeAt(f-1)===ri;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case bm:{ai.lastIndex=v+1,ai.test(e),ai.lastIndex===0?s=e.length-1:s=ai.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case ri:{for(s=v,c=!0;e.charCodeAt(s+1)===ri;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==ul&&o!==Gr&&o!==ni&&o!==oi&&o!==si&&o!==ii&&(s+=1,cl.test(e.charAt(s)))){for(;cl.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Gr&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===ul&&e.charCodeAt(v+1)===_m?(s=e.indexOf("*/",v+2)+1,s===0&&(r||$?s=e.length:C("comment")),d=["comment",e.slice(v,s+1),v,s],v=s):(ui.lastIndex=v+1,ui.test(e),ui.lastIndex===0?s=e.length-1:s=ui.lastIndex-2,d=["word",e.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function R(k){_.push(k)}return{back:R,endOfFile:S,nextToken:O,position:b}},ll=Dt,ci=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(ll),Es=ci;ci.default=ci,ll.registerAtRule(ci);var fl=Dt,hl,pl,sr=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new hl(new pl,this,r);return o.stringify()},n})(fl);sr.registerLazyResult=function(t){hl=t},sr.registerProcessor=function(t){pl=t};var jr=sr;sr.default=sr,fl.registerRoot(sr);var Vr={comma:function(n){return Vr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Vr.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=I(n),h;!(h=f()).done;){var g=h.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},dl=Vr;Vr.default=Vr;var vl=Dt,Em=dl,li=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ne(n,[{key:"selectors",get:function(){return Em.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(vl),Is=li;li.default=li,vl.registerRule(li);var Im=Kn,Om=Cm,xm=ti,km=Es,Rm=jr,gl=Is,ml={empty:!0,space:!0};function Am(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Mm=(function(){function t(i){this.input=i,this.root=new Rm,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new km;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],h=l[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(e){var r=new xm;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Om(this.input)},n.decl=function(e,r){var o=new Im;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||Am(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new gl;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,o,s){for(var a,u,c=o.length,l="",f=!0,h,g,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",h=o[d+1]?o[d+1][0]:"empty",!ml[g]&&!ml[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(v,m){return v+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new gl;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Tm=Mm,$m=Dt,Pm=Tm,Nm=Zn;function fi(t,n){var i=new Nm(t,n),e=new Pm(i);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var Os=fi;fi.default=fi,$m.registerParse(fi);var Ve=gt.isClean,Lm=gt.my,Dm=Hc,Fm=Vn,Um=Dt,Bm=_s,zm=ol,yl=Ss,qm=Os,Wm=jr,Gm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},jm={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},Vm={Once:!0,postcssPlugin:!0,prepare:!0},ar=0;function Hr(t){return(typeof t=="undefined"?"undefined":M(t))==="object"&&typeof t.then=="function"}function _l(t){var n=!1,i=Gm[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,ar,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,ar,i+"Exit"]:[i,i+"Exit"]}function wl(t){var n;return t.type==="document"?n=["Document",ar,"DocumentExit"]:t.type==="root"?n=["Root",ar,"RootExit"]:n=_l(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function xs(t){return t[Ve]=!1,t.nodes&&t.nodes.forEach(function(n){return xs(n)}),t}var ks={},ur=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=xs(e);else if(A(e,t)||A(e,yl))s=xs(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=qm;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Lm]&&Um.rebuild(s)}this.result=new yl(i,s,r),this.helpers=z({},ks,{postcss:ks,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?z({},u,u.prepare(o.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!jm[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Vm[u])if(M(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return yn(function(){var r,o,s,a,u,c,l,f,h,g,d,y;return Pt(this,function(v){switch(v.label){case 0:e.plugin=0,r=0,v.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!Hr(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,v.label=7;case 7:if(u[Ve])return[3,14];u[Ve]=!0,c=[wl(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Hr(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.sent(),h=c[c.length-1].node,e.handleError(f,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Pt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(R){return b(R,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},d=I(e.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,bo(g())];case 16:v.sent(),v.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return Hr(o[0])?Promise.all(o):o}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Fm;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new Dm(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(Hr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ve];)a[Ve]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||zm("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Hr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ve]){f[Ve]=!0,e.push(wl(f));return}r.iterator=0,delete o.indexes[l]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===ar){o.nodes&&o.nodes.length&&(o[Ve]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ve]=!0;for(var o=_l(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===ar)e.nodes&&e.each(function(l){l[Ve]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ne(t,[{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"}}]),t})();ur.registerPostcss=function(t){ks=t};var bl=ur;ur.default=ur,Wm.registerLazyResult(ur),Bm.registerLazyResult(ur);var Hm=Hc,Ym=Vn,Km=ol,Jm=Os,Xm=Ss,Rs=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=Ym;this.result=new Xm(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Hm(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Km("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ne(t,[{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,r=Jm;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),Zm=Rs;Rs.default=Rs;var Qm=Zm,ey=bl,ty=_s,ry=jr,Yr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new Qm(this,e,r):new ey(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),ny=Yr;Yr.default=Yr,ry.registerProcessor(Yr),ty.registerProcessor(Yr);var iy=Kn,oy=Fc,sy=ti,ay=Es,uy=Zn,cy=jr,ly=Is;function Kr(t,n){if(Array.isArray(t))return t.map(function(f){return Kr(f)});var i=t.inputs,e=$t(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=z({},s,{__proto__:uy.prototype});a.map&&(a.map=z({},a.map,{__proto__:oy.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Kr(f,n)})),e.source){var u=e.source,c=u.inputId,l=$t(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new cy(e);if(e.type==="decl")return new iy(e);if(e.type==="rule")return new ly(e);if(e.type==="comment")return new sy(e);if(e.type==="atrule")return new ay(e);throw new Error("Unknown node type: "+t.type)}var fy=Kr;Kr.default=Kr;var hy=is,Sl=Kn,py=bl,dy=Dt,As=ny,vy=Vn,gy=fy,Cl=_s,my=sl,El=ti,Il=Es,yy=Ss,_y=Zn,wy=Os,by=dl,Ol=Is,xl=jr,Sy=Yn;function Z(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new As(n)}Z.plugin=function(n,i){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new As().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Z([r(u)]).process(s,a)},r},Z.stringify=vy,Z.parse=wy,Z.fromJSON=gy,Z.list=by,Z.comment=function(t){return new El(t)},Z.atRule=function(t){return new Il(t)},Z.decl=function(t){return new Sl(t)},Z.rule=function(t){return new Ol(t)},Z.root=function(t){return new xl(t)},Z.document=function(t){return new Cl(t)},Z.CssSyntaxError=hy,Z.Declaration=Sl,Z.Container=dy,Z.Processor=As,Z.Document=Cl,Z.Comment=El,Z.Warning=my,Z.AtRule=Il,Z.Result=yy,Z.Input=_y,Z.Rule=Ol,Z.Root=xl,Z.Node=Sy,py.registerPostcss(Z);var Cy=Z;Z.default=Z;var le=Pg(Cy);le.stringify,le.fromJSON,le.plugin,le.parse,le.list,le.document,le.comment,le.atRule,le.rule,le.decl,le.root,le.CssSyntaxError,le.Declaration,le.Container,le.Processor,le.Document,le.Comment,le.Warning,le.AtRule,le.Result,le.Input,le.Rule,le.Root,le.Node;var Ey=(function(){function t(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];Fe(this,"parentElement",null),Fe(this,"parentNode",null),Fe(this,"ownerDocument"),Fe(this,"firstChild",null),Fe(this,"lastChild",null),Fe(this,"previousSibling",null),Fe(this,"nextSibling",null),Fe(this,"ELEMENT_NODE",1),Fe(this,"TEXT_NODE",3),Fe(this,"nodeType"),Fe(this,"nodeName"),Fe(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(A(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},ne(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),kl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Rl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},hi={},Iy=function(){return!!globalThis.Zone};function Ms(t){if(hi[t])return hi[t];var n=globalThis[t],i=n.prototype,e=t in kl?kl[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in Rl?Rl[t]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!Iy())return hi[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?hi[t]=c:i}catch(l){return i}}var Ts={};function mt(t,n,i){var e,r=t+"."+String(i);if(Ts[r])return Ts[r].call(n);var o=Ms(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(Ts[r]=s,s.call(n)):n[i]}var $s={};function Al(t,n,i){var e=t+"."+String(i);if($s[e])return $s[e].bind(n);var r=Ms(t),o=r[i];return typeof o!="function"?n[i]:($s[e]=o,o.bind(n))}function Oy(t){return mt("Node",t,"childNodes")}function xy(t){return mt("Node",t,"parentNode")}function ky(t){return mt("Node",t,"parentElement")}function Ry(t){return mt("Node",t,"textContent")}function Ay(t,n){return Al("Node",t,"contains")(n)}function My(t){return Al("Node",t,"getRootNode")()}function Ty(t){return!t||!("host"in t)?null:mt("ShadowRoot",t,"host")}function $y(t){return t.styleSheets}function Py(t){return!t||!("shadowRoot"in t)?null:mt("Element",t,"shadowRoot")}function Ny(t,n){return mt("Element",t,"querySelector")(n)}function Ly(t,n){return mt("Element",t,"querySelectorAll")(n)}function Ml(){return Ms("MutationObserver").constructor}function Ft(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(o){return function(){}}}var j={childNodes:Oy,parentNode:xy,parentElement:ky,textContent:Ry,contains:Ay,getRootNode:My,host:Ty,styleSheets:$y,shadowRoot:Py,querySelector:Ny,querySelectorAll:Ly,mutationObserver:Ml,patch:Ft};function Ae(t,n,i){i===void 0&&(i=document);var e={capture:!0,passive:!0};return i.addEventListener(t,n,e),function(){return i.removeEventListener(t,n,e)}}var cr="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",Tl={map:{},getId:function(){return console.error(cr),-1},getNode:function(){return console.error(cr),null},removeNodeFromMap:function(){console.error(cr)},has:function(){return console.error(cr),!1},reset:function(){console.error(cr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(Tl=new Proxy(Tl,{get:function(n,i,e){return i==="map"&&console.error(cr),Reflect.get(n,i,e)}}));function Jr(t,n,i){i===void 0&&(i={});var e=null,r=0;return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(l,s)):!e&&i.trailing!==!1&&(e=setTimeout(function(){r=i.leading===!1?0:Date.now(),e=null,t.apply(l,s)},c))}}function pi(t,n,i,e,r){r===void 0&&(r=window);var o=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),o&&o.set&&o.set.call(this,a)}}),function(){return pi(t,n,o||{},!0)}}var di=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(di=function(){return new Date().getTime()});function $l(t){var n,i,e,r,o=t.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((n=j.parentElement(o.body))==null?void 0:n.scrollLeft)||((i=o==null?void 0:o.body)==null?void 0:i.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((e=j.parentElement(o.body))==null?void 0:e.scrollTop)||((r=o==null?void 0:o.body)==null?void 0:r.scrollTop)||0}}function Pl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Nl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ll(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:j.parentElement(t);return n}function Me(t,n,i,e){if(!t)return!1;var r=Ll(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(In(r,n,e))return!0}catch(o){}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function Dy(t,n){return n.getId(t)!==-1}function Ps(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===Nr}function Dl(t,n){if($r(t))return!1;var i=n.getId(t);if(!n.has(i))return!0;var e=j.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?Dl(e,n):!0}function Ns(t){return!!t.changedTouches}function Fy(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Fl(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Ul(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Ls(t){return t?A(t,Ey)&&"shadowRoot"in t?!!t.shadowRoot:!!j.shadowRoot(t):!1}var Uy=(function(){function t(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var o;return r===void 0?o=this.id++:o=r,this.styleIDMap.set(e,o),this.idStyleMap.set(o,e),o},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},n.remove=function(e){var r=this.styleIDMap.get(e);return r!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(r),!0):!1},t})();function Bl(t){var n,i=null;return"getRootNode"in t&&((n=j.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&j.host(j.getRootNode(t))&&(i=j.host(j.getRootNode(t))),i}function By(t){for(var n=t,i;i=Bl(n);)n=i;return n}function zy(t){var n=t.ownerDocument;if(!n)return!1;var i=By(t);return j.contains(n,i)}function zl(t){var n=t.ownerDocument;return n?j.contains(n,t)||zy(t):!1}var V=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(V||{}),D=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(D||{}),Pe=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})(Pe||{}),it=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(it||{}),lr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(lr||{}),fr=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(fr||{}),ql=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(ql||{});function Wl(t){return"__ln"in t}var qy=(function(){function t(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,o=0;o<e;o++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Wl(e.previousSibling)){var o=e.previousSibling.__ln.next;r.next=o,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,o&&(o.previous=r)}else if(e.nextSibling&&Wl(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;r.previous=s,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,s&&(s.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t})(),Gl=function(t,n){return t+"@"+n},Wy=(function(){function t(){var i=this;x(this,"frozen",!1),x(this,"locked",!1),x(this,"texts",[]),x(this,"attributes",[]),x(this,"attributeMap",new WeakMap),x(this,"removes",[]),x(this,"mapRemoves",[]),x(this,"movedMap",{}),x(this,"addedSet",new Set),x(this,"movedSet",new Set),x(this,"droppedSet",new Set),x(this,"removesSubTreeCache",new Set),x(this,"mutationCb"),x(this,"blockClass"),x(this,"blockSelector"),x(this,"maskTextClass"),x(this,"maskTextSelector"),x(this,"inlineStylesheet"),x(this,"maskInputOptions"),x(this,"maskTextFn"),x(this,"maskInputFn"),x(this,"keepIframeSrcFn"),x(this,"recordCanvas"),x(this,"inlineImages"),x(this,"slimDOMOptions"),x(this,"dataURLOptions"),x(this,"doc"),x(this,"mirror"),x(this,"iframeManager"),x(this,"stylesheetManager"),x(this,"shadowDomManager"),x(this,"canvasManager"),x(this,"processedNodeManager"),x(this,"unattachedDoc"),x(this,"processMutations",function(e){e.forEach(i.processMutation),i.emit()}),x(this,"emit",function(){if(!(i.frozen||i.locked)){for(var e=[],r=new Set,o=new qy,s=function(L){for(var G=L,pe=Nr;pe===Nr;)G=G&&G.nextSibling,pe=G&&i.mirror.getId(G);return pe},a=function(L){var G=j.parentNode(L);if(!(!G||!zl(L))){var pe=!1;if(L.nodeType===Node.TEXT_NODE){var Y=G.tagName;if(Y==="TEXTAREA")return;Y==="STYLE"&&i.addedSet.has(G)&&(pe=!0)}var De=$r(G)?i.mirror.getId(Bl(L)):i.mirror.getId(G),Ne=s(L);if(De===-1||Ne===-1)return o.addNode(L);var ke=rr(L,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(he){Fl(he,i.mirror)&&i.iframeManager.addIframe(he),Ul(he,i.mirror)&&i.stylesheetManager.trackLinkElement(he),Ls(L)&&i.shadowDomManager.addShadowRoot(j.shadowRoot(L),i.doc)},onIframeLoad:function(he,xe){i.iframeManager.attachIframe(he,xe),i.shadowDomManager.observeAttachShadow(he)},onStylesheetLoad:function(he,xe){i.stylesheetManager.attachLinkElement(he,xe)},cssCaptured:pe});ke&&(e.push({parentId:De,nextId:Ne,node:ke}),r.add(ke.id))}};i.mapRemoves.length;){var u=i.mapRemoves.shift();i.cleanupRemovedNode(u),i.mirror.removeNodeFromMap(u)}for(var c=I(i.movedSet),l;!(l=c()).done;){var f=l.value;jl(i.removesSubTreeCache,f,i.mirror)&&!i.movedSet.has(j.parentNode(f))||a(f)}for(var h=I(i.addedSet),g;!(g=h()).done;){var d=g.value;!Vl(i.droppedSet,d)&&!jl(i.removesSubTreeCache,d,i.mirror)||Vl(i.movedSet,d)?a(d):i.droppedSet.add(d)}for(var y=null;o.length;){var v=null;if(y){var m=i.mirror.getId(j.parentNode(y.value)),_=s(y.value);m!==-1&&_!==-1&&(v=y)}if(!v)for(var b=o.tail;b;){var C=b;if(b=b.previous,C){var S=i.mirror.getId(j.parentNode(C.value)),O=s(C.value);if(O===-1)continue;if(S!==-1){v=C;break}else{var R=C.value,k=j.parentNode(R);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var $=j.host(k),W=i.mirror.getId($);if(W!==-1){v=C;break}}}}}if(!v){for(;o.head;)o.removeNode(o.head.value);break}y=v.previous,o.removeNode(v.value),a(v.value)}var ge={texts:i.texts.map(function(L){var G=L.node,pe=j.parentNode(G);return pe&&pe.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(pe),{id:i.mirror.getId(G),value:L.value}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),attributes:i.attributes.map(function(L){var G=L.attributes;if(typeof G.style=="string"){var pe=JSON.stringify(L.styleDiff),Y=JSON.stringify(L._unchangedStyles);pe.length<G.style.length&&(pe+Y).split("var(").length===G.style.split("var(").length&&(G.style=L.styleDiff)}return{id:i.mirror.getId(L.node),attributes:G}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),removes:i.removes,adds:e};!ge.texts.length&&!ge.attributes.length&&!ge.removes.length&&!ge.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(ge))}}),x(this,"genTextAreaValueMutation",function(e){var r=i.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(e,r));var o=Array.from(j.childNodes(e),function(s){return j.textContent(s)||""}).join("");r.attributes.value=bn({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:Sn(e),value:o,maskInputFn:i.maskInputFn})}),x(this,"processMutation",function(e){if(!Ps(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=j.textContent(e.target);!Me(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:$u(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Ll(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var o=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=Sn(o);a=bn({element:o,maskInputOptions:i.maskInputOptions,tagName:o.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Me(e.target,i.blockClass,i.blockSelector,!1)||a===e.oldValue)return;var c=i.attributeMap.get(e.target);if(o.tagName==="IFRAME"&&s==="src"&&!i.keepIframeSrcFn(a))if(!o.contentDocument)s="rr_src";else return;if(c||(c={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(e.target,c)),s==="type"&&o.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!Tu(o.tagName,s))if(c.attributes[s]=Mu(i.doc,Nt(o.tagName),Nt(s),a),s==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var f=I(Array.from(o.style)),h;!(h=f()).done;){var g=h.value,d=o.style.getPropertyValue(g),y=o.style.getPropertyPriority(g);d!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=d:c.styleDiff[g]=[d,y]:c._unchangedStyles[g]=[d,y]}for(var v=I(Array.from(l.style)),m;!(m=v()).done;){var _=m.value;o.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else s==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Me(e.target,i.blockClass,i.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return i.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var C=i.mirror.getId(b),S=$r(e.target)?i.mirror.getId(j.host(e.target)):i.mirror.getId(e.target);Me(e.target,i.blockClass,i.blockSelector,!1)||Ps(b,i.mirror,i.slimDOMOptions)||!Dy(b,i.mirror)||(i.addedSet.has(b)?(Ds(i.addedSet,b),i.droppedSet.add(b)):i.addedSet.has(e.target)&&C===-1||Dl(e.target,i.mirror)||(i.movedSet.has(b)&&i.movedMap[Gl(C,S)]?Ds(i.movedSet,b):(i.removes.push({parentId:S,id:C,isShadow:$r(e.target)&&Pr(e.target)?!0:void 0}),Gy(b,i.removesSubTreeCache))),i.mapRemoves.push(b))});break}}}),x(this,"genAdds",function(e,r){if(!i.processedNodeManager.inOtherBuffer(e,i)&&!(i.addedSet.has(e)||i.movedSet.has(e))){if(i.mirror.hasNode(e)){if(Ps(e,i.mirror,i.slimDOMOptions))return;i.movedSet.add(e);var o=null;r&&i.mirror.hasNode(r)&&(o=i.mirror.getId(r)),o&&o!==-1&&(i.movedMap[Gl(i.mirror.getId(e),o)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);Me(e,i.blockClass,i.blockSelector,!1)||(j.childNodes(e).forEach(function(s){return i.genAdds(s)}),Ls(e)&&j.childNodes(j.shadowRoot(e)).forEach(function(s){i.processedNodeManager.add(s,i),i.genAdds(s,e)}))}}),x(this,"cleanupRemovedNode",function(e){if(e.nodeName==="IFRAME")try{i.iframeManager.removeIframe(e)}catch(r){}else try{i.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch(r){}e.childNodes.forEach(function(r){i.cleanupRemovedNode(r)})})}var n=t.prototype;return n.init=function(e){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){r[o]=e[o]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},n.getDoc=function(){return this.doc},t})();function Ds(t,n){t.delete(n),j.childNodes(n).forEach(function(i){return Ds(t,i)})}function Gy(t,n){for(var i=[t];i.length;){var e=i.pop();n.has(e)||(n.add(e),j.childNodes(e).forEach(function(r){return i.push(r)}))}}function jl(t,n,i){return t.size===0?!1:jy(t,n)}function jy(t,n,i){var e=j.parentNode(n);return e?t.has(e):!1}function Vl(t,n){return t.size===0?!1:Hl(t,n)}function Hl(t,n){var i=j.parentNode(n);return i?t.has(i)?!0:Hl(t,i):!1}var Xr;function Vy(t){Xr=t}function Hy(){Xr=void 0}var H=function(t){if(!Xr)return t;var n=function(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(o){if(Xr&&Xr(o)===!0)return;throw o}};return n},He=[];function Zr(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(i){}return t&&t.target}function Yl(t,n){var i=new Wy;He.push(i),i.init(t);var e=new(Ml())(H(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Yy(t){for(var n=He.length-1;n>=0;n--){var i=He[n];i.getDoc()===t&&He.splice(n,1)}}function Ky(t){var n=t.mousemoveCb,i=t.sampling,e=t.doc,r=t.mirror;if(i.mousemove===!1)return function(){};var o=typeof i.mousemove=="number"?i.mousemove:50,s=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=Jr(H(function(h){var g=Date.now()-u;n(a.map(function(d){return d.timeOffset-=g,d}),h),a=[],u=null}),s),l=H(Jr(H(function(h){var g=Zr(h),d=Ns(h)?h.changedTouches[0]:h,y=d.clientX,v=d.clientY;u||(u=di()),a.push({x:y,y:v,id:r.getId(g),timeOffset:di()-u}),c(typeof DragEvent!="undefined"&&A(h,DragEvent)?D.Drag:A(h,MouseEvent)?D.MouseMove:D.TouchMove)}),o,{trailing:!1})),f=[Ae("mousemove",l,e),Ae("touchmove",l,e),Ae("drag",l,e)];return H(function(){f.forEach(function(h){return h()})})}function Jy(t){var n=t.mouseInteractionCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],c=null,l=function(f){return function(h){var g=Zr(h);if(!Me(g,r,o,!0)){var d=null,y=f;if("pointerType"in h){switch(h.pointerType){case"mouse":d=it.Mouse;break;case"touch":d=it.Touch;break;case"pen":d=it.Pen;break}d===it.Touch?Pe[f]===Pe.MouseDown?y="TouchStart":Pe[f]===Pe.MouseUp&&(y="TouchEnd"):it.Pen}else Ns(h)&&(d=it.Touch);d!==null?(c=d,(y.startsWith("Touch")&&d===it.Touch||y.startsWith("Mouse")&&d===it.Mouse)&&(d=null)):Pe[f]===Pe.Click&&(d=c,c=null);var v=Ns(h)?h.changedTouches[0]:h;if(v){var m=e.getId(g),_=v.clientX,b=v.clientY;H(n)(z({type:Pe[y],id:m,x:_,y:b},d!==null&&{pointerType:d}))}}}};return Object.keys(Pe).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var h=Nt(f),g=l(f);if(window.PointerEvent)switch(Pe[f]){case Pe.MouseDown:case Pe.MouseUp:h=h.replace("mouse","pointer");break;case Pe.TouchStart:case Pe.TouchEnd:return}u.push(Ae(h,g,i))}),H(function(){u.forEach(function(f){return f()})})}function Kl(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.sampling,a=H(Jr(H(function(u){var c=Zr(u);if(!(!c||Me(c,r,o,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=$l(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),s.scroll||100));return Ae("scroll",a,i)}function Xy(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,o=-1,s=H(Jr(H(function(){var a=Pl(),u=Nl();(r!==a||o!==u)&&(i({width:Number(u),height:Number(a)}),r=a,o=u)}),200));return Ae("resize",s,e)}var Zy=["INPUT","TEXTAREA","SELECT"],Jl=new WeakMap;function Qy(t){var n=t.inputCb,i=t.doc,e=t.mirror,r=t.blockClass,o=t.blockSelector,s=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,c=t.maskInputFn,l=t.sampling,f=t.userTriggeredOnInput;function h(C){var S=Zr(C),O=C.isTrusted,R=S&&S.tagName;if(S&&R==="OPTION"&&(S=j.parentElement(S)),!(!S||!R||Zy.indexOf(R)<0||Me(S,r,o,!0))&&!(S.classList.contains(s)||a&&S.matches(a))){var k=S.value,$=!1,W=Sn(S)||"";W==="radio"||W==="checkbox"?$=S.checked:(u[R.toLowerCase()]||u[W])&&(k=bn({element:S,maskInputOptions:u,tagName:R,type:W,value:k,maskInputFn:c})),g(S,f?{text:k,isChecked:$,userTriggered:O}:{text:k,isChecked:$});var ge=S.name;W==="radio"&&ge&&$&&i.querySelectorAll('input[type="radio"][name="'+ge+'"]').forEach(function(L){if(L!==S){var G=L.value;g(L,f?{text:G,isChecked:!$,userTriggered:!1}:{text:G,isChecked:!$})}})}}function g(C,S){var O=Jl.get(C);if(!O||O.text!==S.text||O.isChecked!==S.isChecked){Jl.set(C,S);var R=e.getId(C);H(n)(z({},S,{id:R}))}}var d=l.input==="last"?["change"]:["input","change"],y=d.map(function(C){return Ae(C,H(h),i)}),v=i.defaultView;if(!v)return function(){y.forEach(function(C){return C()})};var m=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),_=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var b;(b=y).push.apply(b,[].concat(_.map(function(C){return pi(C[0],C[1],{set:function(){H(h)({target:this,isTrusted:!1})}},!1,v)})))}return H(function(){y.forEach(function(C){return C()})})}function vi(t){var n=[];function i(e,r){if(gi("CSSGroupingRule")&&A(e.parentRule,CSSGroupingRule)||gi("CSSMediaRule")&&A(e.parentRule,CSSMediaRule)||gi("CSSSupportsRule")&&A(e.parentRule,CSSSupportsRule)||gi("CSSConditionRule")&&A(e.parentRule,CSSConditionRule)){var o=Array.from(e.parentRule.cssRules),s=o.indexOf(e);r.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return i(t,n)}function yt(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function e_(t,n){var i=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,o=n.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var s=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:H(function(h,g,d){var y=d[0],v=d[1],m=yt(g,e,r.styleMirror),_=m.id,b=m.styleId;return(_&&_!==-1||b&&b!==-1)&&i({id:_,styleId:b,adds:[{rule:y,index:v}]}),h.apply(g,d)})}),o.CSSStyleSheet.prototype.addRule=function(h,g,d){d===void 0&&(d=this.cssRules.length);var y=h+" { "+g+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,d])};var a=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:H(function(h,g,d){var y=d[0],v=yt(g,e,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),h.apply(g,d)})}),o.CSSStyleSheet.prototype.removeRule=function(h){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;o.CSSStyleSheet.prototype.replace&&(u=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:H(function(h,g,d){var y=d[0],v=yt(g,e,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),h.apply(g,d)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:H(function(h,g,d){var y=d[0],v=yt(g,e,r.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),h.apply(g,d)})}));var l={};mi("CSSGroupingRule")?l.CSSGroupingRule=o.CSSGroupingRule:(mi("CSSMediaRule")&&(l.CSSMediaRule=o.CSSMediaRule),mi("CSSConditionRule")&&(l.CSSConditionRule=o.CSSConditionRule),mi("CSSSupportsRule")&&(l.CSSSupportsRule=o.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(h){var g=h[0],d=h[1];f[g]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(f[g].insertRule,{apply:H(function(y,v,m){var _=m[0],b=m[1],C=yt(v.parentStyleSheet,e,r.styleMirror),S=C.id,O=C.styleId;return(S&&S!==-1||O&&O!==-1)&&i({id:S,styleId:O,adds:[{rule:_,index:[].concat(vi(v),[b||0])}]}),y.apply(v,m)})}),d.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:H(function(y,v,m){var _=m[0],b=yt(v.parentStyleSheet,e,r.styleMirror),C=b.id,S=b.styleId;return(C&&C!==-1||S&&S!==-1)&&i({id:C,styleId:S,removes:[{index:[].concat(vi(v),[_])}]}),y.apply(v,m)})})}),H(function(){o.CSSStyleSheet.prototype.insertRule=s,o.CSSStyleSheet.prototype.deleteRule=a,u&&(o.CSSStyleSheet.prototype.replace=u),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(h){var g=h[0],d=h[1];d.prototype.insertRule=f[g].insertRule,d.prototype.deleteRule=f[g].deleteRule})})}function Xl(t,n){var i=t.mirror,e=t.stylesheetManager,r,o,s,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(j.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(o=n.ownerDocument)==null?void 0:o.defaultView)==null?void 0:s.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var h,g=(h=c.set)==null?void 0:h.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(d){}return g}}),H(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function t_(t,n){var i=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,o=t.stylesheetManager,s=n.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:H(function(c,l,f){var h,g=f[0],d=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,d,y]);var v=yt((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),m=v.id,_=v.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:d,priority:y},index:vi(l.parentRule)}),c.apply(l,f)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:H(function(c,l,f){var h,g=f[0];if(r.has(g))return u.apply(l,[g]);var d=yt((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,o.styleMirror),y=d.id,v=d.styleId;return(y&&y!==-1||v&&v!==-1)&&i({id:y,styleId:v,remove:{property:g},index:vi(l.parentRule)}),c.apply(l,f)})}),H(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function r_(t){var n=t.mediaInteractionCb,i=t.blockClass,e=t.blockSelector,r=t.mirror,o=t.sampling,s=t.doc,a=H(function(c){return Jr(H(function(l){var f=Zr(l);if(!(!f||Me(f,i,e,!0))){var h=f.currentTime,g=f.volume,d=f.muted,y=f.playbackRate,v=f.loop;n({type:c,id:r.getId(f),currentTime:h,volume:g,muted:d,playbackRate:y,loop:v})}}),o.media||500)}),u=[Ae("play",a(fr.Play),s),Ae("pause",a(fr.Pause),s),Ae("seeked",a(fr.Seeked),s),Ae("volumechange",a(fr.VolumeChange),s),Ae("ratechange",a(fr.RateChange),s)];return H(function(){u.forEach(function(c){return c()})})}function n_(t){var n=t.fontCb,i=t.doc,e=i.defaultView;if(!e)return function(){};var r=[],o=new WeakMap,s=e.FontFace;e.FontFace=function(c,l,f){var h=new s(c,l,f);return o.set(h,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),h};var a=Ft(i.fonts,"add",function(u){return function(c){return setTimeout(H(function(){var l=o.get(c);l&&(n(l),o.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){e.FontFace=s}),r.push(a),H(function(){r.forEach(function(u){return u()})})}function i_(t){var n=t.doc,i=t.mirror,e=t.blockClass,r=t.blockSelector,o=t.selectionCb,s=!0,a=H(function(){var u=n.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var h=u.getRangeAt(f),g=h.startContainer,d=h.startOffset,y=h.endContainer,v=h.endOffset,m=Me(g,e,r,!0)||Me(y,e,r,!0);m||c.push({start:i.getId(g),startOffset:d,end:i.getId(y),endOffset:v})}o({ranges:c})}});return a(),Ae("selectionchange",a)}function o_(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=Ft(e.customElements,"define",function(o){return function(s,a,u){try{i({define:{name:s}})}catch(c){console.warn("Custom element callback failed for "+s)}return o.apply(this,[s,a,u])}});return r}function s_(t,n){var i=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,o=t.scrollCb,s=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,c=t.styleSheetRuleCb,l=t.styleDeclarationCb,f=t.canvasMutationCb,h=t.fontCb,g=t.selectionCb,d=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(v))}i.apply(void 0,[].concat(v))},t.mousemoveCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(v))}e.apply(void 0,[].concat(v))},t.mouseInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(v))}r.apply(void 0,[].concat(v))},t.scrollCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(v))}o.apply(void 0,[].concat(v))},t.viewportResizeCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(v))}s.apply(void 0,[].concat(v))},t.inputCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(v))}a.apply(void 0,[].concat(v))},t.mediaInteractionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(v))}u.apply(void 0,[].concat(v))},t.styleSheetRuleCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(v))}c.apply(void 0,[].concat(v))},t.styleDeclarationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(v))}l.apply(void 0,[].concat(v))},t.canvasMutationCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(v))}f.apply(void 0,[].concat(v))},t.fontCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(v))}h.apply(void 0,[].concat(v))},t.selectionCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(v))}g.apply(void 0,[].concat(v))},t.customElementCb=function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(v))}d.apply(void 0,[].concat(v))}}function a_(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};s_(t,n);var e;t.recordDOM&&(e=Yl(t,t.doc));var r=Ky(t),o=Jy(t),s=Kl(t),a=Xy(t,{win:i}),u=Qy(t),c=r_(t),l=function(){},f=function(){},h=function(){},g=function(){};t.recordDOM&&(l=e_(t,{win:i}),f=Xl(t,t.doc),h=t_(t,{win:i}),t.collectFonts&&(g=n_(t)));for(var d=i_(t),y=o_(t),v=[],m=I(t.plugins),_;!(_=m()).done;){var b=_.value;v.push(b.observer(b.callback,i,b.options))}return H(function(){He.forEach(function(C){return C.reset()}),e==null||e.disconnect(),r(),o(),s(),a(),u(),c(),l(),f(),h(),g(),d(),y(),v.forEach(function(C){return C()})})}function gi(t){return typeof window[t]!="undefined"}function mi(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var Zl=(function(){function t(i){x(this,"iframeIdToRemoteIdMap",new WeakMap),x(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=t.prototype;return n.getId=function(e,r,o,s){var a=o||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(e,r){var o=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return o.getId(e,u,s,a)})},n.getRemoteId=function(e,r,o){var s=o||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=s.get(r);return a||-1},n.getRemoteIds=function(e,r){var o=this,s=this.getRemoteIdToIdMap(e);return r.map(function(a){return o.getRemoteId(e,a,s)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t})(),u_=(function(){function t(i){x(this,"iframes",new WeakMap),x(this,"crossOriginIframeMap",new WeakMap),x(this,"crossOriginIframeMirror",new Zl(ku)),x(this,"crossOriginIframeStyleMirror"),x(this,"crossOriginIframeRootIdMap",new WeakMap),x(this,"iframeContentDocumentMap",new WeakMap),x(this,"iframeObserverCleanupMap",new WeakMap),x(this,"mirror"),x(this,"mutationCb"),x(this,"wrappedEmit"),x(this,"loadListener"),x(this,"stylesheetManager"),x(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Zl(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},n.setObserverCleanup=function(e,r){this.iframeObserverCleanupMap.set(e,r)},n.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},n.removeIframe=function(e){var r=this.iframeContentDocumentMap.get(e);r&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(r),this.mirror.removeNodeFromMap(r,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var o=this.iframeObserverCleanupMap.get(e);if(o){try{o()}catch(s){}this.iframeObserverCleanupMap.delete(e)}},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var o,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((o=e.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var o=e.source;if(o){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var o=this,s;switch(r.type){case V.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:V.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case V.Meta:case V.Load:case V.DomContentLoaded:return!1;case V.Plugin:return r;case V.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case V.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(function(u){o.replaceIds(u,e,["parentId","nextId","previousId"]),o.replaceIdOnNode(u.node,e);var c=o.crossOriginIframeRootIdMap.get(e);c&&o.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){o.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){o.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){o.replaceIds(u,e,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(function(u){o.replaceIds(u,e,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,e,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(function(u){o.replaceIds(u,e,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(s=r.data.styles)==null||s.forEach(function(u){o.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,o,s){for(var a=I(s),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=e.getIds(o,r[c]):r[c]=e.getId(o,r[c]))}return r},n.replaceIds=function(e,r,o){return this.replace(this.crossOriginIframeMirror,e,r,o)},n.replaceStyleIds=function(e,r,o){return this.replace(this.crossOriginIframeStyleMirror,e,r,o)},n.replaceIdOnNode=function(e,r){var o=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){o.replaceIdOnNode(s,r)})},n.patchRootIdOnNode=function(e,r){var o=this;e.type!==ql.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(s){o.patchRootIdOnNode(s,r)})},t})(),c_=(function(){function t(i){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var o=this;if(Pr(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=Yl(z({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Kl(z({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,o.mirror.getId(j.host(e))),o.restoreHandlers.push(Xl({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var o=this;this.restoreHandlers.push(Ft(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),c=j.shadowRoot(this);return c&&zl(this)&&o.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),hr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l_=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),yi=0;yi<hr.length;yi++)l_[hr.charCodeAt(yi)]=yi;var f_=function(n){var i=new Uint8Array(n),e,r=i.length,o="";for(e=0;e<r;e+=3)o+=hr[i[e]>>2],o+=hr[(i[e]&3)<<4|i[e+1]>>4],o+=hr[(i[e+1]&15)<<2|i[e+2]>>6],o+=hr[i[e+2]&63];return r%3===2?o=o.substring(0,o.length-1)+"=":r%3===1&&(o=o.substring(0,o.length-2)+"=="),o},Ql=new Map;function h_(t,n){var i=Ql.get(t);return i||(i=new Map,Ql.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var ef=function(t,n,i){if(!(!t||!(rf(t,n)||(typeof t=="undefined"?"undefined":M(t))==="object"))){var e=t.constructor.name,r=h_(i,e),o=r.indexOf(t);return o===-1&&(o=r.length,r.push(t)),o}};function _i(t,n,i){if(A(t,Array))return t.map(function(d){return _i(d,n,i)});if(t===null)return t;if(A(t,Float32Array)||A(t,Float64Array)||A(t,Int32Array)||A(t,Uint32Array)||A(t,Uint8Array)||A(t,Uint16Array)||A(t,Int16Array)||A(t,Int8Array)||A(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(A(t,ArrayBuffer)){var r=t.constructor.name,o=f_(t);return{rr_type:r,base64:o}}else if(A(t,DataView)){var s=t.constructor.name;return{rr_type:s,args:[_i(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(A(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(A(t,HTMLCanvasElement)){var c="HTMLImageElement",l=t.toDataURL();return{rr_type:c,src:l}}else if(A(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[_i(t.data,n,i),t.width,t.height]}}else if(rf(t,n)||(typeof t=="undefined"?"undefined":M(t))==="object"){var h=t.constructor.name,g=ef(t,n,i);return{rr_type:h,index:g}}return t}var tf=function(t,n,i){return t.map(function(e){return _i(e,n,i)})},rf=function(t,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=i.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return A(t,n[r])})};function p_(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=Ft(n.CanvasRenderingContext2D.prototype,c,function(h){return function(){for(var g=this,d=arguments.length,y=new Array(d),v=0;v<d;v++)y[v]=arguments[v];return Me(this.canvas,i,e,!0)||setTimeout(function(){var m=tf(y,n,g);t(g.canvas,{type:lr["2D"],property:c,args:m})},0),h.apply(this,y)}});o.push(l)}catch(h){var f=pi(n.CanvasRenderingContext2D.prototype,c,{set:function(d){t(this.canvas,{type:lr["2D"],property:c,args:[d],setter:!0})}});o.push(f)}},o=[],s=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)r();return function(){o.forEach(function(c){return c()})}}function d_(t){return t==="experimental-webgl"?"webgl":t}function nf(t,n,i,e){var r=[];try{var o=Ft(t.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!Me(this,n,i,!0)){var f=d_(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(c[0]&&M(c[0])==="object"){var h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],c))}});r.push(o)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(s){return s()})}}function of(t,n,i,e,r,o){for(var s=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var h=Ft(t,f,function(d){return function(){for(var y=arguments.length,v=new Array(y),m=0;m<y;m++)v[m]=arguments[m];var _=d.apply(this,v);if(ef(_,o,this),"tagName"in this.canvas&&!Me(this.canvas,e,r,!0)){var b=tf(v,o,this),C={type:n,property:f,args:b};i(this.canvas,C)}return _}});a.push(h)}catch(d){var g=pi(t,f,{set:function(v){i(this.canvas,{type:n,property:f,args:[v],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(t),c=I(u),l;!(l=c()).done;)s();return a}function v_(t,n,i,e){var r,o=[];if((r=o).push.apply(r,[].concat(of(n.WebGLRenderingContext.prototype,lr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var s;(s=o).push.apply(s,[].concat(of(n.WebGL2RenderingContext.prototype,lr.WebGL2,t,i,e,n)))}return function(){o.forEach(function(a){return a()})}}var sf="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",g_=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},af=typeof window!="undefined"&&window.Blob&&new Blob([g_(sf)],{type:"text/javascript;charset=utf-8"});function m_(t){var n;try{if(n=af&&(window.URL||window.webkitURL).createObjectURL(af),!n)throw"";var i=new Worker(n,{name:t==null?void 0:t.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(e){return new Worker("data:text/javascript;base64,"+sf,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var y_=(function(){function t(i){var e=this;x(this,"pendingCanvasMutations",new Map),x(this,"rafStamps",{latestId:0,invokeId:null}),x(this,"mirror"),x(this,"mutationCb"),x(this,"resetObservers"),x(this,"frozen",!1),x(this,"locked",!1),x(this,"processMutation",function(f,h){var g=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(g||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(f)||e.pendingCanvasMutations.set(f,[]),e.pendingCanvasMutations.get(f).push(h)});var r=i.sampling,o=r===void 0?"all":r,s=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&o==="all"&&this.initCanvasMutationObserver(s,a,u),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,s,a,u,{dataURLOptions:l})}var n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,o,s,a){var u=this,c=nf(r,o,s,!0),l=new Map,f=new m_;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var b=m.data,C=b.base64,S=b.type,O=b.width,R=b.height;u.mutationCb({id:_,type:lr["2D"],commands:[{property:"clearRect",args:[0,0,O,R]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:S}]},0,0]}]})}};var h=1e3/e,g=0,d,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Me(_,o,s,!0)||m.push(_)}),m},v=function(m){if(g&&m-g<h){d=requestAnimationFrame(v);return}g=m;var _=u;y().forEach(yn(function(b){var C,S,O,R;return Pt(this,function(k){switch(k.label){case 0:return S=_.mirror.getId(b),l.get(S)?[2]:b.width===0||b.height===0?[2]:(l.set(S,!0),["webgl","webgl2"].includes(b.__context)&&(O=b.getContext(b.__context),((C=O==null?void 0:O.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return R=k.sent(),f.postMessage({id:S,bitmap:R,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[R]),[2]}})})),d=requestAnimationFrame(v)};d=requestAnimationFrame(v),this.resetObservers=function(){c(),cancelAnimationFrame(d)}},n.initCanvasMutationObserver=function(e,r,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=nf(e,r,o,!1),a=p_(this.processMutation.bind(this),e,r,o),u=v_(this.processMutation.bind(this),e,r,o);this.resetObservers=function(){s(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(o){e.rafStamps.latestId=o,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,o){var s=e.mirror.getId(o);e.flushPendingCanvasMutationFor(o,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(e);if(!(!o||r===-1)){var s=o.map(function(u){u.type;var c=$t(u,["type"]);return c}),a=o[0].type;this.mutationCb({id:r,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},t})(),__=(function(){function t(i){x(this,"trackedLinkElements",new WeakSet),x(this,"mutationCb"),x(this,"adoptedStyleSheetCb"),x(this,"styleMirror",new Uy),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var o,s=function(){var f=l.value,h=void 0;o.styleMirror.has(f)?h=o.styleMirror.getId(f):(h=o.styleMirror.add(f),u.push({styleId:h,rules:Array.from(f.rules||CSSRule,function(g,d){return{rule:Eu(g,f.href),index:d}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],c=I(e),l;!(l=c()).done;)o=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.cleanupStylesheetsForRemovedNode=function(e){var r=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var o=e;if(o.adoptedStyleSheets)for(var s=I(o.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var c=e;c.sheet&&this.styleMirror.remove(c.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(f){r.cleanupStylesheetsForRemovedNode(f)})}catch(f){}},n.trackStylesheetInLinkElement=function(e){},t})(),w_=(function(){function t(){x(this,"nodeMap",new WeakMap),x(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var o=this.nodeMap.get(e);return o&&Array.from(o).some(function(s){return s!==r})},n.add=function(e,r){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t})();function b_(t){try{var n=new URL(t).origin;return n!=="null"?n:null}catch(i){return null}}function S_(t){if(!Array.isArray(t)||t.length===0)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var n=new Set,i=0;i<t.length;i++){var e=t[i];if(typeof e!="string")throw new Error("[rrweb] allowedIframeOrigins["+i+"] must be a string, got "+(typeof e=="undefined"?"undefined":M(e))+".");var r=b_(e);r&&n.add(r)}return Object.freeze(n)}var de,wi,Fs,bi=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var Us=document.createElement("iframe");document.body.appendChild(Us),Array.from=((yu=Us.contentWindow)==null?void 0:yu.Array.from)||Array.from,document.body.removeChild(Us)}}catch(t){console.debug("Unable to override Array.from",t)}var ze=md();function _t(t){t===void 0&&(t={});var n=t.emit,i=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,o=r===void 0?"rr-block":r,s=t.blockSelector,a=s===void 0?null:s,u=t.ignoreClass,c=u===void 0?"rr-ignore":u,l=t.ignoreSelector,f=l===void 0?null:l,h=t.maskTextClass,g=h===void 0?"rr-mask":h,d=t.maskTextSelector,y=d===void 0?null:d,v=t.inlineStylesheet,m=v===void 0?!0:v,_=t.maskAllInputs,b=t.maskInputOptions,C=t.slimDOMOptions,S=t.maskInputFn,O=t.maskTextFn,R=t.hooks,k=t.packFn,$=t.sampling,W=$===void 0?{}:$,ge=t.dataURLOptions,L=ge===void 0?{}:ge,G=t.mousemoveWait,pe=t.recordDOM,Y=pe===void 0?!0:pe,De=t.recordCanvas,Ne=De===void 0?!1:De,ke=t.recordCrossOriginIframes,he=ke===void 0?!1:ke,xe=t.allowedIframeOrigins,Gt=t.recordAfter,tt=Gt===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Gt,jt=t.userTriggeredOnInput,Be=jt===void 0?!1:jt,Mt=t.collectFonts,J=Mt===void 0?!1:Mt,xr=t.inlineImages,kr=xr===void 0?!1:xr,Tt=t.plugins,po=t.keepIframeSrcFn,Rr=po===void 0?function(){return!1}:po,vo=t.ignoreCSSAttributes,go=vo===void 0?new Set([]):vo,mn=t.errorHandler;Vy(mn);var Vt;he&&xe&&xe.length>0&&(Vt=S_(xe),Vt.size===0&&(Vt=void 0));var Ht=he?window.parent===window:!0,Yt=!1;if(!Ht)try{window.parent.document&&(Yt=!1)}catch(K){Yt=!0}if(Ht&&!n)throw new Error("emit function is required");if(!Ht&&!Yt)return function(){};G!==void 0&&W.mousemove===void 0&&(W.mousemove=G),ze.reset();var Kt=_===!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?b:{password:!0},Jt=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};Fy();var ht,Ar=0,Dp=function(K){for(var Te=I(Tt||[]),T;!(T=Te()).done;){var re=T.value;re.eventProcessor&&(K=re.eventProcessor(K))}return k&&!Yt&&(K=k(K)),K};de=function(K,Te){var T,re=K;if(re.timestamp=di(),(T=He[0])!=null&&T.isFrozen()&&re.type!==V.FullSnapshot&&!(re.type===V.IncrementalSnapshot&&re.data.source===D.Mutation)&&He.forEach(function(EC){return EC.unfreeze()}),Ht)n==null||n(Dp(re),Te);else if(Yt){var Qt={type:"rrweb",event:Dp(re),origin:window.location.origin,isCheckout:Te};if(Vt)for(var hu=I(Vt),Wp;!(Wp=hu()).done;){var bC=Wp.value;window.parent.postMessage(Qt,bC)}else window.parent.postMessage(Qt,"*")}if(re.type===V.FullSnapshot)ht=re,Ar=0;else if(re.type===V.IncrementalSnapshot){if(re.data.source===D.Mutation&&re.data.isAttachIframe)return;Ar++;var SC=e&&Ar>=e,CC=i&&re.timestamp-ht.timestamp>i;(SC||CC)&&wi(!0)}};for(var mo=function(K){de({type:V.IncrementalSnapshot,data:z({source:D.Mutation},K)})},Fp=function(K){return de({type:V.IncrementalSnapshot,data:z({source:D.Scroll},K)})},Up=function(K){return de({type:V.IncrementalSnapshot,data:z({source:D.CanvasMutation},K)})},_C=function(K){return de({type:V.IncrementalSnapshot,data:z({source:D.AdoptedStyleSheet},K)})},Xt=new __({mutationCb:mo,adoptedStyleSheetCb:_C}),pt=new u_({mirror:ze,mutationCb:mo,stylesheetManager:Xt,recordCrossOriginIframes:he,wrappedEmit:de}),wC=I(Tt||[]),Bp;!(Bp=wC()).done;){var zp=Bp.value;zp.getMirror&&zp.getMirror({nodeMirror:ze,crossOriginIframeMirror:pt.crossOriginIframeMirror,crossOriginIframeStyleMirror:pt.crossOriginIframeStyleMirror})}var lu=new w_;Fs=new y_({recordCanvas:Ne,mutationCb:Up,win:window,blockClass:o,blockSelector:a,mirror:ze,sampling:W.canvas,dataURLOptions:L});var yo=new c_({mutationCb:mo,scrollCb:Fp,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:Kt,dataURLOptions:L,maskTextFn:O,maskInputFn:S,recordCanvas:Ne,inlineImages:kr,sampling:W,slimDOMOptions:Jt,iframeManager:pt,stylesheetManager:Xt,canvasManager:Fs,keepIframeSrcFn:Rr,processedNodeManager:lu},mirror:ze});wi=function(K){if(K===void 0&&(K=!1),!!Y){de({type:V.Meta,data:{href:window.location.href,width:Nl(),height:Pl()}},K),Xt.reset(),yo.init(),He.forEach(function(T){return T.lock()});var Te=zd(document,{mirror:ze,blockClass:o,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:Kt,maskTextFn:O,maskInputFn:S,slimDOM:Jt,dataURLOptions:L,recordCanvas:Ne,inlineImages:kr,onSerialize:function(T){Fl(T,ze)&&pt.addIframe(T),Ul(T,ze)&&Xt.trackLinkElement(T),Ls(T)&&yo.addShadowRoot(j.shadowRoot(T),document)},onIframeLoad:function(T,re){pt.attachIframe(T,re),yo.observeAttachShadow(T)},onStylesheetLoad:function(T,re){Xt.attachLinkElement(T,re)},keepIframeSrcFn:Rr});if(!Te)return console.warn("Failed to snapshot the document");de({type:V.FullSnapshot,data:{node:Te,initialOffset:$l(window)}},K),He.forEach(function(T){return T.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Xt.adoptStyleSheets(document.adoptedStyleSheets,ze.getId(document))}};try{var Zt=[],qp=function(K){var Te;return H(a_)({mutationCb:mo,mousemoveCb:function(T,re){return de({type:V.IncrementalSnapshot,data:{source:re,positions:T}})},mouseInteractionCb:function(T){return de({type:V.IncrementalSnapshot,data:z({source:D.MouseInteraction},T)})},scrollCb:Fp,viewportResizeCb:function(T){return de({type:V.IncrementalSnapshot,data:z({source:D.ViewportResize},T)})},inputCb:function(T){return de({type:V.IncrementalSnapshot,data:z({source:D.Input},T)})},mediaInteractionCb:function(T){return de({type:V.IncrementalSnapshot,data:z({source:D.MediaInteraction},T)})},styleSheetRuleCb:function(T){return de({type:V.IncrementalSnapshot,data:z({source:D.StyleSheetRule},T)})},styleDeclarationCb:function(T){return de({type:V.IncrementalSnapshot,data:z({source:D.StyleDeclaration},T)})},canvasMutationCb:Up,fontCb:function(T){return de({type:V.IncrementalSnapshot,data:z({source:D.Font},T)})},selectionCb:function(T){de({type:V.IncrementalSnapshot,data:z({source:D.Selection},T)})},customElementCb:function(T){de({type:V.IncrementalSnapshot,data:z({source:D.CustomElement},T)})},blockClass:o,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:Kt,inlineStylesheet:m,sampling:W,recordDOM:Y,recordCanvas:Ne,inlineImages:kr,userTriggeredOnInput:Be,collectFonts:J,doc:K,maskInputFn:S,maskTextFn:O,keepIframeSrcFn:Rr,blockSelector:a,slimDOMOptions:Jt,dataURLOptions:L,mirror:ze,iframeManager:pt,stylesheetManager:Xt,shadowDomManager:yo,processedNodeManager:lu,canvasManager:Fs,ignoreCSSAttributes:go,plugins:((Te=Tt==null?void 0:Tt.filter(function(T){return T.observer}))==null?void 0:Te.map(function(T){return{observer:T.observer,options:T.options,callback:function(re){return de({type:V.Plugin,data:{plugin:T.name,payload:re}})}}}))||[]},R)};pt.addLoadListener(function(K){try{var Te=K.contentDocument,T=qp(Te);Zt.push(T);var re=pt.getObserverCleanup(K);pt.setObserverCleanup(K,function(){if(re)try{re()}catch(hu){}try{T();var Qt=Zt.indexOf(T);Qt!==-1&&Zt.splice(Qt,1),Yy(Te)}catch(hu){}})}catch(Qt){console.warn(Qt)}});var fu=function(){wi(),Zt.push(qp(document)),bi=!0};return document.readyState==="interactive"||document.readyState==="complete"?fu():(Zt.push(Ae("DOMContentLoaded",function(){de({type:V.DomContentLoaded,data:{}}),tt==="DOMContentLoaded"&&fu()})),Zt.push(Ae("load",function(){de({type:V.Load,data:{}}),tt==="load"&&fu()},window))),function(){Zt.forEach(function(K){try{K()}catch(T){var Te=String(T).toLowerCase();Te.includes("cross-origin")||console.warn(T)}}),lu.destroy(),bi=!1,Hy()}}catch(K){console.warn(K)}}_t.addCustomEvent=function(t,n){if(!bi)throw new Error("please add custom event after start recording");de({type:V.Custom,data:{tag:t,payload:n}})},_t.freezePage=function(){He.forEach(function(t){return t.freeze()})},_t.takeFullSnapshot=function(t){if(!bi)throw new Error("please take full snapshot after start recording");wi(t)},_t.mirror=ze;var uf;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(uf||(uf={})),_t.addCustomEvent,_t.freezePage,_t.takeFullSnapshot;var cf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},lf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Si={},C_=function(){return!!globalThis.Zone};function Bs(t){if(Si[t])return Si[t];var n=globalThis[t],i=n.prototype,e=t in cf?cf[t]:void 0,r=!!(e&&e.every(function(l){var f,h;return!!((h=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&h.toString().includes("[native code]"))})),o=t in lf?lf[t]:void 0,s=!!(o&&o.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&s&&!C_())return Si[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?Si[t]=c:i}catch(l){return i}}var zs={};function wt(t,n,i){var e,r=t+"."+String(i);if(zs[r])return zs[r].call(n);var o=Bs(t),s=(e=Object.getOwnPropertyDescriptor(o,i))==null?void 0:e.get;return s?(zs[r]=s,s.call(n)):n[i]}var qs={};function ff(t,n,i){var e=t+"."+String(i);if(qs[e])return qs[e].bind(n);var r=Bs(t),o=r[i];return typeof o!="function"?n[i]:(qs[e]=o,o.bind(n))}function E_(t){return wt("Node",t,"childNodes")}function I_(t){return wt("Node",t,"parentNode")}function O_(t){return wt("Node",t,"parentElement")}function x_(t){return wt("Node",t,"textContent")}function k_(t,n){return ff("Node",t,"contains")(n)}function R_(t){return ff("Node",t,"getRootNode")()}function A_(t){return!t||!("host"in t)?null:wt("ShadowRoot",t,"host")}function M_(t){return t.styleSheets}function T_(t){return!t||!("shadowRoot"in t)?null:wt("Element",t,"shadowRoot")}function $_(t,n){return wt("Element",t,"querySelector")(n)}function P_(t,n){return wt("Element",t,"querySelectorAll")(n)}function N_(){return Bs("MutationObserver").constructor}function L_(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(o){return function(){}}}var hf={childNodes:E_,parentNode:I_,parentElement:O_,textContent:x_,contains:k_,getRootNode:R_,host:A_,styleSheets:M_,shadowRoot:T_,querySelector:$_,querySelectorAll:P_,mutationObserver:N_,patch:L_};function Ws(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Ws(hf.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return Ws(hf.parentNode(t),n)}function D_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function F_(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return A(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Gs={exports:{}},se=String,pf=function(){return{isColorSupported:!1,reset:se,bold:se,dim:se,italic:se,underline:se,inverse:se,hidden:se,strikethrough:se,black:se,red:se,green:se,yellow:se,blue:se,magenta:se,cyan:se,white:se,gray:se,bgBlack:se,bgRed:se,bgGreen:se,bgYellow:se,bgBlue:se,bgMagenta:se,bgCyan:se,bgWhite:se}};Gs.exports=pf(),Gs.exports.createColors=pf;var U_=Gs.exports,B_={},z_=Object.freeze(Object.defineProperty({__proto__:null,default:B_},Symbol.toStringTag,{value:"Module"})),_e=F_(z_),df=U_,vf=_e,js=(function(t){ue(n,t);function n(e,r,o,s,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),s&&(c.source=s),u&&(c.plugin=u),typeof r!="undefined"&&typeof o!="undefined"&&(typeof r=="number"?(c.line=r,c.column=o):(c.line=r.line,c.column=r.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var o=this;if(!this.source)return"";var s=this.source;r==null&&(r=df.isColorSupported),vf&&r&&(s=vf(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,h;if(r){var g=df.createColors(!0),d=g.bold,y=g.gray,v=g.red;f=function(m){return d(v(m))},h=function(m){return y(m)}}else f=h=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===o.line){var S=h(C.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return f(">")+h(C)+m+"\n "+S+f("^")}return" "+h(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Tr(Error)),Vs=js;js.default=js;var bt={};bt.isClean=Symbol("isClean"),bt.my=Symbol("my");var gf={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function q_(t){return t[0].toUpperCase()+t.slice(1)}var Hs=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var o="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?o+=e.raws.afterName:s&&(o+=" "),e.nodes)this.block(e,o+s);else{var a=(e.raws.between||"")+(r?";":"");this.builder(o+s+a,e)}},n.beforeAfter=function(e,r){var o;e.type==="decl"?o=this.raw(e,null,"beforeDecl"):e.type==="comment"?o=this.raw(e,null,"beforeComment"):r==="before"?o=this.raw(e,null,"beforeRule"):o=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(o.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)o+=u}return o},n.block=function(e,r){var o=this.raw(e,"between","beforeOpen");this.builder(r+o+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var o=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==s||o)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),o=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+o+"*/",e)},n.decl=function(e,r){var o=this.raw(e,"between","colon"),s=e.prop+o+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),r&&(s+=";"),this.builder(s,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,o){var s;if(o||(o=r),r&&(s=e.raws[r],typeof s!="undefined"))return s;var a=e.parent;if(o==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return gf[o];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[o]!="undefined")return u.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(e,o);var c="raw"+q_(o);return this[c]?s=this[c](u,e):u.walk(function(l){if(s=l.raws[r],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=gf[o]),u.rawCache[o]=s,s},n.rawBeforeClose=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after!="undefined")return r=o.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var o;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeDecl=function(e,r){var o;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return o=s.raws.before,o.includes("\n")&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o=="undefined"?o=this.raw(r,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},n.rawBeforeOpen=function(e){var r;return e.walk(function(o){if(o.type!=="decl"&&(r=o.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(o){if(o.nodes&&(o.parent!==e||e.first!==o)&&typeof o.raws.before!="undefined")return r=o.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(o){if(typeof o.raws.between!="undefined")return r=o.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length===0&&(r=o.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(o){var s=o.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof o.raws.before!="undefined"){var a=o.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(r=o.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var o=e[r],s=e.raws[r];return s&&s.value===o?s.raw:o},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),mf=Hs;Hs.default=Hs;var W_=mf;function Ys(t,n){var i=new W_(n);i.stringify(t)}var Ci=Ys;Ys.default=Ys;var Ei=bt.isClean,G_=bt.my,j_=Vs,V_=mf,H_=Ci;function Ks(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],o=typeof r=="undefined"?"undefined":M(r);e==="parent"&&o==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(s){return Ks(s,i)}):(o==="object"&&r!==null&&(r=Ks(r)),i[e]=r)}return i}var Js=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Ei]=!1,this[G_]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),o;!(o=r()).done;){var s=o.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Ks(this);for(var o in e)r[o]=e[o];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var o=this.rangeBy(r),s=o.end,a=o.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},r)}return new j_(e)},n.getProxyProcessor=function(){return{get:function(r,o){return o==="proxyOf"?r:o==="root"?function(){return r.root().toProxy()}:r[o]},set:function(r,o,s){return r[o]===s||(r[o]=s,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Ei]){this[Ei]=!1;for(var e=this;e=e.parent;)e[Ei]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var o=this.source.start;if(e.index)o=this.positionInside(e.index,r);else if(e.word){r=this.toString();var s=r.indexOf(e.word);s!==-1&&(o=this.positionInside(s,r))}return o},n.positionInside=function(e,r){for(var o=r||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)o[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(r=this.positionInside(a,s),o=this.positionInside(a+e.word.length,s))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<r.line||o.line===r.line&&o.column<=r.column)&&(o={column:r.column+1,line:r.line}),{end:o,start:r}},n.raw=function(e,r){var o=new V_;return o.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(this.parent){for(var s=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var o={},s=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))o[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":M(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":M(c))==="object"&&c.toJSON)o[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),o[u]={end:c.end,inputId:l,start:c.start}}else o[u]=c}return s&&(o.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),o},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=H_),e.stringify&&(e=e.stringify);var r="";return e(this,function(o){r+=o}),r},n.warn=function(e,r,o){var s={node:this};for(var a in o)s[a]=o[a];return e.warn(r,s)},ne(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ii=Js;Js.default=Js;var Y_=Ii,Xs=(function(t){ue(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ne(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Y_),Oi=Xs;Xs.default=Xs;var K_="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",J_=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=K_[Math.random()*64|0];return n},X_={nanoid:J_},yf=_e.SourceMapConsumer,_f=_e.SourceMapGenerator,Z_=_e.existsSync,Q_=_e.readFileSync,Zs=_e.dirname,ew=_e.join;function tw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var Qs=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,o=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Zs(this.mapFile)),o&&(this.text=o)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new yf(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||o.test(e))return tw(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":M(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var o=e.lastIndexOf(r.pop()),s=e.indexOf("*/",o);o>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(o,s)))}},n.loadFile=function(e){if(this.root=Zs(e),Z_(e))return this.mapFile=e,Q_(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var o=r(e);if(o){var s=this.loadFile(o);if(!s)throw new Error("Unable to load previous source map: "+o.toString());return s}}else{if(A(r,yf))return _f.fromSourceMap(r).toString();if(A(r,_f))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=ew(Zs(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),wf=Qs;Qs.default=Qs;var rw=_e.SourceMapConsumer,nw=_e.SourceMapGenerator,bf=_e.fileURLToPath,xi=_e.pathToFileURL,ea=_e.isAbsolute,ta=_e.resolve,iw=X_.nanoid,ra=_e,Sf=Vs,ow=wf,na=Symbol("fromOffsetCache"),sw=!!(rw&&nw),Cf=!!(ta&&ea),ki=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":M(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Cf||/^\w+:\/\//.test(e.from)||ea(e.from)?this.file=e.from:this.file=ta(e.from)),Cf&&sw){var r=new ow(this.css,e);if(r.text){this.map=r;var o=r.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+iw(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,o,s){s===void 0&&(s={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":M(r))==="object"){var l=r,f=o;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);r=h.line,o=h.col}else r=l.line,o=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!o){var d=this.fromOffset(r);r=d.line,o=d.col}var y=this.origin(r,o,u,c);return y?a=new Sf(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,s.plugin):a=new Sf(e,u===void 0?r:{column:o,line:r},u===void 0?o:{column:c,line:u},this.css,this.file,s.plugin),a.input={column:o,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(xi&&(a.input.url=xi(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,o;if(this[na])o=this[na];else{var s=this.css.split("\n");o=new Array(s.length);for(var a=0,u=0,c=s.length;u<c;u++)o[u]=a,a+=s[u].length+1;this[na]=o}r=o[o.length-1];var l=0;if(e>=r)l=o.length-1;else for(var f=o.length-2,h;l<f;)if(h=l+(f-l>>1),e<o[h])f=h-1;else if(e>=o[h+1])l=h+1;else{l=h;break}return{col:e-o[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ta(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,o,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof o=="number"&&(c=a.originalPositionFor({column:s,line:o}));var l;ea(u.source)?l=xi(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||xi(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(bf)f.file=bf(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(f.source=h),f},n.toJSON=function(){for(var e={},r=0,o=["hasBOM","css","file","id"];r<o.length;r++){var s=o[r];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ne(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Ri=ki;ki.default=ki,ra&&ra.registerInput&&ra.registerInput(ki);var Ef=_e.SourceMapConsumer,Ai=_e.SourceMapGenerator,Mi=_e.dirname,If=_e.relative,Of=_e.resolve,xf=_e.sep,kf=_e.pathToFileURL,aw=Ri,uw=!!(Ef&&Ai),cw=!!(Mi&&Of&&If&&xf),lw=(function(){function t(i,e,r,o){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var o=r.value,s=this.toUrl(this.path(o.file)),a=o.root||Mi(o.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Ef(o.text),u.sourcesContent&&(u.sourcesContent=null)):u=o.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),cw&&uw&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=Ai.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ai({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]},n.generateString=function(){var e=this;this.css="",this.map=new Ai({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,o=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,h){if(e.css+=l,f&&h!=="end"&&(a.generated.line=r,a.generated.column=o-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),o=l.length-c):o+=l.length,f&&h!=="start"){var g=f.parent||{raws:{}},d=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!d||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=o-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=o-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var o=this.opts.to?Mi(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=Mi(Of(o,this.mapOpts.annotation)));var s=If(o,e);return this.memoizedPaths.set(e,s),s},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var s=o.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var r=new aw(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(kf){var o=kf(e).toString();return this.memoizedFileURLs.set(e,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;xf==="\\"&&(e=e.replace(/\\/g,"/"));var o=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,o),o},t})(),Rf=lw,fw=Ii,ia=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(fw),Ti=ia;ia.default=ia;var Af=bt.isClean,Mf=bt.my,Tf=Oi,$f=Ti,hw=Ii,Pf,oa,sa,Nf;function Lf(t){return t.map(function(n){return n.nodes&&(n.nodes=Lf(n.nodes)),delete n.source,n})}function Df(t){if(t[Af]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;Df(e)}}var ot=(function(t){ue(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];for(var a=I(o),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var o=I(this.nodes),s;!(s=o()).done;){var a=s.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var o=this.getIterator(),s,a;this.indexes[o]<this.proxyOf.nodes.length&&(s=this.indexes[o],a=r(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[o]+=1;return delete this.indexes[o],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(o,s){return s==="proxyOf"?o:o[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=o)[s].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(h,g){return f(h.toProxy(),g)}:f})))}:s==="every"||s==="some"?function(a){return o[s](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return o.root().toProxy()}:s==="nodes"?o.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?o[s].toProxy():o[s]:o[s]},set:function(o,s,a){return o[s]===a||(o[s]=a,(s==="name"||s==="params"||s==="selector")&&o.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,o){var s=this.index(r),a=this.normalize(o,this.proxyOf.nodes[s]).reverse();s=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(s+1,0,l)}var f;for(var h in this.indexes)f=this.indexes[h],s<f&&(this.indexes[h]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,o){var s=this.index(r),a=s===0?"prepend":!1,u=this.normalize(o,this.proxyOf.nodes[s],a).reverse();s=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(s,0,f)}var h;for(var g in this.indexes)h=this.indexes[g],s<=h&&(this.indexes[g]=h+u.length);return this.markDirty(),this},i.normalize=function(r,o){var s=this;if(typeof r=="string")r=Lf(Pf(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).done;){var h=f.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new Tf(r)]}else if(r.selector)r=[new oa(r)];else if(r.name)r=[new sa(r)];else if(r.text)r=[new $f(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(d){return d[Mf]||n.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Af]&&Df(d),typeof d.raws.before=="undefined"&&o&&typeof o.raws.before!="undefined"&&(d.raws.before=o.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return g},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];o=o.reverse();for(var a=I(o),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),h;!(h=f()).done;){var g=h.value;this.proxyOf.nodes.unshift(g)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),o;!(o=r()).done;){var s=o.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var o;for(var s in this.indexes)o=this.indexes[s],o>=r&&(this.indexes[s]=o-1);return this.markDirty(),this},i.replaceValues=function(r,o,s){return s||(s=o,o={}),this.walkDecls(function(a){o.props&&!o.props.includes(a.prop)||o.fast&&!a.value.includes(o.fast)||(a.value=a.value.replace(r,s))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(o,s){var a;try{a=r(o,s)}catch(u){throw o.addToError(u)}return a!==!1&&o.walk&&(a=o.walk(r)),a})},i.walkAtRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&r.test(s.name))return o(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="atrule")return o(s,a)}))},i.walkComments=function(r){return this.walk(function(o,s){if(o.type==="comment")return r(o,s)})},i.walkDecls=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&r.test(s.prop))return o(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="decl")return o(s,a)}))},i.walkRules=function(r,o){return o?A(r,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&r.test(s.selector))return o(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===r)return o(s,a)}):(o=r,this.walk(function(s,a){if(s.type==="rule")return o(s,a)}))},ne(n,[{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]}}]),n})(hw);ot.registerParse=function(t){Pf=t},ot.registerRule=function(t){oa=t},ot.registerAtRule=function(t){sa=t},ot.registerRoot=function(t){Nf=t};var Ut=ot;ot.default=ot,ot.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,sa.prototype):t.type==="rule"?Object.setPrototypeOf(t,oa.prototype):t.type==="decl"?Object.setPrototypeOf(t,Tf.prototype):t.type==="comment"?Object.setPrototypeOf(t,$f.prototype):t.type==="root"&&Object.setPrototypeOf(t,Nf.prototype),t[Mf]=!0,t.nodes&&t.nodes.forEach(function(n){ot.rebuild(n)})};var pw=Ut,Ff,Uf,Qr=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var o=new Ff(new Uf,this,r);return o.stringify()},n})(pw);Qr.registerLazyResult=function(t){Ff=t},Qr.registerProcessor=function(t){Uf=t};var aa=Qr;Qr.default=Qr;var Bf={},zf=function(n){Bf[n]||(Bf[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},ua=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var o in e)this[o]=e[o]}var n=t.prototype;return n.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},t})(),qf=ua;ua.default=ua;var dw=qf,ca=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var o=new dw(e,r);return this.messages.push(o),o},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ne(t,[{key:"content",get:function(){return this.css}}]),t})(),la=ca;ca.default=ca;var fa=39,Wf=34,$i=92,Gf=47,Pi=10,en=32,Ni=12,Li=9,Di=13,vw=91,gw=93,mw=40,yw=41,_w=123,ww=125,bw=59,Sw=42,Cw=58,Ew=64,Fi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Ui=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Iw=/.[\r\n"'(/\\]/,jf=/[\da-f]/i,Ow=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,o,s,a,u,c,l,f,h,g,d,y=e.length,v=0,m=[],_=[];function b(){return v}function C(k){throw n.error("Unclosed "+k,v)}function S(){return _.length===0&&v>=y}function O(k){if(_.length)return _.pop();if(!(v>=y)){var $=k?k.ignoreUnclosed:!1;switch(o=e.charCodeAt(v),o){case Pi:case en:case Li:case Di:case Ni:{s=v;do s+=1,o=e.charCodeAt(s);while(o===en||o===Pi||o===Li||o===Di||o===Ni);d=["space",e.slice(v,s)],v=s-1;break}case vw:case gw:case _w:case ww:case Cw:case bw:case yw:{var W=String.fromCharCode(o);d=[W,W,v];break}case mw:{if(h=m.length?m.pop()[1]:"",g=e.charCodeAt(v+1),h==="url"&&g!==fa&&g!==Wf&&g!==en&&g!==Pi&&g!==Li&&g!==Ni&&g!==Di){s=v;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(r||$){s=v;break}else C("bracket");for(f=s;e.charCodeAt(f-1)===$i;)f-=1,l=!l}while(l);d=["brackets",e.slice(v,s+1),v,s],v=s}else s=e.indexOf(")",v+1),u=e.slice(v,s+1),s===-1||Iw.test(u)?d=["(","(",v]:(d=["brackets",u,v,s],v=s);break}case fa:case Wf:{a=o===fa?"'":'"',s=v;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(r||$){s=v+1;break}else C("string");for(f=s;e.charCodeAt(f-1)===$i;)f-=1,l=!l}while(l);d=["string",e.slice(v,s+1),v,s],v=s;break}case Ew:{Fi.lastIndex=v+1,Fi.test(e),Fi.lastIndex===0?s=e.length-1:s=Fi.lastIndex-2,d=["at-word",e.slice(v,s+1),v,s],v=s;break}case $i:{for(s=v,c=!0;e.charCodeAt(s+1)===$i;)s+=1,c=!c;if(o=e.charCodeAt(s+1),c&&o!==Gf&&o!==en&&o!==Pi&&o!==Li&&o!==Di&&o!==Ni&&(s+=1,jf.test(e.charAt(s)))){for(;jf.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===en&&(s+=1)}d=["word",e.slice(v,s+1),v,s],v=s;break}default:{o===Gf&&e.charCodeAt(v+1)===Sw?(s=e.indexOf("*/",v+2)+1,s===0&&(r||$?s=e.length:C("comment")),d=["comment",e.slice(v,s+1),v,s],v=s):(Ui.lastIndex=v+1,Ui.test(e),Ui.lastIndex===0?s=e.length-1:s=Ui.lastIndex-2,d=["word",e.slice(v,s+1),v,s],m.push(d),v=s);break}}return v++,d}}function R(k){_.push(k)}return{back:R,endOfFile:S,nextToken:O,position:b}},Vf=Ut,Bi=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],o))},i.prepend=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],o))},n})(Vf),ha=Bi;Bi.default=Bi,Vf.registerAtRule(Bi);var Hf=Ut,Yf,Kf,pr=(function(t){ue(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,o,s){var a=t.prototype.normalize.call(this,r);if(o){if(s==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=o.raws.before}}return a},i.removeChild=function(r,o){var s=this.index(r);return!o&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var o=new Yf(new Kf,this,r);return o.stringify()},n})(Hf);pr.registerLazyResult=function(t){Yf=t},pr.registerProcessor=function(t){Kf=t};var tn=pr;pr.default=pr,Hf.registerRoot(pr);var rn={comma:function(n){return rn.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return rn.split(n,i)},split:function(n,i,e){for(var r=[],o="",s=!1,a=0,u=!1,c="",l=!1,f=I(n),h;!(h=f()).done;){var g=h.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(s=!0),s?(o!==""&&r.push(o.trim()),o="",s=!1):o+=g}return(e||o!=="")&&r.push(o.trim()),r}},Jf=rn;rn.default=rn;var Xf=Ut,xw=Jf,zi=(function(t){ue(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ne(n,[{key:"selectors",get:function(){return xw.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,o=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(o)}}]),n})(Xf),pa=zi;zi.default=zi,Xf.registerRule(zi);var kw=Oi,Rw=Ow,Aw=Ti,Mw=ha,Tw=tn,Zf=pa,Qf={empty:!0,space:!0};function $w(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Pw=(function(){function t(i){this.input=i,this.root=new Tw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Mw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var o,s,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),o=e[0],o==="("||o==="["?f.push(o==="("?")":"]"):o==="{"&&f.length>0?f.push("}"):o===f[f.length-1]&&f.pop(),f.length===0)if(o===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(r.source.end=this.getPosition(s[3]||s[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var o=0,s,a=r-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(o+=1,o===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},n.colon=function(e){for(var r=0,o,s,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],h=l[1];if(o=h,s=o[0],s==="("&&(r+=1),s===")"&&(r-=1),r===0&&s===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=o}return!1},n.comment=function(e){var r=new Aw;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var o=e[1].slice(2,-2);if(/^\s*$/.test(o))r.text="",r.raws.left=o,r.raws.right="";else{var s=o.match(/^(\s*)([^]*\S)(\s*)$/);r.text=s[2],r.raws.left=s[1],r.raws.right=s[3]}},n.createTokenizer=function(){this.tokenizer=Rw(this.input)},n.decl=function(e,r){var o=new kw;this.init(o,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),o.source.end=this.getPosition(s[3]||s[2]||$w(e)),o.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),o.raws.before+=e.shift()[1];for(o.source.start=this.getPosition(e[0][2]),o.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;o.prop+=e.shift()[1]}o.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){o.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),o.raws.between+=u[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){o.important=!0;var h=this.stringFrom(e,f);h=this.spacesFromEnd(e)+h,h!==" !important"&&(o.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),d="",y=f;y>0;y--){var v=g[y][0];if(d.trim().indexOf("!")===0&&v!=="space")break;d=g.pop()[1]+d}d.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=d,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(o.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(o,"value",c.concat(e),r),o.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new Zf;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,o=null,s=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(o=f[0],l.push(f),o==="("||o==="[")a||(a=f),u.push(o==="("?")":"]");else if(c&&s&&o==="{")a||(a=f),u.push("}");else if(u.length===0)if(o===";")if(s){this.decl(l,c);return}else break;else if(o==="{"){this.rule(l);return}else if(o==="}"){this.tokenizer.back(l.pop()),r=!0;break}else o===":"&&(s=!0);else o===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&s){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,o,s){for(var a,u,c=o.length,l="",f=!0,h,g,d=0;d<c;d+=1)a=o[d],u=a[0],u==="space"&&d===c-1&&!s?f=!1:u==="comment"?(g=o[d-1]?o[d-1][0]:"empty",h=o[d+1]?o[d+1][0]:"empty",!Qf[g]&&!Qf[h]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=o.reduce(function(v,m){return v+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new Zf;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)o=e.pop()[1]+o;return o},n.spacesAndCommentsFromStart=function(e){for(var r,o="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)o+=e.shift()[1];return o},n.spacesFromEnd=function(e){for(var r,o="";e.length&&(r=e[e.length-1][0],r==="space");)o=e.pop()[1]+o;return o},n.stringFrom=function(e,r){for(var o="",s=r;s<e.length;s++)o+=e[s][1];return e.splice(r,e.length-r),o},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Nw=Pw,Lw=Ut,Dw=Nw,Fw=Ri;function qi(t,n){var i=new Fw(t,n),e=new Dw(i);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var da=qi;qi.default=qi,Lw.registerParse(qi);var Ye=bt.isClean,Uw=bt.my,Bw=Rf,zw=Ci,qw=Ut,Ww=aa,Gw=zf,eh=la,jw=da,Vw=tn,Hw={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Yw={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},Kw={Once:!0,postcssPlugin:!0,prepare:!0},dr=0;function nn(t){return(typeof t=="undefined"?"undefined":M(t))==="object"&&typeof t.then=="function"}function th(t){var n=!1,i=Hw[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,dr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,dr,i+"Exit"]:[i,i+"Exit"]}function rh(t){var n;return t.type==="document"?n=["Document",dr,"DocumentExit"]:t.type==="root"?n=["Root",dr,"RootExit"]:n=th(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function va(t){return t[Ye]=!1,t.nodes&&t.nodes.forEach(function(n){return va(n)}),t}var ga={},vr=(function(){function t(i,e,r){var o=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":M(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=va(e);else if(A(e,t)||A(e,eh))s=va(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=jw;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{s=a(e,r)}catch(u){this.processed=!0,this.error=u}s&&!s[Uw]&&qw.rebuild(s)}this.result=new eh(i,s,r),this.helpers=z({},ga,{postcss:ga,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":M(u))==="object"&&u.prepare?z({},u,u.prepare(o.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var o=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=o.postcssPlugin,e.setMessage();else if(o.postcssVersion&&process.env.NODE_ENV!=="production"){var s=o.postcssPlugin,a=o.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,h){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,h])},o=I(this.plugins),s;!(s=o()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":M(a))==="object")for(var u in a){if(!Yw[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Kw[u])if(M(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return yn(function(){var r,o,s,a,u,c,l,f,h,g,d,y;return Pt(this,function(v){switch(v.label){case 0:e.plugin=0,r=0,v.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(o=e.plugins[r],s=e.runOnRoot(o),!nn(s))return[3,5];v.label=2;case 2:return v.trys.push([2,4,,5]),[4,s];case 3:return v.sent(),[3,5];case 4:throw a=v.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,v.label=7;case 7:if(u[Ye])return[3,14];u[Ye]=!0,c=[rh(u)],v.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!nn(l))return[3,12];v.label=9;case 9:return v.trys.push([9,11,,12]),[4,l];case 10:return v.sent(),[3,12];case 11:throw f=v.sent(),h=c[c.length-1].node,e.handleError(f,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Pt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(R){return b(R,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},d=I(e.listeners.OnceExit),v.label=15;case 15:return(y=d()).done?[3,18]:[5,bo(g())];case 16:v.sent(),v.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":M(e))==="object"&&e.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(s){return e.Once(s,r.helpers)});return nn(o[0])?Promise.all(o):o}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=zw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var o=new Bw(r,this.result.root,this.result.opts),s=o.generate();return this.result.css=s[0],this.result.map=s[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var o=r.value,s=this.runOnRoot(o);if(nn(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ye];)a[Ye]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Gw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var o=I(e),s;!(s=o()).done;){var a=s.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(nn(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],o=r.node,s=r.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){e.pop();return}if(s.length>0&&r.visitorIndex<s.length){var a=s[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===s.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(o.toProxy(),this.helpers)}catch(d){throw this.handleError(d,o)}}if(r.iterator!==0){for(var l=r.iterator,f;f=o.nodes[o.indexes[l]];)if(o.indexes[l]+=1,!f[Ye]){f[Ye]=!0,e.push(rh(f));return}r.iterator=0,delete o.indexes[l]}for(var h=r.events;r.eventIndex<h.length;){var g=h[r.eventIndex];if(r.eventIndex+=1,g===dr){o.nodes&&o.nodes.length&&(o[Ye]=!0,r.iterator=o.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ye]=!0;for(var o=th(e),s=I(o),a;!(a=s()).done;){var u=a.value;if(u===dr)e.nodes&&e.each(function(l){l[Ye]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ne(t,[{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"}}]),t})();vr.registerPostcss=function(t){ga=t};var nh=vr;vr.default=vr,Vw.registerLazyResult(vr),Ww.registerLazyResult(vr);var Jw=Rf,Xw=Ci,Zw=zf,Qw=da,eb=la,ma=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var o,s=Xw;this.result=new eb(this._processor,o,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Jw(s,o,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Zw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ne(t,[{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,r=Qw;try{e=r(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),tb=ma;ma.default=ma;var rb=tb,nb=nh,ib=aa,ob=tn,on=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],o=I(e),s;!(s=o()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":M(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":M(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new rb(this,e,r):new nb(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),sb=on;on.default=on,ob.registerProcessor(on),ib.registerProcessor(on);var ab=Oi,ub=wf,cb=Ti,lb=ha,fb=Ri,hb=tn,pb=pa;function sn(t,n){if(Array.isArray(t))return t.map(function(f){return sn(f)});var i=t.inputs,e=$t(t,["inputs"]);if(i){n=[];for(var r=I(i),o;!(o=r()).done;){var s=o.value,a=z({},s,{__proto__:fb.prototype});a.map&&(a.map=z({},a.map,{__proto__:ub.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return sn(f,n)})),e.source){var u=e.source,c=u.inputId,l=$t(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new hb(e);if(e.type==="decl")return new ab(e);if(e.type==="rule")return new pb(e);if(e.type==="comment")return new cb(e);if(e.type==="atrule")return new lb(e);throw new Error("Unknown node type: "+t.type)}var db=sn;sn.default=sn;var vb=Vs,ih=Oi,gb=nh,mb=Ut,ya=sb,yb=Ci,_b=db,oh=aa,wb=qf,sh=Ti,ah=ha,bb=la,Sb=Ri,Cb=da,Eb=Jf,uh=pa,ch=tn,Ib=Ii;function Q(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ya(n)}Q.plugin=function(n,i){var e=!1;function r(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new ya().version,c}var o;return Object.defineProperty(r,"postcss",{get:function(){return o||(o=r()),o}}),r.process=function(s,a,u){return Q([r(u)]).process(s,a)},r},Q.stringify=yb,Q.parse=Cb,Q.fromJSON=_b,Q.list=Eb,Q.comment=function(t){return new sh(t)},Q.atRule=function(t){return new ah(t)},Q.decl=function(t){return new ih(t)},Q.rule=function(t){return new uh(t)},Q.root=function(t){return new ch(t)},Q.document=function(t){return new oh(t)},Q.CssSyntaxError=vb,Q.Declaration=ih,Q.Container=mb,Q.Processor=ya,Q.Document=oh,Q.Comment=sh,Q.Warning=wb,Q.AtRule=ah,Q.Result=bb,Q.Input=Sb,Q.Rule=uh,Q.Root=ch,Q.Node=Ib,gb.registerPostcss(Q);var Ob=Q;Q.default=Q;var fe=D_(Ob);fe.stringify,fe.fromJSON,fe.plugin,fe.parse,fe.list,fe.document,fe.comment,fe.atRule,fe.rule,fe.decl,fe.root,fe.CssSyntaxError,fe.Declaration,fe.Container,fe.Processor,fe.Document,fe.Comment,fe.Warning,fe.AtRule,fe.Result,fe.Input,fe.Rule,fe.Root,fe.Node;var xb=Object.defineProperty,kb=function(t,n,i){return n in t?xb(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Wi=function(t,n,i){return kb(t,(typeof n=="undefined"?"undefined":M(n))!=="symbol"?n+"":n,i)};function Rb(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(o){return function(){}}}var gr=(function(){function t(i){Wi(this,"fileName"),Wi(this,"functionName"),Wi(this,"lineNumber"),Wi(this,"columnNumber"),this.fileName=i.fileName||"",this.functionName=i.functionName||"",this.lineNumber=i.lineNumber,this.columnNumber=i.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t})(),Ab=/(^|@)\S+:\d+/,lh=/^\s*at .*(\S+:\d+|\(native\))/m,Mb=/^(eval@)?(\[native code])?$/,_a={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(lh)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var i=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=i.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(lh)},this);return i.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),o=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=o?r.replace(o[0],""):r;var s=r.split(/\s+/).slice(1),a=this.extractLocation(o?o[1]:s.pop()),u=s.join(" ")||void 0,c=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new gr({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split("\n").filter(function(e){return!e.match(Mb)},this);return i.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 gr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,o=e.match(r),s=o&&o[1]?o[1]:void 0,a=this.extractLocation(e.replace(r,""));return new gr({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf("\n")>-1&&n.message.split("\n").length>n.stacktrace.split("\n").length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split("\n"),r=[],o=2,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new gr({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split("\n"),r=[],o=0,s=e.length;o<s;o+=2){var a=i.exec(e[o]);a&&r.push(new gr({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(Ab)&&!e.match(/^Error created at/)},this);return i.map(function(e){var r=e.split("@"),o=this.extractLocation(r.pop()),s=r.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new gr({functionName:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2]})},this)}};function Tb(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var i=t.localName;if(!i)break;i=i.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var o=0;o<e.children.length;o++){var s=e.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===i&&r.push(s)}r.length>1&&(i+=":eq("+r.indexOf(t)+")"),n=i+(n?">"+n:""),t=e}return n}function wa(t){return Object.prototype.toString.call(t)==="[object Object]"}function fh(t,n){if(n===0)return!0;for(var i=Object.keys(t),e=I(i),r;!(r=e()).done;){var o=r.value;if(wa(t[o])&&fh(t[o],n-1))return!0}return!1}function mr(t,n){var i={numOfKeysLimit:50,depthOfLimit:4};Object.assign(i,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var c=e.indexOf(this);~c?e.splice(c+1):e.push(this),~c?r.splice(c,1/0,a):r.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(o(u))return s(u);if((typeof u=="undefined"?"undefined":M(u))==="bigint")return u.toString()+"n";if(A(u,Event)){var l={};for(var f in u){var h=u[f];Array.isArray(h)?l[f]=Tb(h.length?h[0]:null):l[f]=h}return l}else{if(A(u,Node))return A(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(A(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function o(a){return!!(wa(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||wa(a)&&fh(a,i.depthOfLimit))}function s(a){var u=a.toString();return i.stringLengthLimit&&u.length>i.stringLengthLimit&&(u=""+u.slice(0,i.stringLengthLimit)+"..."),u}}var hh={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 $b(t,n,i){var e=i?Object.assign({},hh,i):hh,r=e.logger;if(!r)return function(){};var o;typeof r=="string"?o=n[r]:o=r;var s=0,a=!1,u=[];if(e.level.includes("error")){var c=function(y){var v=y.message,m=y.error,_=_a.parse(m).map(function(C){return C.toString()}),b=[mr(v,e.stringifyOptions)];t({level:"error",trace:_,payload:b})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var l=function(y){var v,m;A(y.reason,Error)?(v=y.reason,m=[mr("Uncaught (in promise) "+v.name+": "+v.message,e.stringifyOptions)]):(v=new Error,m=[mr("Uncaught (in promise)",e.stringifyOptions),mr(y.reason,e.stringifyOptions)]);var _=_a.parse(v).map(function(b){return b.toString()});t({level:"error",trace:_,payload:m})};n.addEventListener("unhandledrejection",l),u.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var f=I(e.level),h;!(h=f()).done;){var g=h.value;u.push(d(o,g))}return function(){u.forEach(function(y){return y()})};function d(y,v){var m=this;return y[v]?Rb(y,v,function(_){var b=m;return function(){for(var C=arguments.length,S=new Array(C),O=0;O<C;O++)S[O]=arguments[O];if(_.apply(b,S),!(v==="assert"&&S[0])&&!a){a=!0;try{var R=_a.parse(new Error).map(function(W){return W.toString()}).splice(1),k=v==="assert"?S.slice(1):S,$=k.map(function(W){return mr(W,e.stringifyOptions)});s++,s<e.lengthThreshold?t({level:v,trace:R,payload:$}):s===e.lengthThreshold&&t({level:"warn",trace:[],payload:[mr("The number of log records reached the threshold.")]})}catch(W){_.apply(void 0,[].concat(["rrweb logger error:",W],S))}finally{a=!1}}}}):function(){}}}var Pb="rrweb/console@1",Nb=function(t){return{name:Pb,observer:$b,options:t}},ph=E.setImmediate,St,ba,Sa,dh=Object.prototype.toString,Lb=typeof ph!="undefined"?function(n){return ph(n)}:setTimeout;try{Object.defineProperty({},"x",{}),St=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch(t){St=function(i,e,r){return i[e]=r,i}}Sa=(function(){var n,i,e;function r(o,s){this.fn=o,this.self=s,this.next=void 0}return{add:function(s,a){e=new r(s,a),i?i.next=e:n=e,i=e,e=void 0},drain:function(){var s=n;for(n=i=ba=void 0;s;)s.fn.call(s.self),s=s.next}}})();function Gi(t,n){Sa.add(t,n),ba||(ba=Lb(Sa.drain))}function vh(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function Ca(){for(var t=0;t<this.chain.length;t++)Db(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function Db(t,n,i){var e,r;try{n===!1?i.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=vh(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(o){i.reject(o)}}function gh(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=vh(t))?Gi(function(){var e=new yh(i);try{n.call(t,function(){gh.apply(e,arguments)},function(){an.apply(e,arguments)})}catch(r){an.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&Gi(Ca,i))}catch(e){an.call(new yh(i),e)}}}function an(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&Gi(Ca,n))}function mh(t,n,i,e){for(var r=0;r<n.length;r++)(function(s){t.resolve(n[s]).then(function(u){i(s,u)},e)})(r)}function yh(t){this.def=t,this.triggered=!1}function Fb(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Ct(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new Fb(this);this.then=function(e,r){var o={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return o.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");o.resolve=a,o.reject=u}),n.chain.push(o),n.state!==0&&Gi(Ca,n),o.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){gh.call(n,e)},function(e){an.call(n,e)})}catch(i){an.call(n,i)}}var _h=St({},"constructor",Ct,!1);Ct.prototype=_h,St(_h,"__NPO__",0,!1),St(Ct,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");r(n)})}),St(Ct,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),St(Ct,"all",function(n){var i=this;return dh.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");var s=n.length,a=Array(s),u=0;mh(i,n,function(l,f){a[l]=f,++u===s&&r(a)},o)})}),St(Ct,"race",function(n){var i=this;return dh.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,o){if(typeof r!="function"||typeof o!="function")throw TypeError("Not a function");mh(i,n,function(a,u){r(u)},o)})});var U;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?U=Promise:U=Ct;var un=1440*60*1e3,Ea=8*1e3,ji=Array.prototype,Ub=Function.prototype,wh=Object.prototype,Et=ji.slice,cn=wh.toString,Vi=wh.hasOwnProperty,Ce=E.console,st=E.navigator,F=E.document,ln=E.opera,bh=E.screen,Ke=st.userAgent,Ia=Ub.bind,Sh=ji.forEach,Ch=ji.indexOf,Eh=ji.map,Bb=Array.isArray,Oa={},p={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},P={log:function(){if($e.DEBUG&&!p.isUndefined(Ce)&&Ce)try{Ce.log.apply(Ce,arguments)}catch(t){p.each(arguments,function(n){Ce.log(n)})}},warn:function(){if($e.DEBUG&&!p.isUndefined(Ce)&&Ce){var t=["Mixpanel warning:"].concat(p.toArray(arguments));try{Ce.warn.apply(Ce,t)}catch(n){p.each(t,function(i){Ce.warn(i)})}}},error:function(){if($e.DEBUG&&!p.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){p.each(t,function(i){Ce.error(i)})}}},critical:function(){if(!p.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(p.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){p.each(t,function(i){Ce.error(i)})}}}},xa=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(P,arguments)}},at=function(t){return{log:xa(P.log,t),error:xa(P.error,t),critical:xa(P.critical,t)}},yr=function(t){return function(){try{return t.apply(this,arguments)}catch(n){P.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),$e.DEBUG&&P.critical(n)}}},ka=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=yr(n[i]))};p.bind=function(t,n){var i,e;if(Ia&&t.bind===Ia)return Ia.apply(t,Et.call(arguments,1));if(!p.isFunction(t))throw new TypeError;return i=Et.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(Et.call(arguments)));var r={};r.prototype=t.prototype;var o=new r;r.prototype=null;var s=t.apply(o,i.concat(Et.call(arguments)));return Object(s)===s?s:o},e},p.each=function(t,n,i){if(t!=null){if(Sh&&t.forEach===Sh)t.forEach(n,i);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(i,t[e],e,t)===Oa)return}else for(var o in t)if(Vi.call(t,o)&&n.call(i,t[o],o,t)===Oa)return}},p.extend=function(t){return p.each(Et.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t},p.isArray=Bb||function(t){return cn.call(t)==="[object Array]"},p.isFunction=function(t){return typeof t=="function"},p.isArguments=function(t){return!!(t&&Vi.call(t,"callee"))},p.toArray=function(t){return t?t.toArray?t.toArray():p.isArray(t)||p.isArguments(t)?Et.call(t):p.values(t):[]},p.map=function(t,n,i){if(Eh&&t.map===Eh)return t.map(n,i);var e=[];return p.each(t,function(r){e.push(n.call(i,r))}),e},p.keys=function(t){var n=[];return t===null||p.each(t,function(i,e){n[n.length]=e}),n},p.values=function(t){var n=[];return t===null||p.each(t,function(i){n[n.length]=i}),n},p.include=function(t,n){var i=!1;return t===null?i:Ch&&t.indexOf===Ch?t.indexOf(n)!=-1:(p.each(t,function(e){if(i||(i=e===n))return Oa}),i)},p.includes=function(t,n){return t.indexOf(n)!==-1},p.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},p.isObject=function(t){return t===Object(t)&&!p.isArray(t)},p.isEmptyObject=function(t){if(p.isObject(t)){for(var n in t)if(Vi.call(t,n))return!1;return!0}return!1},p.isUndefined=function(t){return t===void 0},p.isString=function(t){return cn.call(t)=="[object String]"},p.isDate=function(t){return cn.call(t)=="[object Date]"},p.isNumber=function(t){return cn.call(t)=="[object Number]"},p.isElement=function(t){return!!(t&&t.nodeType===1)},p.encodeDates=function(t){return p.each(t,function(n,i){p.isDate(n)?t[i]=p.formatDate(n):p.isObject(n)&&(t[i]=p.encodeDates(n))}),t},p.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},p.formatDate=function(t){function n(i){return i<10?"0"+i:i}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},p.strip_empty_properties=function(t){var n={};return p.each(t,function(i,e){p.isString(i)&&i.length>0&&(n[e]=i)}),n},p.truncate=function(t,n){var i;return typeof t=="string"?i=t.slice(0,n):p.isArray(t)?(i=[],p.each(t,function(e){i.push(p.truncate(e,n))})):p.isObject(t)?(i={},p.each(t,function(e,r){i[r]=p.truncate(e,n)})):i=t,i},p.JSONEncode=(function(){return function(t){var n=t,i=function(r){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(r)?'"'+r.replace(o,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,o){var s="",a=" ",u=0,c="",l="",f=0,h=s,g=[],d=o[r];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(r)),typeof d){case"string":return i(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,g=[],cn.apply(d)==="[object Array]"){for(f=d.length,u=0;u<f;u+=1)g[u]=e(u,d)||"null";return l=g.length===0?"[]":s?"[\n"+s+g.join(",\n"+s)+"\n"+h+"]":"["+g.join(",")+"]",s=h,l}for(c in d)Vi.call(d,c)&&(l=e(c,d),l&&g.push(i(c)+(s?": ":":")+l));return l=g.length===0?"{}":s?"{"+g.join(",")+h+"}":"{"+g.join(",")+"}",s=h,l}};return e("",{"":n})}})(),p.JSONDecode=(function(){var t,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(g){var d=new SyntaxError(g);throw d.at=t,d.text=e,d},o=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},s=function(){var g,d="";for(n==="-"&&(d="-",o("-"));n>="0"&&n<="9";)d+=n,o();if(n===".")for(d+=".";o()&&n>="0"&&n<="9";)d+=n;if(n==="e"||n==="E")for(d+=n,o(),(n==="-"||n==="+")&&(d+=n,o());n>="0"&&n<="9";)d+=n,o();if(g=+d,!isFinite(g))r("Bad number");else return g},a=function(){var g,d,y="",v;if(n==='"')for(;o();){if(n==='"')return o(),y;if(n==="\\")if(o(),n==="u"){for(v=0,d=0;d<4&&(g=parseInt(o(),16),!!isFinite(g));d+=1)v=v*16+g;y+=String.fromCharCode(v)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)o()},c=function(){switch(n){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(o("["),u(),n==="]")return o("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return o("]"),g;o(","),u()}}r("Bad array")},h=function(){var g,d={};if(n==="{"){if(o("{"),u(),n==="}")return o("}"),d;for(;n;){if(g=a(),u(),o(":"),Object.hasOwnProperty.call(d,g)&&r('Duplicate key "'+g+'"'),d[g]=l(),u(),n==="}")return o("}"),d;o(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return h();case"[":return f();case'"':return a();case"-":return s();default:return n>="0"&&n<="9"?s():c()}},function(g){var d;return e=g,t=0,n=" ",d=l(),u(),n&&r("Syntax error"),d}})(),p.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,e,r,o,s,a,u,c,l=0,f=0,h="",g=[];if(!t)return t;t=p.utf8Encode(t);do i=t.charCodeAt(l++),e=t.charCodeAt(l++),r=t.charCodeAt(l++),c=i<<16|e<<8|r,o=c>>18&63,s=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(u);while(l<t.length);switch(h=g.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},p.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,e,r=0,o;for(i=e=0,r=t.length,o=0;o<r;o++){var s=t.charCodeAt(o),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>i&&(n+=t.substring(i,e)),n+=a,i=e=o+1)}return e>i&&(n+=t.substring(i,t.length)),n},p.UUID=function(){try{return E.crypto.randomUUID()}catch(i){for(var t=new 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]="-",p.map(t,function(e){return e.toString(16)}).join("")}};var Ih=["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"];p.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<Ih.length;n++)if(t.indexOf(Ih[n])!==-1)return!0;return!1},p.HTTPBuildQuery=function(t,n){var i,e,r=[];return p.isUndefined(n)&&(n="&"),p.each(t,function(o,s){i=encodeURIComponent(o.toString()),e=encodeURIComponent(s),r[r.length]=e+"="+i}),r.join(n)},p.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",e=new RegExp(i),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var o=r[1];try{o=decodeURIComponent(o)}catch(s){P.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")},p.cookie={get:function(t){for(var n=t+"=",i=F.cookie.split(";"),e=0;e<i.length;e++){for(var r=i[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(t){var n;try{n=p.JSONDecode(p.cookie.get(t))||{}}catch(i){}return n},set_seconds:function(t,n,i,e,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(e){var l=Mh(F.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),F.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(t,n,i,e,r,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(e){var l=Mh(F.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}o&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var h=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return F.cookie=h,h},remove:function(t,n,i){p.cookie.set(t,"",-1,n,!1,!1,i)}};var Oh=function(t){var n=!0;try{var i="__mplss_"+Ma(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch(r){n=!1}return n},Ra=null,fn=function(t,n){return Ra!==null&&!n?Ra:Ra=Oh(t||E.localStorage)},Aa=null,zb=function(t,n){return Aa!==null&&!n?Aa:Aa=Oh(t||E.sessionStorage)};function xh(t,n,i){var e=function(r){P.error(n+" error: "+r)};return{is_supported:function(r){var o=i(t,r);return o||P.error(n+" unsupported"),o},error:e,get:function(r){try{return t.getItem(r)}catch(o){e(o)}return null},parse:function(r){try{return p.JSONDecode(t.getItem(r))||{}}catch(o){}return null},set:function(r,o){try{t.setItem(r,o)}catch(s){e(s)}},remove:function(r){try{t.removeItem(r)}catch(o){e(o)}}}}var kh=null,Rh=null;try{kh=E.localStorage,Rh=E.sessionStorage}catch(t){}p.localStorage=xh(kh,"localStorage",fn),p.sessionStorage=xh(Rh,"sessionStorage",zb),p.register_event=(function(){var t=function(e,r,o,s,a){if(!e){P.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(r,o,!!a);else{var u="on"+r,c=e[u];e[u]=n(e,o,c)}};function n(e,r,o){var s=function(a){if(a=a||i(E.event),!!a){var u=!0,c,l;return p.isFunction(o)&&(c=o(a)),l=r.call(e,a),(c===!1||l===!1)&&(u=!1),u}};return s}function i(e){return e&&(e.preventDefault=i.preventDefault,e.stopPropagation=i.stopPropagation),e}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},t})();var qb=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');p.dom_query=(function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,o){var s=" "+o+" ";return(" "+r.className+" ").replace(n," ").indexOf(s)>=0}function e(r){if(!F.getElementsByTagName)return[];var o=r.split(" "),s,a,u,c,l,f,h,g,d,y,v=[F];for(f=0;f<o.length;f++){if(s=o[f].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var m=a[1],_=F.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];v=[_];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),c=[],l=0,h=0;h<v.length;h++)for(u=="*"?d=t(v[h]):d=v[h].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];for(v=[],y=0,h=0;h<c.length;h++)c[h].className&&p.isString(c[h].className)&&i(c[h],b)&&(v[y++]=c[h]);continue}var C=s.match(qb);if(C){u=C[1];var S=C[2],O=C[3],R=C[4];for(u||(u="*"),c=[],l=0,h=0;h<v.length;h++)for(u=="*"?d=t(v[h]):d=v[h].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=[],y=0;var k;switch(O){case"=":k=function($){return $.getAttribute(S)==R};break;case"~":k=function($){return $.getAttribute(S).match(new RegExp("\\b"+R+"\\b"))};break;case"|":k=function($){return $.getAttribute(S).match(new RegExp("^"+R+"-?"))};break;case"^":k=function($){return $.getAttribute(S).indexOf(R)===0};break;case"$":k=function($){return $.getAttribute(S).lastIndexOf(R)==$.getAttribute(S).length-R.length};break;case"*":k=function($){return $.getAttribute(S).indexOf(R)>-1};break;default:k=function($){return $.getAttribute(S)}}for(v=[],y=0,h=0;h<c.length;h++)k(c[h])&&(v[y++]=c[h]);continue}for(u=s,c=[],l=0,h=0;h<v.length;h++)for(d=v[h].getElementsByTagName(u),g=0;g<d.length;g++)c[l++]=d[g];v=c}return v}return function(r){return p.isElement(r)?[r]:p.isObject(r)&&!p.isUndefined(r.length)?r:e.call(this,r)}})();var Wb=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Gb=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];p.info={campaignParams:function(t){var n="",i={};return p.each(Wb,function(e){n=p.getQueryParam(F.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return p.each(Gb,function(i){t=p.getQueryParam(F.URL,i),t.length&&(n[i]=t)}),n},marketingParams:function(){return p.extend(p.info.campaignParams(),p.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=p.info.searchEngine(t),i=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=p.getQueryParam(t,i);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,i){return n=n||"",i||p.includes(t," OPR/")?p.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":p.includes(t,"IEMobile")||p.includes(t,"WPDesktop")?"Internet Explorer Mobile":p.includes(t,"SamsungBrowser/")?"Samsung Internet":p.includes(t,"Edge")||p.includes(t,"Edg/")?"Microsoft Edge":p.includes(t,"FBIOS")?"Facebook Mobile":p.includes(t,"Whale/")?"Whale Browser":p.includes(t,"Chrome")?"Chrome":p.includes(t,"CriOS")?"Chrome iOS":p.includes(t,"UCWEB")||p.includes(t,"UCBrowser")?"UC Browser":p.includes(t,"FxiOS")?"Firefox iOS":p.includes(n,"Apple")?p.includes(t,"Mobile")?"Mobile Safari":"Safari":p.includes(t,"Android")?"Android Mobile":p.includes(t,"Konqueror")?"Konqueror":p.includes(t,"Firefox")?"Firefox":p.includes(t,"MSIE")||p.includes(t,"Trident/")?"Internet Explorer":p.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,i){var e=p.info.browser(t,n,i),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+)?)/},o=r[e];if(o===void 0)return null;var s=t.match(o);return s?parseFloat(s[s.length-2]):null},os:function(){var t=Ke;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return E.location.href},properties:function(t){return typeof t!="object"&&(t={}),p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(Ke,st.vendor,ln),$referrer:F.referrer,$referring_domain:p.info.referringDomain(F.referrer),$device:p.info.device(Ke)}),{$current_url:p.info.currentUrl(),$browser_version:p.info.browserVersion(Ke,st.vendor,ln),$screen_height:bh.height,$screen_width:bh.width,mp_lib:"web",$lib_version:$e.LIB_VERSION,$insert_id:Ma(),time:p.timestamp()/1e3},p.strip_empty_properties(t))},people_properties:function(){return p.extend(p.strip_empty_properties({$os:p.info.os(),$browser:p.info.browser(Ke,st.vendor,ln)}),{$browser_version:p.info.browserVersion(Ke,st.vendor,ln)})},mpPageViewProperties:function(){return p.strip_empty_properties({current_page_title:F.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 jb=function(t,n){var i=null,e=[];return function(r){var o=this;return e.push(r),i||(i=new U(function(s){setTimeout(function(){var a=t.apply(o,[e]);i=null,e=[],s(a)},n)})),i}},Ma=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},Ah=function(){var t=p.UUID().replace(/-/g,""),n=p.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},Vb=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Hb=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Mh=function(t){var n=Hb,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=Vb);var r=t.match(n);return r?r[0]:""},Yb=function(){var t=E.navigator.onLine;return p.isUndefined(t)||t},It=function(){},Hi=function(t,n){for(var i=!1,e=0;e<n.length;e++)if(t.match(n[e])){i=!0;break}return i},_r=null,Yi=null;typeof JSON!="undefined"&&(_r=JSON.stringify,Yi=JSON.parse),_r=_r||p.JSONEncode,Yi=Yi||p.JSONDecode;var Kb=function(t,n,i){if(!E.CompressionStream)return!1;var e=p.info.browser(t,n,i),r=p.info.browserVersion(t,n,i);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};p.info=p.info,p.info.browser=p.info.browser,p.info.browserVersion=p.info.browserVersion,p.info.device=p.info.device,p.info.properties=p.info.properties,p.isBlockedUA=p.isBlockedUA,p.isEmptyObject=p.isEmptyObject,p.isObject=p.isObject,p.JSONDecode=p.JSONDecode,p.JSONEncode=p.JSONEncode,p.toArray=p.toArray,p.NPO=Ct;var Jb="mixpanelBrowserDb",Th="mixpanelRecordingEvents",Ta="mixpanelRecordingRegistry",Xb=1,Zb=[Th,Ta],qe=function(t){this.dbPromise=null,this.storeName=t};qe.prototype._openDb=function(){return new U(function(t,n){var i=E.indexedDB.open(Jb,Xb);i.onerror=function(){n(i.error)},i.onsuccess=function(){t(i.result)},i.onupgradeneeded=function(e){var r=e.target.result;Zb.forEach(function(o){r.createObjectStore(o)})}})},qe.prototype.init=function(){return E.indexedDB?(this.dbPromise||(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")},qe.prototype.isInitialized=function(){return!!this.dbPromise},qe.prototype.makeTransaction=function(t,n){var i=this.storeName,e=function(r){return new U(function(o,s){var a=r.transaction(i,t);a.oncomplete=function(){o(a)},a.onabort=a.onerror=function(){s(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):U.reject(r)}.bind(this))},qe.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(i){i.put(n,t)})},qe.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(i){n=i.get(t)}).then(function(){return n.result})},qe.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},qe.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var Qb="__mp_opt_in_out_";function eS(t,n){Nh(!0,t,n)}function tS(t,n){Nh(!1,t,n)}function rS(t,n){return Ph(t,n)==="1"}function $h(t,n){if(iS(n))return P.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 i=Ph(t,n)==="0";return i&&P.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function Ot(t){return Na(t,function(n){return this.get_config(n)})}function xt(t){return Na(t,function(n){return this._get_config(n)})}function wr(t){return Na(t,function(n){return this._get_config(n)})}function nS(t,n){n=n||{},$a(n).remove(Pa(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function $a(t){return t=t||{},t.persistenceType==="localStorage"?p.localStorage:p.cookie}function Pa(t,n){return n=n||{},(n.persistencePrefix||Qb)+t}function Ph(t,n){return $a(n).get(Pa(t,n))}function iS(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||E,i=n.navigator||{},e=!1;return p.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){p.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function Nh(t,n,i){if(!p.isString(n)||!n.length){P.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},$a(i).set(Pa(n,i),t?1:0,p.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&t&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Na(t,n){return function(){var i=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),o=n.call(this,"opt_out_tracking_persistence_type"),s=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(i=$h(e,{ignoreDnt:r,persistenceType:o,persistencePrefix:s,window:a}))}catch(c){P.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var oS=at("lock"),Lh=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||E.localStorage,this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||U};Lh.prototype.withLock=function(t,n){var i=this.promiseImpl;return new i(p.bind(function(e,r){var o=n||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",h=a+":Y",g=a+":Z",d=function(b){if(new Date().getTime()-s>c){oS.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+o+"]"),l.removeItem(g),l.removeItem(h),m();return}setTimeout(function(){try{b()}catch(C){r(C)}},u*(Math.random()+.1))},y=function(b,C){b()?C():d(function(){y(b,C)})},v=function(){var b=l.getItem(h);return b&&b!==o?!1:(l.setItem(h,o),l.getItem(h)===o?!0:(fn(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,o),y(v,function(){if(l.getItem(f)===o){_();return}d(function(){if(l.getItem(h)!==o){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var b=function(){l.removeItem(g),l.getItem(h)===o&&l.removeItem(h),l.getItem(f)===o&&l.removeItem(f)};t().then(function(C){b(),e(C)}).catch(function(C){b(),r(C)})};try{if(fn(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var br=function(t){this.storage=t||E.localStorage};br.prototype.init=function(){return U.resolve()},br.prototype.isInitialized=function(){return!0},br.prototype.setItem=function(t,n){return new U(p.bind(function(i,e){try{this.storage.setItem(t,_r(n))}catch(r){e(r)}i()},this))},br.prototype.getItem=function(t){return new U(p.bind(function(n,i){var e;try{e=Yi(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))},br.prototype.removeItem=function(t){return new U(p.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var Dh=at("batch"),Je=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new br,this.lock=new Lh(t,{storage:n.sharedLockStorage||E.localStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||p.bind(Dh.error,Dh),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=jb(p.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=p.bind(function(i){return this._enqueuePersisted([i])},this)};Je.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?U.resolve():this.queueStorage.init().then(p.bind(function(){this.initialized=!0},this)).catch(p.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Je.prototype.enqueue=function(t,n){var i={id:Ma(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),U.resolve(!0))},Je.prototype._enqueuePersisted=function(t){var n=p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){return this.saveToStorage(i.concat(t))},this)).then(p.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(t)),i},this)).catch(p.bind(function(i){return this.reportError("Error enqueueing items",i,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(p.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},Je.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){if(i.length){var e={};p.each(n,function(s){e[s.id]=!0});for(var r=0;r<i.length;r++){var o=i[r];if(new Date().getTime()>o.flushAfter&&!e[o.id]&&(o.orphaned=!0,n.push(o),n.length>=t))break}}return n},this)):U.resolve(n)};var Fh=function(t,n){var i=[];return p.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};Je.prototype.removeItemsByID=function(t){var n={};if(p.each(t,function(e){n[e]=!0}),this.memQueue=Fh(this.memQueue,n),this.usePersistence){var i=p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){return e=Fh(e,n),this.saveToStorage(e)},this)).then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(e){for(var r=0;r<e.length;r++){var o=e[r];if(o.id&&n[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(p.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(p.bind(function(e){return this.reportError("Error acquiring storage lock",e),fn(this.lock.storage,!0)?!1:i().then(p.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(p.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return U.resolve(!0)};var Uh=function(t,n){var i=[];return p.each(t,function(e){var r=e.id;if(r in n){var o=n[r];o!==null&&(e.payload=o,i.push(e))}else i.push(e)}),i};Je.prototype.updatePayloads=function(t){return this.memQueue=Uh(this.memQueue,t),this.usePersistence?this.lock.withLock(p.bind(function(){return this.ensureInit().then(p.bind(function(){return this.readFromStorage()},this)).then(p.bind(function(i){return i=Uh(i,t),this.saveToStorage(i)},this)).catch(p.bind(function(i){return this.reportError("Error updating items",t,i),!1},this))},this),this.pid).catch(p.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):U.resolve(!0)},Je.prototype.readFromStorage=function(){return this.ensureInit().then(p.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(p.bind(function(t){return t&&(p.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(p.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Je.prototype.saveToStorage=function(t){return this.ensureInit().then(p.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(p.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Je.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(p.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):U.resolve()};var sS=600*1e3,hn=at("batch"),Ue=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Je(t,{errorReporter:p.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};Ue.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Ue.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ue.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ue.prototype.clear=function(){return this.queue.clear()},Ue.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ue.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ue.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(p.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ue.prototype.sendRequestPromise=function(t,n){return new U(p.bind(function(i){this.sendRequest(t,n,i)},this))},Ue.prototype.flush=function(t){if(this.requestInProgress)return hn.log("Flush: Request already in progress"),U.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(p.bind(function(r){var o=r.length===e,s=[],a={};if(p.each(r,function(f){var h=f.payload;if(this.beforeSendHook&&!f.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=p.extend({},h.properties,{mp_sent_by_lib_version:$e.LIB_VERSION}));var g=!0,d=f.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[d]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&s.push(h)}a[f.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),U.resolve();var u=p.bind(function(){return this.queue.removeItemsByID(p.map(r,function(f){return f.id})).then(p.bind(function(f){return p.each(r,p.bind(function(h){var g=h.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),f?(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),c=p.bind(function(f){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(p.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(p.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!Yb()||f.error==="timeout")){var h=this.flushInterval*2;return f.retryAfter&&(h=parseInt(f.retryAfter,10)*1e3||h),h=Math.min(sS,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),U.resolve()}else if(p.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),U.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(l.transport="sendBeacon"),hn.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(p.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Ue.prototype.reportError=function(t,n){if(hn.error.apply(hn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){hn.error(i)}};var La=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},aS=250,Bh=function(t,n){if(!p.isArray(t))return t&&n.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var i=[],e=0;e<t.length;e++)try{var r=new URL(t[e]).origin;if(r==="null"){n.critical(t[e]+" has an opaque origin. Skipping this entry.");continue}i.push(r)}catch(o){n.critical(t[e]+" is not a valid origin URL. Skipping this entry.")}return i},pn="change",ut="click",Da="hashchange",uS="input",zh="load",kt="mp_locationchange",qh="popstate",Ki="scrollend",Fa="scroll",cS="select",Ji="submit",lS="toggle",Wh="visibilitychange",fS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Gh=["mp-include"],Ua=["mp-no-track"],jh=Ua.concat(["mp-sensitive"]),hS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],pS={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},dS={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},vS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Vh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],gS=5,te=at("autocapture");function Ba(t){for(var n={},i=Hh(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function Hh(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function mS(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!Jh(t));return t}function Yh(t,n,i,e,r,o){var s={$classes:Hh(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(s.$id=a),Wa(t,n,r,o)&&p.each(hS.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var h=t.getAttribute(f);Xi(h)&&(s["$attr-"+f]=h)}});for(var u=1,c=1,l=t;l=mS(l);)u++,l.tagName===t.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function yS(t,n){var i=n.allowElementCallback,e=n.allowSelectors||[],r=n.blockAttrs||[],o=n.blockElementCallback,s=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};p.each(r,function(S){l[S]=!0});var f=null,h=typeof t.target=="undefined"?t.srcElement:t.target;if(Xh(h)&&(h=h.parentNode),SS(h,t)&&za(h,t,i,e)&&!qa(h,t,o,s)){for(var g=[h],d=h;d.parentNode&&!Xe(d,"body");)g.push(d.parentNode),d=d.parentNode;var y=[],v,m=!1;if(p.each(g,function(S){var O=Wa(S,t,i,e);!l.href&&S.tagName.toLowerCase()==="a"&&(v=S.getAttribute("href"),v=O&&Xi(v)&&v),qa(S,t,o,s)&&(m=!0),y.push(Yh(S,t,l,u,i,e))},this),!m){var _=F.documentElement;if(f={$event_type:t.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:v,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:F.body.offsetHeight||0,$pageWidth:F.body.offsetWidth||0},p.each(u,function(S){if(!l[S]&&h.hasAttribute(S)){var O=h.getAttribute(S);Xi(O)&&(f["$el_attr__"+S]=O)}}),a&&(b=Kh(h,t,i,e),b&&b.length&&(f.$el_text=b)),t.type===ut&&(p.each(fS,function(S){S in t&&(f["$"+S]=t[S])}),c&&(f.$captured_for_heatmap=!0),h=_S(t)),a){var b=Kh(h,t,i,e);b&&b.length&&(f.$el_text=b)}if(h){if(!za(h,t,i,e)||qa(h,t,o,s))return null;var C=Yh(h,t,l,u,i,e);f.$target=C,f.$el_classes=C.$classes,p.extend(f,p.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return f}function Kh(t,n,i,e){var r="";return Wa(t,n,i,e)&&t.childNodes&&t.childNodes.length&&p.each(t.childNodes,function(o){Xh(o)&&o.textContent&&(r+=p.trim(o.textContent).split(/(\s+)/).filter(Xi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),p.trim(r)}function _S(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Xe(r,"a")||Xe(r,"button")||Xe(r,"input")||Xe(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function za(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(s){return te.critical("Error while checking element in allowElementCallback",s),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var o=e[r];try{if(t.matches(o))return!0}catch(s){te.critical("Error while checking selector: "+o,s)}}return!1}function qa(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return te.critical("Error while checking element in blockElementCallback",a),!0}if(e&&e.length)for(r=0;r<e.length;r++){var o=e[r];try{if(t.matches(o))return!0}catch(a){te.critical("Error while checking selector: "+o,a)}}var s=Ba(t);for(r=0;r<Ua.length;r++)if(s[Ua[r]])return!0;return!1}function Jh(t){return t&&t.nodeType===1}function Xe(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function Xh(t){return t&&t.nodeType===3}function wS(){try{var t=F.createElement("div");return!!t.matches}catch(n){return!1}}function bS(){return typeof WeakSet!="undefined"}function SS(t,n){if(!t||Xe(t,"html")||!Jh(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===Ji;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===pn:n.type===ut;case"select":case"textarea":return n.type===pn;default:return n.type===ut}}function Zh(t){var n=(t.name||t.id||"").toString().toLowerCase();if(typeof n=="string"){var i=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(i.test(n.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function Wa(t,n,i,e){var r;if(!za(t,n,i,e))return!1;for(var o=t;o.parentNode&&!Xe(o,"body");o=o.parentNode){var s=Ba(o);for(r=0;r<jh.length;r++)if(s[jh[r]])return!1}var a=Ba(t);for(r=0;r<Gh.length;r++)if(a[Gh[r]])return!0;if(Xe(t,"input")||Xe(t,"select")||Xe(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var u=t.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}return!Zh(t)}function Xi(t){if(t===null||p.isUndefined(t))return!1;if(typeof t=="string"){t=p.trim(t);var n=/^(?:(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}))$/;if(n.test((t||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(t))return!1}return!0}function Qh(t){var n="onscrollend"in E,i=yr(t),e=Ki;if(!n){var r=null,o=100;i=yr(function(){clearTimeout(r),r=setTimeout(t,o)}),e=Fa}return{listener:i,eventType:e}}function CS(t){for(var n=0;n<Vh.length;n++)if(t.hasAttribute(Vh[n]))return!0;return!1}function ES(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return pS[i]}function Ga(t){var n=t.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||t.isContentEditable||t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend||CS(t)||ES(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function ep(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(dS[n])return!0;if(Ga(t))return!1;for(var i=t.parentElement,e=0;i&&e<gS;){if(Ga(i))return!1;if(i.getRootNode&&i.getRootNode()!==F){var r=i.getRootNode();if(r.host&&Ga(r.host))return!1}i=i.parentElement,e++}return!!vS[n]}function tp(t){return"composedPath"in t?t.composedPath():[]}function rp(t){var n=tp(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var np=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",IS="data-rr-is-password",OS=["password","email","tel","hidden"];function Zi(t){return t?Array.isArray(t)?t:[t]:[]}function xS(t){var n={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},i=t.get_config("record_mask_input_selector"),e=t.get_config("record_unmask_input_selector"),r=t.get_config("record_mask_all_inputs");n.input.maskingSelector=Zi(i).join(","),n.input.unmaskingSelector=Zi(e).join(","),r!==void 0&&(n.input.maskAll=r);var o=t.get_config("record_mask_text_selector"),s=t.get_config("record_unmask_text_selector"),a=t.get_config("record_mask_all_text"),u=t.get_config("record_mask_text_class"),c=Zi(o);if(u)if(u instanceof RegExp)n.text._legacyClassRegex=u;else{var l="."+u;c.indexOf(l)===-1&&c.push(l)}return n.text.maskingSelector=c.join(","),n.text.unmaskingSelector=Zi(s).join(","),a===void 0&&o!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function Sr(t,n){return n?!!t.closest(n):!1}function kS(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(OS.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(IS)||Zh(t)?!0:n.input.maskAll?!Sr(t,n.input.unmaskingSelector):!!(Sr(t,n.input.maskingSelector)||Sr(t,np))}function RS(t,n){return t?n.text._legacyClassRegex&&Ws(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!Sr(t,n.text.unmaskingSelector):!!(Sr(t,n.text.maskingSelector)||Sr(t,np)):!1}var Bt=at("network-plugin");function Qi(t){return Math.round(Date.now()-t.performance.now())}var ja={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 AS(t){return t.entryType==="navigation"}function Va(t){return t.entryType==="resource"}function MS(t,n){for(var i=t.length,e=i-1;e>=0;e-=1)if(n(t[e]))return t[e]}function ip(t,n,i){if(!(n in t)||typeof t[n]!="function")return function(){};var e=t[n],r=i(e);return t[n]=r,function(){t[n]=e}}var Ha=1024*1024;function op(t){return!t||typeof t!="string"?t:t.length>Ha?(Bt.error("Body truncated from "+t.length+" to "+Ha+" characters"),t.substring(0,Ha)+"... [truncated]"):t}function TS(t,n,i){if(!n.PerformanceObserver)return Bt.error("PerformanceObserver not supported"),function(){};if(i.recordInitialRequests){var e=n.performance.getEntries().filter(function(o){return AS(o)||Va(o)&&i.initiatorTypes.includes(o.initiatorType)});t({requests:e.map(function(o){return{url:o.name,initiatorType:o.initiatorType,status:"responseStatus"in o?o.responseStatus:void 0,startTime:Math.round(o.startTime),endTime:Math.round(o.responseEnd),timeOrigin:Qi(n)}}),isInitial:!0})}var r=new n.PerformanceObserver(function(o){var s=o.getEntries().filter(function(a){return Va(a)&&i.initiatorTypes.includes(a.initiatorType)&&a.initiatorType!=="xmlhttprequest"&&a.initiatorType!=="fetch"});t({requests:s.map(function(a){return{url:a.name,initiatorType:a.initiatorType,status:"responseStatus"in a?a.responseStatus:void 0,startTime:Math.round(a.startTime),endTime:Math.round(a.responseEnd),timeOrigin:Qi(n)}})})});return r.observe({entryTypes:["navigation","resource"]}),function(){r.disconnect()}}function eo(t,n,i){return!n[t]||n[t].length===0?!1:n[t].includes(i.toLowerCase())}function to(t,n,i){return!n[t]||n[t].length===0?!1:Hi(i,n[t])}function sp(t){if(t==null)return null;var n;if(typeof t=="string")n=t;else if(t instanceof Document)n=t.textContent;else if(t instanceof FormData)n=p.HTTPBuildQuery(t);else if(p.isObject(t))try{n=JSON.stringify(t)}catch(i){return"Failed to stringify response object"}else return"Cannot read body of type "+typeof t;return op(n)}function ap(t){return new Promise(function(n){var i=setTimeout(function(){n("Timeout while trying to read body")},500);try{t.clone().text().then(function(e){clearTimeout(i),n(op(e))},function(e){clearTimeout(i),n("Failed to read body: "+String(e))})}catch(e){clearTimeout(i),n("Failed to read body: "+String(e))}})}function Ya(t,n,i,e,r,o){if(o===void 0&&(o=0),o>10)return Bt.error("Cannot find performance entry"),Promise.resolve(null);var s=t.performance.getEntriesByName(i),a=MS(s,function(u){return Va(u)&&u.initiatorType===n&&(!e||u.startTime>=e)&&(!r||u.startTime<=r)});return a?Promise.resolve(a):new Promise(function(u){setTimeout(u,50*o)}).then(function(){return Ya(t,n,i,e,r,o+1)})}function $S(t,n,i){if(!i.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=ip(n.XMLHttpRequest.prototype,"open",function(r){return function(o,s,a,u,c){a===void 0&&(a=!0);var l=this,f=new Request(s,{method:o}),h={},g,d,y={},v=l.setRequestHeader.bind(l);l.setRequestHeader=function(_,b){return eo("request",i.recordHeaders,_)&&(y[_]=b),v(_,b)},h.requestHeaders=y;var m=l.send.bind(l);l.send=function(_){return to("request",i.recordBodyUrls,f.url)&&(h.requestBody=sp(_)),g=n.performance.now(),m(_)},l.addEventListener("readystatechange",function(){if(l.readyState===l.DONE){d=n.performance.now();var _={},b=l.getAllResponseHeaders();if(b){var C=b.trim().split(/[\r\n]+/);C.forEach(function(S){if(S){var O=S.indexOf(": ");if(O!==-1){var R=S.substring(0,O),k=S.substring(O+2);R&&eo("response",i.recordHeaders,R)&&(_[R]=k)}}})}h.responseHeaders=_,to("response",i.recordBodyUrls,f.url)&&(h.responseBody=sp(l.response)),Ya(n,"xmlhttprequest",f.url,g,d).then(function(S){if(!S){Bt.error("Failed to get performance entry for XHR request to "+f.url);return}var O={url:S.name,method:f.method,initiatorType:S.initiatorType,status:l.status,startTime:Math.round(S.startTime),endTime:Math.round(S.responseEnd),timeOrigin:Qi(n),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};t({requests:[O]})}).catch(function(S){Bt.error("Error recording XHR request to "+f.url+": "+String(S))})}}),r.call(l,o,s,a,u,c)}});return function(){e()}}function PS(t,n,i){if(!i.initiatorTypes.includes("fetch"))return function(){};var e=ip(n,"fetch",function(r){return function(){var o=new Request(arguments[0],arguments[1]),s,a={},u,c,l,f=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var g={};o.headers.forEach(function(d,y){eo("request",i.recordHeaders,y)&&(g[y]=d)}),a.requestHeaders=g,to("request",i.recordBodyUrls,o.url)&&(f=ap(o).then(function(d){a.requestBody=d})),u=n.performance.now(),l=r.apply(n,arguments).then(function(d){s=d,c=n.performance.now();var y={};return s.headers.forEach(function(v,m){eo("response",i.recordHeaders,m)&&(y[m]=v)}),a.responseHeaders=y,to("response",i.recordBodyUrls,o.url)&&(h=ap(s).then(function(v){a.responseBody=v})),s})}catch(d){l=Promise.reject(d)}return Promise.all([f,h,l]).then(function(){return Ya(n,"fetch",o.url,u,c)}).then(function(d){if(!d){Bt.error("Failed to get performance entry for fetch request to "+o.url);return}var y={url:d.name,method:o.method,initiatorType:d.initiatorType,status:s?s.status:void 0,startTime:Math.round(d.startTime),endTime:Math.round(d.responseEnd),timeOrigin:Qi(n),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};t({requests:[y]})}).catch(function(d){Bt.error("Error recording fetch request to "+o.url+": "+String(d))}),l}});return function(){e()}}function NS(t,n,i){if(!("performance"in n))return function(){};var e=Object.assign({},ja.recordHeaders,i.recordHeaders||{}),r=Object.assign({},ja.recordBodyUrls,i.recordBodyUrls||{});i=Object.assign({},i,{recordHeaders:e,recordBodyUrls:r});var o=Object.assign({},ja,i),s=function(l){var f=l.requests.filter(function(h){var g=Hi(h.url,o.ignoreRequestUrls||[]);return!g&&!o.ignoreRequestFn(h)});(f.length>0||l.isInitial)&&t(Object.assign({},l,{requests:f}))},a=TS(s,n,o),u=$S(s,n,o),c=PS(s,n,o);return function(){a(),u(),c()}}var LS="rrweb/network@1.mp",DS=function(t){return{name:LS,observer:NS,options:t}},zt=at("recorder"),FS=E.CompressionStream,US={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},BS=new Set([D.MouseMove,D.MouseInteraction,D.Scroll,D.ViewportResize,D.Input,D.TouchMove,D.MediaInteraction,D.Drag,D.Selection]);function zS(t){return t.type===V.IncrementalSnapshot&&BS.has(t.data.source)}var we=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||It,this._onMaxLengthReached=t.onMaxLengthReached||It,this._onBatchSent=t.onBatchSent||It,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=un,this.recordMinMs=0;var n=fn(t.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new qe(Th),this.batcher=new Ue(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:US,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:aS,sharedLockTimeoutMS:10*1e3})};we.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(t.$user_id=i),t},we.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))},we.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},we.prototype.get_config=function(t){return this.getConfig(t)},we.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){zt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>un&&(this.recordMaxMs=un,zt.critical("record_max_ms cannot be greater than "+un+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=p.info.currentUrl(),this.replayStartUrl=p.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var c=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,c),this.idleExpires=new Date().getTime()+c}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);var e=xS(this._mixpanel),r=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,r.push(DS(o))}this.getConfig("record_console")&&r.push(Nb({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=Bh(this.getConfig("record_allowed_iframe_origins"),zt);try{this._stopRecording=this._rrwebRecord({emit:function(c){if(this.idleExpires&&this.idleExpires<c.timestamp){this._onIdleTimeout();return}zS(c)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(c),(this.lastEventTimestamp===null||c.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=c.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(kS,e),maskTextFn:this._getMaskFn(RS,e),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:r})}catch(c){this.reportError("Unexpected error when starting rrweb recording.",c)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)},we.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},we.prototype.isRrwebStopped=function(){return this._stopRecording===null},we.prototype.flushEventsWithOptOut=function(t,n,i){var e=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,i,e)},we.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=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:t}},we.deserialize=function(t,n){var i=new we(p.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},we.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},we.prototype._sendRequest=function(t,n,i,e){var r=function(s,a){s.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=p.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.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:i}).then(function(s){s.json().then(function(a){r(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},we.prototype._flushEvents=Ot(function(t,n,i){var e=t.length;if(e>0){for(var r=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<e;u++)o=Math.min(o,t[u].timestamp),s=Math.max(s,t[u].timestamp),t[u].type===V.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:$e.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(l,this.getUserIdInfo()),Kb(Ke,st.vendor,ln)){var h=new Blob([f],{type:"application/json"}).stream(),g=h.pipeThrough(new FS("gzip"));new Response(g).blob().then(function(d){l.format="gzip",this._sendRequest(r,l,d,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),we.prototype.reportError=function(t,n){zt.error.apply(zt.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(i){zt.error(i)}},we.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},we.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Ea?(zt.critical("record_min_ms cannot be greater than "+Ea+"ms. Capping value."),Ea):t},we.prototype._getMaskFn=function(t,n){return function(i,e){if(!i.trim().length)return"";var r=!0;try{r=t(e,n)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(r){var o=Math.min(i.length,1e4);return"*".repeat(o)}else return i}.bind(this)};var ct=function(t){this.idb=new qe(Ta),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};ct.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},ct.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},ct.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return U.resolve();var n=t.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,t)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),U.resolve())},ct.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(t){return La(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):U.resolve(null)},ct.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},ct.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}.bind(this)).catch(this.handleError.bind(this))},ct.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):U.resolve()},ct.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(t){var n=t.filter(function(i){return La(i)}).map(function(i){var e=we.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return U.all(n)}.bind(this)).catch(this.handleError.bind(this)):U.resolve([])};var dn=at("recorder"),Ze=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||_t,this.sharedLockStorage=i,this.recordingRegistry=new ct({mixpanelInstance:this.mixpanelInstance,errorReporter:dn.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Ze.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){dn.log("Recording already in progress, skipping startRecording.");return}var n=function(){dn.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){dn.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:i,replayId:p.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=we.deserialize(t.activeSerializedRecording,r):this.activeRecording=new we(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Ze.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))},Ze.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Ze.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return U.resolve()},Ze.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),U.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(dn.log("No resumable recording found."),null)}.bind(this))},Ze.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Ze.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Ze.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Ze.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E[_o]=Ze;var qS=30,WS=1e3,GS=4,jS=!1;function up(){this.clicks=[]}up.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||qS,e=n.timeout_ms||WS,r=n.click_count||GS,o=n.interactive_elements_only||jS;if(o){var s=rp(t);if(!s||ep(s))return!1}var a=Date.now(),u=t.pageX,c=t.pageY,l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<e&&Math.sqrt(Math.pow(u-l.x,2)+Math.pow(c-l.y,2))<i){if(this.clicks.push({x:u,y:c,timestamp:a}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:u,y:c,timestamp:a}];return!1};function Cr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}Cr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return rp(t)},Cr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=tp(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}},Cr.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var n=this;try{this.observedShadowRoots.add(t);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(t,this.observerConfig),this.shadowObservers.push(i)}catch(e){te.critical("Error while observing shadow root",e)}}},Cr.prototype.start=function(){if(!this.observedShadowRoots){if(!bS()){te.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},Cr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){te.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var VS=500,HS=[pn,uS,Ji,cS,lS],YS=[Ki],KS=[Da],cp={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function Qe(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}Qe.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||ep(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},Qe.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i},Qe.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,i=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],o=0;o<e.length;o++){var s=e[o];i-s.timestamp>=n?this.hasChangesAfter(s.timestamp)||r.push(s):this.pendingClicks.push(s)}return r},Qe.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},Qe.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},Qe.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},Qe.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=t.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var e=i.getDeadClicks(t),r=0;r<e.length;r++)i.onDeadClickCallback(e[r].event);i.pendingClicks.length>0?i.processRecursively(t):i.processingActive=!1}},n)},Qe.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;HS.forEach(function(i){var e=function(){t.recordChangeEvent()};document.addEventListener(i,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:i,handler:e,options:{capture:!0,passive:!0}})}),KS.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),YS.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e,{passive:!0}),t.eventListeners.push({target:window,event:i,handler:e,options:{passive:!0}})});var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){t.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,cp)}catch(i){te.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new Cr(function(){t.recordChangeEvent()},cp),this.shadowDOMObserver.start()}catch(i){te.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},Qe.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var t=0;t<this.eventListeners.length;t++){var n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){te.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){te.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){te.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var lp="autocapture",JS="track_pageview",fp="full-url",XS="url-with-path-and-query-string",ZS="url-with-path",QS="allow_element_callback",hp="allow_selectors",pp="allow_url_regexes",dp="block_attrs",vp="block_element_callback",gp="block_selectors",mp="block_url_regexes",yp="capture_extra_attrs",_p="capture_text_content",wp="scroll_capture_all",bp="scroll_depth_percent_checkpoints",ro="click",no="dead_click",Ka="input",Sp="pageview",io="rage_click",Ja="scroll",oo="page_leave",Xa="submit",Ee={};Ee[hp]=[],Ee[pp]=[],Ee[dp]=[],Ee[vp]=null,Ee[gp]=[],Ee[mp]=[],Ee[yp]=[],Ee[_p]=!1,Ee[wp]=!1,Ee[bp]=[25,50,75,100],Ee[ro]=!0,Ee[no]=!0,Ee[Ka]=!0,Ee[Sp]=fp,Ee[io]=!0,Ee[Ja]=!0,Ee[oo]=!1,Ee[Xa]=!0;var vn={$mp_autocapture:!0},Cp="$mp_click",Ep="$mp_dead_click",eC="$mp_input_change",Ip="$mp_rage_click",tC="$mp_scroll",rC="$mp_submit",nC="$mp_page_leave",be=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};be.prototype.init=function(){if(!wS()){te.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()},be.prototype.getFullConfig=function(){var t=this.mp.get_config(lp);return t?p.isObject(t)?p.extend({},Ee,t):Ee:{}},be.prototype.getConfig=function(t){return this.getFullConfig()[t]},be.prototype.currentUrlBlocked=function(){var t=p.info.currentUrl(),n=this.getConfig(pp)||[];if(n.length)try{return!Hi(t,n)}catch(e){return te.critical("Error while checking block URL regexes: ",e),!0}var i=this.getConfig(mp)||[];if(!i||!i.length)return!1;try{return Hi(t,i)}catch(e){return te.critical("Error while checking block URL regexes: ",e),!0}},be.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(lp)?this.getConfig(Sp):this.mp.get_config(JS)},be.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===Cp&&!this.getConfig(ro)||n===Ip&&!this._getClickTrackingConfig(io)||n===Ep&&!this._getClickTrackingConfig(no)),e=yS(t,{allowElementCallback:this.getConfig(QS),allowSelectors:this.getConfig(hp),blockAttrs:this.getConfig(dp),blockElementCallback:this.getConfig(vp),blockSelectors:this.getConfig(gp),captureExtraAttrs:this.getConfig(yp),captureTextContent:this.getConfig(_p),capturedForHeatMap:i});e&&(p.extend(e,vn),this.mp.track(n,e))}},be.prototype.initPageListeners=function(){if(E.removeEventListener(qh,this.listenerPopstate),E.removeEventListener(Da,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(oo)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){E.dispatchEvent(new Event(kt))},this.listenerHashchange=function(){E.dispatchEvent(new Event(kt))},E.addEventListener(qh,this.listenerPopstate),E.addEventListener(Da,this.listenerHashchange);var t=E.history.pushState;typeof t=="function"&&(E.history.pushState=function(i,e,r){t.call(E.history,i,e,r),E.dispatchEvent(new Event(kt))});var n=E.history.replaceState;typeof n=="function"&&(E.history.replaceState=function(i,e,r){n.call(E.history,i,e,r),E.dispatchEvent(new Event(kt))})}},be.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},be.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(oo)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(F.documentElement.clientHeight,E.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(i-e)*100),o=Math.round(e/i*100);i<=e&&(r=100,o=100);var s=p.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:o,$scroll_height:i,$event_type:t.type,$current_url:n||p.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(F.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},vn);this.mp.track(nC,s,{transport:"sendBeacon"})}},be.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(Fa,this.listenerScrollDepth),E.removeEventListener(Ki,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){te.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(F.documentElement.clientHeight,E.innerHeight||0);var t=function(){if(!this.currentUrlBlocked()){var i=Math.max(F.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=F.body.scrollHeight}}.bind(this),n=Qh(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}},be.prototype.initClickTracking=function(){E.removeEventListener(ut,this.listenerClick),!(!this.getConfig(ro)&&!this.mp.get_config("record_heatmap_data"))&&(te.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(ro)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Cp)}.bind(this),E.addEventListener(ut,this.listenerClick))},be.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(no);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}te.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new Qe(function(n){this.trackDomEvent(n,Ep)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(no);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=VS),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(ut,this.listenerDeadClick))},be.prototype.initInputTracking=function(){E.removeEventListener(pn,this.listenerChange),this.getConfig(Ka)&&(te.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(Ka)&&this.trackDomEvent(t,eC)}.bind(this),E.addEventListener(pn,this.listenerChange))},be.prototype.initPageviewTracking=function(){if(E.removeEventListener(kt,this.listenerLocationchange),!!this.pageviewTrackingConfig()){te.log("Initializing pageview tracking");var t="",n=!1;this.currentUrlBlocked()||(n=this.mp.track_pageview(vn)),n&&(t=p.info.currentUrl()),this.listenerLocationchange=yr(function(){if(!this.currentUrlBlocked()){var i=p.info.currentUrl(),e=!1,r=i.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],o=this.pageviewTrackingConfig();if(o===fp?e=i!==t:o===XS?e=i.split("#")[0]!==t.split("#")[0]:o===ZS&&(e=r),e){var s=this.mp.track_pageview(vn);s&&(t=i),r&&(this.lastScrollCheckpoint=0,te.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),E.addEventListener(kt,this.listenerLocationchange)}},be.prototype.initRageClickTracking=function(){E.removeEventListener(ut,this.listenerRageClick);var t=this._getClickTrackingConfig(io);!t&&!this.mp.get_config("record_heatmap_data")||(te.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new up),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(io);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,Ip)}.bind(this),E.addEventListener(ut,this.listenerRageClick))},be.prototype.initScrollTracking=function(){if(E.removeEventListener(Ki,this.listenerScroll),E.removeEventListener(Fa,this.listenerScroll),!!this.getConfig(Ja)){te.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(Ja)&&!this.currentUrlBlocked()){var i=this.getConfig(wp),e=(this.getConfig(bp)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,o=p.extend({$scroll_top:r},vn);try{var s=F.body.scrollHeight,a=Math.round(r/(s-E.innerHeight)*100);if(o.$scroll_height=s,o.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<e.length;u++){var c=e[u];a>=c&&this.lastScrollCheckpoint<c&&(o.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){te.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(tC,o)}}.bind(this),n=Qh(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}},be.prototype.initSubmitTracking=function(){E.removeEventListener(Ji,this.listenerSubmit),this.getConfig(Xa)&&(te.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(Xa)&&this.trackDomEvent(t,rC)}.bind(this),E.addEventListener(Ji,this.listenerSubmit))},be.prototype.initPageLeaveTracking=function(){if(F.removeEventListener(Wh,this.listenerPageLeaveVisibilitychange),E.removeEventListener(kt,this.listenerPageLeaveLocationchange),E.removeEventListener(zh,this.listenerPageLoad),!(!this.getConfig(oo)&&!this.mp.get_config("record_heatmap_data"))){te.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=p.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=F.body.scrollHeight}.bind(this),E.addEventListener(zh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=yr(function(n){if(!this.currentUrlBlocked()){var i=p.info.currentUrl(),e=i!==t;e&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=i,this.maxScrollViewDepth=Math.max(F.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=F.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),E.addEventListener(kt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){F.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}.bind(this),F.addEventListener(Wh,this.listenerPageLeaveVisibilitychange)}},be.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(ut,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},ka(be);var Op=function(t,n){return E[Ge]&&typeof E[Ge].then=="function"||(E[Ge]=new Promise(function(i){t(n,i)}).then(function(){var i=E[Ge];if(i&&typeof i.then=="function")return i;throw new Error("targeting failed to load")}).catch(function(i){throw delete E[Ge],i})),E[Ge]},ve=at("flags"),so="flags",ao="context",Za={};Za[ao]={};var iC=function(t,n){return t+":"+n},oC=function(t){return t.split(":")[0]},N=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||""};N.prototype.init=function(){if(!this.minApisSupported()){ve.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={}},N.prototype.getFullConfig=function(){var t=this.getMpConfig(so);return t?p.isObject(t)?p.extend({},Za,t):Za:{}},N.prototype.getConfig=function(t){return this.getFullConfig()[t]},N.prototype.isSystemEnabled=function(){return!!this.getMpConfig(so)},N.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return ve.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(so);p.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(ao);return i[ao]=p.extend({},e,t),this.setMpConfig(so,i),this.fetchFlags()},N.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ve.error("Feature Flags not enabled"),!!this.flags},N.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this.getMpProperty("distinct_id"),n=this.getMpProperty("$device_id"),i=Ah();ve.log("Fetching flags for distinct ID: "+t);var e=p.extend({distinct_id:t,device_id:n},this.getConfig(ao)),r=new URLSearchParams;r.set("context",JSON.stringify(e)),r.set("token",this.getMpConfig("token")),r.set("mp_lib","web"),r.set("$lib_version",$e.LIB_VERSION);var o=this.getFullApiRoute()+"?"+r.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(s){return this.markFetchComplete(),s.json().then(function(a){var u=a.flags;if(!u)throw new Error("No flags in API response");var c=new Map,l={};p.each(u,function(h,g){var d=!1,y=g+":";if(p.each(this.activatedFirstTimeEvents,function(m,_){_.startsWith(y)&&(d=!0)}),d){var v=this.flags&&this.flags.get(g);v&&c.set(g,v)}else c.set(g,{key:h.variant_key,value:h.variant_value,experiment_id:h.experiment_id,is_experiment_active:h.is_experiment_active,is_qa_tester:h.is_qa_tester})},this);var f=a.pending_first_time_events;f&&f.length>0&&p.each(f,function(h){var g=h.flag_key,d=iC(g,h.first_time_event_hash);this.activatedFirstTimeEvents[d]||(l[d]={flag_key:g,flag_id:h.flag_id,project_id:h.project_id,first_time_event_hash:h.first_time_event_hash,event_name:h.event_name,property_filters:h.property_filters,pending_variant:h.pending_variant})},this),this.activatedFirstTimeEvents&&p.each(this.activatedFirstTimeEvents,function(h,g){var d=oC(g);h&&!c.has(d)&&this.flags&&this.flags.has(d)&&c.set(d,this.flags.get(d))},this),this.flags=c,this.pendingFirstTimeEvents=l,this._traceparent=i,this._loadTargetingIfNeeded()}.bind(this)).catch(function(a){this.markFetchComplete(),ve.error(a)}.bind(this))}.bind(this)).catch(function(s){this.markFetchComplete(),ve.error(s)}.bind(this)),this.fetchPromise},N.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){ve.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},N.prototype._loadTargetingIfNeeded=function(){var t=!1;p.each(this.pendingFirstTimeEvents,function(n){n.property_filters&&!p.isEmptyObject(n.property_filters)&&(t=!0)}),t&&this.getTargeting().then(function(){ve.log("targeting loaded for property filter evaluation")})},N.prototype.getTargeting=function(){return Op(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(t){ve.error("Failed to load targeting: "+t)}.bind(this))},N.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||p.isEmptyObject(this.pendingFirstTimeEvents)||(E[Ge]&&p.isFunction(E[Ge].then)?E[Ge].then(function(i){this._processFirstTimeEventCheck(t,n,i)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))},N.prototype._processFirstTimeEventCheck=function(t,n,i){p.each(this.pendingFirstTimeEvents,function(e,r){if(!this.activatedFirstTimeEvents[r]){var o=e.flag_key,s;if(!i&&e.property_filters&&!p.isEmptyObject(e.property_filters)){ve.warn('Skipping event check for "'+o+'" - property filters require targeting library');return}if(!i)s={matches:t===e.event_name,error:null};else{var a={event_name:e.event_name,property_filters:e.property_filters};s=i.eventMatchesCriteria(t,n,a)}if(s.error){ve.error('Error checking first-time event for flag "'+o+'": '+s.error);return}if(s.matches){ve.log('First-time event matched for flag "'+o+'": '+t);var u={key:e.pending_variant.variant_key,value:e.pending_variant.variant_value,experiment_id:e.pending_variant.experiment_id,is_experiment_active:e.pending_variant.is_experiment_active};this.flags.set(o,u),this.activatedFirstTimeEvents[r]=!0,this.recordFirstTimeEvent(e.flag_id,e.project_id,e.first_time_event_hash)}}},this)},N.prototype.getFirstTimeEventApiRoute=function(t){return this.getFullApiRoute()+"/"+t+"/first-time-events"},N.prototype.recordFirstTimeEvent=function(t,n,i){var e=this.getMpProperty("distinct_id"),r=Ah(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",$e.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(t)+"?"+o.toString(),a={distinct_id:e,project_id:n,first_time_event_hash:i};ve.log("Recording first-time event for flag: "+t),this.fetch.call(E,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r},body:JSON.stringify(a)}).catch(function(u){ve.error("Failed to record first-time event for flag "+t+": "+u)})},N.prototype.getVariant=function(t,n){return this.fetchPromise?this.fetchPromise.then(function(){return this.getVariantSync(t,n)}.bind(this)).catch(function(i){return ve.error(i),n}):new Promise(function(i){ve.critical("Feature Flags not initialized"),i(n)})},N.prototype.getVariantSync=function(t,n){if(!this.areFlagsReady())return ve.log("Flags not loaded yet"),n;var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(ve.log('No flag found: "'+t+'"'),n)},N.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return ve.error(i),n})},N.prototype.getFeatureData=function(t,n){return ve.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(t,n)},N.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},N.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then(function(){return this.isEnabledSync(t,n)}.bind(this)).catch(function(i){return ve.error(i),n})},N.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(ve.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i},N.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var i={"Experiment name":t,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};n.experiment_id!=="undefined"&&(i.$experiment_id=n.experiment_id),n.is_experiment_active!=="undefined"&&(i.$is_experiment_active=n.is_experiment_active),n.is_qa_tester!=="undefined"&&(i.$is_qa_tester=n.is_qa_tester),this.track("$experiment_started",i)}},N.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},ka(N),N.prototype.are_flags_ready=N.prototype.areFlagsReady,N.prototype.get_variant=N.prototype.getVariant,N.prototype.get_variant_sync=N.prototype.getVariantSync,N.prototype.get_variant_value=N.prototype.getVariantValue,N.prototype.get_variant_value_sync=N.prototype.getVariantValueSync,N.prototype.is_enabled=N.prototype.isEnabled,N.prototype.is_enabled_sync=N.prototype.isEnabledSync,N.prototype.update_context=N.prototype.updateContext,N.prototype.get_feature_data=N.prototype.getFeatureData,N.prototype.getTargeting=N.prototype.getTargeting;var sC=at("recorder"),xp="mp_iframe_handshake_request",kp="mp_iframe_handshake_response",Oe=function(t){this.mixpanelInstance=t.mixpanelInstance,this.getMpConfig=t.getConfigFunc,this.getTabId=t.getTabIdFunc,this.reportError=t.reportErrorFunc,this.getDistinctId=t.getDistinctIdFunc,this.loadExtraBundle=t.loadExtraBundle,this.recorderSrc=t.recorderSrc,this.targetingSrc=t.targetingSrc,this.libBasePath=t.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Oe.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return P.log("Load recorder check skipped due to disable_persistence config"),U.resolve(!1);var t=new qe(Ta),n=this.getTabId();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(La(i[e])||i[e].tabId===n)return!0;return!1}).catch(p.bind(function(i){return this.reportError("Error checking recording registry",i),!1},this))},Oe.prototype.checkAndStartSessionRecording=function(t,n){if(!E.MutationObserver)return P.critical("Browser does not support MutationObserver; skipping session recording"),U.resolve();var i=p.bind(function(a){return new U(p.bind(function(u){var c=yr(p.bind(function(){this._recorder=this._recorder||new E[_o](this.mixpanelInstance),this._recorder.resumeRecording(a),u()},this));if(p.isUndefined(E[_o])){var l=this.recorderSrc||this.libBasePath+Gp;this.loadExtraBundle(l,c)}else c()},this))},this),e=Bh(this.getMpConfig("record_allowed_iframe_origins"),sC),r=e.length>0;if(r&&(this._setupParentFrameListener(e),E.parent!==E))return this._setupChildFrameListener(e,i),this._sendParentFrameRequestWithRetry(e),U.resolve();var o=p.isUndefined(n)?this.getMpConfig("record_sessions_percent"):n,s=o>0&&Math.random()*100<=o;return t||s?i(!0):this.shouldLoadRecorder().then(p.bind(function(a){return a?i(!1):U.resolve()},this))},Oe.prototype.isRecording=function(){if(!this._recorder||!p.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(t){return this.reportError("Error checking if recording is active",t),!1}},Oe.prototype.startRecordingOnEvent=function(t,n){var i=this.isRecording(),e=this.getMpConfig("recording_event_triggers");if(!i&&e){var r=e[t];if(r&&typeof r.percentage=="number"){var o=r.percentage,s=r.property_filters;if(s&&!p.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+du;Op(this.loadExtraBundle,a).then(function(u){try{var c=u.eventMatchesCriteria(t,n,{event_name:t,property_filters:s});c.matches&&this.checkAndStartSessionRecording(!1,o)}catch(l){P.critical("Could not parse recording event trigger properties logic:",l)}}.bind(this)).catch(function(u){P.critical("Failed to load targeting library:",u)})}else this.checkAndStartSessionRecording(!1,o)}}},Oe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():U.resolve()},Oe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():U.resolve()},Oe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():U.resolve()},Oe.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Oe.prototype.getSessionRecordingProperties=function(){var t={},n=this.getSessionReplayId();return n&&(t.$mp_replay_id=n),t},Oe.prototype.getSessionReplayUrl=function(){var t=null,n=this.getSessionReplayId();if(n){var i=p.HTTPBuildQuery({replay_id:n,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});t="https://mixpanel.com/projects/replay-redirect?"+i}return t},Oe.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},Oe.prototype.getRecorder=function(){return this._recorder},Oe.prototype._setupChildFrameListener=function(t,n){if(!this._childFrameMessageHandler){var i=this;this._childFrameMessageHandler=function(e){if(t.indexOf(e.origin)!==-1){var r=e.data;r&&r.type===kp&&r.token===i.getMpConfig("token")&&r.replayId&&(i._parentReplayId=r.replayId,r.distinctId&&i.mixpanelInstance.identify(r.distinctId),i._parentFrameRetryActive=!1,E.removeEventListener("message",i._childFrameMessageHandler),i._childFrameMessageHandler=null,n(!0))}},E.addEventListener("message",this._childFrameMessageHandler)}},Oe.prototype._sendParentFrameRequest=function(t){var n={};n.type=xp,n.token=this.getMpConfig("token");for(var i=0;i<t.length;i++)try{E.parent.postMessage(n,t[i])}catch(e){}},Oe.prototype._sendParentFrameRequestWithRetry=function(t){var n=this,i=10,e=0,r=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(t);function o(){setTimeout(function(){!n._parentFrameRetryActive||n._parentReplayId||++e>=i||(n._sendParentFrameRequest(t),r*=2,o())},r)}o()},Oe.prototype._setupParentFrameListener=function(t){if(!this._parentFrameMessageHandler){var n=this;this._parentFrameMessageHandler=function(i){if(t.indexOf(i.origin)!==-1){var e=i.data;if(e&&e.type===xp&&e.token===n.getMpConfig("token")){var r=n.getSessionReplayId();if(r){var o={};o.type=kp,o.token=n.getMpConfig("token"),o.replayId=r,o.distinctId=n.getDistinctId(),i.source.postMessage(o,i.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}},ka(Oe);var lt=function(){};lt.prototype.create_properties=function(){},lt.prototype.event_handler=function(){},lt.prototype.after_track_handler=function(){},lt.prototype.init=function(t){return this.mp=t,this},lt.prototype.track=function(t,n,i,e){var r=this,o=p.dom_query(t);if(o.length===0){P.error("The DOM query ("+t+") returned 0 elements");return}return p.each(o,function(s){p.register_event(s,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(e,c,u,!0),l),r.mp.track(n,c,r.track_callback(e,c,u))})},this),!0},lt.prototype.track_callback=function(t,n,i,e){e=e||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(t&&t(e,n)===!1)&&r.after_track_handler(n,i,e))}},lt.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=p.extend({},t),i};var Er=function(){this.override_event="click"};p.inherit(Er,lt),Er.prototype.create_properties=function(t,n){var i=Er.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Er.prototype.event_handler=function(t,n,i){i.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||t.preventDefault()},Er.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var uo=function(){this.override_event="submit"};p.inherit(uo,lt),uo.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()},uo.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var Rt="$set",Ir="$set_once",We="$unset",qt="$add",et="$append",Wt="$union",ft="$remove",aC="$delete",Rp={set_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[Rt]=e,i},unset_action:function(t){var n={},i=[];return p.isArray(t)||(t=[t]),p.each(t,function(e){this._is_reserved_property(e)||i.push(e)},this),n[We]=i,n},set_once_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[Ir]=e,i},union_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=p.isArray(r)?r:[r])},this):e[t]=p.isArray(n)?n:[n],i[Wt]=e,i},append_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[et]=e,i},remove_action:function(t,n){var i={},e={};return p.isObject(t)?p.each(t,function(r,o){this._is_reserved_property(o)||(e[o]=r)},this):e[t]=n,i[ft]=e,i},delete_action:function(){var t={};return t[aC]="",t}},ae=function(){};p.extend(ae.prototype,Rp),ae.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i},ae.prototype.set=wr(function(t,n,i){var e=this.set_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)}),ae.prototype.set_once=wr(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)}),ae.prototype.unset=wr(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),ae.prototype.union=wr(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),ae.prototype.delete=wr(function(t){var n=this.delete_action();return this._send_request(n,t)}),ae.prototype.remove=wr(function(t,n,i){var e=this.remove_action(t,n);return this._send_request(e,i)}),ae.prototype._send_request=function(t,n){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var i=p.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ae.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"},ae.prototype._get_config=function(t){return this._mixpanel.get_config(t)},ae.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ae.prototype.remove=ae.prototype.remove,ae.prototype.set=ae.prototype.set,ae.prototype.set_once=ae.prototype.set_once,ae.prototype.union=ae.prototype.union,ae.prototype.unset=ae.prototype.unset,ae.prototype.toString=ae.prototype.toString;var B=function(){};p.extend(B.prototype,Rp),B.prototype._init=function(t){this._mixpanel=t},B.prototype.set=xt(function(t,n,i){var e=this.set_action(t,n);return p.isObject(t)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[Rt]=p.extend({},p.info.people_properties(),e[Rt]),this._send_request(e,i)}),B.prototype.set_once=xt(function(t,n,i){var e=this.set_once_action(t,n);return p.isObject(t)&&(i=n),this._send_request(e,i)}),B.prototype.unset=xt(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),B.prototype.increment=xt(function(t,n,i){var e={},r={};return p.isObject(t)?(p.each(t,function(o,s){if(!this._is_reserved_property(s))if(isNaN(parseFloat(o))){P.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[s]=o},this),i=n):(p.isUndefined(n)&&(n=1),r[t]=n),e[qt]=r,this._send_request(e,i)}),B.prototype.append=xt(function(t,n,i){p.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)}),B.prototype.remove=xt(function(t,n,i){p.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)}),B.prototype.union=xt(function(t,n,i){p.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),B.prototype.track_charge=xt(function(){P.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),B.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},B.prototype.delete_user=function(){if(!this._identify_called()){P.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)},B.prototype.toString=function(){return this._mixpanel.toString()+".people"},B.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(t.$device_id=i),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var o=p.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(t),p.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),p.truncate(o,255))},B.prototype._get_config=function(t){return this._mixpanel.get_config(t)},B.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},B.prototype._enqueue=function(t){Rt in t?this._mixpanel.persistence._add_to_people_queue(Rt,t):Ir in t?this._mixpanel.persistence._add_to_people_queue(Ir,t):We in t?this._mixpanel.persistence._add_to_people_queue(We,t):qt in t?this._mixpanel.persistence._add_to_people_queue(qt,t):et in t?this._mixpanel.persistence._add_to_people_queue(et,t):ft in t?this._mixpanel.persistence._add_to_people_queue(ft,t):Wt in t?this._mixpanel.persistence._add_to_people_queue(Wt,t):P.error("Invalid call to _enqueue():",t)},B.prototype._flush_one_queue=function(t,n,i,e){var r=this,o=p.extend({},this._mixpanel.persistence.load_queue(t)),s=o;!p.isUndefined(o)&&p.isObject(o)&&!p.isEmptyObject(o)&&(r._mixpanel.persistence._pop_from_people_queue(t,o),r._mixpanel.persistence.save(),e&&(s=e(o)),n.call(r,s,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(t,o),p.isUndefined(i)||i(a,u)}))},B.prototype._flush=function(t,n,i,e,r,o,s){var a=this;this._flush_one_queue(Rt,this.set,t),this._flush_one_queue(Ir,this.set_once,e),this._flush_one_queue(We,this.unset,o,function(v){return p.keys(v)}),this._flush_one_queue(qt,this.increment,n),this._flush_one_queue(Wt,this.union,r);var u=this._mixpanel.persistence.load_queue(et);if(!p.isUndefined(u)&&p.isArray(u)&&u.length)for(var c,l=function(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(et,c),p.isUndefined(i)||i(v,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(et),c=u.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(c)||a.append(c,l);var h=this._mixpanel.persistence.load_queue(ft);if(!p.isUndefined(h)&&p.isArray(h)&&h.length)for(var g,d=function(v,m){v===0&&a._mixpanel.persistence._add_to_people_queue(ft,g),p.isUndefined(s)||s(v,m)},y=h.length-1;y>=0;y--)h=this._mixpanel.persistence.load_queue(ft),g=h.pop(),a._mixpanel.persistence.save(),p.isEmptyObject(g)||a.remove(g,d)},B.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},B.prototype.set=B.prototype.set,B.prototype.set_once=B.prototype.set_once,B.prototype.unset=B.prototype.unset,B.prototype.increment=B.prototype.increment,B.prototype.append=B.prototype.append,B.prototype.remove=B.prototype.remove,B.prototype.union=B.prototype.union,B.prototype.track_charge=B.prototype.track_charge,B.prototype.clear_charges=B.prototype.clear_charges,B.prototype.delete_user=B.prototype.delete_user,B.prototype.toString=B.prototype.toString;var Qa="__mps",eu="__mpso",tu="__mpus",ru="__mpa",nu="__mpap",iu="__mpr",ou="__mpu",Ap="$people_distinct_id",co="__alias",gn="__timers",uC=[Qa,eu,tu,ru,nu,iu,ou,Ap,co,gn],q=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(P.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&p.localStorage.is_supported()?this.storage=p.localStorage:this.storage=p.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};q.prototype.properties=function(){var t={};return this.load(),p.each(this.props,function(n,i){p.include(uC,i)||(t[i]=n)}),t},q.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=p.extend({},t))}},q.prototype.upgrade=function(){var t,n;this.storage===p.localStorage?(t=p.cookie.parse(this.name),p.cookie.remove(this.name),p.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===p.cookie&&(n=p.localStorage.parse(this.name),p.localStorage.remove(this.name),n&&this.register_once(n))},q.prototype.save=function(){this.disabled||this.storage.set(this.name,_r(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},q.prototype.load_prop=function(t){return this.load(),this.props[t]},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(t,n,i){return p.isObject(t)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),p.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=e)},this),this.save(),!0):!1},q.prototype.register=function(t,n){return p.isObject(t)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),p.extend(this.props,t),this.save(),!0):!1},q.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},q.prototype.update_search_keyword=function(t){this.register(p.info.searchInfo(t))},q.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:p.info.referringDomain(t)||"$direct"},"")},q.prototype.get_referrer_info=function(){return p.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},q.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},q.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},q.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},q.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},q.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},q.prototype.get_cross_subdomain=function(){return this.cross_subdomain},q.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},q.prototype._add_to_people_queue=function(t,n){var i=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(Rt),o=this._get_or_create_queue(Ir),s=this._get_or_create_queue(We),a=this._get_or_create_queue(qt),u=this._get_or_create_queue(Wt),c=this._get_or_create_queue(ft,[]),l=this._get_or_create_queue(et,[]);i===Qa?(p.extend(r,e),this._pop_from_people_queue(qt,e),this._pop_from_people_queue(Wt,e),this._pop_from_people_queue(We,e)):i===eu?(p.each(e,function(f,h){h in o||(o[h]=f)}),this._pop_from_people_queue(We,e)):i===tu?p.each(e,function(f){p.each([r,o,a,u],function(h){f in h&&delete h[f]}),p.each(l,function(h){f in h&&delete h[f]}),s[f]=!0}):i===ru?(p.each(e,function(f,h){h in r?r[h]+=f:(h in a||(a[h]=0),a[h]+=f)},this),this._pop_from_people_queue(We,e)):i===ou?(p.each(e,function(f,h){p.isArray(f)&&(h in u||(u[h]=[]),p.each(f,function(g){p.include(u[h],g)||u[h].push(g)}))}),this._pop_from_people_queue(We,e)):i===iu?(c.push(e),this._pop_from_people_queue(et,e)):i===nu&&(l.push(e),this._pop_from_people_queue(We,e)),P.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),P.log(n),this.save()},q.prototype._pop_from_people_queue=function(t,n){var i=this.props[this._get_queue_key(t)];p.isUndefined(i)||p.each(n,function(e,r){t===et||t===ft?p.each(i,function(o){o[r]===e&&delete o[r]}):delete i[r]},this)},q.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},q.prototype._get_queue_key=function(t){if(t===Rt)return Qa;if(t===Ir)return eu;if(t===We)return tu;if(t===qt)return ru;if(t===et)return nu;if(t===ft)return iu;if(t===Wt)return ou;P.error("Invalid queue:",t)},q.prototype._get_or_create_queue=function(t,n){var i=this._get_queue_key(t);return n=p.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},q.prototype.set_event_timer=function(t,n){var i=this.load_prop(gn)||{};i[t]=n,this.props[gn]=i,this.save()},q.prototype.remove_event_timer=function(t){var n=this.load_prop(gn)||{},i=n[t];return p.isUndefined(i)||(delete this.props[gn][t],this.save()),i};var lo,su=function(t,n){throw new Error(t+" not available in this build.")},Se,Mp=0,Tp=1,Le="mixpanel",$p="base64",cC="json",au="$device:",lC="strict",fC="fallback",hC="disabled",Or=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Pp=!Or&&Ke.indexOf("MSIE")===-1&&Ke.indexOf("Mozilla")===-1,fo=null;st.sendBeacon&&(fo=function(){return st.sendBeacon.apply(st,arguments)});var Np={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},uu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Np,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:$p,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:It,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:It,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:1800*1e3,record_mask_inputs:!0,record_max_ms:un,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:hC},Lp=!1,w=function(){},ho=function(t,n,i){var e,r=i===Le?Se:Se[i];if(r&&lo===Mp)e=r;else{if(r&&!p.isArray(r)){P.error("You have already initialized "+i);return}e=new w}if(e._cached_groups={},e._init(t,n,i),e.people=new B,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var o=p.info.campaignParams(null),s={},a=!1;p.each(o,function(c,l){s["initial_"+l]=c,c&&(a=!0)}),a&&e.people.set_once(s)}$e.DEBUG=$e.DEBUG||e.get_config("debug");var u=lo===Mp?"module":"snippet";return E.dispatchEvent(new E.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:u,token:t,name:i,info:p.info}})),!p.isUndefined(r)&&p.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};w.prototype.init=function(t,n,i){if(p.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Le){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=ho(t,n,i);return Se[i]=e,e._loaded(),e},w.prototype._init=function(t,n,i){n=n||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in n)){var r=n.api_host||uu.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=cC)}if(this.hooks={},this.set_config(p.extend({},uu,e,n,{name:i,token:t,callback_fn:(i===Le?i:Le+"."+i)+"._jsc"})),this.recorderManager=new Oe({mixpanelInstance:this,getConfigFunc:p.bind(this.get_config,this),setConfigFunc:p.bind(this.set_config,this),getTabIdFunc:p.bind(this.get_tab_id,this),reportErrorFunc:p.bind(this.report_error,this),getDistinctIdFunc:p.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:su}),this._jsc=It,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!p.localStorage.is_supported(!0)||!Or)this._batch_requests=!1,P.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),p.each(this.get_batcher_configs(),function(u){P.log("Clearing batch queue "+u.queue_key),p.localStorage.remove(u.queue_key)});else if(this.init_batchers(),fo&&E.addEventListener){var o=p.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(u){u.persisted&&o()}),E.addEventListener("visibilitychange",function(){F.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new q(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=p.UUID();this.get_distinct_id()||this.register_once({distinct_id:au+s,$device_id:s},""),this.flags=new N({getFullApiRoute:p.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:p.bind(this.get_config,this),setConfigFunc:p.bind(this.set_config,this),getPropertyFunc:p.bind(this.get_property,this),trackingFunc:p.bind(this.track,this),loadExtraBundle:su,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+du}),this.flags.init(),this.flags=this.flags,this.autocapture=new be(this),this.autocapture.init(),this._init_tab_id();var a=this.get_config("remote_settings_mode");a===lC||a===fC?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(p.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording()},w.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))P.log("Tab ID initialization skipped due to disable_persistence config");else if(p.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+t,i="mp_gen_new_tab_id_"+t;(p.sessionStorage.get(i)||!p.sessionStorage.get(n))&&p.sessionStorage.set(n,"$tab-"+p.UUID()),p.sessionStorage.set(i,"1"),this.tab_id=p.sessionStorage.get(n),E.addEventListener("beforeunload",function(){p.sessionStorage.remove(i)})}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.")},w.prototype.get_tab_id=function(){return this.tab_id||null},w.prototype._check_and_start_session_recording=Ot(function(t){return this.recorderManager.checkAndStartSessionRecording(t)}),w.prototype._start_recording_on_event=function(t,n){return this.recorderManager.startRecordingOnEvent(t,n)},w.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},w.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},w.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},w.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},w.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},w.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},w.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},w.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},w.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},w.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 t=p.info.campaignParams(null);p.each(t,function(n,i){this.unregister(i)}.bind(this))}},w.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(F.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(p.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(F.referrer)},w.prototype._dom_loaded=function(){p.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||p.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue},w.prototype._track_dom=function(t,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Lp)return this.__dom_loaded_queue.push([t,n]),!1;var i=new t().init(this);return i.track.apply(i,n)},w.prototype._prepare_callback=function(t,n){if(p.isUndefined(t))return null;if(Or){var i=function(s){t(s,n)};return i}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(s){delete e[r],t(s,n)},o}},w.prototype._send_request=function(t,n,i,e){var r=!0;if(Pp)return this.__request_queue.push(arguments),r;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!e&&(p.isFunction(i)||typeof i=="string")&&(e=i,i=null),i=p.extend(o,i||{}),Or||(i.method="GET");var a=i.method==="POST",u=fo&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),Or||(e?n.callback=e:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(n.data),delete n.data),p.extend(n,this.get_config("api_extra_query_params")),t+="?"+p.HTTPBuildQuery(n);var l=this;if("img"in n){var f=F.createElement("img");f.src=t,F.body.appendChild(f)}else if(u){try{r=fo(t,s)}catch(m){l.report_error(m),r=!1}try{e&&e(r?1:0)}catch(m){l.report_error(m)}}else if(Or)try{var h=new XMLHttpRequest;h.open(i.method,t,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),p.each(g,function(m,_){h.setRequestHeader(_,m)}),i.timeout_ms&&typeof h.timeout!="undefined"){h.timeout=i.timeout_ms;var d=new Date().getTime()}h.withCredentials=!0,h.onreadystatechange=function(){if(h.readyState===4)if(h.status===200){if(e)if(c){var m;try{m=p.JSONDecode(h.responseText)}catch(C){if(l.report_error(C),i.ignore_json_errors)m=h.responseText;else return}e(m)}else e(Number(h.responseText))}else{var _;if(h.timeout&&!h.status&&new Date().getTime()-d>=h.timeout?_="timeout":_="Bad HTTP status: "+h.status+" "+h.statusText,l.report_error(_),e)if(c){var b=h.responseHeaders||{};e({status:0,httpStatusCode:h.status,error:_,retryAfter:b["Retry-After"]})}else e(0)}},h.send(s)}catch(m){l.report_error(m),r=!1}else{var y=F.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=t;var v=F.getElementsByTagName("script")[0];v.parentNode.insertBefore(y,v)}return r},w.prototype._fetch_remote_settings=function(t){var n=this,i=function(){t==="strict"&&n.set_config({record_sessions_percent:0})};if(!E.AbortController)return P.critical("Remote settings unavailable: missing minimum required APIs"),i(),Promise.resolve();var e=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,r={$lib_version:$e.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=p.HTTPBuildQuery(r),s=e+"?"+o,a=new AbortController,u=setTimeout(function(){a.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(n.get_config("token")+":")},signal:a.signal};return E.fetch(s,c).then(function(l){if(clearTimeout(u),!l.ok){P.critical("Network response was not ok"),i();return}return l.json()}).then(function(l){if(l&&l.sdk_config&&l.sdk_config.config){var f=l.sdk_config.config,h={};p.each(f,function(g,d){uu.hasOwnProperty(d)&&(h[d]=g)}),p.isEmptyObject(h)?(P.critical("No valid config keys found in remote settings."),i()):n.set_config(h)}else i()}).catch(function(l){clearTimeout(u),P.critical("Failed to fetch remote settings",l),i()})},w.prototype._execute_array=function(t){var n,i=[],e=[],r=[];p.each(t,function(s){s&&(n=s[0],p.isArray(n)?r.push(s):typeof s=="function"?s.call(this):p.isArray(s)&&n==="alias"?i.push(s):p.isArray(s)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(s):e.push(s))},this);var o=function(s,a){p.each(s,function(u){if(p.isArray(u[0])){var c=a;p.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};o(i,this),o(e,this),o(r,this)},w.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},w.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs},w.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=p.bind(function(i){return new Ue(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:p.bind(function(e,r,o){var s=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+s[i.api_name],this._encode_data_for_request(e),r,this._prepare_callback(o,e))},this),beforeSendHook:p.bind(function(e){var r=this._run_hook("before_send_"+i.type,e);return r?r[0]:null},this),stopAllBatchingFunc:p.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},w.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,p.each(this.request_batchers,function(t){t.start()}))},w.prototype.stop_batch_senders=function(){this._batch_requests=!1,p.each(this.request_batchers,function(t){t.stop(),t.clear()})},w.prototype.push=function(t){this._execute_array([t])},w.prototype.enable=function(t){var n,i,e,r;if(typeof t=="undefined")this._flags.disable_all_events=!1;else{for(n={},i=[],e=0;e<t.length;e++)n[t[e]]=!0;for(r=0;r<this.__disabled_events.length;r++)n[this.__disabled_events[r]]||i.push(this.__disabled_events[r]);this.__disabled_events=i}},w.prototype.disable=function(t){typeof t=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},w.prototype._encode_data_for_request=function(t){var n=_r(t);return this.get_config("api_payload_format")===$p&&(n=p.base64Encode(n)),{data:n}},w.prototype._track_or_batch=function(t,n){var i=p.truncate(t.data,255),e=t.endpoint,r=t.batcher,o=t.should_send_immediately,s=t.send_request_options||{};n=n||It;var a=!0,u=p.bind(function(){return s.skip_hooks||(i=this._run_hook("before_send_"+t.type,i),i&&(i=i[0])),i?(P.log("MIXPANEL REQUEST:"),P.log(i),this._send_request(e,this._encode_data_for_request(i),s,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!o?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},w.prototype.track=Ot(function(t,n,i,e){var r;if(!(i&&i.skip_hooks)){if(r=this._run_hook("before_track",t,n),r===null)return;t=r[0],n=r[1]}!e&&typeof i=="function"&&(e=i,i=null),i=i||{};var o=i.transport;o&&(i.transport=o);var s=i.send_immediately;if(typeof e!="function"&&(e=It),p.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}n=p.extend({},n),n.token=this.get_config("token");var a=this.persistence.remove_event_timer(t);if(!p.isUndefined(a)){var u=new Date().getTime()-a;n.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?p.info.marketingParams():{};n=p.extend({},p.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var l=this.get_config("property_blacklist");p.isArray(l)?p.each(l,function(h){delete n[h]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(t,n);var f={event:t,properties:n};return r=this._track_or_batch({type:"events",data:f,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:i},e),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(t,n),r}),w.prototype.set_group=Ot(function(t,n,i){p.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,i)}),w.prototype.add_group=Ot(function(t,n,i){var e=this.get_property(t),r={};return e===void 0?(r[t]=[n],this.register(r)):e.indexOf(n)===-1&&(e.push(n),r[t]=e,this.register(r)),this.people.union(t,n,i)}),w.prototype.remove_group=Ot(function(t,n,i){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(n);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,n,i)}),w.prototype.track_with_groups=Ot(function(t,n,i,e){var r=p.extend({},n||{});return p.each(i,function(o,s){o!=null&&(r[s]=o)}),this.track(t,r,e)}),w.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)},w.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]},w.prototype.get_group=function(t,n){var i=this._create_map_key(t,n),e=this._cached_groups[i];return(e===void 0||e._group_key!==t||e._group_id!==n)&&(e=new ae,e._init(this,t,n),this._cached_groups[i]=e),e},w.prototype.track_pageview=Ot(function(t,n){typeof t!="object"&&(t={}),n=n||{};var i=n.event_name||"$mp_web_page_view",e=p.extend(p.info.mpPageViewProperties(),p.info.campaignParams(),p.info.clickParams()),r=p.extend({},e,t);return this.track(i,r)}),w.prototype.track_links=function(){return this._track_dom.call(this,Er,arguments)},w.prototype.track_forms=function(){return this._track_dom.call(this,uo,arguments)},w.prototype.time_event=function(t){if(p.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var pC={persistent:!0},cu=function(t){var n;return p.isObject(t)?n=t:p.isUndefined(t)?n={}:n={days:t},p.extend({},pC,n)};w.prototype.register=function(t,n){var i=this._run_hook("before_register",t,n);if(i!==null){t=i[0],n=i[1];var e=cu(n);e.persistent?this.persistence.register(t,e.days):p.extend(this.unpersisted_superprops,t)}},w.prototype.register_once=function(t,n,i){var e=this._run_hook("before_register_once",t,n,i);if(e!==null){t=e[0],n=e[1],i=e[2];var r=cu(i);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n=="undefined"&&(n="None"),p.each(t,function(o,s){(!this.unpersisted_superprops.hasOwnProperty(s)||this.unpersisted_superprops[s]===n)&&(this.unpersisted_superprops[s]=o)},this))}},w.prototype.unregister=function(t,n){var i=this._run_hook("before_unregister",t,n);i!==null&&(t=i[0],n=i[1],n=cu(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},w.prototype._register_single=function(t,n){var i={};i[t]=n,this.register(i)},w.prototype.identify=function(t,n,i,e,r,o,s,a){var u=this._run_hook("before_identify",t);if(u===null)return-1;t=u[0];var c=this.get_distinct_id();if(t&&c!==t){if(typeof t=="string"&&t.indexOf(au)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}t!==c&&t!==this.get_property(co)&&(this.unregister(co),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,i,e,r,o,s,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags()},w.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=p.UUID();this.register_once({distinct_id:au+t,$device_id:t},""),this._check_and_start_session_recording()},w.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},w.prototype.alias=function(t,n){if(t===this.get_property(Ap))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return p.isUndefined(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(co,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){i.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},w.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},w.prototype.set_config=function(t){if(p.isObject(t)){p.extend(this.config,t);var n=t.batch_size;n&&p.each(this.request_batchers,function(i){i.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),$e.DEBUG=$e.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),p.isObject(t.hooks)&&(this.hooks={},p.each(t.hooks,function(i,e){if(p.isFunction(i))this.hooks[e]=[i];else if(p.isArray(i)){this.hooks[e]=[];for(var r=0;r<i.length;r++)p.isFunction(i[r])||P.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else P.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},w.prototype.get_config=function(t){return this.config[t]},w.prototype._run_hook=function(t){var n=Et.call(arguments,1);return p.each(this.hooks[t],function(i){if(n===null)return null;var e=i.apply(this,n);typeof e=="undefined"?(this.report_error(t+" hook did not return a valid value"),n=null):(p.isArray(e)||(e=[e]),n.splice.apply(n,[0,e.length].concat(e)))},this),n},w.prototype.get_property=function(t){return this.persistence.load_prop([t])},w.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},w.prototype.toString=function(){var t=this.get_config("name");return t!==Le&&(t=Le+"."+t),t},w.prototype._event_is_disabled=function(t){return p.isBlockedUA(Ke)||this._flags.disable_all_events||p.include(this.__disabled_events,t)},w.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&p.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")||p.cookie.get("mp_optout"))&&(p.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},w.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else if(t&&t.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},w.prototype._gdpr_call_func=function(t,n){return n=p.extend({track:p.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")},n),p.localStorage.is_supported()||(n.persistence_type="cookie"),t(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},w.prototype.opt_in_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(eS,t),this._gdpr_update_persistence(t)},w.prototype.opt_out_tracking=function(t){t=p.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(tS,t),this._gdpr_update_persistence(t)},w.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(rS,t)},w.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func($h,t)},w.prototype.clear_opt_in_out_tracking=function(t){t=p.extend({enable_persistence:!0},t),this._gdpr_call_func(nS,t),this._gdpr_update_persistence(t)},w.prototype.report_error=function(t,n){P.error.apply(P.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){P.error(i)}},w.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)},w.prototype.remove_hook=function(t,n){var i;this.hooks[t]&&(i=this.hooks[t].indexOf(n),i!==-1?this.hooks[t].splice(i,1):P.log("remove_hook failed. Matching hook was not found"))},w.prototype.init=w.prototype.init,w.prototype.reset=w.prototype.reset,w.prototype.enable=w.prototype.enable,w.prototype.disable=w.prototype.disable,w.prototype.time_event=w.prototype.time_event,w.prototype.track=w.prototype.track,w.prototype.track_links=w.prototype.track_links,w.prototype.track_forms=w.prototype.track_forms,w.prototype.track_pageview=w.prototype.track_pageview,w.prototype.register=w.prototype.register,w.prototype.register_once=w.prototype.register_once,w.prototype.unregister=w.prototype.unregister,w.prototype.identify=w.prototype.identify,w.prototype.alias=w.prototype.alias,w.prototype.name_tag=w.prototype.name_tag,w.prototype.set_config=w.prototype.set_config,w.prototype.get_config=w.prototype.get_config,w.prototype.get_api_host=w.prototype.get_api_host,w.prototype.get_property=w.prototype.get_property,w.prototype.get_distinct_id=w.prototype.get_distinct_id,w.prototype.toString=w.prototype.toString,w.prototype.opt_out_tracking=w.prototype.opt_out_tracking,w.prototype.opt_in_tracking=w.prototype.opt_in_tracking,w.prototype.has_opted_out_tracking=w.prototype.has_opted_out_tracking,w.prototype.has_opted_in_tracking=w.prototype.has_opted_in_tracking,w.prototype.clear_opt_in_out_tracking=w.prototype.clear_opt_in_out_tracking,w.prototype.get_group=w.prototype.get_group,w.prototype.set_group=w.prototype.set_group,w.prototype.add_group=w.prototype.add_group,w.prototype.remove_group=w.prototype.remove_group,w.prototype.add_hook=w.prototype.add_hook,w.prototype.remove_hook=w.prototype.remove_hook,w.prototype.track_with_groups=w.prototype.track_with_groups,w.prototype.start_batch_senders=w.prototype.start_batch_senders,w.prototype.stop_batch_senders=w.prototype.stop_batch_senders,w.prototype.start_session_recording=w.prototype.start_session_recording,w.prototype.stop_session_recording=w.prototype.stop_session_recording,w.prototype.pause_session_recording=w.prototype.pause_session_recording,w.prototype.resume_session_recording=w.prototype.resume_session_recording,w.prototype.get_session_recording_properties=w.prototype.get_session_recording_properties,w.prototype.get_session_replay_url=w.prototype.get_session_replay_url,w.prototype.get_tab_id=w.prototype.get_tab_id,w.prototype.DEFAULT_API_ROUTES=Np,w.prototype.__get_recorder=w.prototype.__get_recorder,w.prototype.__get_recording_init_promise=w.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 At={},dC=function(){p.each(At,function(t,n){n!==Le&&(Se[n]=t)}),Se._=p},vC=function(){Se.init=function(t,n,i){if(i)return Se[i]||(Se[i]=At[i]=ho(t,n,i),Se[i]._loaded()),Se[i];var e=Se;At[Le]?e=At[Le]:t&&(e=ho(t,n,Le),e._loaded(),At[Le]=e),Se=e,lo===Tp&&(E[Le]=Se),dC()}},gC=function(){function t(){t.done||(t.done=!0,Lp=!0,Pp=!1,p.each(At,function(e){e._dom_loaded()}))}function n(){try{F.documentElement.doScroll("left")}catch(e){setTimeout(n,1);return}t()}if(F.addEventListener)F.readyState==="complete"?t():F.addEventListener("DOMContentLoaded",t,!1);else if(F.attachEvent){F.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch(e){}F.documentElement.doScroll&&i&&n()}p.register_event(E,"load",t,!0)};function mC(t){if(su=t,lo=Tp,Se=E[Le],p.isUndefined(Se)){P.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(Se.__loaded||Se.config&&Se.persistence){P.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=Se.__SV||0;if(n<1.1){P.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}p.each(Se._i,function(i){i&&p.isArray(i)&&(At[i[i.length-1]]=ho.apply(this,i))}),vC(),Se.init(),p.each(At,function(i){i._loaded()}),gC()}function yC(t,n){n()}mC(yC)})();
|
|
1
|
+
(function(){"use strict";var E;if(typeof window=="undefined"){var Su={hostname:""};E={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Su,referrer:""},screen:{width:0,height:0},location:Su,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else E=window;var Pe={DEBUG:!1,LIB_VERSION:"2.79.0"},Ve="__mp_targeting",Is="__mp_recorder",Zp="__MP_RECORDER_FILENAME__",Cu="__MP_TARGETING_FILENAME__";function Eu(t,n){(n==null||n>t.length)&&(n=t.length);for(var i=0,e=new Array(n);i<n;i++)e[i]=t[i];return e}function Iu(t,n,i,e,r,s,o){try{var a=t[s](o),u=a.value}catch(c){i(c);return}a.done?n(u):Promise.resolve(u).then(e,r)}function Cn(t){return function(){var n=this,i=arguments;return new Promise(function(e,r){var s=t.apply(n,i);function o(u){Iu(s,e,r,o,a,"next",u)}function a(u){Iu(s,e,r,o,a,"throw",u)}o(void 0)})}}function En(t,n,i){return Ou()?En=Reflect.construct:En=function(r,s,o){var a=[null];a.push.apply(a,s);var u=Function.bind.apply(r,a),c=new u;return o&&Lr(c,o.prototype),c},En.apply(null,arguments)}function Qp(t,n){for(var i=0;i<n.length;i++){var e=n[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}function ie(t,n,i){return n&&Qp(t.prototype,n),t}function z(){return z=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])}return t},z.apply(this,arguments)}function Os(t){return Os=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},Os(t)}function ce(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&Lr(t,n)}function M(t,n){return n!=null&&typeof Symbol!="undefined"&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}function ed(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Lt(t,n){if(t==null)return{};var i={},e=Object.keys(t),r,s;for(s=0;s<e.length;s++)r=e[s],!(n.indexOf(r)>=0)&&(i[r]=t[r]);return i}function Lr(t,n){return Lr=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},Lr(t,n)}function T(t){"@swc/helpers - typeof";return t&&typeof Symbol!="undefined"&&t.constructor===Symbol?"symbol":typeof t}function td(t,n){if(t){if(typeof t=="string")return Eu(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Eu(t,n)}}function Dr(t){var n=typeof Map=="function"?new Map:void 0;return Dr=function(e){if(e===null||!ed(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof n!="undefined"){if(n.has(e))return n.get(e);n.set(e,r)}function r(){return En(e,arguments,Os(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Lr(r,e)},Dr(t)}function Ou(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(Ou=function(){return!!t})()}function I(t,n){var i=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=td(t))||n){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dt(t,n){var i,e,r,s,o={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(l){return u([c,l])}}function u(c){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,e&&(r=c[0]&2?e.return:c[0]?e.throw||((r=e.return)&&r.call(e),0):e.next)&&!(r=r.call(e,c[1])).done)return r;switch(e=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,e=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(r=o.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){o=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(c[0]===6&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=n.call(t,o)}catch(l){c=[6,l],e=0}finally{i=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function xs(t){var n=typeof Symbol=="function"&&Symbol.iterator,i=n&&t[n],e=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}var rd=Object.defineProperty,nd=function(t,n,i){return n in t?rd(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},x=function(t,n,i){return nd(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)},xu,id=Object.defineProperty,sd=function(t,n,i){return n in t?id(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},ku=function(t,n,i){return sd(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)},Ie=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Ie||{}),Ru={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Au={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},In={},od=function(){return!!globalThis.Zone};function ks(t){if(In[t])return In[t];var n=globalThis[t],i=n.prototype,e=t in Ru?Ru[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in Au?Au[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!od())return In[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?In[t]=c:i}catch(l){return i}}var Rs={};function vt(t,n,i){var e,r=t+"."+String(i);if(Rs[r])return Rs[r].call(n);var s=ks(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Rs[r]=o,o.call(n)):n[i]}var As={};function Mu(t,n,i){var e=t+"."+String(i);if(As[e])return As[e].bind(n);var r=ks(t),s=r[i];return typeof s!="function"?n[i]:(As[e]=s,s.bind(n))}function ad(t){return vt("Node",t,"childNodes")}function ud(t){return vt("Node",t,"parentNode")}function cd(t){return vt("Node",t,"parentElement")}function ld(t){return vt("Node",t,"textContent")}function fd(t,n){return Mu("Node",t,"contains")(n)}function hd(t){return Mu("Node",t,"getRootNode")()}function pd(t){return!t||!("host"in t)?null:vt("ShadowRoot",t,"host")}function dd(t){return t.styleSheets}function vd(t){return!t||!("shadowRoot"in t)?null:vt("Element",t,"shadowRoot")}function gd(t,n){return vt("Element",t,"querySelector")(n)}function md(t,n){return vt("Element",t,"querySelectorAll")(n)}function yd(){return ks("MutationObserver").constructor}function _d(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var Re={childNodes:ad,parentNode:ud,parentElement:cd,textContent:ld,contains:fd,getRootNode:hd,host:pd,styleSheets:dd,shadowRoot:vd,querySelector:gd,querySelectorAll:md,mutationObserver:yd,patch:_d};function Tu(t){return t.nodeType===t.ELEMENT_NODE}function Fr(t){var n=t&&"host"in t&&"mode"in t&&Re.host(t)||null;return!!(n&&"shadowRoot"in n&&Re.shadowRoot(n)===t)}function Ur(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function wd(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}function bd(t){var n=t.cssText;if(n.split('"').length<3)return n;var i=["@import","url("+JSON.stringify(t.href)+")"];return t.layerName===""?i.push("layer"):t.layerName&&i.push("layer("+t.layerName+")"),t.supportsText&&i.push("supports("+t.supportsText+")"),t.media.length&&i.push(t.media.mediaText),i.join(" ")+";"}function Ms(t){try{var n=t.rules||t.cssRules;if(!n)return null;var i=t.href;!i&&t.ownerNode&&t.ownerNode.ownerDocument&&(i=t.ownerNode.ownerDocument.location.href);var e=Array.from(n,function(r){return Pu(r,i)}).join("");return wd(e)}catch(r){return null}}function Pu(t,n){if(Cd(t)){var i;try{i=Ms(t.styleSheet)||bd(t)}catch(r){i=t.cssText}return t.styleSheet.href?kn(i,t.styleSheet.href):i}else{var e=t.cssText;return Ed(t)&&t.selectorText.includes(":")&&(e=Sd(e)),n?kn(e,n):e}}function Sd(t){var n=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(n,"$1\\$2")}function Cd(t){return"styleSheet"in t}function Ed(t){return"selectorText"in t}var $u=(function(){function t(){ku(this,"idNodeMap",new Map),ku(this,"nodeMetaMap",new WeakMap)}var n=t.prototype;return n.getId=function(e){var r;if(!e)return-1;var s=(r=this.getMeta(e))==null?void 0:r.id;return s!=null?s:-1},n.getNode=function(e){return this.idNodeMap.get(e)||null},n.getIds=function(){return Array.from(this.idNodeMap.keys())},n.getMeta=function(e){return this.nodeMetaMap.get(e)||null},n.removeNodeFromMap=function(e,r){var s=this;r===void 0&&(r=!1);var o=this.getId(e);this.idNodeMap.delete(o),r&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return s.removeNodeFromMap(a,r)})},n.has=function(e){return this.idNodeMap.has(e)},n.hasNode=function(e){return this.nodeMetaMap.has(e)},n.add=function(e,r){var s=r.id;this.idNodeMap.set(s,e),this.nodeMetaMap.set(e,r)},n.replace=function(e,r){var s=this.getNode(e);if(s){var o=this.nodeMetaMap.get(s);o&&this.nodeMetaMap.set(r,o)}this.idNodeMap.set(e,r)},n.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},t})();function Id(){return new $u}function On(t){var n=t.element,i=t.maskInputOptions,e=t.tagName,r=t.type,s=t.value,o=t.maskInputFn,a=s||"",u=r&&Ft(r);return(i[e.toLowerCase()]||u&&i[u])&&(o?a=o(a,n):a="*".repeat(a.length)),a}function Ft(t){return t.toLowerCase()}var Nu="__rrweb_original__";function Od(t){var n=t.getContext("2d");if(!n)return!0;for(var i=50,e=0;e<t.width;e+=i)for(var r=0;r<t.height;r+=i){var s=n.getImageData,o=Nu in s?s[Nu]:s,a=new Uint32Array(o.call(n,e,r,Math.min(i,t.width-e),Math.min(i,t.height-r)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function xn(t){var n=t.type;return t.hasAttribute("data-rr-is-password")?"password":n?Ft(n):null}function Lu(t,n){var i;try{i=new URL(t,n!=null?n:window.location.href)}catch(o){return null}var e=/\.([0-9a-z]+)(?:$)/i,r=i.pathname.match(e),s;return(s=r==null?void 0:r[1])!=null?s:null}function xd(t){var n="";return t.indexOf("//")>-1?n=t.split("/").slice(0,3).join("/"):n=t.split("/")[0],n=n.split("?")[0],n}var kd=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Rd=/^(?:[a-z+]+:)?\/\//i,Ad=/^www\..*/i,Md=/^(data:)([^,]*),(.*)/i;function kn(t,n){return(t||"").replace(kd,function(i,e,r,s,o,a){var u=r||o||a,c=e||s||"";if(!u)return i;if(Rd.test(u)||Ad.test(u)||Md.test(u))return"url("+c+u+c+")";if(u[0]==="/")return"url("+c+(xd(n)+u)+c+")";var l=n.split("/"),f=u.split("/");l.pop();for(var p=I(f),g;!(g=p()).done;){var v=g.value;v!=="."&&(v===".."?l.pop():l.push(v))}return"url("+c+l.join("/")+c+")"})}function Rn(t,n){return n===void 0&&(n=!1),n?t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):t.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function Td(t,n,i){i===void 0&&(i=!1);var e=Array.from(n.childNodes),r=[],s=0;if(e.length>1&&t&&typeof t=="string"){for(var o=Rn(t,i),a=o.length/t.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var c=Rn(e[u].textContent,i),l=100,f=3;f<c.length&&(c[f].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,f),1)!==-1);f++);for(;f<c.length;f++){var p=c.substring(0,f),g=o.split(p),v=-1;if(g.length===2)v=g[0].length;else if(g.length>2&&g[0]===""&&e[u-1].textContent!=="")v=o.indexOf(p,1);else if(g.length===1){if(p=p.substring(0,p.length-1),g=o.split(p),g.length<=1)return r.push(t),r;f=l+1}else f===c.length-1&&(v=o.indexOf(p));if(g.length>=2&&f>l){var y=e[u-1].textContent;if(y&&typeof y=="string"){var d=Rn(y).length;v=o.indexOf(p,d)}v===-1&&(v=g[0].length)}if(v!==-1){for(var m=Math.floor(v/a);m>0&&m<t.length;){if(s+=1,s>50*e.length)return r.push(t),r;var _=Rn(t.substring(0,m),i);if(_.length===v){r.push(t.substring(0,m)),t=t.substring(m),o=o.substring(v);break}else _.length<v?m+=Math.max(1,Math.floor((v-_.length)/a)):m-=Math.max(1,Math.floor((_.length-v)*a))}break}}}}return r.push(t),r}function Pd(t,n){return Td(t,n).join("/* rr_split */")}var $d=1,Nd=new RegExp("[^a-z0-9-_:]"),Br=-2;function Du(){return $d++}function Ld(t){if(M(t,HTMLFormElement))return"form";var n=Ft(t.tagName);return Nd.test(n)?"div":n}var or,Fu,Dd=/^[^ \t\n\r\u000c]+/,Fd=/^[, \t\n\r\u000c]+/;function Ud(t,n){if(n.trim()==="")return n;var i=0;function e(c){var l,f=c.exec(n.substring(i));return f?(l=f[0],i+=l.length,l):""}for(var r=[];e(Fd),!(i>=n.length);){var s=e(Dd);if(s.slice(-1)===",")s=ar(t,s.substring(0,s.length-1)),r.push(s);else{var o="";s=ar(t,s);for(var a=!1;;){var u=n.charAt(i);if(u===""){r.push((s+o).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){i+=1,r.push((s+o).trim());break}else u==="("&&(a=!0);o+=u,i+=1}}}return r.join(", ")}var Uu=new WeakMap;function ar(t,n){return!n||n.trim()===""?n:Ts(t,n)}function Bd(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function Ts(t,n){var i=Uu.get(t);if(i||(i=t.createElement("a"),Uu.set(t,i)),!n)n="";else if(n.startsWith("blob:")||n.startsWith("data:"))return n;return i.setAttribute("href",n),i.href}function Bu(t,n,i,e){return e&&(i==="src"||i==="href"&&!(n==="use"&&e[0]==="#")||i==="xlink:href"&&e[0]!=="#"||i==="background"&&(n==="table"||n==="td"||n==="th")?ar(t,e):i==="srcset"?Ud(t,e):i==="style"?kn(e,Ts(t)):n==="object"&&i==="data"?ar(t,e):e)}function zu(t,n,i){return(t==="video"||t==="audio")&&n==="autoplay"}function zd(t,n,i){try{if(typeof n=="string"){if(t.classList.contains(n))return!0}else for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}if(i)return t.matches(i)}catch(s){}return!1}function An(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return i?An(Re.parentNode(t),n,i):!1;for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return i?An(Re.parentNode(t),n,i):!1}function qu(t,n,i,e){var r;if(Tu(t)){if(r=t,!Re.childNodes(r).length)return!1}else{if(Re.parentElement(t)===null)return!1;r=Re.parentElement(t)}try{if(typeof n=="string"){if(e){if(r.closest("."+n))return!0}else if(r.classList.contains(n))return!0}else if(An(r,n,e))return!0;if(i){if(e){if(r.closest(i))return!0}else if(r.matches(i))return!0}}catch(s){}return!1}function qd(t,n,i){var e=t.contentWindow;if(e){var r=!1,s;try{s=e.document.readyState}catch(u){return}if(s!=="complete"){var o=setTimeout(function(){r||(n(),r=!0)},i);t.addEventListener("load",function(){clearTimeout(o),r=!0,n()});return}var a="about:blank";if(e.location.href!==a||t.src===a||t.src==="")return setTimeout(n,0),t.addEventListener("load",n);t.addEventListener("load",n)}}function Wd(t,n,i){var e=!1,r;try{r=t.sheet}catch(o){return}if(!r){var s=setTimeout(function(){e||(n(),e=!0)},i);t.addEventListener("load",function(){clearTimeout(s),e=!0,n()})}}function Gd(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,s=n.blockSelector,o=n.needsMask,a=n.inlineStylesheet,u=n.maskInputOptions,c=u===void 0?{}:u,l=n.maskTextFn,f=n.maskInputFn,p=n.dataURLOptions,g=p===void 0?{}:p,v=n.inlineImages,y=n.recordCanvas,d=n.keepIframeSrcFn,m=n.newlyAddedElement,_=m===void 0?!1:m,b=n.cssCaptured,C=b===void 0?!1:b,S=Vd(i,e);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Ie.Document,childNodes:[],compatMode:t.compatMode}:{type:Ie.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Ie.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:S};case t.ELEMENT_NODE:return Hd(t,{doc:i,blockClass:r,blockSelector:s,inlineStylesheet:a,maskInputOptions:c,maskInputFn:f,dataURLOptions:g,inlineImages:v,recordCanvas:y,keepIframeSrcFn:d,newlyAddedElement:_,rootId:S});case t.TEXT_NODE:return jd(t,{doc:i,needsMask:o,maskTextFn:l,rootId:S,cssCaptured:C});case t.CDATA_SECTION_NODE:return{type:Ie.CDATA,textContent:"",rootId:S};case t.COMMENT_NODE:return{type:Ie.Comment,textContent:Re.textContent(t)||"",rootId:S};default:return!1}}function Vd(t,n){if(n.hasNode(t)){var i=n.getId(t);return i===1?void 0:i}}function jd(t,n){var i=n.needsMask,e=n.maskTextFn,r=n.rootId,s=n.cssCaptured,o=Re.parentNode(t),a=o&&o.tagName,u="",c=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":s||(u=Re.textContent(t),c&&u&&(u=kn(u,Ts(n.doc)))),!c&&!l&&u&&i&&(u=e?e(u,Re.parentElement(t)):u.replace(/[\S]/g,"*")),{type:Ie.Text,textContent:u||"",rootId:r}}function Hd(t,n){for(var i=n.doc,e=n.blockClass,r=n.blockSelector,s=n.inlineStylesheet,o=n.maskInputOptions,a=o===void 0?{}:o,u=n.maskInputFn,c=n.dataURLOptions,l=c===void 0?{}:c,f=n.inlineImages,p=n.recordCanvas,g=n.keepIframeSrcFn,v=n.newlyAddedElement,y=v===void 0?!1:v,d=n.rootId,m=zd(t,e,r),_=Ld(t),b={},C=t.attributes.length,S=0;S<C;S++){var O=t.attributes[S];zu(_,O.name,O.value)||(b[O.name]=Bu(i,_,Ft(O.name),O.value))}if(_==="link"&&s){var A=Array.from(i.styleSheets).find(function(ze){return ze.href===t.href}),k=null;A&&(k=Ms(A)),k&&(delete b.rel,delete b.href,b._cssText=k)}if(_==="style"&&t.sheet){var $=Ms(t.sheet);$&&(t.childNodes.length>1&&($=Pd($,t)),b._cssText=$)}if(_==="input"||_==="textarea"||_==="select"){var W=t.value,ge=t.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&W?b.value=On({element:t,type:xn(t),tagName:_,value:W,maskInputOptions:a,maskInputFn:u}):ge&&(b.checked=ge)}if(_==="option"&&(t.selected&&!a.select?b.selected=!0:delete b.selected),_==="dialog"&&t.open&&(b.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),_==="canvas"&&p){if(t.__context==="2d")Od(t)||(b.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){var L=t.toDataURL(l.type,l.quality),G=i.createElement("canvas");G.width=t.width,G.height=t.height;var de=G.toDataURL(l.type,l.quality);L!==de&&(b.rr_dataURL=L)}}if(_==="img"&&f){or||(or=i.createElement("canvas"),Fu=or.getContext("2d"));var Y=t,De=Y.currentSrc||Y.getAttribute("src")||"<unknown-src>",Ne=Y.crossOrigin,ke=function(){Y.removeEventListener("load",ke);try{or.width=Y.naturalWidth,or.height=Y.naturalHeight,Fu.drawImage(Y,0,0),b.rr_dataURL=or.toDataURL(l.type,l.quality)}catch(ze){if(Y.crossOrigin!=="anonymous"){Y.crossOrigin="anonymous",Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke);return}else console.warn("Cannot inline img src="+De+"! Error: "+ze)}Y.crossOrigin==="anonymous"&&(Ne?b.crossOrigin=Ne:Y.removeAttribute("crossorigin"))};Y.complete&&Y.naturalWidth!==0?ke():Y.addEventListener("load",ke)}if(_==="audio"||_==="video"){var pe=b;pe.rr_mediaState=t.paused?"paused":"played",pe.rr_mediaCurrentTime=t.currentTime,pe.rr_mediaPlaybackRate=t.playbackRate,pe.rr_mediaMuted=t.muted,pe.rr_mediaLoop=t.loop,pe.rr_mediaVolume=t.volume}if(y||(t.scrollLeft&&(b.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(b.rr_scrollTop=t.scrollTop)),m){var xe=t.getBoundingClientRect(),Jt=xe.width,nt=xe.height;b={class:b.class,rr_width:""+Jt+"px",rr_height:""+nt+"px"}}_==="iframe"&&!g(b.src)&&(t.contentDocument||(b.rr_src=b.src),delete b.src);var Xt;try{customElements.get(_)&&(Xt=!0)}catch(ze){}return{type:Ie.Element,tagName:_,attributes:b,childNodes:[],isSVG:Bd(t)||void 0,needBlock:m,rootId:d,isCustom:Xt}}function te(t){return t==null?"":t.toLowerCase()}function Yd(t,n){if(n.comment&&t.type===Ie.Comment)return!0;if(t.type===Ie.Element){if(n.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"&&t.attributes.as==="script"||t.attributes.rel==="modulepreload")||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&Lu(t.attributes.href)==="js"))return!0;if(n.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(te(t.attributes.name).match(/^msapplication-tile(image|color)$/)||te(t.attributes.name)==="application-name"||te(t.attributes.rel)==="icon"||te(t.attributes.rel)==="apple-touch-icon"||te(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(n.headMetaDescKeywords&&te(t.attributes.name).match(/^description|keywords$/))return!0;if(n.headMetaSocial&&(te(t.attributes.property).match(/^(og|twitter|fb):/)||te(t.attributes.name).match(/^(og|twitter):/)||te(t.attributes.name)==="pinterest"))return!0;if(n.headMetaRobots&&(te(t.attributes.name)==="robots"||te(t.attributes.name)==="googlebot"||te(t.attributes.name)==="bingbot"))return!0;if(n.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(n.headMetaAuthorship&&(te(t.attributes.name)==="author"||te(t.attributes.name)==="generator"||te(t.attributes.name)==="framework"||te(t.attributes.name)==="publisher"||te(t.attributes.name)==="progid"||te(t.attributes.property).match(/^article:/)||te(t.attributes.property).match(/^product:/)))return!0;if(n.headMetaVerification&&(te(t.attributes.name)==="google-site-verification"||te(t.attributes.name)==="yandex-verification"||te(t.attributes.name)==="csrf-token"||te(t.attributes.name)==="p:domain_verify"||te(t.attributes.name)==="verify-v1"||te(t.attributes.name)==="verification"||te(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function ur(t,n){var i=n.doc,e=n.mirror,r=n.blockClass,s=n.blockSelector,o=n.maskTextClass,a=n.maskTextSelector,u=n.skipChild,c=u===void 0?!1:u,l=n.inlineStylesheet,f=l===void 0?!0:l,p=n.maskInputOptions,g=p===void 0?{}:p,v=n.maskTextFn,y=n.maskInputFn,d=n.slimDOMOptions,m=n.dataURLOptions,_=m===void 0?{}:m,b=n.inlineImages,C=b===void 0?!1:b,S=n.recordCanvas,O=S===void 0?!1:S,A=n.onSerialize,k=n.onIframeLoad,$=n.iframeLoadTimeout,W=$===void 0?5e3:$,ge=n.onStylesheetLoad,L=n.stylesheetLoadTimeout,G=L===void 0?5e3:L,de=n.keepIframeSrcFn,Y=de===void 0?function(){return!1}:de,De=n.newlyAddedElement,Ne=De===void 0?!1:De,ke=n.cssCaptured,pe=ke===void 0?!1:ke,xe=n.needsMask,Jt=n.preserveWhiteSpace,nt=Jt===void 0?!0:Jt;if(!xe){var Xt=xe===void 0;xe=qu(t,o,a,Xt)}var ze=Gd(t,{doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,dataURLOptions:_,inlineImages:C,recordCanvas:O,keepIframeSrcFn:Y,newlyAddedElement:Ne,cssCaptured:pe});if(!ze)return console.warn(t,"not serialized"),null;var $t;e.hasNode(t)?$t=e.getId(t):Yd(ze,d)||!nt&&ze.type===Ie.Text&&!ze.textContent.replace(/^\s+|\s+$/gm,"").length?$t=Br:$t=Du();var J=Object.assign(ze,{id:$t});if(e.add(t,J),$t===Br)return null;A&&A(t);var Tr=!c;if(J.type===Ie.Element){Tr=Tr&&!J.needBlock,delete J.needBlock;var Pr=Re.shadowRoot(t);Pr&&Ur(Pr)&&(J.isShadowHost=!0)}if((J.type===Ie.Document||J.type===Ie.Element)&&Tr){d.headWhitespace&&J.type===Ie.Element&&J.tagName==="head"&&(nt=!1);var Nt={doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:c,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y,cssCaptured:!1};if(!(J.type===Ie.Element&&J.tagName==="textarea"&&J.attributes.value!==void 0)){J.type===Ie.Element&&J.attributes._cssText!==void 0&&typeof J.attributes._cssText=="string"&&(Nt.cssCaptured=!0);for(var ws=I(Array.from(Re.childNodes(t))),$r;!($r=ws()).done;){var bs=$r.value,Ss=ur(bs,Nt);Ss&&J.childNodes.push(Ss)}}var Sn=null;if(Tu(t)&&(Sn=Re.shadowRoot(t)))for(var Zt=I(Array.from(Re.childNodes(Sn))),Qt;!(Qt=Zt()).done;){var er=Qt.value,tr=ur(er,Nt);tr&&(Ur(Sn)&&(tr.isShadow=!0),J.childNodes.push(tr))}}var rr=Re.parentNode(t);return rr&&Fr(rr)&&Ur(rr)&&(J.isShadow=!0),J.type===Ie.Element&&J.tagName==="iframe"&&qd(t,function(){var pt=t.contentDocument;if(pt&&k){var Nr=ur(pt,{doc:pt,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});Nr&&k(t,Nr)}},W),J.type===Ie.Element&&J.tagName==="link"&&typeof J.attributes.rel=="string"&&(J.attributes.rel==="stylesheet"||J.attributes.rel==="preload"&&typeof J.attributes.href=="string"&&Lu(J.attributes.href)==="css")&&Wd(t,function(){if(ge){var pt=ur(t,{doc:i,mirror:e,blockClass:r,blockSelector:s,needsMask:xe,maskTextClass:o,maskTextSelector:a,skipChild:!1,inlineStylesheet:f,maskInputOptions:g,maskTextFn:v,maskInputFn:y,slimDOMOptions:d,dataURLOptions:_,inlineImages:C,recordCanvas:O,preserveWhiteSpace:nt,onSerialize:A,onIframeLoad:k,iframeLoadTimeout:W,onStylesheetLoad:ge,stylesheetLoadTimeout:G,keepIframeSrcFn:Y});pt&&ge(t,pt)}},G),J}function Kd(t,n){var i=n||{},e=i.mirror,r=e===void 0?new $u:e,s=i.blockClass,o=s===void 0?"rr-block":s,a=i.blockSelector,u=a===void 0?null:a,c=i.maskTextClass,l=c===void 0?"rr-mask":c,f=i.maskTextSelector,p=f===void 0?null:f,g=i.inlineStylesheet,v=g===void 0?!0:g,y=i.inlineImages,d=y===void 0?!1:y,m=i.recordCanvas,_=m===void 0?!1:m,b=i.maskAllInputs,C=b===void 0?!1:b,S=i.maskTextFn,O=i.maskInputFn,A=i.slimDOM,k=A===void 0?!1:A,$=i.dataURLOptions,W=i.preserveWhiteSpace,ge=i.onSerialize,L=i.onIframeLoad,G=i.iframeLoadTimeout,de=i.onStylesheetLoad,Y=i.stylesheetLoadTimeout,De=i.keepIframeSrcFn,Ne=De===void 0?function(){return!1}:De,ke=C===!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}:C===!1?{password:!0}:C,pe=k===!0||k==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:k==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:k===!1?{}:k;return ur(t,{doc:t,mirror:r,blockClass:o,blockSelector:u,maskTextClass:l,maskTextSelector:p,skipChild:!1,inlineStylesheet:v,maskInputOptions:ke,maskTextFn:S,maskInputFn:O,slimDOMOptions:pe,dataURLOptions:$,inlineImages:d,recordCanvas:_,preserveWhiteSpace:W,onSerialize:ge,onIframeLoad:L,iframeLoadTimeout:G,onStylesheetLoad:de,stylesheetLoadTimeout:Y,keepIframeSrcFn:Ne,newlyAddedElement:!1})}function Jd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Xd(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Ps={exports:{}},se=String,Wu=function(){return{isColorSupported:!1,reset:se,bold:se,dim:se,italic:se,underline:se,inverse:se,hidden:se,strikethrough:se,black:se,red:se,green:se,yellow:se,blue:se,magenta:se,cyan:se,white:se,gray:se,bgBlack:se,bgRed:se,bgGreen:se,bgYellow:se,bgBlue:se,bgMagenta:se,bgCyan:se,bgWhite:se}};Ps.exports=Wu(),Ps.exports.createColors=Wu;var Zd=Ps.exports,Qd={},ev=Object.freeze(Object.defineProperty({__proto__:null,default:Qd},Symbol.toStringTag,{value:"Module"})),me=Xd(ev),Gu=Zd,Vu=me,$s=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var s=this;if(!this.source)return"";var o=this.source;r==null&&(r=Gu.isColorSupported),Vu&&r&&(o=Vu(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Gu.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),Ns=$s;$s.default=$s;var gt={};gt.isClean=Symbol("isClean"),gt.my=Symbol("my");var ju={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function tv(t){return t[0].toUpperCase()+t.slice(1)}var Ls=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return ju[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+tv(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=ju[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Hu=Ls;Ls.default=Ls;var rv=Hu;function Ds(t,n){var i=new rv(n);i.stringify(t)}var Mn=Ds;Ds.default=Ds;var Tn=gt.isClean,nv=gt.my,iv=Ns,sv=Hu,ov=Mn;function Fs(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return Fs(o,i)}):(s==="object"&&r!==null&&(r=Fs(r)),i[e]=r)}return i}var Us=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Tn]=!1,this[nv]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=Fs(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new iv(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Tn]){this[Tn]=!1;for(var e=this;e=e.parent;)e[Tn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new sv;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=ov),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Pn=Us;Us.default=Us;var av=Pn,Bs=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(av),$n=Bs;Bs.default=Bs;var uv="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",cv=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=uv[Math.random()*64|0];return n},lv={nanoid:cv},Yu=me.SourceMapConsumer,Ku=me.SourceMapGenerator,fv=me.existsSync,hv=me.readFileSync,zs=me.dirname,pv=me.join;function dv(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var qs=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=zs(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Yu(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return dv(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=zs(e),fv(e))return this.mapFile=e,hv(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,Yu))return Ku.fromSourceMap(r).toString();if(M(r,Ku))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=pv(zs(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Ju=qs;qs.default=qs;var vv=me.SourceMapConsumer,gv=me.SourceMapGenerator,Xu=me.fileURLToPath,Nn=me.pathToFileURL,Ws=me.isAbsolute,Gs=me.resolve,mv=lv.nanoid,Vs=me,Zu=Ns,yv=Ju,js=Symbol("fromOffsetCache"),_v=!!(vv&&gv),Qu=!!(Gs&&Ws),Ln=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Qu||/^\w+:\/\//.test(e.from)||Ws(e.from)?this.file=e.from:this.file=Gs(e.from)),Qu&&_v){var r=new yv(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+mv(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Zu(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,o.plugin):a=new Zu(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Nn&&(a.input.url=Nn(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[js])s=this[js];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[js]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Gs(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;Ws(u.source)?l=Nn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Nn(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Xu)f.file=Xu(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),Dn=Ln;Ln.default=Ln,Vs&&Vs.registerInput&&Vs.registerInput(Ln);var ec=me.SourceMapConsumer,Fn=me.SourceMapGenerator,Un=me.dirname,tc=me.relative,rc=me.resolve,nc=me.sep,ic=me.pathToFileURL,wv=Dn,bv=!!(ec&&Fn),Sv=!!(Un&&rc&&tc&&nc),Cv=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||Un(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ec(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),Sv&&bv&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=Fn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Fn({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]},n.generateString=function(){var e=this;this.css="",this.map=new Fn({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?Un(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=Un(rc(s,this.mapOpts.annotation)));var o=tc(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new wv(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(ic){var s=ic(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;nc==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),sc=Cv,Ev=Pn,Hs=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(Ev),Bn=Hs;Hs.default=Hs;var oc=gt.isClean,ac=gt.my,uc=$n,cc=Bn,Iv=Pn,lc,Ys,Ks,fc;function hc(t){return t.map(function(n){return n.nodes&&(n.nodes=hc(n.nodes)),delete n.source,n})}function pc(t){if(t[oc]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;pc(e)}}var it=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=hc(lc(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new uc(r)]}else if(r.selector)r=[new Ys(r)];else if(r.name)r=[new Ks(r)];else if(r.text)r=[new cc(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[ac]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[oc]&&pc(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(n,[{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]}}]),n})(Iv);it.registerParse=function(t){lc=t},it.registerRule=function(t){Ys=t},it.registerAtRule=function(t){Ks=t},it.registerRoot=function(t){fc=t};var Ut=it;it.default=it,it.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Ks.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ys.prototype):t.type==="decl"?Object.setPrototypeOf(t,uc.prototype):t.type==="comment"?Object.setPrototypeOf(t,cc.prototype):t.type==="root"&&Object.setPrototypeOf(t,fc.prototype),t[ac]=!0,t.nodes&&t.nodes.forEach(function(n){it.rebuild(n)})};var Ov=Ut,dc,vc,zr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new dc(new vc,this,r);return s.stringify()},n})(Ov);zr.registerLazyResult=function(t){dc=t},zr.registerProcessor=function(t){vc=t};var Js=zr;zr.default=zr;var gc={},mc=function(n){gc[n]||(gc[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},Xs=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.prototype;return n.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},t})(),yc=Xs;Xs.default=Xs;var xv=yc,Zs=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new xv(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),Qs=Zs;Zs.default=Zs;var eo=39,_c=34,zn=92,wc=47,qn=10,qr=32,Wn=12,Gn=9,Vn=13,kv=91,Rv=93,Av=40,Mv=41,Tv=123,Pv=125,$v=59,Nv=42,Lv=58,Dv=64,jn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Hn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Fv=/.[\r\n"'(/\\]/,bc=/[\da-f]/i,Uv=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case qn:case qr:case Gn:case Vn:case Wn:{o=d;do o+=1,s=e.charCodeAt(o);while(s===qr||s===qn||s===Gn||s===Vn||s===Wn);v=["space",e.slice(d,o)],d=o-1;break}case kv:case Rv:case Tv:case Pv:case Lv:case $v:case Mv:{var W=String.fromCharCode(s);v=[W,W,d];break}case Av:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==eo&&g!==_c&&g!==qr&&g!==qn&&g!==Gn&&g!==Wn&&g!==Vn){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===zn;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Fv.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case eo:case _c:{a=s===eo?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===zn;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Dv:{jn.lastIndex=d+1,jn.test(e),jn.lastIndex===0?o=e.length-1:o=jn.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case zn:{for(o=d,c=!0;e.charCodeAt(o+1)===zn;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==wc&&s!==qr&&s!==qn&&s!==Gn&&s!==Vn&&s!==Wn&&(o+=1,bc.test(e.charAt(o)))){for(;bc.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===qr&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===wc&&e.charCodeAt(d+1)===Nv?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(Hn.lastIndex=d+1,Hn.test(e),Hn.lastIndex===0?o=e.length-1:o=Hn.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},Sc=Ut,Yn=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(Sc),to=Yn;Yn.default=Yn,Sc.registerAtRule(Yn);var Cc=Ut,Ec,Ic,cr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new Ec(new Ic,this,r);return s.stringify()},n})(Cc);cr.registerLazyResult=function(t){Ec=t},cr.registerProcessor=function(t){Ic=t};var Wr=cr;cr.default=cr,Cc.registerRoot(cr);var Gr={comma:function(n){return Gr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Gr.split(n,i)},split:function(n,i,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},Oc=Gr;Gr.default=Gr;var xc=Ut,Bv=Oc,Kn=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Bv.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(xc),ro=Kn;Kn.default=Kn,xc.registerRule(Kn);var zv=$n,qv=Uv,Wv=Bn,Gv=to,Vv=Wr,kc=ro,Rc={empty:!0,space:!0};function jv(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Hv=(function(){function t(i){this.input=i,this.root=new Vv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Gv;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Wv;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=qv(this.input)},n.decl=function(e,r){var s=new zv;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||jv(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new kc;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&o){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!Rc[g]&&!Rc[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new kc;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Yv=Hv,Kv=Ut,Jv=Yv,Xv=Dn;function Jn(t,n){var i=new Xv(t,n),e=new Jv(i);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var no=Jn;Jn.default=Jn,Kv.registerParse(Jn);var je=gt.isClean,Zv=gt.my,Qv=sc,eg=Mn,tg=Ut,rg=Js,ng=mc,Ac=Qs,ig=no,sg=Wr,og={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ag={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},ug={Once:!0,postcssPlugin:!0,prepare:!0},lr=0;function Vr(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function Mc(t){var n=!1,i=og[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,lr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,lr,i+"Exit"]:[i,i+"Exit"]}function Tc(t){var n;return t.type==="document"?n=["Document",lr,"DocumentExit"]:t.type==="root"?n=["Root",lr,"RootExit"]:n=Mc(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function io(t){return t[je]=!1,t.nodes&&t.nodes.forEach(function(n){return io(n)}),t}var so={},fr=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=io(e);else if(M(e,t)||M(e,Ac))o=io(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=ig;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Zv]&&tg.rebuild(o)}this.result=new Ac(i,o,r),this.helpers=z({},so,{postcss:so,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!ag[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ug[u])if(T(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!Vr(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[je])return[3,14];u[je]=!0,c=[Tc(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Vr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return Vr(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=eg;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Qv(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(Vr(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[je];)a[je]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||ng("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Vr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[je]){f[je]=!0,e.push(Tc(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===lr){s.nodes&&s.nodes.length&&(s[je]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[je]=!0;for(var s=Mc(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===lr)e.nodes&&e.each(function(l){l[je]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();fr.registerPostcss=function(t){so=t};var Pc=fr;fr.default=fr,sg.registerLazyResult(fr),rg.registerLazyResult(fr);var cg=sc,lg=Mn,fg=mc,hg=no,pg=Qs,oo=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=lg;this.result=new pg(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new cg(o,s,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||fg("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{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,r=hg;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),dg=oo;oo.default=oo;var vg=dg,gg=Pc,mg=Js,yg=Wr,jr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new vg(this,e,r):new gg(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),_g=jr;jr.default=jr,yg.registerProcessor(jr),mg.registerProcessor(jr);var wg=$n,bg=Ju,Sg=Bn,Cg=to,Eg=Dn,Ig=Wr,Og=ro;function Hr(t,n){if(Array.isArray(t))return t.map(function(f){return Hr(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:Eg.prototype});a.map&&(a.map=z({},a.map,{__proto__:bg.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return Hr(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new Ig(e);if(e.type==="decl")return new wg(e);if(e.type==="rule")return new Og(e);if(e.type==="comment")return new Sg(e);if(e.type==="atrule")return new Cg(e);throw new Error("Unknown node type: "+t.type)}var xg=Hr;Hr.default=Hr;var kg=Ns,$c=$n,Rg=Pc,Ag=Ut,ao=_g,Mg=Mn,Tg=xg,Nc=Js,Pg=yc,Lc=Bn,Dc=to,$g=Qs,Ng=Dn,Lg=no,Dg=Oc,Fc=ro,Uc=Wr,Fg=Pn;function X(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new ao(n)}X.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new ao().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return X([r(u)]).process(o,a)},r},X.stringify=Mg,X.parse=Lg,X.fromJSON=Tg,X.list=Dg,X.comment=function(t){return new Lc(t)},X.atRule=function(t){return new Dc(t)},X.decl=function(t){return new $c(t)},X.rule=function(t){return new Fc(t)},X.root=function(t){return new Uc(t)},X.document=function(t){return new Nc(t)},X.CssSyntaxError=kg,X.Declaration=$c,X.Container=Ag,X.Processor=ao,X.Document=Nc,X.Comment=Lc,X.Warning=Pg,X.AtRule=Dc,X.Result=$g,X.Input=Ng,X.Rule=Fc,X.Root=Uc,X.Node=Fg,Rg.registerPostcss(X);var Ug=X;X.default=X;var le=Jd(Ug);le.stringify,le.fromJSON,le.plugin,le.parse,le.list,le.document,le.comment,le.atRule,le.rule,le.decl,le.root,le.CssSyntaxError,le.Declaration,le.Container,le.Processor,le.Document,le.Comment,le.Warning,le.AtRule,le.Result,le.Input,le.Rule,le.Root,le.Node;var Bg=Object.defineProperty,zg=function(t,n,i){return n in t?Bg(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Fe=function(t,n,i){return zg(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)};function qg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Wg(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var uo={exports:{}},oe=String,Bc=function(){return{isColorSupported:!1,reset:oe,bold:oe,dim:oe,italic:oe,underline:oe,inverse:oe,hidden:oe,strikethrough:oe,black:oe,red:oe,green:oe,yellow:oe,blue:oe,magenta:oe,cyan:oe,white:oe,gray:oe,bgBlack:oe,bgRed:oe,bgGreen:oe,bgYellow:oe,bgBlue:oe,bgMagenta:oe,bgCyan:oe,bgWhite:oe}};uo.exports=Bc(),uo.exports.createColors=Bc;var Gg=uo.exports,Vg={},jg=Object.freeze(Object.defineProperty({__proto__:null,default:Vg},Symbol.toStringTag,{value:"Module"})),ye=Wg(jg),zc=Gg,qc=ye,co=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var s=this;if(!this.source)return"";var o=this.source;r==null&&(r=zc.isColorSupported),qc&&r&&(o=qc(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=zc.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),lo=co;co.default=co;var mt={};mt.isClean=Symbol("isClean"),mt.my=Symbol("my");var Wc={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Hg(t){return t[0].toUpperCase()+t.slice(1)}var fo=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Wc[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+Hg(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=Wc[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Gc=fo;fo.default=fo;var Yg=Gc;function ho(t,n){var i=new Yg(n);i.stringify(t)}var Xn=ho;ho.default=ho;var Zn=mt.isClean,Kg=mt.my,Jg=lo,Xg=Gc,Zg=Xn;function po(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return po(o,i)}):(s==="object"&&r!==null&&(r=po(r)),i[e]=r)}return i}var vo=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Zn]=!1,this[Kg]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=po(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new Jg(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Zn]){this[Zn]=!1;for(var e=this;e=e.parent;)e[Zn]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new Xg;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=Zg),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Qn=vo;vo.default=vo;var Qg=Qn,go=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(Qg),ei=go;go.default=go;var em="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",tm=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=em[Math.random()*64|0];return n},rm={nanoid:tm},Vc=ye.SourceMapConsumer,jc=ye.SourceMapGenerator,nm=ye.existsSync,im=ye.readFileSync,mo=ye.dirname,sm=ye.join;function om(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var yo=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=mo(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new Vc(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return om(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=mo(e),nm(e))return this.mapFile=e,im(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,Vc))return jc.fromSourceMap(r).toString();if(M(r,jc))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=sm(mo(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Hc=yo;yo.default=yo;var am=ye.SourceMapConsumer,um=ye.SourceMapGenerator,Yc=ye.fileURLToPath,ti=ye.pathToFileURL,_o=ye.isAbsolute,wo=ye.resolve,cm=rm.nanoid,bo=ye,Kc=lo,lm=Hc,So=Symbol("fromOffsetCache"),fm=!!(am&&um),Jc=!!(wo&&_o),ri=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Jc||/^\w+:\/\//.test(e.from)||_o(e.from)?this.file=e.from:this.file=wo(e.from)),Jc&&fm){var r=new lm(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+cm(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Kc(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,o.plugin):a=new Kc(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(ti&&(a.input.url=ti(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[So])s=this[So];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[So]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:wo(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;_o(u.source)?l=ti(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||ti(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Yc)f.file=Yc(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),ni=ri;ri.default=ri,bo&&bo.registerInput&&bo.registerInput(ri);var Xc=ye.SourceMapConsumer,ii=ye.SourceMapGenerator,si=ye.dirname,Zc=ye.relative,Qc=ye.resolve,el=ye.sep,tl=ye.pathToFileURL,hm=ni,pm=!!(Xc&&ii),dm=!!(si&&Qc&&Zc&&el),vm=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||si(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Xc(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),dm&&pm&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=ii.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new ii({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]},n.generateString=function(){var e=this;this.css="",this.map=new ii({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?si(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=si(Qc(s,this.mapOpts.annotation)));var o=Zc(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new hm(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(tl){var s=tl(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;el==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),rl=vm,gm=Qn,Co=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(gm),oi=Co;Co.default=Co;var nl=mt.isClean,il=mt.my,sl=ei,ol=oi,mm=Qn,al,Eo,Io,ul;function cl(t){return t.map(function(n){return n.nodes&&(n.nodes=cl(n.nodes)),delete n.source,n})}function ll(t){if(t[nl]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;ll(e)}}var st=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=cl(al(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new sl(r)]}else if(r.selector)r=[new Eo(r)];else if(r.name)r=[new Io(r)];else if(r.text)r=[new ol(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[il]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[nl]&&ll(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(n,[{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]}}]),n})(mm);st.registerParse=function(t){al=t},st.registerRule=function(t){Eo=t},st.registerAtRule=function(t){Io=t},st.registerRoot=function(t){ul=t};var Bt=st;st.default=st,st.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,Io.prototype):t.type==="rule"?Object.setPrototypeOf(t,Eo.prototype):t.type==="decl"?Object.setPrototypeOf(t,sl.prototype):t.type==="comment"?Object.setPrototypeOf(t,ol.prototype):t.type==="root"&&Object.setPrototypeOf(t,ul.prototype),t[il]=!0,t.nodes&&t.nodes.forEach(function(n){st.rebuild(n)})};var ym=Bt,fl,hl,Yr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new fl(new hl,this,r);return s.stringify()},n})(ym);Yr.registerLazyResult=function(t){fl=t},Yr.registerProcessor=function(t){hl=t};var Oo=Yr;Yr.default=Yr;var pl={},dl=function(n){pl[n]||(pl[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},xo=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.prototype;return n.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},t})(),vl=xo;xo.default=xo;var _m=vl,ko=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new _m(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),Ro=ko;ko.default=ko;var Ao=39,gl=34,ai=92,ml=47,ui=10,Kr=32,ci=12,li=9,fi=13,wm=91,bm=93,Sm=40,Cm=41,Em=123,Im=125,Om=59,xm=42,km=58,Rm=64,hi=/[\t\n\f\r "#'()/;[\\\]{}]/g,pi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Am=/.[\r\n"'(/\\]/,yl=/[\da-f]/i,Mm=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case ui:case Kr:case li:case fi:case ci:{o=d;do o+=1,s=e.charCodeAt(o);while(s===Kr||s===ui||s===li||s===fi||s===ci);v=["space",e.slice(d,o)],d=o-1;break}case wm:case bm:case Em:case Im:case km:case Om:case Cm:{var W=String.fromCharCode(s);v=[W,W,d];break}case Sm:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==Ao&&g!==gl&&g!==Kr&&g!==ui&&g!==li&&g!==ci&&g!==fi){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===ai;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Am.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case Ao:case gl:{a=s===Ao?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===ai;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Rm:{hi.lastIndex=d+1,hi.test(e),hi.lastIndex===0?o=e.length-1:o=hi.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case ai:{for(o=d,c=!0;e.charCodeAt(o+1)===ai;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==ml&&s!==Kr&&s!==ui&&s!==li&&s!==fi&&s!==ci&&(o+=1,yl.test(e.charAt(o)))){for(;yl.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===Kr&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===ml&&e.charCodeAt(d+1)===xm?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(pi.lastIndex=d+1,pi.test(e),pi.lastIndex===0?o=e.length-1:o=pi.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},_l=Bt,di=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(_l),Mo=di;di.default=di,_l.registerAtRule(di);var wl=Bt,bl,Sl,hr=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new bl(new Sl,this,r);return s.stringify()},n})(wl);hr.registerLazyResult=function(t){bl=t},hr.registerProcessor=function(t){Sl=t};var Jr=hr;hr.default=hr,wl.registerRoot(hr);var Xr={comma:function(n){return Xr.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return Xr.split(n,i)},split:function(n,i,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},Cl=Xr;Xr.default=Xr;var El=Bt,Tm=Cl,vi=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Tm.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(El),To=vi;vi.default=vi,El.registerRule(vi);var Pm=ei,$m=Mm,Nm=oi,Lm=Mo,Dm=Jr,Il=To,Ol={empty:!0,space:!0};function Fm(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var Um=(function(){function t(i){this.input=i,this.root=new Dm,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Lm;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Nm;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=$m(this.input)},n.decl=function(e,r){var s=new Pm;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||Fm(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new Il;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&o){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!Ol[g]&&!Ol[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new Il;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Bm=Um,zm=Bt,qm=Bm,Wm=ni;function gi(t,n){var i=new Wm(t,n),e=new qm(i);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var Po=gi;gi.default=gi,zm.registerParse(gi);var He=mt.isClean,Gm=mt.my,Vm=rl,jm=Xn,Hm=Bt,Ym=Oo,Km=dl,xl=Ro,Jm=Po,Xm=Jr,Zm={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Qm={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},ey={Once:!0,postcssPlugin:!0,prepare:!0},pr=0;function Zr(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function kl(t){var n=!1,i=Zm[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,pr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,pr,i+"Exit"]:[i,i+"Exit"]}function Rl(t){var n;return t.type==="document"?n=["Document",pr,"DocumentExit"]:t.type==="root"?n=["Root",pr,"RootExit"]:n=kl(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function $o(t){return t[He]=!1,t.nodes&&t.nodes.forEach(function(n){return $o(n)}),t}var No={},dr=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=$o(e);else if(M(e,t)||M(e,xl))o=$o(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Jm;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Gm]&&Hm.rebuild(o)}this.result=new xl(i,o,r),this.helpers=z({},No,{postcss:No,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!Qm[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!ey[u])if(T(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!Zr(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[He])return[3,14];u[He]=!0,c=[Rl(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!Zr(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return Zr(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=jm;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Vm(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(Zr(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[He];)a[He]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Km("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Zr(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[He]){f[He]=!0,e.push(Rl(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===pr){s.nodes&&s.nodes.length&&(s[He]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[He]=!0;for(var s=kl(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===pr)e.nodes&&e.each(function(l){l[He]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();dr.registerPostcss=function(t){No=t};var Al=dr;dr.default=dr,Xm.registerLazyResult(dr),Ym.registerLazyResult(dr);var ty=rl,ry=Xn,ny=dl,iy=Po,sy=Ro,Lo=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=ry;this.result=new sy(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new ty(o,s,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ny("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{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,r=iy;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),oy=Lo;Lo.default=Lo;var ay=oy,uy=Al,cy=Oo,ly=Jr,Qr=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new ay(this,e,r):new uy(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),fy=Qr;Qr.default=Qr,ly.registerProcessor(Qr),cy.registerProcessor(Qr);var hy=ei,py=Hc,dy=oi,vy=Mo,gy=ni,my=Jr,yy=To;function en(t,n){if(Array.isArray(t))return t.map(function(f){return en(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:gy.prototype});a.map&&(a.map=z({},a.map,{__proto__:py.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return en(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new my(e);if(e.type==="decl")return new hy(e);if(e.type==="rule")return new yy(e);if(e.type==="comment")return new dy(e);if(e.type==="atrule")return new vy(e);throw new Error("Unknown node type: "+t.type)}var _y=en;en.default=en;var wy=lo,Ml=ei,by=Al,Sy=Bt,Do=fy,Cy=Xn,Ey=_y,Tl=Oo,Iy=vl,Pl=oi,$l=Mo,Oy=Ro,xy=ni,ky=Po,Ry=Cl,Nl=To,Ll=Jr,Ay=Qn;function Z(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Do(n)}Z.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Do().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return Z([r(u)]).process(o,a)},r},Z.stringify=Cy,Z.parse=ky,Z.fromJSON=Ey,Z.list=Ry,Z.comment=function(t){return new Pl(t)},Z.atRule=function(t){return new $l(t)},Z.decl=function(t){return new Ml(t)},Z.rule=function(t){return new Nl(t)},Z.root=function(t){return new Ll(t)},Z.document=function(t){return new Tl(t)},Z.CssSyntaxError=wy,Z.Declaration=Ml,Z.Container=Sy,Z.Processor=Do,Z.Document=Tl,Z.Comment=Pl,Z.Warning=Iy,Z.AtRule=$l,Z.Result=Oy,Z.Input=xy,Z.Rule=Nl,Z.Root=Ll,Z.Node=Ay,by.registerPostcss(Z);var My=Z;Z.default=Z;var fe=qg(My);fe.stringify,fe.fromJSON,fe.plugin,fe.parse,fe.list,fe.document,fe.comment,fe.atRule,fe.rule,fe.decl,fe.root,fe.CssSyntaxError,fe.Declaration,fe.Container,fe.Processor,fe.Document,fe.Comment,fe.Warning,fe.AtRule,fe.Result,fe.Input,fe.Rule,fe.Root,fe.Node;var Ty=(function(){function t(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];Fe(this,"parentElement",null),Fe(this,"parentNode",null),Fe(this,"ownerDocument"),Fe(this,"firstChild",null),Fe(this,"lastChild",null),Fe(this,"previousSibling",null),Fe(this,"nextSibling",null),Fe(this,"ELEMENT_NODE",1),Fe(this,"TEXT_NODE",3),Fe(this,"nodeType"),Fe(this,"nodeName"),Fe(this,"RRNodeType")}var n=t.prototype;return n.contains=function(e){if(M(e,t)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},n.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},n.insertBefore=function(e,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},n.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},n.toString=function(){return"RRNode"},ie(t,[{key:"childNodes",get:function(){for(var e=[],r=this.firstChild;r;)e.push(r),r=r.nextSibling;return e}}]),t})(),Dl={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Fl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},mi={},Py=function(){return!!globalThis.Zone};function Fo(t){if(mi[t])return mi[t];var n=globalThis[t],i=n.prototype,e=t in Dl?Dl[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in Fl?Fl[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!Py())return mi[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?mi[t]=c:i}catch(l){return i}}var Uo={};function yt(t,n,i){var e,r=t+"."+String(i);if(Uo[r])return Uo[r].call(n);var s=Fo(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Uo[r]=o,o.call(n)):n[i]}var Bo={};function Ul(t,n,i){var e=t+"."+String(i);if(Bo[e])return Bo[e].bind(n);var r=Fo(t),s=r[i];return typeof s!="function"?n[i]:(Bo[e]=s,s.bind(n))}function $y(t){return yt("Node",t,"childNodes")}function Ny(t){return yt("Node",t,"parentNode")}function Ly(t){return yt("Node",t,"parentElement")}function Dy(t){return yt("Node",t,"textContent")}function Fy(t,n){return Ul("Node",t,"contains")(n)}function Uy(t){return Ul("Node",t,"getRootNode")()}function By(t){return!t||!("host"in t)?null:yt("ShadowRoot",t,"host")}function zy(t){return t.styleSheets}function qy(t){return!t||!("shadowRoot"in t)?null:yt("Element",t,"shadowRoot")}function Wy(t,n){return yt("Element",t,"querySelector")(n)}function Gy(t,n){return yt("Element",t,"querySelectorAll")(n)}function Bl(){return Fo("MutationObserver").constructor}function zt(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var V={childNodes:$y,parentNode:Ny,parentElement:Ly,textContent:Dy,contains:Fy,getRootNode:Uy,host:By,styleSheets:zy,shadowRoot:qy,querySelector:Wy,querySelectorAll:Gy,mutationObserver:Bl,patch:zt};function Ae(t,n,i){i===void 0&&(i=document);var e={capture:!0,passive:!0};return i.addEventListener(t,n,e),function(){return i.removeEventListener(t,n,e)}}var vr="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",zl={map:{},getId:function(){return console.error(vr),-1},getNode:function(){return console.error(vr),null},removeNodeFromMap:function(){console.error(vr)},has:function(){return console.error(vr),!1},reset:function(){console.error(vr)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(zl=new Proxy(zl,{get:function(n,i,e){return i==="map"&&console.error(vr),Reflect.get(n,i,e)}}));function tn(t,n,i){i===void 0&&(i={});var e=null,r=0;return function(){for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];var u=Date.now();!r&&i.leading===!1&&(r=u);var c=n-(u-r),l=this;c<=0||c>n?(e&&(clearTimeout(e),e=null),r=u,t.apply(l,o)):!e&&i.trailing!==!1&&(e=setTimeout(function(){r=i.leading===!1?0:Date.now(),e=null,t.apply(l,o)},c))}}function yi(t,n,i,e,r){r===void 0&&(r=window);var s=r.Object.getOwnPropertyDescriptor(t,n);return r.Object.defineProperty(t,n,e?i:{set:function(a){var u=this;setTimeout(function(){i.set.call(u,a)},0),s&&s.set&&s.set.call(this,a)}}),function(){return yi(t,n,s||{},!0)}}var _i=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(_i=function(){return new Date().getTime()});function ql(t){var n,i,e,r,s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||(s==null?void 0:s.body)&&((n=V.parentElement(s.body))==null?void 0:n.scrollLeft)||((i=s==null?void 0:s.body)==null?void 0:i.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:(s==null?void 0:s.documentElement.scrollTop)||(s==null?void 0:s.body)&&((e=V.parentElement(s.body))==null?void 0:e.scrollTop)||((r=s==null?void 0:s.body)==null?void 0:r.scrollTop)||0}}function Wl(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Gl(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Vl(t){if(!t)return null;var n=t.nodeType===t.ELEMENT_NODE?t:V.parentElement(t);return n}function Me(t,n,i,e){if(!t)return!1;var r=Vl(t);if(!r)return!1;try{if(typeof n=="string"){if(r.classList.contains(n)||e&&r.closest("."+n)!==null)return!0}else if(An(r,n,e))return!0}catch(s){}return!!(i&&(r.matches(i)||e&&r.closest(i)!==null))}function Vy(t,n){return n.getId(t)!==-1}function zo(t,n,i){return t.tagName==="TITLE"&&i.headTitleMutations?!0:n.getId(t)===Br}function jl(t,n){if(Fr(t))return!1;var i=n.getId(t);if(!n.has(i))return!0;var e=V.parentNode(t);return e&&e.nodeType===t.DOCUMENT_NODE?!1:e?jl(e,n):!0}function qo(t){return!!t.changedTouches}function jy(t){t===void 0&&(t=window),"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function Hl(t,n){return!!(t.nodeName==="IFRAME"&&n.getMeta(t))}function Yl(t,n){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&n.getMeta(t))}function Wo(t){return t?M(t,Ty)&&"shadowRoot"in t?!!t.shadowRoot:!!V.shadowRoot(t):!1}var Hy=(function(){function t(){x(this,"id",1),x(this,"styleIDMap",new WeakMap),x(this,"idStyleMap",new Map)}var n=t.prototype;return n.getId=function(e){var r;return(r=this.styleIDMap.get(e))!=null?r:-1},n.has=function(e){return this.styleIDMap.has(e)},n.add=function(e,r){if(this.has(e))return this.getId(e);var s;return r===void 0?s=this.id++:s=r,this.styleIDMap.set(e,s),this.idStyleMap.set(s,e),s},n.getStyle=function(e){return this.idStyleMap.get(e)||null},n.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},n.generateId=function(){return this.id++},n.remove=function(e){var r=this.styleIDMap.get(e);return r!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(r),!0):!1},t})();function Kl(t){var n,i=null;return"getRootNode"in t&&((n=V.getRootNode(t))==null?void 0:n.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&V.host(V.getRootNode(t))&&(i=V.host(V.getRootNode(t))),i}function Yy(t){for(var n=t,i;i=Kl(n);)n=i;return n}function Ky(t){var n=t.ownerDocument;if(!n)return!1;var i=Yy(t);return V.contains(n,i)}function Jl(t){var n=t.ownerDocument;return n?V.contains(n,t)||Ky(t):!1}var j=(function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t})(j||{}),D=(function(t){return t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t})(D||{}),$e=(function(t){return t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t})($e||{}),ot=(function(t){return t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t})(ot||{}),gr=(function(t){return t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t})(gr||{}),mr=(function(t){return t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t})(mr||{}),Xl=(function(t){return t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t})(Xl||{});function Zl(t){return"__ln"in t}var Jy=(function(){function t(){x(this,"length",0),x(this,"head",null),x(this,"tail",null)}var n=t.prototype;return n.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var r=this.head,s=0;s<e;s++)r=(r==null?void 0:r.next)||null;return r},n.addNode=function(e){var r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&Zl(e.previousSibling)){var s=e.previousSibling.__ln.next;r.next=s,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,s&&(s.previous=r)}else if(e.nextSibling&&Zl(e.nextSibling)&&e.nextSibling.__ln.previous){var o=e.nextSibling.__ln.previous;r.previous=o,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,o&&(o.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++},n.removeNode=function(e){var r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},t})(),Ql=function(t,n){return t+"@"+n},Xy=(function(){function t(){var i=this;x(this,"frozen",!1),x(this,"locked",!1),x(this,"texts",[]),x(this,"attributes",[]),x(this,"attributeMap",new WeakMap),x(this,"removes",[]),x(this,"mapRemoves",[]),x(this,"movedMap",{}),x(this,"addedSet",new Set),x(this,"movedSet",new Set),x(this,"droppedSet",new Set),x(this,"removesSubTreeCache",new Set),x(this,"mutationCb"),x(this,"blockClass"),x(this,"blockSelector"),x(this,"maskTextClass"),x(this,"maskTextSelector"),x(this,"inlineStylesheet"),x(this,"maskInputOptions"),x(this,"maskTextFn"),x(this,"maskInputFn"),x(this,"keepIframeSrcFn"),x(this,"recordCanvas"),x(this,"inlineImages"),x(this,"slimDOMOptions"),x(this,"dataURLOptions"),x(this,"doc"),x(this,"mirror"),x(this,"iframeManager"),x(this,"stylesheetManager"),x(this,"shadowDomManager"),x(this,"canvasManager"),x(this,"processedNodeManager"),x(this,"unattachedDoc"),x(this,"processMutations",function(e){e.forEach(i.processMutation),i.emit()}),x(this,"emit",function(){if(!(i.frozen||i.locked)){for(var e=[],r=new Set,s=new Jy,o=function(L){for(var G=L,de=Br;de===Br;)G=G&&G.nextSibling,de=G&&i.mirror.getId(G);return de},a=function(L){var G=V.parentNode(L);if(!(!G||!Jl(L))){var de=!1;if(L.nodeType===Node.TEXT_NODE){var Y=G.tagName;if(Y==="TEXTAREA")return;Y==="STYLE"&&i.addedSet.has(G)&&(de=!0)}var De=Fr(G)?i.mirror.getId(Kl(L)):i.mirror.getId(G),Ne=o(L);if(De===-1||Ne===-1)return s.addNode(L);var ke=ur(L,{doc:i.doc,mirror:i.mirror,blockClass:i.blockClass,blockSelector:i.blockSelector,maskTextClass:i.maskTextClass,maskTextSelector:i.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:i.inlineStylesheet,maskInputOptions:i.maskInputOptions,maskTextFn:i.maskTextFn,maskInputFn:i.maskInputFn,slimDOMOptions:i.slimDOMOptions,dataURLOptions:i.dataURLOptions,recordCanvas:i.recordCanvas,inlineImages:i.inlineImages,onSerialize:function(pe){Hl(pe,i.mirror)&&i.iframeManager.addIframe(pe),Yl(pe,i.mirror)&&i.stylesheetManager.trackLinkElement(pe),Wo(L)&&i.shadowDomManager.addShadowRoot(V.shadowRoot(L),i.doc)},onIframeLoad:function(pe,xe){i.iframeManager.attachIframe(pe,xe),i.shadowDomManager.observeAttachShadow(pe)},onStylesheetLoad:function(pe,xe){i.stylesheetManager.attachLinkElement(pe,xe)},cssCaptured:de});ke&&(e.push({parentId:De,nextId:Ne,node:ke}),r.add(ke.id))}};i.mapRemoves.length;){var u=i.mapRemoves.shift();i.cleanupRemovedNode(u),i.mirror.removeNodeFromMap(u)}for(var c=I(i.movedSet),l;!(l=c()).done;){var f=l.value;ef(i.removesSubTreeCache,f,i.mirror)&&!i.movedSet.has(V.parentNode(f))||a(f)}for(var p=I(i.addedSet),g;!(g=p()).done;){var v=g.value;!tf(i.droppedSet,v)&&!ef(i.removesSubTreeCache,v,i.mirror)||tf(i.movedSet,v)?a(v):i.droppedSet.add(v)}for(var y=null;s.length;){var d=null;if(y){var m=i.mirror.getId(V.parentNode(y.value)),_=o(y.value);m!==-1&&_!==-1&&(d=y)}if(!d)for(var b=s.tail;b;){var C=b;if(b=b.previous,C){var S=i.mirror.getId(V.parentNode(C.value)),O=o(C.value);if(O===-1)continue;if(S!==-1){d=C;break}else{var A=C.value,k=V.parentNode(A);if(k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var $=V.host(k),W=i.mirror.getId($);if(W!==-1){d=C;break}}}}}if(!d){for(;s.head;)s.removeNode(s.head.value);break}y=d.previous,s.removeNode(d.value),a(d.value)}var ge={texts:i.texts.map(function(L){var G=L.node,de=V.parentNode(G);return de&&de.tagName==="TEXTAREA"&&i.genTextAreaValueMutation(de),{id:i.mirror.getId(G),value:L.value}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),attributes:i.attributes.map(function(L){var G=L.attributes;if(typeof G.style=="string"){var de=JSON.stringify(L.styleDiff),Y=JSON.stringify(L._unchangedStyles);de.length<G.style.length&&(de+Y).split("var(").length===G.style.split("var(").length&&(G.style=L.styleDiff)}return{id:i.mirror.getId(L.node),attributes:G}}).filter(function(L){return!r.has(L.id)}).filter(function(L){return i.mirror.has(L.id)}),removes:i.removes,adds:e};!ge.texts.length&&!ge.attributes.length&&!ge.removes.length&&!ge.adds.length||(i.texts=[],i.attributes=[],i.attributeMap=new WeakMap,i.removes=[],i.addedSet=new Set,i.movedSet=new Set,i.droppedSet=new Set,i.removesSubTreeCache=new Set,i.movedMap={},i.mutationCb(ge))}}),x(this,"genTextAreaValueMutation",function(e){var r=i.attributeMap.get(e);r||(r={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(r),i.attributeMap.set(e,r));var s=Array.from(V.childNodes(e),function(o){return V.textContent(o)||""}).join("");r.attributes.value=On({element:e,maskInputOptions:i.maskInputOptions,tagName:e.tagName,type:xn(e),value:s,maskInputFn:i.maskInputFn})}),x(this,"processMutation",function(e){if(!zo(e.target,i.mirror,i.slimDOMOptions))switch(e.type){case"characterData":{var r=V.textContent(e.target);!Me(e.target,i.blockClass,i.blockSelector,!1)&&r!==e.oldValue&&i.texts.push({value:qu(e.target,i.maskTextClass,i.maskTextSelector,!0)&&r?i.maskTextFn?i.maskTextFn(r,Vl(e.target)):r.replace(/[\S]/g,"*"):r,node:e.target});break}case"attributes":{var s=e.target,o=e.attributeName,a=e.target.getAttribute(o);if(o==="value"){var u=xn(s);a=On({element:s,maskInputOptions:i.maskInputOptions,tagName:s.tagName,type:u,value:a,maskInputFn:i.maskInputFn})}if(Me(e.target,i.blockClass,i.blockSelector,!1)||a===e.oldValue)return;var c=i.attributeMap.get(e.target);if(s.tagName==="IFRAME"&&o==="src"&&!i.keepIframeSrcFn(a))if(!s.contentDocument)o="rr_src";else return;if(c||(c={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},i.attributes.push(c),i.attributeMap.set(e.target,c)),o==="type"&&s.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&s.setAttribute("data-rr-is-password","true"),!zu(s.tagName,o))if(c.attributes[o]=Bu(i.doc,Ft(s.tagName),Ft(o),a),o==="style"){if(!i.unattachedDoc)try{i.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){i.unattachedDoc=i.doc}var l=i.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var f=I(Array.from(s.style)),p;!(p=f()).done;){var g=p.value,v=s.style.getPropertyValue(g),y=s.style.getPropertyPriority(g);v!==l.style.getPropertyValue(g)||y!==l.style.getPropertyPriority(g)?y===""?c.styleDiff[g]=v:c.styleDiff[g]=[v,y]:c._unchangedStyles[g]=[v,y]}for(var d=I(Array.from(l.style)),m;!(m=d()).done;){var _=m.value;s.style.getPropertyValue(_)===""&&(c.styleDiff[_]=!1)}}else o==="open"&&s.tagName==="DIALOG"&&(s.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(Me(e.target,i.blockClass,i.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){i.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return i.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var C=i.mirror.getId(b),S=Fr(e.target)?i.mirror.getId(V.host(e.target)):i.mirror.getId(e.target);Me(e.target,i.blockClass,i.blockSelector,!1)||zo(b,i.mirror,i.slimDOMOptions)||!Vy(b,i.mirror)||(i.addedSet.has(b)?(Go(i.addedSet,b),i.droppedSet.add(b)):i.addedSet.has(e.target)&&C===-1||jl(e.target,i.mirror)||(i.movedSet.has(b)&&i.movedMap[Ql(C,S)]?Go(i.movedSet,b):(i.removes.push({parentId:S,id:C,isShadow:Fr(e.target)&&Ur(e.target)?!0:void 0}),Zy(b,i.removesSubTreeCache))),i.mapRemoves.push(b))});break}}}),x(this,"genAdds",function(e,r){if(!i.processedNodeManager.inOtherBuffer(e,i)&&!(i.addedSet.has(e)||i.movedSet.has(e))){if(i.mirror.hasNode(e)){if(zo(e,i.mirror,i.slimDOMOptions))return;i.movedSet.add(e);var s=null;r&&i.mirror.hasNode(r)&&(s=i.mirror.getId(r)),s&&s!==-1&&(i.movedMap[Ql(i.mirror.getId(e),s)]=!0)}else i.addedSet.add(e),i.droppedSet.delete(e);Me(e,i.blockClass,i.blockSelector,!1)||(V.childNodes(e).forEach(function(o){return i.genAdds(o)}),Wo(e)&&V.childNodes(V.shadowRoot(e)).forEach(function(o){i.processedNodeManager.add(o,i),i.genAdds(o,e)}))}}),x(this,"cleanupRemovedNode",function(e){if(e.nodeName==="IFRAME")try{i.iframeManager.removeIframe(e)}catch(r){}else try{i.stylesheetManager.cleanupStylesheetsForRemovedNode(e)}catch(r){}e.childNodes.forEach(function(r){i.cleanupRemovedNode(r)})})}var n=t.prototype;return n.init=function(e){var r=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(s){r[s]=e[s]})},n.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},n.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},n.isFrozen=function(){return this.frozen},n.lock=function(){this.locked=!0,this.canvasManager.lock()},n.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},n.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},n.getDoc=function(){return this.doc},t})();function Go(t,n){t.delete(n),V.childNodes(n).forEach(function(i){return Go(t,i)})}function Zy(t,n){for(var i=[t];i.length;){var e=i.pop();n.has(e)||(n.add(e),V.childNodes(e).forEach(function(r){return i.push(r)}))}}function ef(t,n,i){return t.size===0?!1:Qy(t,n)}function Qy(t,n,i){var e=V.parentNode(n);return e?t.has(e):!1}function tf(t,n){return t.size===0?!1:rf(t,n)}function rf(t,n){var i=V.parentNode(n);return i?t.has(i)?!0:rf(t,i):!1}var rn;function e_(t){rn=t}function t_(){rn=void 0}var H=function(t){if(!rn)return t;var n=function(){for(var i=arguments.length,e=new Array(i),r=0;r<i;r++)e[r]=arguments[r];try{return t.apply(void 0,[].concat(e))}catch(s){if(rn&&rn(s)===!0)return;throw s}};return n},Ye=[];function nn(t){try{if("composedPath"in t){var n=t.composedPath();if(n.length)return n[0]}else if("path"in t&&t.path.length)return t.path[0]}catch(i){}return t&&t.target}function nf(t,n){var i=new Xy;Ye.push(i),i.init(t);var e=new(Bl())(H(i.processMutations.bind(i)));return e.observe(n,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function r_(t){for(var n=Ye.length-1;n>=0;n--){var i=Ye[n];i.getDoc()===t&&Ye.splice(n,1)}}function n_(t){var n=t.mousemoveCb,i=t.sampling,e=t.doc,r=t.mirror;if(i.mousemove===!1)return function(){};var s=typeof i.mousemove=="number"?i.mousemove:50,o=typeof i.mousemoveCallback=="number"?i.mousemoveCallback:500,a=[],u,c=tn(H(function(p){var g=Date.now()-u;n(a.map(function(v){return v.timeOffset-=g,v}),p),a=[],u=null}),o),l=H(tn(H(function(p){var g=nn(p),v=qo(p)?p.changedTouches[0]:p,y=v.clientX,d=v.clientY;u||(u=_i()),a.push({x:y,y:d,id:r.getId(g),timeOffset:_i()-u}),c(typeof DragEvent!="undefined"&&M(p,DragEvent)?D.Drag:M(p,MouseEvent)?D.MouseMove:D.TouchMove)}),s,{trailing:!1})),f=[Ae("mousemove",l,e),Ae("touchmove",l,e),Ae("drag",l,e)];return H(function(){f.forEach(function(p){return p()})})}function i_(t){var n=t.mouseInteractionCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.sampling;if(o.mouseInteraction===!1)return function(){};var a=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,u=[],c=null,l=function(f){return function(p){var g=nn(p);if(!Me(g,r,s,!0)){var v=null,y=f;if("pointerType"in p){switch(p.pointerType){case"mouse":v=ot.Mouse;break;case"touch":v=ot.Touch;break;case"pen":v=ot.Pen;break}v===ot.Touch?$e[f]===$e.MouseDown?y="TouchStart":$e[f]===$e.MouseUp&&(y="TouchEnd"):ot.Pen}else qo(p)&&(v=ot.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===ot.Touch||y.startsWith("Mouse")&&v===ot.Mouse)&&(v=null)):$e[f]===$e.Click&&(v=c,c=null);var d=qo(p)?p.changedTouches[0]:p;if(d){var m=e.getId(g),_=d.clientX,b=d.clientY;H(n)(z({type:$e[y],id:m,x:_,y:b},v!==null&&{pointerType:v}))}}}};return Object.keys($e).filter(function(f){return Number.isNaN(Number(f))&&!f.endsWith("_Departed")&&a[f]!==!1}).forEach(function(f){var p=Ft(f),g=l(f);if(window.PointerEvent)switch($e[f]){case $e.MouseDown:case $e.MouseUp:p=p.replace("mouse","pointer");break;case $e.TouchStart:case $e.TouchEnd:return}u.push(Ae(p,g,i))}),H(function(){u.forEach(function(f){return f()})})}function sf(t){var n=t.scrollCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.sampling,a=H(tn(H(function(u){var c=nn(u);if(!(!c||Me(c,r,s,!0))){var l=e.getId(c);if(c===i&&i.defaultView){var f=ql(i.defaultView);n({id:l,x:f.left,y:f.top})}else n({id:l,x:c.scrollLeft,y:c.scrollTop})}}),o.scroll||100));return Ae("scroll",a,i)}function s_(t,n){var i=t.viewportResizeCb,e=n.win,r=-1,s=-1,o=H(tn(H(function(){var a=Wl(),u=Gl();(r!==a||s!==u)&&(i({width:Number(u),height:Number(a)}),r=a,s=u)}),200));return Ae("resize",o,e)}var o_=["INPUT","TEXTAREA","SELECT"],of=new WeakMap;function a_(t){var n=t.inputCb,i=t.doc,e=t.mirror,r=t.blockClass,s=t.blockSelector,o=t.ignoreClass,a=t.ignoreSelector,u=t.maskInputOptions,c=t.maskInputFn,l=t.sampling,f=t.userTriggeredOnInput;function p(C){var S=nn(C),O=C.isTrusted,A=S&&S.tagName;if(S&&A==="OPTION"&&(S=V.parentElement(S)),!(!S||!A||o_.indexOf(A)<0||Me(S,r,s,!0))&&!(S.classList.contains(o)||a&&S.matches(a))){var k=S.value,$=!1,W=xn(S)||"";W==="radio"||W==="checkbox"?$=S.checked:(u[A.toLowerCase()]||u[W])&&(k=On({element:S,maskInputOptions:u,tagName:A,type:W,value:k,maskInputFn:c})),g(S,f?{text:k,isChecked:$,userTriggered:O}:{text:k,isChecked:$});var ge=S.name;W==="radio"&&ge&&$&&i.querySelectorAll('input[type="radio"][name="'+ge+'"]').forEach(function(L){if(L!==S){var G=L.value;g(L,f?{text:G,isChecked:!$,userTriggered:!1}:{text:G,isChecked:!$})}})}}function g(C,S){var O=of.get(C);if(!O||O.text!==S.text||O.isChecked!==S.isChecked){of.set(C,S);var A=e.getId(C);H(n)(z({},S,{id:A}))}}var v=l.input==="last"?["change"]:["input","change"],y=v.map(function(C){return Ae(C,H(p),i)}),d=i.defaultView;if(!d)return function(){y.forEach(function(C){return C()})};var m=d.Object.getOwnPropertyDescriptor(d.HTMLInputElement.prototype,"value"),_=[[d.HTMLInputElement.prototype,"value"],[d.HTMLInputElement.prototype,"checked"],[d.HTMLSelectElement.prototype,"value"],[d.HTMLTextAreaElement.prototype,"value"],[d.HTMLSelectElement.prototype,"selectedIndex"],[d.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var b;(b=y).push.apply(b,[].concat(_.map(function(C){return yi(C[0],C[1],{set:function(){H(p)({target:this,isTrusted:!1})}},!1,d)})))}return H(function(){y.forEach(function(C){return C()})})}function wi(t){var n=[];function i(e,r){if(bi("CSSGroupingRule")&&M(e.parentRule,CSSGroupingRule)||bi("CSSMediaRule")&&M(e.parentRule,CSSMediaRule)||bi("CSSSupportsRule")&&M(e.parentRule,CSSSupportsRule)||bi("CSSConditionRule")&&M(e.parentRule,CSSConditionRule)){var s=Array.from(e.parentRule.cssRules),o=s.indexOf(e);r.unshift(o)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);r.unshift(u)}return r}return i(t,n)}function _t(t,n,i){var e,r;return t?(t.ownerNode?e=n.getId(t.ownerNode):r=i.getId(t),{styleId:r,id:e}):{}}function u_(t,n){var i=t.styleSheetRuleCb,e=t.mirror,r=t.stylesheetManager,s=n.win;if(!s.CSSStyleSheet||!s.CSSStyleSheet.prototype)return function(){};var o=s.CSSStyleSheet.prototype.insertRule;s.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:H(function(p,g,v){var y=v[0],d=v[1],m=_t(g,e,r.styleMirror),_=m.id,b=m.styleId;return(_&&_!==-1||b&&b!==-1)&&i({id:_,styleId:b,adds:[{rule:y,index:d}]}),p.apply(g,v)})}),s.CSSStyleSheet.prototype.addRule=function(p,g,v){v===void 0&&(v=this.cssRules.length);var y=p+" { "+g+" }";return s.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var a=s.CSSStyleSheet.prototype.deleteRule;s.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,removes:[{index:y}]}),p.apply(g,v)})}),s.CSSStyleSheet.prototype.removeRule=function(p){return s.CSSStyleSheet.prototype.deleteRule.apply(this,[p])};var u;s.CSSStyleSheet.prototype.replace&&(u=s.CSSStyleSheet.prototype.replace,s.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replace:y}),p.apply(g,v)})}));var c;s.CSSStyleSheet.prototype.replaceSync&&(c=s.CSSStyleSheet.prototype.replaceSync,s.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:H(function(p,g,v){var y=v[0],d=_t(g,e,r.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,replaceSync:y}),p.apply(g,v)})}));var l={};Si("CSSGroupingRule")?l.CSSGroupingRule=s.CSSGroupingRule:(Si("CSSMediaRule")&&(l.CSSMediaRule=s.CSSMediaRule),Si("CSSConditionRule")&&(l.CSSConditionRule=s.CSSConditionRule),Si("CSSSupportsRule")&&(l.CSSSupportsRule=s.CSSSupportsRule));var f={};return Object.entries(l).forEach(function(p){var g=p[0],v=p[1];f[g]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(f[g].insertRule,{apply:H(function(y,d,m){var _=m[0],b=m[1],C=_t(d.parentStyleSheet,e,r.styleMirror),S=C.id,O=C.styleId;return(S&&S!==-1||O&&O!==-1)&&i({id:S,styleId:O,adds:[{rule:_,index:[].concat(wi(d),[b||0])}]}),y.apply(d,m)})}),v.prototype.deleteRule=new Proxy(f[g].deleteRule,{apply:H(function(y,d,m){var _=m[0],b=_t(d.parentStyleSheet,e,r.styleMirror),C=b.id,S=b.styleId;return(C&&C!==-1||S&&S!==-1)&&i({id:C,styleId:S,removes:[{index:[].concat(wi(d),[_])}]}),y.apply(d,m)})})}),H(function(){s.CSSStyleSheet.prototype.insertRule=o,s.CSSStyleSheet.prototype.deleteRule=a,u&&(s.CSSStyleSheet.prototype.replace=u),c&&(s.CSSStyleSheet.prototype.replaceSync=c),Object.entries(l).forEach(function(p){var g=p[0],v=p[1];v.prototype.insertRule=f[g].insertRule,v.prototype.deleteRule=f[g].deleteRule})})}function af(t,n){var i=t.mirror,e=t.stylesheetManager,r,s,o,a=null;n.nodeName==="#document"?a=i.getId(n):a=i.getId(V.host(n));var u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(o=(s=n.ownerDocument)==null?void 0:s.defaultView)==null?void 0:o.ShadowRoot,c=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!c?function(){}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var f;return(f=c.get)==null?void 0:f.call(this)},set:function(f){var p,g=(p=c.set)==null?void 0:p.call(this,f);if(a!==null&&a!==-1)try{e.adoptStyleSheets(f,a)}catch(v){}return g}}),H(function(){Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function c_(t,n){var i=t.styleDeclarationCb,e=t.mirror,r=t.ignoreCSSAttributes,s=t.stylesheetManager,o=n.win,a=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:H(function(c,l,f){var p,g=f[0],v=f[1],y=f[2];if(r.has(g))return a.apply(l,[g,v,y]);var d=_t((p=l.parentRule)==null?void 0:p.parentStyleSheet,e,s.styleMirror),m=d.id,_=d.styleId;return(m&&m!==-1||_&&_!==-1)&&i({id:m,styleId:_,set:{property:g,value:v,priority:y},index:wi(l.parentRule)}),c.apply(l,f)})});var u=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:H(function(c,l,f){var p,g=f[0];if(r.has(g))return u.apply(l,[g]);var v=_t((p=l.parentRule)==null?void 0:p.parentStyleSheet,e,s.styleMirror),y=v.id,d=v.styleId;return(y&&y!==-1||d&&d!==-1)&&i({id:y,styleId:d,remove:{property:g},index:wi(l.parentRule)}),c.apply(l,f)})}),H(function(){o.CSSStyleDeclaration.prototype.setProperty=a,o.CSSStyleDeclaration.prototype.removeProperty=u})}function l_(t){var n=t.mediaInteractionCb,i=t.blockClass,e=t.blockSelector,r=t.mirror,s=t.sampling,o=t.doc,a=H(function(c){return tn(H(function(l){var f=nn(l);if(!(!f||Me(f,i,e,!0))){var p=f.currentTime,g=f.volume,v=f.muted,y=f.playbackRate,d=f.loop;n({type:c,id:r.getId(f),currentTime:p,volume:g,muted:v,playbackRate:y,loop:d})}}),s.media||500)}),u=[Ae("play",a(mr.Play),o),Ae("pause",a(mr.Pause),o),Ae("seeked",a(mr.Seeked),o),Ae("volumechange",a(mr.VolumeChange),o),Ae("ratechange",a(mr.RateChange),o)];return H(function(){u.forEach(function(c){return c()})})}function f_(t){var n=t.fontCb,i=t.doc,e=i.defaultView;if(!e)return function(){};var r=[],s=new WeakMap,o=e.FontFace;e.FontFace=function(c,l,f){var p=new o(c,l,f);return s.set(p,{family:c,buffer:typeof l!="string",descriptors:f,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),p};var a=zt(i.fonts,"add",function(u){return function(c){return setTimeout(H(function(){var l=s.get(c);l&&(n(l),s.delete(c))}),0),u.apply(this,[c])}});return r.push(function(){e.FontFace=o}),r.push(a),H(function(){r.forEach(function(u){return u()})})}function h_(t){var n=t.doc,i=t.mirror,e=t.blockClass,r=t.blockSelector,s=t.selectionCb,o=!0,a=H(function(){var u=n.getSelection();if(!(!u||o&&(u!=null&&u.isCollapsed))){o=u.isCollapsed||!1;for(var c=[],l=u.rangeCount||0,f=0;f<l;f++){var p=u.getRangeAt(f),g=p.startContainer,v=p.startOffset,y=p.endContainer,d=p.endOffset,m=Me(g,e,r,!0)||Me(y,e,r,!0);m||c.push({start:i.getId(g),startOffset:v,end:i.getId(y),endOffset:d})}s({ranges:c})}});return a(),Ae("selectionchange",a)}function p_(t){var n=t.doc,i=t.customElementCb,e=n.defaultView;if(!e||!e.customElements)return function(){};var r=zt(e.customElements,"define",function(s){return function(o,a,u){try{i({define:{name:o}})}catch(c){console.warn("Custom element callback failed for "+o)}return s.apply(this,[o,a,u])}});return r}function d_(t,n){var i=t.mutationCb,e=t.mousemoveCb,r=t.mouseInteractionCb,s=t.scrollCb,o=t.viewportResizeCb,a=t.inputCb,u=t.mediaInteractionCb,c=t.styleSheetRuleCb,l=t.styleDeclarationCb,f=t.canvasMutationCb,p=t.fontCb,g=t.selectionCb,v=t.customElementCb;t.mutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mutation){var _;(_=n).mutation.apply(_,[].concat(d))}i.apply(void 0,[].concat(d))},t.mousemoveCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mousemove){var _;(_=n).mousemove.apply(_,[].concat(d))}e.apply(void 0,[].concat(d))},t.mouseInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mouseInteraction){var _;(_=n).mouseInteraction.apply(_,[].concat(d))}r.apply(void 0,[].concat(d))},t.scrollCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.scroll){var _;(_=n).scroll.apply(_,[].concat(d))}s.apply(void 0,[].concat(d))},t.viewportResizeCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.viewportResize){var _;(_=n).viewportResize.apply(_,[].concat(d))}o.apply(void 0,[].concat(d))},t.inputCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.input){var _;(_=n).input.apply(_,[].concat(d))}a.apply(void 0,[].concat(d))},t.mediaInteractionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.mediaInteaction){var _;(_=n).mediaInteaction.apply(_,[].concat(d))}u.apply(void 0,[].concat(d))},t.styleSheetRuleCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleSheetRule){var _;(_=n).styleSheetRule.apply(_,[].concat(d))}c.apply(void 0,[].concat(d))},t.styleDeclarationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.styleDeclaration){var _;(_=n).styleDeclaration.apply(_,[].concat(d))}l.apply(void 0,[].concat(d))},t.canvasMutationCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.canvasMutation){var _;(_=n).canvasMutation.apply(_,[].concat(d))}f.apply(void 0,[].concat(d))},t.fontCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.font){var _;(_=n).font.apply(_,[].concat(d))}p.apply(void 0,[].concat(d))},t.selectionCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.selection){var _;(_=n).selection.apply(_,[].concat(d))}g.apply(void 0,[].concat(d))},t.customElementCb=function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];if(n.customElement){var _;(_=n).customElement.apply(_,[].concat(d))}v.apply(void 0,[].concat(d))}}function v_(t,n){n===void 0&&(n={});var i=t.doc.defaultView;if(!i)return function(){};d_(t,n);var e;t.recordDOM&&(e=nf(t,t.doc));var r=n_(t),s=i_(t),o=sf(t),a=s_(t,{win:i}),u=a_(t),c=l_(t),l=function(){},f=function(){},p=function(){},g=function(){};t.recordDOM&&(l=u_(t,{win:i}),f=af(t,t.doc),p=c_(t,{win:i}),t.collectFonts&&(g=f_(t)));for(var v=h_(t),y=p_(t),d=[],m=I(t.plugins),_;!(_=m()).done;){var b=_.value;d.push(b.observer(b.callback,i,b.options))}return H(function(){Ye.forEach(function(C){return C.reset()}),e==null||e.disconnect(),r(),s(),o(),a(),u(),c(),l(),f(),p(),g(),v(),y(),d.forEach(function(C){return C()})})}function bi(t){return typeof window[t]!="undefined"}function Si(t){return!!(typeof window[t]!="undefined"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}for(var uf=(function(){function t(i){x(this,"iframeIdToRemoteIdMap",new WeakMap),x(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=i}var n=t.prototype;return n.getId=function(e,r,s,o){var a=s||this.getIdToRemoteIdMap(e),u=o||this.getRemoteIdToIdMap(e),c=a.get(r);return c||(c=this.generateIdFn(),a.set(r,c),u.set(c,r)),c},n.getIds=function(e,r){var s=this,o=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return r.map(function(u){return s.getId(e,u,o,a)})},n.getRemoteId=function(e,r,s){var o=s||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;var a=o.get(r);return a||-1},n.getRemoteIds=function(e,r){var s=this,o=this.getRemoteIdToIdMap(e);return r.map(function(a){return s.getRemoteId(e,a,o)})},n.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},n.getIdToRemoteIdMap=function(e){var r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r},n.getRemoteIdToIdMap=function(e){var r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r},t})(),g_=(function(){function t(i){x(this,"iframes",new WeakMap),x(this,"crossOriginIframeMap",new WeakMap),x(this,"crossOriginIframeMirror",new uf(Du)),x(this,"crossOriginIframeStyleMirror"),x(this,"crossOriginIframeRootIdMap",new WeakMap),x(this,"iframeContentDocumentMap",new WeakMap),x(this,"iframeObserverCleanupMap",new WeakMap),x(this,"mirror"),x(this,"mutationCb"),x(this,"wrappedEmit"),x(this,"loadListener"),x(this,"stylesheetManager"),x(this,"recordCrossOriginIframes"),this.mutationCb=i.mutationCb,this.wrappedEmit=i.wrappedEmit,this.stylesheetManager=i.stylesheetManager,this.recordCrossOriginIframes=i.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new uf(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=i.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var n=t.prototype;return n.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},n.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},n.setObserverCleanup=function(e,r){this.iframeObserverCleanupMap.set(e,r)},n.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},n.removeIframe=function(e){var r=this.iframeContentDocumentMap.get(e);r&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(r),this.mirror.removeNodeFromMap(r,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var s=this.iframeObserverCleanupMap.get(e);if(s){try{s()}catch(o){}this.iframeObserverCleanupMap.delete(e)}},n.addLoadListener=function(e){this.loadListener=e},n.attachIframe=function(e,r){var s,o;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((s=e.contentWindow)==null||s.addEventListener("message",this.handleMessage.bind(this))),(o=this.loadListener)==null||o.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},n.handleMessage=function(e){var r=e;if(!(r.data.type!=="rrweb"||r.origin!==r.data.origin)){var s=e.source;if(s){var o=this.crossOriginIframeMap.get(e.source);if(o){var a=this.transformCrossOriginEvent(o,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}}}},n.transformCrossOriginEvent=function(e,r){var s=this,o;switch(r.type){case j.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);var a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:j.IncrementalSnapshot,data:{source:D.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case j.Meta:case j.Load:case j.DomContentLoaded:return!1;case j.Plugin:return r;case j.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case j.IncrementalSnapshot:switch(r.data.source){case D.Mutation:return r.data.adds.forEach(function(u){s.replaceIds(u,e,["parentId","nextId","previousId"]),s.replaceIdOnNode(u.node,e);var c=s.crossOriginIframeRootIdMap.get(e);c&&s.patchRootIdOnNode(u.node,c)}),r.data.removes.forEach(function(u){s.replaceIds(u,e,["parentId","id"])}),r.data.attributes.forEach(function(u){s.replaceIds(u,e,["id"])}),r.data.texts.forEach(function(u){s.replaceIds(u,e,["id"])}),r;case D.Drag:case D.TouchMove:case D.MouseMove:return r.data.positions.forEach(function(u){s.replaceIds(u,e,["id"])}),r;case D.ViewportResize:return!1;case D.MediaInteraction:case D.MouseInteraction:case D.Scroll:case D.CanvasMutation:case D.Input:return this.replaceIds(r.data,e,["id"]),r;case D.StyleSheetRule:case D.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case D.Font:return r;case D.Selection:return r.data.ranges.forEach(function(u){s.replaceIds(u,e,["start","end"])}),r;case D.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),(o=r.data.styles)==null||o.forEach(function(u){s.replaceStyleIds(u,e,["styleId"])}),r}}return!1},n.replace=function(e,r,s,o){for(var a=I(o),u;!(u=a()).done;){var c=u.value;!Array.isArray(r[c])&&typeof r[c]!="number"||(Array.isArray(r[c])?r[c]=e.getIds(s,r[c]):r[c]=e.getId(s,r[c]))}return r},n.replaceIds=function(e,r,s){return this.replace(this.crossOriginIframeMirror,e,r,s)},n.replaceStyleIds=function(e,r,s){return this.replace(this.crossOriginIframeStyleMirror,e,r,s)},n.replaceIdOnNode=function(e,r){var s=this;this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(o){s.replaceIdOnNode(o,r)})},n.patchRootIdOnNode=function(e,r){var s=this;e.type!==Xl.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(function(o){s.patchRootIdOnNode(o,r)})},t})(),m_=(function(){function t(i){x(this,"shadowDoms",new WeakSet),x(this,"mutationCb"),x(this,"scrollCb"),x(this,"bypassOptions"),x(this,"mirror"),x(this,"restoreHandlers",[]),this.mutationCb=i.mutationCb,this.scrollCb=i.scrollCb,this.bypassOptions=i.bypassOptions,this.mirror=i.mirror,this.init()}var n=t.prototype;return n.init=function(){this.reset(),this.patchAttachShadow(Element,document)},n.addShadowRoot=function(e,r){var s=this;if(Ur(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var o=nf(z({},this.bypassOptions,{doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return o.disconnect()}),this.restoreHandlers.push(sf(z({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&s.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,s.mirror.getId(V.host(e))),s.restoreHandlers.push(af({mirror:s.mirror,stylesheetManager:s.bypassOptions.stylesheetManager},e))},0)}},n.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},n.patchAttachShadow=function(e,r){var s=this;this.restoreHandlers.push(zt(e.prototype,"attachShadow",function(o){return function(a){var u=o.call(this,a),c=V.shadowRoot(this);return c&&Jl(this)&&s.addShadowRoot(c,r),u}}))},n.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(r){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},t})(),yr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y_=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ci=0;Ci<yr.length;Ci++)y_[yr.charCodeAt(Ci)]=Ci;var __=function(n){var i=new Uint8Array(n),e,r=i.length,s="";for(e=0;e<r;e+=3)s+=yr[i[e]>>2],s+=yr[(i[e]&3)<<4|i[e+1]>>4],s+=yr[(i[e+1]&15)<<2|i[e+2]>>6],s+=yr[i[e+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s},cf=new Map;function w_(t,n){var i=cf.get(t);return i||(i=new Map,cf.set(t,i)),i.has(n)||i.set(n,[]),i.get(n)}var lf=function(t,n,i){if(!(!t||!(hf(t,n)||(typeof t=="undefined"?"undefined":T(t))==="object"))){var e=t.constructor.name,r=w_(i,e),s=r.indexOf(t);return s===-1&&(s=r.length,r.push(t)),s}};function Ei(t,n,i){if(M(t,Array))return t.map(function(v){return Ei(v,n,i)});if(t===null)return t;if(M(t,Float32Array)||M(t,Float64Array)||M(t,Int32Array)||M(t,Uint32Array)||M(t,Uint8Array)||M(t,Uint16Array)||M(t,Int16Array)||M(t,Int8Array)||M(t,Uint8ClampedArray)){var e=t.constructor.name;return{rr_type:e,args:[Object.values(t)]}}else if(M(t,ArrayBuffer)){var r=t.constructor.name,s=__(t);return{rr_type:r,base64:s}}else if(M(t,DataView)){var o=t.constructor.name;return{rr_type:o,args:[Ei(t.buffer,n,i),t.byteOffset,t.byteLength]}}else if(M(t,HTMLImageElement)){var a=t.constructor.name,u=t.src;return{rr_type:a,src:u}}else if(M(t,HTMLCanvasElement)){var c="HTMLImageElement",l=t.toDataURL();return{rr_type:c,src:l}}else if(M(t,ImageData)){var f=t.constructor.name;return{rr_type:f,args:[Ei(t.data,n,i),t.width,t.height]}}else if(hf(t,n)||(typeof t=="undefined"?"undefined":T(t))==="object"){var p=t.constructor.name,g=lf(t,n,i);return{rr_type:p,index:g}}return t}var ff=function(t,n,i){return t.map(function(e){return Ei(e,n,i)})},hf=function(t,n){var i=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=i.filter(function(r){return typeof n[r]=="function"});return!!e.find(function(r){return M(t,n[r])})};function b_(t,n,i,e){for(var r=function(){var c=u.value;try{if(typeof n.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var l=zt(n.CanvasRenderingContext2D.prototype,c,function(p){return function(){for(var g=this,v=arguments.length,y=new Array(v),d=0;d<v;d++)y[d]=arguments[d];return Me(this.canvas,i,e,!0)||setTimeout(function(){var m=ff(y,n,g);t(g.canvas,{type:gr["2D"],property:c,args:m})},0),p.apply(this,y)}});s.push(l)}catch(p){var f=yi(n.CanvasRenderingContext2D.prototype,c,{set:function(v){t(this.canvas,{type:gr["2D"],property:c,args:[v],setter:!0})}});s.push(f)}},s=[],o=Object.getOwnPropertyNames(n.CanvasRenderingContext2D.prototype),a=I(o),u;!(u=a()).done;)r();return function(){s.forEach(function(c){return c()})}}function S_(t){return t==="experimental-webgl"?"webgl":t}function pf(t,n,i,e){var r=[];try{var s=zt(t.HTMLCanvasElement.prototype,"getContext",function(o){return function(a){for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];if(!Me(this,n,i,!0)){var f=S_(a);if("__context"in this||(this.__context=f),e&&["webgl","webgl2"].includes(f))if(c[0]&&T(c[0])==="object"){var p=c[0];p.preserveDrawingBuffer||(p.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[].concat([a],c))}});r.push(s)}catch(o){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){r.forEach(function(o){return o()})}}function df(t,n,i,e,r,s){for(var o=function(){var f=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(f))return"continue";try{if(typeof t[f]!="function")return"continue";var p=zt(t,f,function(v){return function(){for(var y=arguments.length,d=new Array(y),m=0;m<y;m++)d[m]=arguments[m];var _=v.apply(this,d);if(lf(_,s,this),"tagName"in this.canvas&&!Me(this.canvas,e,r,!0)){var b=ff(d,s,this),C={type:n,property:f,args:b};i(this.canvas,C)}return _}});a.push(p)}catch(v){var g=yi(t,f,{set:function(d){i(this.canvas,{type:n,property:f,args:[d],setter:!0})}});a.push(g)}},a=[],u=Object.getOwnPropertyNames(t),c=I(u),l;!(l=c()).done;)o();return a}function C_(t,n,i,e){var r,s=[];if((r=s).push.apply(r,[].concat(df(n.WebGLRenderingContext.prototype,gr.WebGL,t,i,e,n))),typeof n.WebGL2RenderingContext!="undefined"){var o;(o=s).push.apply(o,[].concat(df(n.WebGL2RenderingContext.prototype,gr.WebGL2,t,i,e,n)))}return function(){s.forEach(function(a){return a()})}}var vf="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",E_=function(t){return Uint8Array.from(atob(t),function(n){return n.charCodeAt(0)})},gf=typeof window!="undefined"&&window.Blob&&new Blob([E_(vf)],{type:"text/javascript;charset=utf-8"});function I_(t){var n;try{if(n=gf&&(window.URL||window.webkitURL).createObjectURL(gf),!n)throw"";var i=new Worker(n,{name:t==null?void 0:t.name});return i.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(n)}),i}catch(e){return new Worker("data:text/javascript;base64,"+vf,{name:t==null?void 0:t.name})}finally{n&&(window.URL||window.webkitURL).revokeObjectURL(n)}}var O_=(function(){function t(i){var e=this;x(this,"pendingCanvasMutations",new Map),x(this,"rafStamps",{latestId:0,invokeId:null}),x(this,"mirror"),x(this,"mutationCb"),x(this,"resetObservers"),x(this,"frozen",!1),x(this,"locked",!1),x(this,"processMutation",function(f,p){var g=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(g||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(f)||e.pendingCanvasMutations.set(f,[]),e.pendingCanvasMutations.get(f).push(p)});var r=i.sampling,s=r===void 0?"all":r,o=i.win,a=i.blockClass,u=i.blockSelector,c=i.recordCanvas,l=i.dataURLOptions;this.mutationCb=i.mutationCb,this.mirror=i.mirror,c&&s==="all"&&this.initCanvasMutationObserver(o,a,u),c&&typeof s=="number"&&this.initCanvasFPSObserver(s,o,a,u,{dataURLOptions:l})}var n=t.prototype;return n.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},n.freeze=function(){this.frozen=!0},n.unfreeze=function(){this.frozen=!1},n.lock=function(){this.locked=!0},n.unlock=function(){this.locked=!1},n.initCanvasFPSObserver=function(e,r,s,o,a){var u=this,c=pf(r,s,o,!0),l=new Map,f=new I_;f.onmessage=function(m){var _=m.data.id;if(l.set(_,!1),"base64"in m.data){var b=m.data,C=b.base64,S=b.type,O=b.width,A=b.height;u.mutationCb({id:_,type:gr["2D"],commands:[{property:"clearRect",args:[0,0,O,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:C}],type:S}]},0,0]}]})}};var p=1e3/e,g=0,v,y=function(){var m=[];return r.document.querySelectorAll("canvas").forEach(function(_){Me(_,s,o,!0)||m.push(_)}),m},d=function(m){if(g&&m-g<p){v=requestAnimationFrame(d);return}g=m;var _=u;y().forEach(Cn(function(b){var C,S,O,A;return Dt(this,function(k){switch(k.label){case 0:return S=_.mirror.getId(b),l.get(S)?[2]:b.width===0||b.height===0?[2]:(l.set(S,!0),["webgl","webgl2"].includes(b.__context)&&(O=b.getContext(b.__context),((C=O==null?void 0:O.getContextAttributes())==null?void 0:C.preserveDrawingBuffer)===!1&&O.clear(O.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return A=k.sent(),f.postMessage({id:S,bitmap:A,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[A]),[2]}})})),v=requestAnimationFrame(d)};v=requestAnimationFrame(d),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},n.initCanvasMutationObserver=function(e,r,s){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var o=pf(e,r,s,!1),a=b_(this.processMutation.bind(this),e,r,s),u=C_(this.processMutation.bind(this),e,r,s);this.resetObservers=function(){o(),a(),u()}},n.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.startRAFTimestamping=function(){var e=this,r=function(s){e.rafStamps.latestId=s,requestAnimationFrame(r)};requestAnimationFrame(r)},n.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(r,s){var o=e.mirror.getId(s);e.flushPendingCanvasMutationFor(s,o)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},n.flushPendingCanvasMutationFor=function(e,r){if(!(this.frozen||this.locked)){var s=this.pendingCanvasMutations.get(e);if(!(!s||r===-1)){var o=s.map(function(u){u.type;var c=Lt(u,["type"]);return c}),a=s[0].type;this.mutationCb({id:r,type:a,commands:o}),this.pendingCanvasMutations.delete(e)}}},t})(),x_=(function(){function t(i){x(this,"trackedLinkElements",new WeakSet),x(this,"mutationCb"),x(this,"adoptedStyleSheetCb"),x(this,"styleMirror",new Hy),this.mutationCb=i.mutationCb,this.adoptedStyleSheetCb=i.adoptedStyleSheetCb}var n=t.prototype;return n.attachLinkElement=function(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)},n.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},n.adoptStyleSheets=function(e,r){var s,o=function(){var f=l.value,p=void 0;s.styleMirror.has(f)?p=s.styleMirror.getId(f):(p=s.styleMirror.add(f),u.push({styleId:p,rules:Array.from(f.rules||CSSRule,function(g,v){return{rule:Pu(g,f.href),index:v}})})),a.styleIds.push(p)};if(e.length!==0){for(var a={id:r,styleIds:[]},u=[],c=I(e),l;!(l=c()).done;)s=this,o();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},n.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},n.cleanupStylesheetsForRemovedNode=function(e){var r=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var s=e;if(s.adoptedStyleSheets)for(var o=I(s.adoptedStyleSheets),a;!(a=o()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var c=e;c.sheet&&this.styleMirror.remove(c.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(f){r.cleanupStylesheetsForRemovedNode(f)})}catch(f){}},n.trackStylesheetInLinkElement=function(e){},t})(),k_=(function(){function t(){x(this,"nodeMap",new WeakMap),x(this,"active",!1)}var n=t.prototype;return n.inOtherBuffer=function(e,r){var s=this.nodeMap.get(e);return s&&Array.from(s).some(function(o){return o!==r})},n.add=function(e,r){var s=this;this.active||(this.active=!0,requestAnimationFrame(function(){s.nodeMap=new WeakMap,s.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))},n.destroy=function(){},t})();function R_(t){try{var n=new URL(t).origin;return n!=="null"?n:null}catch(i){return null}}function A_(t){if(!Array.isArray(t)||t.length===0)throw new Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var n=new Set,i=0;i<t.length;i++){var e=t[i];if(typeof e!="string")throw new Error("[rrweb] allowedIframeOrigins["+i+"] must be a string, got "+(typeof e=="undefined"?"undefined":T(e))+".");var r=R_(e);r&&n.add(r)}return Object.freeze(n)}var ve,Ii,Vo,Oi=!1;try{if(Array.from([1],function(t){return t*2})[0]!==2){var jo=document.createElement("iframe");document.body.appendChild(jo),Array.from=((xu=jo.contentWindow)==null?void 0:xu.Array.from)||Array.from,document.body.removeChild(jo)}}catch(t){console.debug("Unable to override Array.from",t)}var qe=Id();function wt(t){t===void 0&&(t={});var n=t.emit,i=t.checkoutEveryNms,e=t.checkoutEveryNth,r=t.blockClass,s=r===void 0?"rr-block":r,o=t.blockSelector,a=o===void 0?null:o,u=t.ignoreClass,c=u===void 0?"rr-ignore":u,l=t.ignoreSelector,f=l===void 0?null:l,p=t.maskTextClass,g=p===void 0?"rr-mask":p,v=t.maskTextSelector,y=v===void 0?null:v,d=t.inlineStylesheet,m=d===void 0?!0:d,_=t.maskAllInputs,b=t.maskInputOptions,C=t.slimDOMOptions,S=t.maskInputFn,O=t.maskTextFn,A=t.hooks,k=t.packFn,$=t.sampling,W=$===void 0?{}:$,ge=t.dataURLOptions,L=ge===void 0?{}:ge,G=t.mousemoveWait,de=t.recordDOM,Y=de===void 0?!0:de,De=t.recordCanvas,Ne=De===void 0?!1:De,ke=t.recordCrossOriginIframes,pe=ke===void 0?!1:ke,xe=t.allowedIframeOrigins,Jt=t.recordAfter,nt=Jt===void 0?t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load":Jt,Xt=t.userTriggeredOnInput,ze=Xt===void 0?!1:Xt,$t=t.collectFonts,J=$t===void 0?!1:$t,Tr=t.inlineImages,Pr=Tr===void 0?!1:Tr,Nt=t.plugins,ws=t.keepIframeSrcFn,$r=ws===void 0?function(){return!1}:ws,bs=t.ignoreCSSAttributes,Ss=bs===void 0?new Set([]):bs,Sn=t.errorHandler;e_(Sn);var Zt;pe&&xe&&xe.length>0&&(Zt=A_(xe),Zt.size===0&&(Zt=void 0));var Qt=pe?window.parent===window:!0,er=!1;if(!Qt)try{window.parent.document&&(er=!1)}catch(K){er=!0}if(Qt&&!n)throw new Error("emit function is required");if(!Qt&&!er)return function(){};G!==void 0&&W.mousemove===void 0&&(W.mousemove=G),qe.reset();var tr=_===!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?b:{password:!0},rr=C===!0||C==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:C==="all",headMetaDescKeywords:C==="all",headTitleMutations:C==="all"}:C||{};jy();var pt,Nr=0,Vp=function(K){for(var Te=I(Nt||[]),P;!(P=Te()).done;){var ne=P.value;ne.eventProcessor&&(K=ne.eventProcessor(K))}return k&&!er&&(K=k(K)),K};ve=function(K,Te){var P,ne=K;if(ne.timestamp=_i(),(P=Ye[0])!=null&&P.isFrozen()&&ne.type!==j.FullSnapshot&&!(ne.type===j.IncrementalSnapshot&&ne.data.source===D.Mutation)&&Ye.forEach(function(NC){return NC.unfreeze()}),Qt)n==null||n(Vp(ne),Te);else if(er){var sr={type:"rrweb",event:Vp(ne),origin:window.location.origin,isCheckout:Te};if(Zt)for(var bu=I(Zt),Xp;!(Xp=bu()).done;){var TC=Xp.value;window.parent.postMessage(sr,TC)}else window.parent.postMessage(sr,"*")}if(ne.type===j.FullSnapshot)pt=ne,Nr=0;else if(ne.type===j.IncrementalSnapshot){if(ne.data.source===D.Mutation&&ne.data.isAttachIframe)return;Nr++;var PC=e&&Nr>=e,$C=i&&ne.timestamp-pt.timestamp>i;(PC||$C)&&Ii(!0)}};for(var Cs=function(K){ve({type:j.IncrementalSnapshot,data:z({source:D.Mutation},K)})},jp=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.Scroll},K)})},Hp=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.CanvasMutation},K)})},AC=function(K){return ve({type:j.IncrementalSnapshot,data:z({source:D.AdoptedStyleSheet},K)})},nr=new x_({mutationCb:Cs,adoptedStyleSheetCb:AC}),dt=new g_({mirror:qe,mutationCb:Cs,stylesheetManager:nr,recordCrossOriginIframes:pe,wrappedEmit:ve}),MC=I(Nt||[]),Yp;!(Yp=MC()).done;){var Kp=Yp.value;Kp.getMirror&&Kp.getMirror({nodeMirror:qe,crossOriginIframeMirror:dt.crossOriginIframeMirror,crossOriginIframeStyleMirror:dt.crossOriginIframeStyleMirror})}var _u=new k_;Vo=new O_({recordCanvas:Ne,mutationCb:Hp,win:window,blockClass:s,blockSelector:a,mirror:qe,sampling:W.canvas,dataURLOptions:L});var Es=new m_({mutationCb:Cs,scrollCb:jp,bypassOptions:{blockClass:s,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:tr,dataURLOptions:L,maskTextFn:O,maskInputFn:S,recordCanvas:Ne,inlineImages:Pr,sampling:W,slimDOMOptions:rr,iframeManager:dt,stylesheetManager:nr,canvasManager:Vo,keepIframeSrcFn:$r,processedNodeManager:_u},mirror:qe});Ii=function(K){if(K===void 0&&(K=!1),!!Y){ve({type:j.Meta,data:{href:window.location.href,width:Gl(),height:Wl()}},K),nr.reset(),Es.init(),Ye.forEach(function(P){return P.lock()});var Te=Kd(document,{mirror:qe,blockClass:s,blockSelector:a,maskTextClass:g,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:tr,maskTextFn:O,maskInputFn:S,slimDOM:rr,dataURLOptions:L,recordCanvas:Ne,inlineImages:Pr,onSerialize:function(P){Hl(P,qe)&&dt.addIframe(P),Yl(P,qe)&&nr.trackLinkElement(P),Wo(P)&&Es.addShadowRoot(V.shadowRoot(P),document)},onIframeLoad:function(P,ne){dt.attachIframe(P,ne),Es.observeAttachShadow(P)},onStylesheetLoad:function(P,ne){nr.attachLinkElement(P,ne)},keepIframeSrcFn:$r});if(!Te)return console.warn("Failed to snapshot the document");ve({type:j.FullSnapshot,data:{node:Te,initialOffset:ql(window)}},K),Ye.forEach(function(P){return P.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&nr.adoptStyleSheets(document.adoptedStyleSheets,qe.getId(document))}};try{var ir=[],Jp=function(K){var Te;return H(v_)({mutationCb:Cs,mousemoveCb:function(P,ne){return ve({type:j.IncrementalSnapshot,data:{source:ne,positions:P}})},mouseInteractionCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.MouseInteraction},P)})},scrollCb:jp,viewportResizeCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.ViewportResize},P)})},inputCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.Input},P)})},mediaInteractionCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.MediaInteraction},P)})},styleSheetRuleCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.StyleSheetRule},P)})},styleDeclarationCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.StyleDeclaration},P)})},canvasMutationCb:Hp,fontCb:function(P){return ve({type:j.IncrementalSnapshot,data:z({source:D.Font},P)})},selectionCb:function(P){ve({type:j.IncrementalSnapshot,data:z({source:D.Selection},P)})},customElementCb:function(P){ve({type:j.IncrementalSnapshot,data:z({source:D.CustomElement},P)})},blockClass:s,ignoreClass:c,ignoreSelector:f,maskTextClass:g,maskTextSelector:y,maskInputOptions:tr,inlineStylesheet:m,sampling:W,recordDOM:Y,recordCanvas:Ne,inlineImages:Pr,userTriggeredOnInput:ze,collectFonts:J,doc:K,maskInputFn:S,maskTextFn:O,keepIframeSrcFn:$r,blockSelector:a,slimDOMOptions:rr,dataURLOptions:L,mirror:qe,iframeManager:dt,stylesheetManager:nr,shadowDomManager:Es,processedNodeManager:_u,canvasManager:Vo,ignoreCSSAttributes:Ss,plugins:((Te=Nt==null?void 0:Nt.filter(function(P){return P.observer}))==null?void 0:Te.map(function(P){return{observer:P.observer,options:P.options,callback:function(ne){return ve({type:j.Plugin,data:{plugin:P.name,payload:ne}})}}}))||[]},A)};dt.addLoadListener(function(K){try{var Te=K.contentDocument,P=Jp(Te);ir.push(P);var ne=dt.getObserverCleanup(K);dt.setObserverCleanup(K,function(){if(ne)try{ne()}catch(bu){}try{P();var sr=ir.indexOf(P);sr!==-1&&ir.splice(sr,1),r_(Te)}catch(bu){}})}catch(sr){console.warn(sr)}});var wu=function(){Ii(),ir.push(Jp(document)),Oi=!0};return document.readyState==="interactive"||document.readyState==="complete"?wu():(ir.push(Ae("DOMContentLoaded",function(){ve({type:j.DomContentLoaded,data:{}}),nt==="DOMContentLoaded"&&wu()})),ir.push(Ae("load",function(){ve({type:j.Load,data:{}}),nt==="load"&&wu()},window))),function(){ir.forEach(function(K){try{K()}catch(P){var Te=String(P).toLowerCase();Te.includes("cross-origin")||console.warn(P)}}),_u.destroy(),Oi=!1,t_()}}catch(K){console.warn(K)}}wt.addCustomEvent=function(t,n){if(!Oi)throw new Error("please add custom event after start recording");ve({type:j.Custom,data:{tag:t,payload:n}})},wt.freezePage=function(){Ye.forEach(function(t){return t.freeze()})},wt.takeFullSnapshot=function(t){if(!Oi)throw new Error("please take full snapshot after start recording");Ii(t)},wt.mirror=qe;var mf;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(mf||(mf={})),wt.addCustomEvent,wt.freezePage,wt.takeFullSnapshot;var yf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_f={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xi={},M_=function(){return!!globalThis.Zone};function Ho(t){if(xi[t])return xi[t];var n=globalThis[t],i=n.prototype,e=t in yf?yf[t]:void 0,r=!!(e&&e.every(function(l){var f,p;return!!((p=(f=Object.getOwnPropertyDescriptor(i,l))==null?void 0:f.get)!=null&&p.toString().includes("[native code]"))})),s=t in _f?_f[t]:void 0,o=!!(s&&s.every(function(l){var f;return typeof i[l]=="function"&&((f=i[l])==null?void 0:f.toString().includes("[native code]"))}));if(r&&o&&!M_())return xi[t]=n.prototype,n.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return n.prototype;var c=u[t].prototype;return document.body.removeChild(a),c?xi[t]=c:i}catch(l){return i}}var Yo={};function bt(t,n,i){var e,r=t+"."+String(i);if(Yo[r])return Yo[r].call(n);var s=Ho(t),o=(e=Object.getOwnPropertyDescriptor(s,i))==null?void 0:e.get;return o?(Yo[r]=o,o.call(n)):n[i]}var Ko={};function wf(t,n,i){var e=t+"."+String(i);if(Ko[e])return Ko[e].bind(n);var r=Ho(t),s=r[i];return typeof s!="function"?n[i]:(Ko[e]=s,s.bind(n))}function T_(t){return bt("Node",t,"childNodes")}function P_(t){return bt("Node",t,"parentNode")}function $_(t){return bt("Node",t,"parentElement")}function N_(t){return bt("Node",t,"textContent")}function L_(t,n){return wf("Node",t,"contains")(n)}function D_(t){return wf("Node",t,"getRootNode")()}function F_(t){return!t||!("host"in t)?null:bt("ShadowRoot",t,"host")}function U_(t){return t.styleSheets}function B_(t){return!t||!("shadowRoot"in t)?null:bt("Element",t,"shadowRoot")}function z_(t,n){return bt("Element",t,"querySelector")(n)}function q_(t,n){return bt("Element",t,"querySelectorAll")(n)}function W_(){return Ho("MutationObserver").constructor}function G_(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var bf={childNodes:T_,parentNode:P_,parentElement:$_,textContent:N_,contains:L_,getRootNode:D_,host:F_,styleSheets:U_,shadowRoot:B_,querySelector:z_,querySelectorAll:q_,mutationObserver:W_,patch:G_};function Jo(t,n,i){if(!t)return!1;if(t.nodeType!==t.ELEMENT_NODE)return Jo(bf.parentNode(t),n);for(var e=t.classList.length;e--;){var r=t.classList[e];if(n.test(r))return!0}return Jo(bf.parentNode(t),n)}function V_(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function j_(t){if(t.__esModule)return t;var n=t.default;if(typeof n=="function"){var i=function e(){return M(this,e)?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};i.prototype=n.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),i}var Xo={exports:{}},ae=String,Sf=function(){return{isColorSupported:!1,reset:ae,bold:ae,dim:ae,italic:ae,underline:ae,inverse:ae,hidden:ae,strikethrough:ae,black:ae,red:ae,green:ae,yellow:ae,blue:ae,magenta:ae,cyan:ae,white:ae,gray:ae,bgBlack:ae,bgRed:ae,bgGreen:ae,bgYellow:ae,bgBlue:ae,bgMagenta:ae,bgCyan:ae,bgWhite:ae}};Xo.exports=Sf(),Xo.exports.createColors=Sf;var H_=Xo.exports,Y_={},K_=Object.freeze(Object.defineProperty({__proto__:null,default:Y_},Symbol.toStringTag,{value:"Module"})),_e=j_(K_),Cf=H_,Ef=_e,Zo=(function(t){ce(n,t);function n(e,r,s,o,a,u){var c;return c=t.call(this,e)||this,c.name="CssSyntaxError",c.reason=e,a&&(c.file=a),o&&(c.source=o),u&&(c.plugin=u),typeof r!="undefined"&&typeof s!="undefined"&&(typeof r=="number"?(c.line=r,c.column=s):(c.line=r.line,c.column=r.column,c.endLine=s.line,c.endColumn=s.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,n),c}var i=n.prototype;return i.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},i.showSourceCode=function(r){var s=this;if(!this.source)return"";var o=this.source;r==null&&(r=Cf.isColorSupported),Ef&&r&&(o=Ef(o));var a=o.split(/\r?\n/),u=Math.max(this.line-3,0),c=Math.min(this.line+2,a.length),l=String(c).length,f,p;if(r){var g=Cf.createColors(!0),v=g.bold,y=g.gray,d=g.red;f=function(m){return v(d(m))},p=function(m){return y(m)}}else f=p=function(m){return m};return a.slice(u,c).map(function(m,_){var b=u+1+_,C=" "+(" "+b).slice(-l)+" | ";if(b===s.line){var S=p(C.replace(/\d/g," "))+m.slice(0,s.column-1).replace(/[^\t]/g," ");return f(">")+p(C)+m+"\n "+S+f("^")}return" "+p(C)+m}).join("\n")},i.toString=function(){var r=this.showSourceCode();return r&&(r="\n\n"+r+"\n"),this.name+": "+this.message+r},n})(Dr(Error)),Qo=Zo;Zo.default=Zo;var St={};St.isClean=Symbol("isClean"),St.my=Symbol("my");var If={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function J_(t){return t[0].toUpperCase()+t.slice(1)}var ea=(function(){function t(i){this.builder=i}var n=t.prototype;return n.atrule=function(e,r){var s="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?s+=e.raws.afterName:o&&(s+=" "),e.nodes)this.block(e,s+o);else{var a=(e.raws.between||"")+(r?";":"");this.builder(s+o+a,e)}},n.beforeAfter=function(e,r){var s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):r==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");for(var o=e.parent,a=0;o&&o.type!=="root";)a+=1,o=o.parent;if(s.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var c=0;c<a;c++)s+=u}return s},n.block=function(e,r){var s=this.raw(e,"between","beforeOpen");this.builder(r+s+"{",e,"start");var o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")},n.body=function(e){for(var r=e.nodes.length-1;r>0&&e.nodes[r].type==="comment";)r-=1;for(var s=this.raw(e,"semicolon"),o=0;o<e.nodes.length;o++){var a=e.nodes[o],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,r!==o||s)}},n.comment=function(e){var r=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+s+"*/",e)},n.decl=function(e,r){var s=this.raw(e,"between","colon"),o=e.prop+s+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)},n.document=function(e){this.body(e)},n.raw=function(e,r,s){var o;if(s||(s=r),r&&(o=e.raws[r],typeof o!="undefined"))return o;var a=e.parent;if(s==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return If[s];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[s]!="undefined")return u.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);var c="raw"+J_(s);return this[c]?o=this[c](u,e):u.walk(function(l){if(o=l.raws[r],typeof o!="undefined")return!1}),typeof o=="undefined"&&(o=If[s]),u.rawCache[s]=o,o},n.rawBeforeClose=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length>0&&typeof s.raws.after!="undefined")return r=s.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawBeforeComment=function(e,r){var s;return e.walkComments(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeDecl=function(e,r){var s;return e.walkDecls(function(o){if(typeof o.raws.before!="undefined")return s=o.raws.before,s.includes("\n")&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s=="undefined"?s=this.raw(r,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s},n.rawBeforeOpen=function(e){var r;return e.walk(function(s){if(s.type!=="decl"&&(r=s.raws.between,typeof r!="undefined"))return!1}),r},n.rawBeforeRule=function(e){var r;return e.walk(function(s){if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before!="undefined")return r=s.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r},n.rawColon=function(e){var r;return e.walkDecls(function(s){if(typeof s.raws.between!="undefined")return r=s.raws.between.replace(/[^\s:]/g,""),!1}),r},n.rawEmptyBody=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length===0&&(r=s.raws.after,typeof r!="undefined"))return!1}),r},n.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var r;return e.walk(function(s){var o=s.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof s.raws.before!="undefined"){var a=s.raws.before.split("\n");return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r},n.rawSemicolon=function(e){var r;return e.walk(function(s){if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(r=s.raws.semicolon,typeof r!="undefined"))return!1}),r},n.rawValue=function(e,r){var s=e[r],o=e.raws[r];return o&&o.value===s?o.raw:s},n.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},n.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},n.stringify=function(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)},t})(),Of=ea;ea.default=ea;var X_=Of;function ta(t,n){var i=new X_(n);i.stringify(t)}var ki=ta;ta.default=ta;var Ri=St.isClean,Z_=St.my,Q_=Qo,ew=Of,tw=ki;function ra(t,n){var i=new t.constructor;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&e!=="proxyCache"){var r=t[e],s=typeof r=="undefined"?"undefined":T(r);e==="parent"&&s==="object"?n&&(i[e]=n):e==="source"?i[e]=r:Array.isArray(r)?i[e]=r.map(function(o){return ra(o,i)}):(s==="object"&&r!==null&&(r=ra(r)),i[e]=r)}return i}var na=(function(){function t(i){i===void 0&&(i={}),this.raws={},this[Ri]=!1,this[Z_]=!0;for(var e in i)if(e==="nodes"){this.nodes=[];for(var r=I(i[e]),s;!(s=r()).done;){var o=s.value;typeof o.clone=="function"?this.append(o.clone()):this.append(o)}}else this[e]=i[e]}var n=t.prototype;return n.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var r=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+r.input.from+":"+r.start.line+":"+r.start.column+"$&")}return e},n.after=function(e){return this.parent.insertAfter(this,e),this},n.assign=function(e){e===void 0&&(e={});for(var r in e)this[r]=e[r];return this},n.before=function(e){return this.parent.insertBefore(this,e),this},n.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},n.clone=function(e){e===void 0&&(e={});var r=ra(this);for(var s in e)r[s]=e[s];return r},n.cloneAfter=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertAfter(this,r),r},n.cloneBefore=function(e){e===void 0&&(e={});var r=this.clone(e);return this.parent.insertBefore(this,r),r},n.error=function(e,r){if(r===void 0&&(r={}),this.source){var s=this.rangeBy(r),o=s.end,a=s.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:o.column,line:o.line},r)}return new Q_(e)},n.getProxyProcessor=function(){return{get:function(r,s){return s==="proxyOf"?r:s==="root"?function(){return r.root().toProxy()}:r[s]},set:function(r,s,o){return r[s]===o||(r[s]=o,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&r.markDirty()),!0}}},n.markDirty=function(){if(this[Ri]){this[Ri]=!1;for(var e=this;e=e.parent;)e[Ri]=!1}},n.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},n.positionBy=function(e,r){var s=this.source.start;if(e.index)s=this.positionInside(e.index,r);else if(e.word){r=this.toString();var o=r.indexOf(e.word);o!==-1&&(s=this.positionInside(o,r))}return s},n.positionInside=function(e,r){for(var s=r||this.toString(),o=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)s[u]==="\n"?(o=1,a+=1):o+=1;return{column:o,line:a}},n.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},n.rangeBy=function(e){var r={column:this.source.start.column,line:this.source.start.line},s=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:r.column+1,line:r.line};if(e.word){var o=this.toString(),a=o.indexOf(e.word);a!==-1&&(r=this.positionInside(a,o),s=this.positionInside(a+e.word.length,o))}else e.start?r={column:e.start.column,line:e.start.line}:e.index&&(r=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<r.line||s.line===r.line&&s.column<=r.column)&&(s={column:r.column+1,line:r.line}),{end:s,start:r}},n.raw=function(e,r){var s=new ew;return s.raw(this,e,r)},n.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},n.replaceWith=function(){for(var e=arguments.length,r=new Array(e),s=0;s<e;s++)r[s]=arguments[s];if(this.parent){for(var o=this,a=!1,u=I(r),c;!(c=u()).done;){var l=c.value;l===this?a=!0:a?(this.parent.insertAfter(o,l),o=l):this.parent.insertBefore(o,l)}a||this.remove()}return this},n.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},n.toJSON=function(e,r){var s={},o=r==null;r=r||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var c=this[u];if(Array.isArray(c))s[u]=c.map(function(f){return(typeof f=="undefined"?"undefined":T(f))==="object"&&f.toJSON?f.toJSON(null,r):f});else if((typeof c=="undefined"?"undefined":T(c))==="object"&&c.toJSON)s[u]=c.toJSON(null,r);else if(u==="source"){var l=r.get(c.input);l==null&&(l=a,r.set(c.input,a),a++),s[u]={end:c.end,inputId:l,start:c.start}}else s[u]=c}return o&&(s.inputs=[].concat(r.keys()).map(function(f){return f.toJSON()})),s},n.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},n.toString=function(e){e===void 0&&(e=tw),e.stringify&&(e=e.stringify);var r="";return e(this,function(s){r+=s}),r},n.warn=function(e,r,s){var o={node:this};for(var a in s)o[a]=s[a];return e.warn(r,o)},ie(t,[{key:"proxyOf",get:function(){return this}}]),t})(),Ai=na;na.default=na;var rw=Ai,ia=(function(t){ce(n,t);function n(i){var e;return i&&typeof i.value!="undefined"&&typeof i.value!="string"&&(i=z({},i,{value:String(i.value)})),e=t.call(this,i)||this,e.type="decl",e}return ie(n,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),n})(rw),Mi=ia;ia.default=ia;var nw="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",iw=function(t){t===void 0&&(t=21);for(var n="",i=t;i--;)n+=nw[Math.random()*64|0];return n},sw={nanoid:iw},xf=_e.SourceMapConsumer,kf=_e.SourceMapGenerator,ow=_e.existsSync,aw=_e.readFileSync,sa=_e.dirname,uw=_e.join;function cw(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}var oa=(function(){function t(i,e){if(e.map!==!1){this.loadAnnotation(i),this.inline=this.startWith(this.annotation,"data:");var r=e.map?e.map.prev:void 0,s=this.loadMap(e.from,r);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=sa(this.mapFile)),s&&(this.text=s)}}var n=t.prototype;return n.consumer=function(){return this.consumerCache||(this.consumerCache=new xf(this.text)),this.consumerCache},n.decodeInline=function(e){var r=/^data:application\/json;charset=utf-?8;base64,/,s=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(o.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(r.test(e)||s.test(e))return cw(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},n.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},n.isMap=function(e){return(typeof e=="undefined"?"undefined":T(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},n.loadAnnotation=function(e){var r=e.match(/\/\*\s*# sourceMappingURL=/gm);if(r){var s=e.lastIndexOf(r.pop()),o=e.indexOf("*/",s);s>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(s,o)))}},n.loadFile=function(e){if(this.root=sa(e),ow(e))return this.mapFile=e,aw(e,"utf-8").toString().trim()},n.loadMap=function(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){var s=r(e);if(s){var o=this.loadFile(s);if(!o)throw new Error("Unable to load previous source map: "+s.toString());return o}}else{if(M(r,xf))return kf.fromSourceMap(r).toString();if(M(r,kf))return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=uw(sa(e),a)),this.loadFile(a)}}},n.startWith=function(e,r){return e?e.substr(0,r.length)===r:!1},n.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},t})(),Rf=oa;oa.default=oa;var lw=_e.SourceMapConsumer,fw=_e.SourceMapGenerator,Af=_e.fileURLToPath,Ti=_e.pathToFileURL,aa=_e.isAbsolute,ua=_e.resolve,hw=sw.nanoid,ca=_e,Mf=Qo,pw=Rf,la=Symbol("fromOffsetCache"),dw=!!(lw&&fw),Tf=!!(ua&&aa),Pi=(function(){function t(i,e){if(e===void 0&&(e={}),i===null||typeof i=="undefined"||(typeof i=="undefined"?"undefined":T(i))==="object"&&!i.toString)throw new Error("PostCSS received "+i+" instead of CSS string");if(this.css=i.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Tf||/^\w+:\/\//.test(e.from)||aa(e.from)?this.file=e.from:this.file=ua(e.from)),Tf&&dw){var r=new pw(this.css,e);if(r.text){this.map=r;var s=r.consumer().file;!this.file&&s&&(this.file=this.mapResolve(s))}}this.file||(this.id="<input css "+hw(6)+">"),this.map&&(this.map.file=this.from)}var n=t.prototype;return n.error=function(e,r,s,o){o===void 0&&(o={});var a,u,c;if(r&&(typeof r=="undefined"?"undefined":T(r))==="object"){var l=r,f=s;if(typeof l.offset=="number"){var p=this.fromOffset(l.offset);r=p.line,s=p.col}else r=l.line,s=l.column;if(typeof f.offset=="number"){var g=this.fromOffset(f.offset);u=g.line,c=g.col}else u=f.line,c=f.column}else if(!s){var v=this.fromOffset(r);r=v.line,s=v.col}var y=this.origin(r,s,u,c);return y?a=new Mf(e,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,o.plugin):a=new Mf(e,u===void 0?r:{column:s,line:r},u===void 0?s:{column:c,line:u},this.css,this.file,o.plugin),a.input={column:s,endColumn:c,endLine:u,line:r,source:this.css},this.file&&(Ti&&(a.input.url=Ti(this.file).toString()),a.input.file=this.file),a},n.fromOffset=function(e){var r,s;if(this[la])s=this[la];else{var o=this.css.split("\n");s=new Array(o.length);for(var a=0,u=0,c=o.length;u<c;u++)s[u]=a,a+=o[u].length+1;this[la]=s}r=s[s.length-1];var l=0;if(e>=r)l=s.length-1;else for(var f=s.length-2,p;l<f;)if(p=l+(f-l>>1),e<s[p])f=p-1;else if(e>=s[p+1])l=p+1;else{l=p;break}return{col:e-s[l]+1,line:l+1}},n.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ua(this.map.consumer().sourceRoot||this.map.root||".",e)},n.origin=function(e,r,s,o){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:r,line:e});if(!u.source)return!1;var c;typeof s=="number"&&(c=a.originalPositionFor({column:o,line:s}));var l;aa(u.source)?l=Ti(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Ti(this.map.mapFile));var f={column:u.column,endColumn:c&&c.column,endLine:c&&c.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Af)f.file=Af(l);else throw new Error("file: protocol is not available in this PostCSS build");var p=a.sourceContentFor(u.source);return p&&(f.source=p),f},n.toJSON=function(){for(var e={},r=0,s=["hasBOM","css","file","id"];r<s.length;r++){var o=s[r];this[o]!=null&&(e[o]=this[o])}return this.map&&(e.map=z({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},ie(t,[{key:"from",get:function(){return this.file||this.id}}]),t})(),$i=Pi;Pi.default=Pi,ca&&ca.registerInput&&ca.registerInput(Pi);var Pf=_e.SourceMapConsumer,Ni=_e.SourceMapGenerator,Li=_e.dirname,$f=_e.relative,Nf=_e.resolve,Lf=_e.sep,Df=_e.pathToFileURL,vw=$i,gw=!!(Pf&&Ni),mw=!!(Li&&Nf&&$f&&Lf),yw=(function(){function t(i,e,r,s){this.stringify=i,this.mapOpts=r.map||{},this.root=e,this.opts=r,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var n=t.prototype;return n.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var r="\n";this.css.includes("\r\n")&&(r="\r\n"),this.css+=r+"/*# sourceMappingURL="+e+" */"},n.applyPrevMaps=function(){for(var e=I(this.previous()),r;!(r=e()).done;){var s=r.value,o=this.toUrl(this.path(s.file)),a=s.root||Li(s.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Pf(s.text),u.sourcesContent&&(u.sourcesContent=null)):u=s.consumer(),this.map.applySourceMap(u,o,this.toUrl(this.path(a)))}},n.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,r=this.root.nodes.length-1;r>=0;r--)e=this.root.nodes[r],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(r);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},n.generate=function(){if(this.clearAnnotation(),mw&&gw&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(r){e+=r}),[e]},n.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=Ni.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Ni({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]},n.generateString=function(){var e=this;this.css="",this.map=new Ni({file:this.outputFile(),ignoreInvalidMapping:!0});var r=1,s=1,o="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,c;this.stringify(this.root,function(l,f,p){if(e.css+=l,f&&p!=="end"&&(a.generated.line=r,a.generated.column=s-1,f.source&&f.source.start?(a.source=e.sourcePath(f),a.original.line=f.source.start.line,a.original.column=f.source.start.column-1,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(r+=u.length,c=l.lastIndexOf("\n"),s=l.length-c):s+=l.length,f&&p!=="start"){var g=f.parent||{raws:{}},v=f.type==="decl"||f.type==="atrule"&&!f.nodes;(!v||f!==g.last||g.raws.semicolon)&&(f.source&&f.source.end?(a.source=e.sourcePath(f),a.original.line=f.source.end.line,a.original.column=f.source.end.column-1,a.generated.line=r,a.generated.column=s-2,e.map.addMapping(a)):(a.source=o,a.original.line=1,a.original.column=0,a.generated.line=r,a.generated.column=s-1,e.map.addMapping(a)))}})},n.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},n.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(r){return r.inline}):!0},n.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},n.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},n.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},n.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var r=this.memoizedPaths.get(e);if(r)return r;var s=this.opts.to?Li(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(s=Li(Nf(s,this.mapOpts.annotation)));var o=$f(s,e);return this.memoizedPaths.set(e,o),o},n.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(s){if(s.source&&s.source.input.map){var o=s.source.input.map;e.previousMaps.includes(o)||e.previousMaps.push(o)}});else{var r=new vw(this.originalCSS,this.opts);r.map&&this.previousMaps.push(r.map)}return this.previousMaps},n.setSourcesContent=function(){var e=this,r={};if(this.root)this.root.walk(function(o){if(o.source){var a=o.source.input.from;if(a&&!r[a]){r[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,o.source.input.css)}}});else if(this.css){var s=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(s,this.css)}},n.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))},n.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},n.toFileUrl=function(e){var r=this.memoizedFileURLs.get(e);if(r)return r;if(Df){var s=Df(e).toString();return this.memoizedFileURLs.set(e,s),s}else throw new Error("`map.absolute` option is not available in this PostCSS build")},n.toUrl=function(e){var r=this.memoizedURLs.get(e);if(r)return r;Lf==="\\"&&(e=e.replace(/\\/g,"/"));var s=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,s),s},t})(),Ff=yw,_w=Ai,fa=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="comment",e}return n})(_w),Di=fa;fa.default=fa;var Uf=St.isClean,Bf=St.my,zf=Mi,qf=Di,ww=Ai,Wf,ha,pa,Gf;function Vf(t){return t.map(function(n){return n.nodes&&(n.nodes=Vf(n.nodes)),delete n.source,n})}function jf(t){if(t[Uf]=!1,t.proxyOf.nodes)for(var n=I(t.proxyOf.nodes),i;!(i=n()).done;){var e=i.value;jf(e)}}var at=(function(t){ce(n,t);function n(){return t.apply(this,arguments)||this}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];for(var a=I(s),u;!(u=a()).done;)for(var c=u.value,l=this.normalize(c,this.last),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.push(g)}return this.markDirty(),this},i.cleanRaws=function(r){if(t.prototype.cleanRaws.call(this,r),this.nodes)for(var s=I(this.nodes),o;!(o=s()).done;){var a=o.value;a.cleanRaws(r)}},i.each=function(r){if(this.proxyOf.nodes){for(var s=this.getIterator(),o,a;this.indexes[s]<this.proxyOf.nodes.length&&(o=this.indexes[s],a=r(this.proxyOf.nodes[o],o),a!==!1);)this.indexes[s]+=1;return delete this.indexes[s],a}},i.every=function(r){return this.nodes.every(r)},i.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var r=this.lastEach;return this.indexes[r]=0,r},i.getProxyProcessor=function(){return{get:function(s,o){return o==="proxyOf"?s:s[o]?o==="each"||typeof o=="string"&&o.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];var l;return(l=s)[o].apply(l,[].concat(u.map(function(f){return typeof f=="function"?function(p,g){return f(p.toProxy(),g)}:f})))}:o==="every"||o==="some"?function(a){return s[o](function(u){for(var c=arguments.length,l=new Array(c>1?c-1:0),f=1;f<c;f++)l[f-1]=arguments[f];return a.apply(void 0,[].concat([u.toProxy()],l))})}:o==="root"?function(){return s.root().toProxy()}:o==="nodes"?s.nodes.map(function(a){return a.toProxy()}):o==="first"||o==="last"?s[o].toProxy():s[o]:s[o]},set:function(s,o,a){return s[o]===a||(s[o]=a,(o==="name"||o==="params"||o==="selector")&&s.markDirty()),!0}}},i.index=function(r){return typeof r=="number"?r:(r.proxyOf&&(r=r.proxyOf),this.proxyOf.nodes.indexOf(r))},i.insertAfter=function(r,s){var o=this.index(r),a=this.normalize(s,this.proxyOf.nodes[o]).reverse();o=this.index(r);for(var u=I(a),c;!(c=u()).done;){var l=c.value;this.proxyOf.nodes.splice(o+1,0,l)}var f;for(var p in this.indexes)f=this.indexes[p],o<f&&(this.indexes[p]=f+a.length);return this.markDirty(),this},i.insertBefore=function(r,s){var o=this.index(r),a=o===0?"prepend":!1,u=this.normalize(s,this.proxyOf.nodes[o],a).reverse();o=this.index(r);for(var c=I(u),l;!(l=c()).done;){var f=l.value;this.proxyOf.nodes.splice(o,0,f)}var p;for(var g in this.indexes)p=this.indexes[g],o<=p&&(this.indexes[g]=p+u.length);return this.markDirty(),this},i.normalize=function(r,s){var o=this;if(typeof r=="string")r=Vf(Wf(r).nodes);else if(typeof r=="undefined")r=[];else if(Array.isArray(r)){r=r.slice(0);for(var a=I(r),u;!(u=a()).done;){var c=u.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(r.type==="root"&&this.type!=="document"){r=r.nodes.slice(0);for(var l=I(r),f;!(f=l()).done;){var p=f.value;p.parent&&p.parent.removeChild(p,"ignore")}}else if(r.type)r=[r];else if(r.prop){if(typeof r.value=="undefined")throw new Error("Value field is missed in node creation");typeof r.value!="string"&&(r.value=String(r.value)),r=[new zf(r)]}else if(r.selector)r=[new ha(r)];else if(r.name)r=[new pa(r)];else if(r.text)r=[new qf(r)];else throw new Error("Unknown node type in node creation");var g=r.map(function(v){return v[Bf]||n.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Uf]&&jf(v),typeof v.raws.before=="undefined"&&s&&typeof s.raws.before!="undefined"&&(v.raws.before=s.raws.before.replace(/\S/g,"")),v.parent=o.proxyOf,v});return g},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];s=s.reverse();for(var a=I(s),u;!(u=a()).done;){for(var c=u.value,l=this.normalize(c,this.first,"prepend").reverse(),f=I(l),p;!(p=f()).done;){var g=p.value;this.proxyOf.nodes.unshift(g)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+l.length}return this.markDirty(),this},i.push=function(r){return r.parent=this,this.proxyOf.nodes.push(r),this},i.removeAll=function(){for(var r=I(this.proxyOf.nodes),s;!(s=r()).done;){var o=s.value;o.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},i.removeChild=function(r){r=this.index(r),this.proxyOf.nodes[r].parent=void 0,this.proxyOf.nodes.splice(r,1);var s;for(var o in this.indexes)s=this.indexes[o],s>=r&&(this.indexes[o]=s-1);return this.markDirty(),this},i.replaceValues=function(r,s,o){return o||(o=s,s={}),this.walkDecls(function(a){s.props&&!s.props.includes(a.prop)||s.fast&&!a.value.includes(s.fast)||(a.value=a.value.replace(r,o))}),this.markDirty(),this},i.some=function(r){return this.nodes.some(r)},i.walk=function(r){return this.each(function(s,o){var a;try{a=r(s,o)}catch(u){throw s.addToError(u)}return a!==!1&&s.walk&&(a=s.walk(r)),a})},i.walkAtRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="atrule"&&r.test(o.name))return s(o,a)}):this.walk(function(o,a){if(o.type==="atrule"&&o.name===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="atrule")return s(o,a)}))},i.walkComments=function(r){return this.walk(function(s,o){if(s.type==="comment")return r(s,o)})},i.walkDecls=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="decl"&&r.test(o.prop))return s(o,a)}):this.walk(function(o,a){if(o.type==="decl"&&o.prop===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="decl")return s(o,a)}))},i.walkRules=function(r,s){return s?M(r,RegExp)?this.walk(function(o,a){if(o.type==="rule"&&r.test(o.selector))return s(o,a)}):this.walk(function(o,a){if(o.type==="rule"&&o.selector===r)return s(o,a)}):(s=r,this.walk(function(o,a){if(o.type==="rule")return s(o,a)}))},ie(n,[{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]}}]),n})(ww);at.registerParse=function(t){Wf=t},at.registerRule=function(t){ha=t},at.registerAtRule=function(t){pa=t},at.registerRoot=function(t){Gf=t};var qt=at;at.default=at,at.rebuild=function(t){t.type==="atrule"?Object.setPrototypeOf(t,pa.prototype):t.type==="rule"?Object.setPrototypeOf(t,ha.prototype):t.type==="decl"?Object.setPrototypeOf(t,zf.prototype):t.type==="comment"?Object.setPrototypeOf(t,qf.prototype):t.type==="root"&&Object.setPrototypeOf(t,Gf.prototype),t[Bf]=!0,t.nodes&&t.nodes.forEach(function(n){at.rebuild(n)})};var bw=qt,Hf,Yf,sn=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,z({type:"document"},e))||this,r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.toResult=function(r){r===void 0&&(r={});var s=new Hf(new Yf,this,r);return s.stringify()},n})(bw);sn.registerLazyResult=function(t){Hf=t},sn.registerProcessor=function(t){Yf=t};var da=sn;sn.default=sn;var Kf={},Jf=function(n){Kf[n]||(Kf[n]=!0,typeof console!="undefined"&&console.warn&&console.warn(n))},va=(function(){function t(i,e){if(e===void 0&&(e={}),this.type="warning",this.text=i,e.node&&e.node.source){var r=e.node.rangeBy(e);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var s in e)this[s]=e[s]}var n=t.prototype;return n.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},t})(),Xf=va;va.default=va;var Sw=Xf,ga=(function(){function t(i,e,r){this.processor=i,this.messages=[],this.root=e,this.opts=r,this.css=void 0,this.map=void 0}var n=t.prototype;return n.toString=function(){return this.css},n.warn=function(e,r){r===void 0&&(r={}),r.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(r.plugin=this.lastPlugin.postcssPlugin);var s=new Sw(e,r);return this.messages.push(s),s},n.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},ie(t,[{key:"content",get:function(){return this.css}}]),t})(),ma=ga;ga.default=ga;var ya=39,Zf=34,Fi=92,Qf=47,Ui=10,on=32,Bi=12,zi=9,qi=13,Cw=91,Ew=93,Iw=40,Ow=41,xw=123,kw=125,Rw=59,Aw=42,Mw=58,Tw=64,Wi=/[\t\n\f\r "#'()/;[\\\]{}]/g,Gi=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Pw=/.[\r\n"'(/\\]/,eh=/[\da-f]/i,$w=function(n,i){i===void 0&&(i={});var e=n.css.valueOf(),r=i.ignoreErrors,s,o,a,u,c,l,f,p,g,v,y=e.length,d=0,m=[],_=[];function b(){return d}function C(k){throw n.error("Unclosed "+k,d)}function S(){return _.length===0&&d>=y}function O(k){if(_.length)return _.pop();if(!(d>=y)){var $=k?k.ignoreUnclosed:!1;switch(s=e.charCodeAt(d),s){case Ui:case on:case zi:case qi:case Bi:{o=d;do o+=1,s=e.charCodeAt(o);while(s===on||s===Ui||s===zi||s===qi||s===Bi);v=["space",e.slice(d,o)],d=o-1;break}case Cw:case Ew:case xw:case kw:case Mw:case Rw:case Ow:{var W=String.fromCharCode(s);v=[W,W,d];break}case Iw:{if(p=m.length?m.pop()[1]:"",g=e.charCodeAt(d+1),p==="url"&&g!==ya&&g!==Zf&&g!==on&&g!==Ui&&g!==zi&&g!==Bi&&g!==qi){o=d;do{if(l=!1,o=e.indexOf(")",o+1),o===-1)if(r||$){o=d;break}else C("bracket");for(f=o;e.charCodeAt(f-1)===Fi;)f-=1,l=!l}while(l);v=["brackets",e.slice(d,o+1),d,o],d=o}else o=e.indexOf(")",d+1),u=e.slice(d,o+1),o===-1||Pw.test(u)?v=["(","(",d]:(v=["brackets",u,d,o],d=o);break}case ya:case Zf:{a=s===ya?"'":'"',o=d;do{if(l=!1,o=e.indexOf(a,o+1),o===-1)if(r||$){o=d+1;break}else C("string");for(f=o;e.charCodeAt(f-1)===Fi;)f-=1,l=!l}while(l);v=["string",e.slice(d,o+1),d,o],d=o;break}case Tw:{Wi.lastIndex=d+1,Wi.test(e),Wi.lastIndex===0?o=e.length-1:o=Wi.lastIndex-2,v=["at-word",e.slice(d,o+1),d,o],d=o;break}case Fi:{for(o=d,c=!0;e.charCodeAt(o+1)===Fi;)o+=1,c=!c;if(s=e.charCodeAt(o+1),c&&s!==Qf&&s!==on&&s!==Ui&&s!==zi&&s!==qi&&s!==Bi&&(o+=1,eh.test(e.charAt(o)))){for(;eh.test(e.charAt(o+1));)o+=1;e.charCodeAt(o+1)===on&&(o+=1)}v=["word",e.slice(d,o+1),d,o],d=o;break}default:{s===Qf&&e.charCodeAt(d+1)===Aw?(o=e.indexOf("*/",d+2)+1,o===0&&(r||$?o=e.length:C("comment")),v=["comment",e.slice(d,o+1),d,o],d=o):(Gi.lastIndex=d+1,Gi.test(e),Gi.lastIndex===0?o=e.length-1:o=Gi.lastIndex-2,v=["word",e.slice(d,o+1),d,o],m.push(v),d=o);break}}return d++,v}}function A(k){_.push(k)}return{back:A,endOfFile:S,nextToken:O,position:b}},th=qt,Vi=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="atrule",r}var i=n.prototype;return i.append=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.append).call.apply(a,[].concat([this],s))},i.prepend=function(){for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=t.prototype.prepend).call.apply(a,[].concat([this],s))},n})(th),_a=Vi;Vi.default=Vi,th.registerAtRule(Vi);var rh=qt,nh,ih,_r=(function(t){ce(n,t);function n(e){var r;return r=t.call(this,e)||this,r.type="root",r.nodes||(r.nodes=[]),r}var i=n.prototype;return i.normalize=function(r,s,o){var a=t.prototype.normalize.call(this,r);if(s){if(o==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(var u=I(a),c;!(c=u()).done;){var l=c.value;l.raws.before=s.raws.before}}return a},i.removeChild=function(r,s){var o=this.index(r);return!s&&o===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[o].raws.before),t.prototype.removeChild.call(this,r)},i.toResult=function(r){r===void 0&&(r={});var s=new nh(new ih,this,r);return s.stringify()},n})(rh);_r.registerLazyResult=function(t){nh=t},_r.registerProcessor=function(t){ih=t};var an=_r;_r.default=_r,rh.registerRoot(_r);var un={comma:function(n){return un.split(n,[","],!0)},space:function(n){var i=[" ","\n"," "];return un.split(n,i)},split:function(n,i,e){for(var r=[],s="",o=!1,a=0,u=!1,c="",l=!1,f=I(n),p;!(p=f()).done;){var g=p.value;l?l=!1:g==="\\"?l=!0:u?g===c&&(u=!1):g==='"'||g==="'"?(u=!0,c=g):g==="("?a+=1:g===")"?a>0&&(a-=1):a===0&&i.includes(g)&&(o=!0),o?(s!==""&&r.push(s.trim()),s="",o=!1):s+=g}return(e||s!=="")&&r.push(s.trim()),r}},sh=un;un.default=un;var oh=qt,Nw=sh,ji=(function(t){ce(n,t);function n(i){var e;return e=t.call(this,i)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return ie(n,[{key:"selectors",get:function(){return Nw.comma(this.selector)},set:function(e){var r=this.selector?this.selector.match(/,\s*/):null,s=r?r[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}}]),n})(oh),wa=ji;ji.default=ji,oh.registerRule(ji);var Lw=Mi,Dw=$w,Fw=Di,Uw=_a,Bw=an,ah=wa,uh={empty:!0,space:!0};function zw(t){for(var n=t.length-1;n>=0;n--){var i=t[n],e=i[3]||i[2];if(e)return e}}var qw=(function(){function t(i){this.input=i,this.root=new Bw,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}var n=t.prototype;return n.atrule=function(e){var r=new Uw;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);for(var s,o,a,u=!1,c=!1,l=[],f=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),s=e[0],s==="("||s==="["?f.push(s==="("?")":"]"):s==="{"&&f.length>0?f.push("}"):s===f[f.length-1]&&f.pop(),f.length===0)if(s===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(s==="{"){c=!0;break}else if(s==="}"){if(l.length>0){for(a=l.length-1,o=l[a];o&&o[0]==="space";)o=l[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(r.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(r,"params",l),u&&(e=l[l.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),c&&(r.nodes=[],this.current=r)},n.checkMissedSemicolon=function(e){var r=this.colon(e);if(r!==!1){for(var s=0,o,a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(s+=1,s===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}},n.colon=function(e){for(var r=0,s,o,a,u=I(e.entries()),c;!(c=u()).done;){var l=c.value,f=l[0],p=l[1];if(s=p,o=s[0],o==="("&&(r+=1),o===")"&&(r-=1),r===0&&o===":")if(!a)this.doubleColon(s);else{if(a[0]==="word"&&a[1]==="progid")continue;return f}a=s}return!1},n.comment=function(e){var r=new Fw;this.init(r,e[2]),r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++;var s=e[1].slice(2,-2);if(/^\s*$/.test(s))r.text="",r.raws.left=s,r.raws.right="";else{var o=s.match(/^(\s*)([^]*\S)(\s*)$/);r.text=o[2],r.raws.left=o[1],r.raws.right=o[3]}},n.createTokenizer=function(){this.tokenizer=Dw(this.input)},n.decl=function(e,r){var s=new Lw;this.init(s,e[0][2]);var o=e[e.length-1];for(o[0]===";"&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||zw(e)),s.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;s.prop+=e.shift()[1]}s.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){s.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),s.raws.between+=u[1];(s.prop[0]==="_"||s.prop[0]==="*")&&(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));for(var c=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)c.push(e.shift());this.precheckMissedSemicolon(e);for(var f=e.length-1;f>=0;f--){if(u=e[f],u[1].toLowerCase()==="!important"){s.important=!0;var p=this.stringFrom(e,f);p=this.spacesFromEnd(e)+p,p!==" !important"&&(s.raws.important=p);break}else if(u[1].toLowerCase()==="important"){for(var g=e.slice(0),v="",y=f;y>0;y--){var d=g[y][0];if(v.trim().indexOf("!")===0&&d!=="space")break;v=g.pop()[1]+v}v.trim().indexOf("!")===0&&(s.important=!0,s.raws.important=v,e=g)}if(u[0]!=="space"&&u[0]!=="comment")break}var m=e.some(function(_){return _[0]!=="space"&&_[0]!=="comment"});m&&(s.raws.between+=c.map(function(_){return _[1]}).join(""),c=[]),this.raw(s,"value",c.concat(e),r),s.value.includes(":")&&!r&&this.checkMissedSemicolon(e)},n.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},n.emptyRule=function(e){var r=new ah;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r},n.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)},n.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())},n.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="")}},n.getPosition=function(e){var r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}},n.init=function(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},n.other=function(e){for(var r=!1,s=null,o=!1,a=null,u=[],c=e[1].startsWith("--"),l=[],f=e;f;){if(s=f[0],l.push(f),s==="("||s==="[")a||(a=f),u.push(s==="("?")":"]");else if(c&&o&&s==="{")a||(a=f),u.push("}");else if(u.length===0)if(s===";")if(o){this.decl(l,c);return}else break;else if(s==="{"){this.rule(l);return}else if(s==="}"){this.tokenizer.back(l.pop()),r=!0;break}else s===":"&&(o=!0);else s===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));f=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),u.length>0&&this.unclosedBracket(a),r&&o){if(!c)for(;l.length&&(f=l[l.length-1][0],!(f!=="space"&&f!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,c)}else this.unknownWord(l)},n.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);break}this.endFile()},n.precheckMissedSemicolon=function(){},n.raw=function(e,r,s,o){for(var a,u,c=s.length,l="",f=!0,p,g,v=0;v<c;v+=1)a=s[v],u=a[0],u==="space"&&v===c-1&&!o?f=!1:u==="comment"?(g=s[v-1]?s[v-1][0]:"empty",p=s[v+1]?s[v+1][0]:"empty",!uh[g]&&!uh[p]?l.slice(-1)===","?f=!1:l+=a[1]:f=!1):l+=a[1];if(!f){var y=s.reduce(function(d,m){return d+m[1]},"");e.raws[r]={raw:y,value:l}}e[r]=l},n.rule=function(e){e.pop();var r=new ah;this.init(r,e[0][2]),r.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(r,"selector",e),this.current=r},n.spacesAndCommentsFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],!(r!=="space"&&r!=="comment"));)s=e.pop()[1]+s;return s},n.spacesAndCommentsFromStart=function(e){for(var r,s="";e.length&&(r=e[0][0],!(r!=="space"&&r!=="comment"));)s+=e.shift()[1];return s},n.spacesFromEnd=function(e){for(var r,s="";e.length&&(r=e[e.length-1][0],r==="space");)s=e.pop()[1]+s;return s},n.stringFrom=function(e,r){for(var s="",o=r;o<e.length;o++)s+=e[o][1];return e.splice(r,e.length-r),s},n.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},n.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},n.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},n.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},n.unnamedAtrule=function(e,r){throw this.input.error("At-rule without name",{offset:r[2]},{offset:r[2]+r[1].length})},t})(),Ww=qw,Gw=qt,Vw=Ww,jw=$i;function Hi(t,n){var i=new jw(t,n),e=new Vw(i);try{e.parse()}catch(r){throw process.env.NODE_ENV!=="production"&&r.name==="CssSyntaxError"&&n&&n.from&&(/\.scss$/i.test(n.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(n.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(n.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return e.root}var ba=Hi;Hi.default=Hi,Gw.registerParse(Hi);var Ke=St.isClean,Hw=St.my,Yw=Ff,Kw=ki,Jw=qt,Xw=da,Zw=Jf,ch=ma,Qw=ba,eb=an,tb={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},rb={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},nb={Once:!0,postcssPlugin:!0,prepare:!0},wr=0;function cn(t){return(typeof t=="undefined"?"undefined":T(t))==="object"&&typeof t.then=="function"}function lh(t){var n=!1,i=tb[t.type];return t.type==="decl"?n=t.prop.toLowerCase():t.type==="atrule"&&(n=t.name.toLowerCase()),n&&t.append?[i,i+"-"+n,wr,i+"Exit",i+"Exit-"+n]:n?[i,i+"-"+n,i+"Exit",i+"Exit-"+n]:t.append?[i,wr,i+"Exit"]:[i,i+"Exit"]}function fh(t){var n;return t.type==="document"?n=["Document",wr,"DocumentExit"]:t.type==="root"?n=["Root",wr,"RootExit"]:n=lh(t),{eventIndex:0,events:n,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Sa(t){return t[Ke]=!1,t.nodes&&t.nodes.forEach(function(n){return Sa(n)}),t}var Ca={},br=(function(){function t(i,e,r){var s=this;this.stringified=!1,this.processed=!1;var o;if((typeof e=="undefined"?"undefined":T(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))o=Sa(e);else if(M(e,t)||M(e,ch))o=Sa(e.root),e.map&&(typeof r.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{var a=Qw;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(e,r)}catch(u){this.processed=!0,this.error=u}o&&!o[Hw]&&Jw.rebuild(o)}this.result=new ch(i,o,r),this.helpers=z({},Ca,{postcss:Ca,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":T(u))==="object"&&u.prepare?z({},u,u.prepare(s.result)):u})}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},n.handleError=function(e,r){var s=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=s.postcssPlugin,e.setMessage();else if(s.postcssVersion&&process.env.NODE_ENV!=="production"){var o=s.postcssPlugin,a=s.postcssVersion,u=this.result.processor.version,c=a.split("."),l=u.split(".");(c[0]!==l[0]||parseInt(c[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(f){console&&console.error&&console.error(f)}return e},n.prepareVisitors=function(){var e=this;this.listeners={};for(var r=function(l,f,p){e.listeners[f]||(e.listeners[f]=[]),e.listeners[f].push([l,p])},s=I(this.plugins),o;!(o=s()).done;){var a=o.value;if((typeof a=="undefined"?"undefined":T(a))==="object")for(var u in a){if(!rb[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!nb[u])if(T(a[u])==="object")for(var c in a[u])c==="*"?r(a,u,a[u][c]):r(a,u+"-"+c.toLowerCase(),a[u][c]);else typeof a[u]=="function"&&r(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},n.runAsync=function(){var e=this;return Cn(function(){var r,s,o,a,u,c,l,f,p,g,v,y;return Dt(this,function(d){switch(d.label){case 0:e.plugin=0,r=0,d.label=1;case 1:if(!(r<e.plugins.length))return[3,6];if(s=e.plugins[r],o=e.runOnRoot(s),!cn(o))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,o];case 3:return d.sent(),[3,5];case 4:throw a=d.sent(),e.handleError(a);case 5:return r++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,d.label=7;case 7:if(u[Ke])return[3,14];u[Ke]=!0,c=[fh(u)],d.label=8;case 8:if(!(c.length>0))return[3,13];if(l=e.visitTick(c),!cn(l))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,l];case 10:return d.sent(),[3,12];case 11:throw f=d.sent(),p=c[c.length-1].node,e.handleError(f,p);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];g=function(){var m,_,b,C,S;return Dt(this,function(O){switch(O.label){case 0:m=y.value,_=m[0],b=m[1],e.result.lastPlugin=_,O.label=1;case 1:return O.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(C=u.nodes.map(function(A){return b(A,e.helpers)}),[4,Promise.all(C)]);case 2:return O.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:O.sent(),O.label=5;case 5:return[3,7];case 6:throw S=O.sent(),e.handleError(S);case 7:return[2]}})},v=I(e.listeners.OnceExit),d.label=15;case 15:return(y=v()).done?[3,18]:[5,xs(g())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},n.runOnRoot=function(e){var r=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":T(e))==="object"&&e.Once){if(this.result.root.type==="document"){var s=this.result.root.nodes.map(function(o){return e.Once(o,r.helpers)});return cn(s[0])?Promise.all(s):s}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(o){throw this.handleError(o)}},n.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,r=Kw;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);var s=new Yw(r,this.result.root,this.result.opts),o=s.generate();return this.result.css=o[0],this.result.map=o[1],this.result},n.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=I(this.plugins),r;!(r=e()).done;){var s=r.value,o=this.runOnRoot(s);if(cn(o))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ke];)a[Ke]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),c;!(c=u()).done;){var l=c.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Zw("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this.css},n.visitSync=function(e,r){for(var s=I(e),o;!(o=s()).done;){var a=o.value,u=a[0],c=a[1];this.result.lastPlugin=u;var l=void 0;try{l=c(r,this.helpers)}catch(f){throw this.handleError(f,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(cn(l))throw this.getAsyncError()}},n.visitTick=function(e){var r=e[e.length-1],s=r.node,o=r.visitors;if(s.type!=="root"&&s.type!=="document"&&!s.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){var a=o[r.visitorIndex],u=a[0],c=a[1];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=u;try{return c(s.toProxy(),this.helpers)}catch(v){throw this.handleError(v,s)}}if(r.iterator!==0){for(var l=r.iterator,f;f=s.nodes[s.indexes[l]];)if(s.indexes[l]+=1,!f[Ke]){f[Ke]=!0,e.push(fh(f));return}r.iterator=0,delete s.indexes[l]}for(var p=r.events;r.eventIndex<p.length;){var g=p[r.eventIndex];if(r.eventIndex+=1,g===wr){s.nodes&&s.nodes.length&&(s[Ke]=!0,r.iterator=s.getIterator());return}else if(this.listeners[g]){r.visitors=this.listeners[g];return}}e.pop()},n.walkSync=function(e){var r=this;e[Ke]=!0;for(var s=lh(e),o=I(s),a;!(a=o()).done;){var u=a.value;if(u===wr)e.nodes&&e.each(function(l){l[Ke]||r.walkSync(l)});else{var c=this.listeners[u];if(c&&this.visitSync(c,e.toProxy()))return}}},n.warnings=function(){return this.sync().warnings()},ie(t,[{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"}}]),t})();br.registerPostcss=function(t){Ca=t};var hh=br;br.default=br,eb.registerLazyResult(br),Xw.registerLazyResult(br);var ib=Ff,sb=ki,ob=Jf,ab=ba,ub=ma,Ea=(function(){function t(i,e,r){e=e.toString(),this.stringified=!1,this._processor=i,this._css=e,this._opts=r,this._map=void 0;var s,o=sb;this.result=new ub(this._processor,s,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new ib(o,s,this._opts,e);if(u.isMap()){var c=u.generate(),l=c[0],f=c[1];l&&(this.result.css=l),f&&(this.result.map=f)}else u.clearAnnotation(),this.result.css=u.css}var n=t.prototype;return n.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},n.catch=function(e){return this.async().catch(e)},n.finally=function(e){return this.async().then(e,e)},n.sync=function(){if(this.error)throw this.error;return this.result},n.then=function(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||ob("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)},n.toString=function(){return this._css},n.warnings=function(){return[]},ie(t,[{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,r=ab;try{e=r(this._css,this._opts)}catch(s){this.error=s}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),t})(),cb=Ea;Ea.default=Ea;var lb=cb,fb=hh,hb=da,pb=an,ln=(function(){function t(i){i===void 0&&(i=[]),this.version="8.4.38",this.plugins=this.normalize(i)}var n=t.prototype;return n.normalize=function(e){for(var r=[],s=I(e),o;!(o=s()).done;){var a=o.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":T(a))==="object"&&Array.isArray(a.plugins))r=r.concat(a.plugins);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&a.postcssPlugin)r.push(a);else if(typeof a=="function")r.push(a);else if((typeof a=="undefined"?"undefined":T(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return r},n.process=function(e,r){return r===void 0&&(r={}),!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new lb(this,e,r):new fb(this,e,r)},n.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},t})(),db=ln;ln.default=ln,pb.registerProcessor(ln),hb.registerProcessor(ln);var vb=Mi,gb=Rf,mb=Di,yb=_a,_b=$i,wb=an,bb=wa;function fn(t,n){if(Array.isArray(t))return t.map(function(f){return fn(f)});var i=t.inputs,e=Lt(t,["inputs"]);if(i){n=[];for(var r=I(i),s;!(s=r()).done;){var o=s.value,a=z({},o,{__proto__:_b.prototype});a.map&&(a.map=z({},a.map,{__proto__:gb.prototype})),n.push(a)}}if(e.nodes&&(e.nodes=t.nodes.map(function(f){return fn(f,n)})),e.source){var u=e.source,c=u.inputId,l=Lt(u,["inputId"]);e.source=l,c!=null&&(e.source.input=n[c])}if(e.type==="root")return new wb(e);if(e.type==="decl")return new vb(e);if(e.type==="rule")return new bb(e);if(e.type==="comment")return new mb(e);if(e.type==="atrule")return new yb(e);throw new Error("Unknown node type: "+t.type)}var Sb=fn;fn.default=fn;var Cb=Qo,ph=Mi,Eb=hh,Ib=qt,Ia=db,Ob=ki,xb=Sb,dh=da,kb=Xf,vh=Di,gh=_a,Rb=ma,Ab=$i,Mb=ba,Tb=sh,mh=wa,yh=an,Pb=Ai;function Q(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Ia(n)}Q.plugin=function(n,i){var e=!1;function r(){for(var o=arguments.length,a=new Array(o),u=0;u<o;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(n+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(n+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var c=i.apply(void 0,[].concat(a));return c.postcssPlugin=n,c.postcssVersion=new Ia().version,c}var s;return Object.defineProperty(r,"postcss",{get:function(){return s||(s=r()),s}}),r.process=function(o,a,u){return Q([r(u)]).process(o,a)},r},Q.stringify=Ob,Q.parse=Mb,Q.fromJSON=xb,Q.list=Tb,Q.comment=function(t){return new vh(t)},Q.atRule=function(t){return new gh(t)},Q.decl=function(t){return new ph(t)},Q.rule=function(t){return new mh(t)},Q.root=function(t){return new yh(t)},Q.document=function(t){return new dh(t)},Q.CssSyntaxError=Cb,Q.Declaration=ph,Q.Container=Ib,Q.Processor=Ia,Q.Document=dh,Q.Comment=vh,Q.Warning=kb,Q.AtRule=gh,Q.Result=Rb,Q.Input=Ab,Q.Rule=mh,Q.Root=yh,Q.Node=Pb,Eb.registerPostcss(Q);var $b=Q;Q.default=Q;var he=V_($b);he.stringify,he.fromJSON,he.plugin,he.parse,he.list,he.document,he.comment,he.atRule,he.rule,he.decl,he.root,he.CssSyntaxError,he.Declaration,he.Container,he.Processor,he.Document,he.Comment,he.Warning,he.AtRule,he.Result,he.Input,he.Rule,he.Root,he.Node;var Nb=Object.defineProperty,Lb=function(t,n,i){return n in t?Nb(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i},Yi=function(t,n,i){return Lb(t,(typeof n=="undefined"?"undefined":T(n))!=="symbol"?n+"":n,i)};function Db(t,n,i){try{if(!(n in t))return function(){};var e=t[n],r=i(e);return typeof r=="function"&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__rrweb_original__:{enumerable:!1,value:e}})),t[n]=r,function(){t[n]=e}}catch(s){return function(){}}}var Sr=(function(){function t(i){Yi(this,"fileName"),Yi(this,"functionName"),Yi(this,"lineNumber"),Yi(this,"columnNumber"),this.fileName=i.fileName||"",this.functionName=i.functionName||"",this.lineNumber=i.lineNumber,this.columnNumber=i.columnNumber}var n=t.prototype;return n.toString=function(){var e=this.lineNumber||"",r=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+r+")":this.fileName+":"+e+":"+r},t})(),Fb=/(^|@)\S+:\d+/,_h=/^\s*at .*(\S+:\d+|\(native\))/m,Ub=/^(eval@)?(\[native code])?$/,Oa={parse:function(n){return n?typeof n.stacktrace!="undefined"||typeof n["opera#sourceloc"]!="undefined"?this.parseOpera(n):n.stack&&n.stack.match(_h)?this.parseV8OrIE(n):n.stack?this.parseFFOrSafari(n):(console.warn("[console-record-plugin]: Failed to parse error object:",n),[]):[]},extractLocation:function(n){if(n.indexOf(":")===-1)return[n];var i=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=i.exec(n.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+n);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(_h)},this);return i.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),s=r.match(/ (\((.+):(\d+):(\d+)\)$)/);r=s?r.replace(s[0],""):r;var o=r.split(/\s+/).slice(1),a=this.extractLocation(s?s[1]:o.pop()),u=o.join(" ")||void 0,c=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Sr({functionName:u,fileName:c,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(n){var i=n.stack.split("\n").filter(function(e){return!e.match(Ub)},this);return i.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 Sr({functionName:e});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,s=e.match(r),o=s&&s[1]?s[1]:void 0,a=this.extractLocation(e.replace(r,""));return new Sr({functionName:o,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(n){return!n.stacktrace||n.message.indexOf("\n")>-1&&n.message.split("\n").length>n.stacktrace.split("\n").length?this.parseOpera9(n):n.stack?this.parseOpera11(n):this.parseOpera10(n)},parseOpera9:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)/i,e=n.message.split("\n"),r=[],s=2,o=e.length;s<o;s+=2){var a=i.exec(e[s]);a&&r.push(new Sr({fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera10:function(n){for(var i=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=n.stacktrace.split("\n"),r=[],s=0,o=e.length;s<o;s+=2){var a=i.exec(e[s]);a&&r.push(new Sr({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return r},parseOpera11:function(n){var i=n.stack.split("\n").filter(function(e){return!!e.match(Fb)&&!e.match(/^Error created at/)},this);return i.map(function(e){var r=e.split("@"),s=this.extractLocation(r.pop()),o=r.shift()||"",a=o.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Sr({functionName:a,fileName:s[0],lineNumber:s[1],columnNumber:s[2]})},this)}};function Bb(t){if(!t||!t.outerHTML)return"";for(var n="";t.parentElement;){var i=t.localName;if(!i)break;i=i.toLowerCase();var e=t.parentElement,r=[];if(e.children&&e.children.length>0)for(var s=0;s<e.children.length;s++){var o=e.children[s];o.localName&&o.localName.toLowerCase&&o.localName.toLowerCase()===i&&r.push(o)}r.length>1&&(i+=":eq("+r.indexOf(t)+")"),n=i+(n?">"+n:""),t=e}return n}function xa(t){return Object.prototype.toString.call(t)==="[object Object]"}function wh(t,n){if(n===0)return!0;for(var i=Object.keys(t),e=I(i),r;!(r=e()).done;){var s=r.value;if(xa(t[s])&&wh(t[s],n-1))return!0}return!1}function Cr(t,n){var i={numOfKeysLimit:50,depthOfLimit:4};Object.assign(i,n);var e=[],r=[];return JSON.stringify(t,function(a,u){if(e.length>0){var c=e.indexOf(this);~c?e.splice(c+1):e.push(this),~c?r.splice(c,1/0,a):r.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+r.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(s(u))return o(u);if((typeof u=="undefined"?"undefined":T(u))==="bigint")return u.toString()+"n";if(M(u,Event)){var l={};for(var f in u){var p=u[f];Array.isArray(p)?l[f]=Bb(p.length?p[0]:null):l[f]=p}return l}else{if(M(u,Node))return M(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(M(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function s(a){return!!(xa(a)&&Object.keys(a).length>i.numOfKeysLimit||typeof a=="function"||xa(a)&&wh(a,i.depthOfLimit))}function o(a){var u=a.toString();return i.stringLengthLimit&&u.length>i.stringLengthLimit&&(u=""+u.slice(0,i.stringLengthLimit)+"..."),u}}var bh={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 zb(t,n,i){var e=i?Object.assign({},bh,i):bh,r=e.logger;if(!r)return function(){};var s;typeof r=="string"?s=n[r]:s=r;var o=0,a=!1,u=[];if(e.level.includes("error")){var c=function(y){var d=y.message,m=y.error,_=Oa.parse(m).map(function(C){return C.toString()}),b=[Cr(d,e.stringifyOptions)];t({level:"error",trace:_,payload:b})};n.addEventListener("error",c),u.push(function(){n.removeEventListener("error",c)});var l=function(y){var d,m;M(y.reason,Error)?(d=y.reason,m=[Cr("Uncaught (in promise) "+d.name+": "+d.message,e.stringifyOptions)]):(d=new Error,m=[Cr("Uncaught (in promise)",e.stringifyOptions),Cr(y.reason,e.stringifyOptions)]);var _=Oa.parse(d).map(function(b){return b.toString()});t({level:"error",trace:_,payload:m})};n.addEventListener("unhandledrejection",l),u.push(function(){n.removeEventListener("unhandledrejection",l)})}for(var f=I(e.level),p;!(p=f()).done;){var g=p.value;u.push(v(s,g))}return function(){u.forEach(function(y){return y()})};function v(y,d){var m=this;return y[d]?Db(y,d,function(_){var b=m;return function(){for(var C=arguments.length,S=new Array(C),O=0;O<C;O++)S[O]=arguments[O];if(_.apply(b,S),!(d==="assert"&&S[0])&&!a){a=!0;try{var A=Oa.parse(new Error).map(function(W){return W.toString()}).splice(1),k=d==="assert"?S.slice(1):S,$=k.map(function(W){return Cr(W,e.stringifyOptions)});o++,o<e.lengthThreshold?t({level:d,trace:A,payload:$}):o===e.lengthThreshold&&t({level:"warn",trace:[],payload:[Cr("The number of log records reached the threshold.")]})}catch(W){_.apply(void 0,[].concat(["rrweb logger error:",W],S))}finally{a=!1}}}}):function(){}}}var qb="rrweb/console@1",Wb=function(t){return{name:qb,observer:zb,options:t}},Sh=E.setImmediate,Ct,ka,Ra,Ch=Object.prototype.toString,Gb=typeof Sh!="undefined"?function(n){return Sh(n)}:setTimeout;try{Object.defineProperty({},"x",{}),Ct=function(n,i,e,r){return Object.defineProperty(n,i,{value:e,writable:!0,configurable:r!==!1})}}catch(t){Ct=function(i,e,r){return i[e]=r,i}}Ra=(function(){var n,i,e;function r(s,o){this.fn=s,this.self=o,this.next=void 0}return{add:function(o,a){e=new r(o,a),i?i.next=e:n=e,i=e,e=void 0},drain:function(){var o=n;for(n=i=ka=void 0;o;)o.fn.call(o.self),o=o.next}}})();function Ki(t,n){Ra.add(t,n),ka||(ka=Gb(Ra.drain))}function Eh(t){var n,i=typeof t;return t!==null&&(i==="object"||i==="function")&&(n=t.then),typeof n=="function"?n:!1}function Aa(){for(var t=0;t<this.chain.length;t++)Vb(this,this.state===1?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function Vb(t,n,i){var e,r;try{n===!1?i.reject(t.msg):(n===!0?e=t.msg:e=n.call(void 0,t.msg),e===i.promise?i.reject(TypeError("Promise-chain cycle")):(r=Eh(e))?r.call(e,i.resolve,i.reject):i.resolve(e))}catch(s){i.reject(s)}}function Ih(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=Eh(t))?Ki(function(){var e=new xh(i);try{n.call(t,function(){Ih.apply(e,arguments)},function(){hn.apply(e,arguments)})}catch(r){hn.call(e,r)}}):(i.msg=t,i.state=1,i.chain.length>0&&Ki(Aa,i))}catch(e){hn.call(new xh(i),e)}}}function hn(t){var n=this;n.triggered||(n.triggered=!0,n.def&&(n=n.def),n.msg=t,n.state=2,n.chain.length>0&&Ki(Aa,n))}function Oh(t,n,i,e){for(var r=0;r<n.length;r++)(function(o){t.resolve(n[o]).then(function(u){i(o,u)},e)})(r)}function xh(t){this.def=t,this.triggered=!1}function jb(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Et(t){if(typeof t!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var n=new jb(this);this.then=function(e,r){var s={success:typeof e=="function"?e:!0,failure:typeof r=="function"?r:!1};return s.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");s.resolve=a,s.reject=u}),n.chain.push(s),n.state!==0&&Ki(Aa,n),s.promise},this.catch=function(e){return this.then(void 0,e)};try{t.call(void 0,function(e){Ih.call(n,e)},function(e){hn.call(n,e)})}catch(i){hn.call(n,i)}}var kh=Ct({},"constructor",Et,!1);Et.prototype=kh,Ct(kh,"__NPO__",0,!1),Ct(Et,"resolve",function(n){var i=this;return n&&typeof n=="object"&&n.__NPO__===1?n:new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");r(n)})}),Ct(Et,"reject",function(n){return new this(function(e,r){if(typeof e!="function"||typeof r!="function")throw TypeError("Not a function");r(n)})}),Ct(Et,"all",function(n){var i=this;return Ch.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):n.length===0?i.resolve([]):new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");var o=n.length,a=Array(o),u=0;Oh(i,n,function(l,f){a[l]=f,++u===o&&r(a)},s)})}),Ct(Et,"race",function(n){var i=this;return Ch.call(n)!=="[object Array]"?i.reject(TypeError("Not an array")):new i(function(r,s){if(typeof r!="function"||typeof s!="function")throw TypeError("Not a function");Oh(i,n,function(a,u){r(u)},s)})});var F;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?F=Promise:F=Et;var pn=1440*60*1e3,Ma=8*1e3,Ji=Array.prototype,Hb=Function.prototype,Rh=Object.prototype,It=Ji.slice,dn=Rh.toString,Xi=Rh.hasOwnProperty,Ce=E.console,ut=E.navigator,U=E.document,vn=E.opera,Ah=E.screen,Je=ut.userAgent,Ta=Hb.bind,Mh=Ji.forEach,Th=Ji.indexOf,Ph=Ji.map,Yb=Array.isArray,Pa={},h={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},N={log:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce)try{Ce.log.apply(Ce,arguments)}catch(t){h.each(arguments,function(n){Ce.log(n)})}},warn:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce){var t=["Mixpanel warning:"].concat(h.toArray(arguments));try{Ce.warn.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.warn(i)})}}},error:function(){if(Pe.DEBUG&&!h.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.error(i)})}}},critical:function(){if(!h.isUndefined(Ce)&&Ce){var t=["Mixpanel error:"].concat(h.toArray(arguments));try{Ce.error.apply(Ce,t)}catch(n){h.each(t,function(i){Ce.error(i)})}}}},Zi=function(t,n){return function(){return arguments[0]="["+n+"] "+arguments[0],t.apply(N,arguments)}},Xe=function(t){return{log:Zi(N.log,t),warn:Zi(N.warn,t),error:Zi(N.error,t),critical:Zi(N.critical,t)}},Wt=function(t){return function(){try{return t.apply(this,arguments)}catch(n){N.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),Pe.DEBUG&&N.critical(n)}}},$a=function(t){var n=t.prototype;for(var i in n)typeof n[i]=="function"&&(n[i]=Wt(n[i]))};h.bind=function(t,n){var i,e;if(Ta&&t.bind===Ta)return Ta.apply(t,It.call(arguments,1));if(!h.isFunction(t))throw new TypeError;return i=It.call(arguments,2),e=function(){if(!(this instanceof e))return t.apply(n,i.concat(It.call(arguments)));var r={};r.prototype=t.prototype;var s=new r;r.prototype=null;var o=t.apply(s,i.concat(It.call(arguments)));return Object(o)===o?o:s},e},h.each=function(t,n,i){if(t!=null){if(Mh&&t.forEach===Mh)t.forEach(n,i);else if(t.length===+t.length){for(var e=0,r=t.length;e<r;e++)if(e in t&&n.call(i,t[e],e,t)===Pa)return}else for(var s in t)if(Xi.call(t,s)&&n.call(i,t[s],s,t)===Pa)return}},h.extend=function(t){return h.each(It.call(arguments,1),function(n){for(var i in n)n[i]!==void 0&&(t[i]=n[i])}),t},h.isArray=Yb||function(t){return dn.call(t)==="[object Array]"},h.isFunction=function(t){return typeof t=="function"},h.isArguments=function(t){return!!(t&&Xi.call(t,"callee"))},h.toArray=function(t){return t?t.toArray?t.toArray():h.isArray(t)||h.isArguments(t)?It.call(t):h.values(t):[]},h.map=function(t,n,i){if(Ph&&t.map===Ph)return t.map(n,i);var e=[];return h.each(t,function(r){e.push(n.call(i,r))}),e},h.keys=function(t){var n=[];return t===null||h.each(t,function(i,e){n[n.length]=e}),n},h.values=function(t){var n=[];return t===null||h.each(t,function(i){n[n.length]=i}),n},h.include=function(t,n){var i=!1;return t===null?i:Th&&t.indexOf===Th?t.indexOf(n)!=-1:(h.each(t,function(e){if(i||(i=e===n))return Pa}),i)},h.includes=function(t,n){return t.indexOf(n)!==-1},h.inherit=function(t,n){return t.prototype=new n,t.prototype.constructor=t,t.superclass=n.prototype,t},h.isObject=function(t){return t===Object(t)&&!h.isArray(t)},h.isEmptyObject=function(t){if(h.isObject(t)){for(var n in t)if(Xi.call(t,n))return!1;return!0}return!1},h.isUndefined=function(t){return t===void 0},h.isString=function(t){return dn.call(t)=="[object String]"},h.isDate=function(t){return dn.call(t)=="[object Date]"},h.isNumber=function(t){return dn.call(t)=="[object Number]"},h.isElement=function(t){return!!(t&&t.nodeType===1)},h.encodeDates=function(t){return h.each(t,function(n,i){h.isDate(n)?t[i]=h.formatDate(n):h.isObject(n)&&(t[i]=h.encodeDates(n))}),t},h.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},h.formatDate=function(t){function n(i){return i<10?"0"+i:i}return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())},h.strip_empty_properties=function(t){var n={};return h.each(t,function(i,e){h.isString(i)&&i.length>0&&(n[e]=i)}),n},h.truncate=function(t,n){var i;return typeof t=="string"?i=t.slice(0,n):h.isArray(t)?(i=[],h.each(t,function(e){i.push(h.truncate(e,n))})):h.isObject(t)?(i={},h.each(t,function(e,r){i[r]=h.truncate(e,n)})):i=t,i},h.JSONEncode=(function(){return function(t){var n=t,i=function(r){var s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return s.lastIndex=0,s.test(r)?'"'+r.replace(s,function(a){var u=o[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+r+'"'},e=function(r,s){var o="",a=" ",u=0,c="",l="",f=0,p=o,g=[],v=s[r];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(r)),typeof v){case"string":return i(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(o+=a,g=[],dn.apply(v)==="[object Array]"){for(f=v.length,u=0;u<f;u+=1)g[u]=e(u,v)||"null";return l=g.length===0?"[]":o?"[\n"+o+g.join(",\n"+o)+"\n"+p+"]":"["+g.join(",")+"]",o=p,l}for(c in v)Xi.call(v,c)&&(l=e(c,v),l&&g.push(i(c)+(o?": ":":")+l));return l=g.length===0?"{}":o?"{"+g.join(",")+p+"}":"{"+g.join(",")+"}",o=p,l}};return e("",{"":n})}})(),h.JSONDecode=(function(){var t,n,i={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,r=function(g){var v=new SyntaxError(g);throw v.at=t,v.text=e,v},s=function(g){return g&&g!==n&&r("Expected '"+g+"' instead of '"+n+"'"),n=e.charAt(t),t+=1,n},o=function(){var g,v="";for(n==="-"&&(v="-",s("-"));n>="0"&&n<="9";)v+=n,s();if(n===".")for(v+=".";s()&&n>="0"&&n<="9";)v+=n;if(n==="e"||n==="E")for(v+=n,s(),(n==="-"||n==="+")&&(v+=n,s());n>="0"&&n<="9";)v+=n,s();if(g=+v,!isFinite(g))r("Bad number");else return g},a=function(){var g,v,y="",d;if(n==='"')for(;s();){if(n==='"')return s(),y;if(n==="\\")if(s(),n==="u"){for(d=0,v=0;v<4&&(g=parseInt(s(),16),!!isFinite(g));v+=1)d=d*16+g;y+=String.fromCharCode(d)}else if(typeof i[n]=="string")y+=i[n];else break;else y+=n}r("Bad string")},u=function(){for(;n&&n<=" ";)s()},c=function(){switch(n){case"t":return s("t"),s("r"),s("u"),s("e"),!0;case"f":return s("f"),s("a"),s("l"),s("s"),s("e"),!1;case"n":return s("n"),s("u"),s("l"),s("l"),null}r('Unexpected "'+n+'"')},l,f=function(){var g=[];if(n==="["){if(s("["),u(),n==="]")return s("]"),g;for(;n;){if(g.push(l()),u(),n==="]")return s("]"),g;s(","),u()}}r("Bad array")},p=function(){var g,v={};if(n==="{"){if(s("{"),u(),n==="}")return s("}"),v;for(;n;){if(g=a(),u(),s(":"),Object.hasOwnProperty.call(v,g)&&r('Duplicate key "'+g+'"'),v[g]=l(),u(),n==="}")return s("}"),v;s(","),u()}}r("Bad object")};return l=function(){switch(u(),n){case"{":return p();case"[":return f();case'"':return a();case"-":return o();default:return n>="0"&&n<="9"?o():c()}},function(g){var v;return e=g,t=0,n=" ",v=l(),u(),n&&r("Syntax error"),v}})(),h.base64Encode=function(t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i,e,r,s,o,a,u,c,l=0,f=0,p="",g=[];if(!t)return t;t=h.utf8Encode(t);do i=t.charCodeAt(l++),e=t.charCodeAt(l++),r=t.charCodeAt(l++),c=i<<16|e<<8|r,s=c>>18&63,o=c>>12&63,a=c>>6&63,u=c&63,g[f++]=n.charAt(s)+n.charAt(o)+n.charAt(a)+n.charAt(u);while(l<t.length);switch(p=g.join(""),t.length%3){case 1:p=p.slice(0,-2)+"==";break;case 2:p=p.slice(0,-1)+"=";break}return p},h.utf8Encode=function(t){t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var n="",i,e,r=0,s;for(i=e=0,r=t.length,s=0;s<r;s++){var o=t.charCodeAt(s),a=null;o<128?e++:o>127&&o<2048?a=String.fromCharCode(o>>6|192,o&63|128):a=String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128),a!==null&&(e>i&&(n+=t.substring(i,e)),n+=a,i=e=s+1)}return e>i&&(n+=t.substring(i,t.length)),n},h.UUID=function(){try{return E.crypto.randomUUID()}catch(i){for(var t=new 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]="-",h.map(t,function(e){return e.toString(16)}).join("")}};var $h=["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"];h.isBlockedUA=function(t){var n;for(t=t.toLowerCase(),n=0;n<$h.length;n++)if(t.indexOf($h[n])!==-1)return!0;return!1},h.HTTPBuildQuery=function(t,n){var i,e,r=[];return h.isUndefined(n)&&(n="&"),h.each(t,function(s,o){i=encodeURIComponent(s.toString()),e=encodeURIComponent(o),r[r.length]=e+"="+i}),r.join(n)},h.getQueryParam=function(t,n){n=n.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var i="[\\?&]"+n+"=([^&#]*)",e=new RegExp(i),r=e.exec(t);if(r===null||r&&typeof r[1]!="string"&&r[1].length)return"";var s=r[1];try{s=decodeURIComponent(s)}catch(o){N.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},h.cookie={get:function(t){for(var n=t+"=",i=U.cookie.split(";"),e=0;e<i.length;e++){for(var r=i[e];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return decodeURIComponent(r.substring(n.length,r.length))}return null},parse:function(t){var n;try{n=h.JSONDecode(h.cookie.get(t))||{}}catch(i){}return n},set_seconds:function(t,n,i,e,r,s,o){var a="",u="",c="";if(o)a="; domain="+o;else if(e){var l=Fh(U.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*1e3),u="; expires="+f.toGMTString()}s&&(r=!0,c="; SameSite=None"),r&&(c+="; secure"),U.cookie=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c},set:function(t,n,i,e,r,s,o){var a="",u="",c="";if(o)a="; domain="+o;else if(e){var l=Fh(U.location.hostname);a=l?"; domain=."+l:""}if(i){var f=new Date;f.setTime(f.getTime()+i*24*60*60*1e3),u="; expires="+f.toGMTString()}s&&(r=!0,c="; SameSite=None"),r&&(c+="; secure");var p=t+"="+encodeURIComponent(n)+u+"; path=/"+a+c;return U.cookie=p,p},remove:function(t,n,i){h.cookie.set(t,"",-1,n,!1,!1,i)}};var Nh=function(t){var n=!0;try{var i="__mplss_"+Da(8),e="xyz";t.setItem(i,e),t.getItem(i)!==e&&(n=!1),t.removeItem(i)}catch(r){n=!1}return n},Na=null,gn=function(t,n){return Na!==null&&!n?Na:Na=Nh(t)},La=null,Kb=function(t,n){return La!==null&&!n?La:La=Nh(t)};function Lh(t,n,i){var e=function(r){N.error(n+" error: "+r)};return{is_supported:function(r){var s=i(t,r);return s||N.error(n+" unsupported"),s},error:e,get:function(r){try{return t.getItem(r)}catch(s){e(s)}return null},parse:function(r){try{return h.JSONDecode(t.getItem(r))||{}}catch(s){}return null},set:function(r,s){try{t.setItem(r,s)}catch(o){e(o)}},remove:function(r){try{t.removeItem(r)}catch(s){e(s)}}}}var Qi=function(){try{return E.localStorage}catch(t){return null}},Jb=function(){try{return E.sessionStorage}catch(t){return null}};h.localStorage=Lh(Qi(),"localStorage",gn),h.sessionStorage=Lh(Jb(),"sessionStorage",Kb),h.register_event=(function(){var t=function(e,r,s,o,a){if(!e){N.error("No valid element provided to register_event");return}if(e.addEventListener&&!o)e.addEventListener(r,s,!!a);else{var u="on"+r,c=e[u];e[u]=n(e,s,c)}};function n(e,r,s){var o=function(a){if(a=a||i(E.event),!!a){var u=!0,c,l;return h.isFunction(s)&&(c=s(a)),l=r.call(e,a),(c===!1||l===!1)&&(u=!1),u}};return o}function i(e){return e&&(e.preventDefault=i.preventDefault,e.stopPropagation=i.stopPropagation),e}return i.preventDefault=function(){this.returnValue=!1},i.stopPropagation=function(){this.cancelBubble=!0},t})();var Xb=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');h.dom_query=(function(){function t(r){return r.all?r.all:r.getElementsByTagName("*")}var n=/[\t\r\n]/g;function i(r,s){var o=" "+s+" ";return(" "+r.className+" ").replace(n," ").indexOf(o)>=0}function e(r){if(!U.getElementsByTagName)return[];var s=r.split(" "),o,a,u,c,l,f,p,g,v,y,d=[U];for(f=0;f<s.length;f++){if(o=s[f].replace(/^\s+/,"").replace(/\s+$/,""),o.indexOf("#")>-1){a=o.split("#"),u=a[0];var m=a[1],_=U.getElementById(m);if(!_||u&&_.nodeName.toLowerCase()!=u)return[];d=[_];continue}if(o.indexOf(".")>-1){a=o.split("."),u=a[0];var b=a[1];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=t(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];for(d=[],y=0,p=0;p<c.length;p++)c[p].className&&h.isString(c[p].className)&&i(c[p],b)&&(d[y++]=c[p]);continue}var C=o.match(Xb);if(C){u=C[1];var S=C[2],O=C[3],A=C[4];for(u||(u="*"),c=[],l=0,p=0;p<d.length;p++)for(u=="*"?v=t(d[p]):v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=[],y=0;var k;switch(O){case"=":k=function($){return $.getAttribute(S)==A};break;case"~":k=function($){return $.getAttribute(S).match(new RegExp("\\b"+A+"\\b"))};break;case"|":k=function($){return $.getAttribute(S).match(new RegExp("^"+A+"-?"))};break;case"^":k=function($){return $.getAttribute(S).indexOf(A)===0};break;case"$":k=function($){return $.getAttribute(S).lastIndexOf(A)==$.getAttribute(S).length-A.length};break;case"*":k=function($){return $.getAttribute(S).indexOf(A)>-1};break;default:k=function($){return $.getAttribute(S)}}for(d=[],y=0,p=0;p<c.length;p++)k(c[p])&&(d[y++]=c[p]);continue}for(u=o,c=[],l=0,p=0;p<d.length;p++)for(v=d[p].getElementsByTagName(u),g=0;g<v.length;g++)c[l++]=v[g];d=c}return d}return function(r){return h.isElement(r)?[r]:h.isObject(r)&&!h.isUndefined(r.length)?r:e.call(this,r)}})();var Zb=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],Qb=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];h.info={campaignParams:function(t){var n="",i={};return h.each(Zb,function(e){n=h.getQueryParam(U.URL,e),n.length?i[e]=n:t!==void 0&&(i[e]=t)}),i},clickParams:function(){var t="",n={};return h.each(Qb,function(i){t=h.getQueryParam(U.URL,i),t.length&&(n[i]=t)}),n},marketingParams:function(){return h.extend(h.info.campaignParams(),h.info.clickParams())},searchEngine:function(t){return t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(t){var n=h.info.searchEngine(t),i=n!="yahoo"?"q":"p",e={};if(n!==null){e.$search_engine=n;var r=h.getQueryParam(t,i);r.length&&(e.mp_keyword=r)}return e},browser:function(t,n,i){return n=n||"",i||h.includes(t," OPR/")?h.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":h.includes(t,"IEMobile")||h.includes(t,"WPDesktop")?"Internet Explorer Mobile":h.includes(t,"SamsungBrowser/")?"Samsung Internet":h.includes(t,"Edge")||h.includes(t,"Edg/")?"Microsoft Edge":h.includes(t,"FBIOS")?"Facebook Mobile":h.includes(t,"Whale/")?"Whale Browser":h.includes(t,"Chrome")?"Chrome":h.includes(t,"CriOS")?"Chrome iOS":h.includes(t,"UCWEB")||h.includes(t,"UCBrowser")?"UC Browser":h.includes(t,"FxiOS")?"Firefox iOS":h.includes(n,"Apple")?h.includes(t,"Mobile")?"Mobile Safari":"Safari":h.includes(t,"Android")?"Android Mobile":h.includes(t,"Konqueror")?"Konqueror":h.includes(t,"Firefox")?"Firefox":h.includes(t,"MSIE")||h.includes(t,"Trident/")?"Internet Explorer":h.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,n,i){var e=h.info.browser(t,n,i),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+)?)/},s=r[e];if(s===void 0)return null;var o=t.match(s);return o?parseFloat(o[o.length-2]):null},os:function(){var t=Je;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var n=t.split("/");return n.length>=3?n[2]:""},currentUrl:function(){return E.location.href},properties:function(t){return typeof t!="object"&&(t={}),h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Je,ut.vendor,vn),$referrer:U.referrer,$referring_domain:h.info.referringDomain(U.referrer),$device:h.info.device(Je)}),{$current_url:h.info.currentUrl(),$browser_version:h.info.browserVersion(Je,ut.vendor,vn),$screen_height:Ah.height,$screen_width:Ah.width,mp_lib:"web",$lib_version:Pe.LIB_VERSION,$insert_id:Da(),time:h.timestamp()/1e3},h.strip_empty_properties(t))},people_properties:function(){return h.extend(h.strip_empty_properties({$os:h.info.os(),$browser:h.info.browser(Je,ut.vendor,vn)}),{$browser_version:h.info.browserVersion(Je,ut.vendor,vn)})},mpPageViewProperties:function(){return h.strip_empty_properties({current_page_title:U.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 eS=function(t,n){var i=null,e=[];return function(r){var s=this;return e.push(r),i||(i=new F(function(o){setTimeout(function(){var a=t.apply(s,[e]);i=null,e=[],o(a)},n)})),i}},Da=function(t){var n=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?n.substring(0,t):n},Dh=function(){var t=h.UUID().replace(/-/g,""),n=h.UUID().replace(/-/g,"").substring(0,16),i="01";return"00-"+t+"-"+n+"-"+i},tS=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,rS=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Fh=function(t){var n=rS,i=t.split("."),e=i[i.length-1];(e.length>4||e==="com"||e==="org")&&(n=tS);var r=t.match(n);return r?r[0]:""},nS=function(){var t=E.navigator.onLine;return h.isUndefined(t)||t},Ot=function(){},es=function(t,n){for(var i=!1,e=0;e<n.length;e++)if(t.match(n[e])){i=!0;break}return i},Er=null,ts=null;typeof JSON!="undefined"&&(Er=JSON.stringify,ts=JSON.parse),Er=Er||h.JSONEncode,ts=ts||h.JSONDecode;var iS=function(t,n,i){if(!E.CompressionStream)return!1;var e=h.info.browser(t,n,i),r=h.info.browserVersion(t,n,i);return!((e==="Safari"||e==="Mobile Safari")&&r>=16.4&&r<16.6)};h.info=h.info,h.info.browser=h.info.browser,h.info.browserVersion=h.info.browserVersion,h.info.device=h.info.device,h.info.properties=h.info.properties,h.isBlockedUA=h.isBlockedUA,h.isEmptyObject=h.isEmptyObject,h.isObject=h.isObject,h.JSONDecode=h.JSONDecode,h.JSONEncode=h.JSONEncode,h.toArray=h.toArray,h.NPO=Et;var Ue=function(t,n,i){this.dbName=t,this.storeName=n,this.version=i.version,this.storeNamesInDb=i.storeNames,this.dbPromise=null};Ue.prototype._openDb=function(){var t=this.dbName,n=this.version,i=this.storeNamesInDb;return new F(function(e,r){var s=E.indexedDB.open(t,n);s.onerror=function(){r(s.error)},s.onsuccess=function(){e(s.result)},s.onupgradeneeded=function(o){var a=o.target.result;i.forEach(function(u){a.objectStoreNames.contains(u)||a.createObjectStore(u)})}})},Ue.prototype.init=function(){return E.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(t){return t instanceof E.IDBDatabase?F.resolve():F.reject(t)})):F.reject("indexedDB is not supported in this browser")},Ue.prototype.isInitialized=function(){return!!this.dbPromise},Ue.prototype.makeTransaction=function(t,n){var i=this.storeName,e=function(r){return new F(function(s,o){var a=r.transaction(i,t);a.oncomplete=function(){s(a)},a.onabort=a.onerror=function(){o(a.error)},n(a.objectStore(i))})};return this.dbPromise.then(e).catch(function(r){return r&&r.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):F.reject(r)}.bind(this))},Ue.prototype.setItem=function(t,n){return this.makeTransaction("readwrite",function(i){i.put(n,t)})},Ue.prototype.getItem=function(t){var n;return this.makeTransaction("readonly",function(i){n=i.get(t)}).then(function(){return n.result})},Ue.prototype.removeItem=function(t){return this.makeTransaction("readwrite",function(n){n.delete(t)})},Ue.prototype.getAll=function(){var t;return this.makeTransaction("readonly",function(n){t=n.getAll()}).then(function(){return t.result})};var Fa="mixpanelBrowserDb",Uh="mixpanelRecordingEvents",Ua="mixpanelRecordingRegistry",Ba={version:1,storeNames:[Uh,Ua]},sS="__mp_opt_in_out_";function oS(t,n){qh(!0,t,n)}function aS(t,n){qh(!1,t,n)}function uS(t,n){return zh(t,n)==="1"}function Bh(t,n){if(lS(n))return N.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 i=zh(t,n)==="0";return i&&N.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),i}function xt(t){return Wa(t,function(n){return this.get_config(n)})}function kt(t){return Wa(t,function(n){return this._get_config(n)})}function Ir(t){return Wa(t,function(n){return this._get_config(n)})}function cS(t,n){n=n||{},za(n).remove(qa(t,n),!!n.crossSubdomainCookie,n.cookieDomain)}function za(t){return t=t||{},t.persistenceType==="localStorage"?h.localStorage:h.cookie}function qa(t,n){return n=n||{},(n.persistencePrefix||sS)+t}function zh(t,n){return za(n).get(qa(t,n))}function lS(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||E,i=n.navigator||{},e=!1;return h.each([i.doNotTrack,i.msDoNotTrack,n.doNotTrack],function(r){h.includes([!0,1,"1","yes"],r)&&(e=!0)}),e}function qh(t,n,i){if(!h.isString(n)||!n.length){N.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token");return}i=i||{},za(i).set(qa(n,i),t?1:0,h.isNumber(i.cookieExpiration)?i.cookieExpiration:null,!!i.crossSubdomainCookie,!!i.secureCookie,!!i.crossSiteCookie,i.cookieDomain),i.track&&t&&i.track(i.trackEventName||"$opt_in",i.trackProperties,{send_immediately:!0})}function Wa(t,n){return function(){var i=!1;try{var e=n.call(this,"token"),r=n.call(this,"ignore_dnt"),s=n.call(this,"opt_out_tracking_persistence_type"),o=n.call(this,"opt_out_tracking_cookie_prefix"),a=n.call(this,"window");e&&(i=Bh(e,{ignoreDnt:r,persistenceType:s,persistencePrefix:o,window:a}))}catch(c){N.error("Unexpected error when checking tracking opt-out status: "+c)}if(!i)return t.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var fS=Xe("lock"),Wh=function(t,n){n=n||{},this.storageKey=t,this.storage=n.storage||Qi(),this.pollIntervalMS=n.pollIntervalMS||100,this.timeoutMS=n.timeoutMS||2e3,this.promiseImpl=n.promiseImpl||F};Wh.prototype.withLock=function(t,n){var i=this.promiseImpl;return new i(h.bind(function(e,r){var s=n||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,c=this.timeoutMS,l=this.storage,f=a+":X",p=a+":Y",g=a+":Z",v=function(b){if(new Date().getTime()-o>c){fS.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+s+"]"),l.removeItem(g),l.removeItem(p),m();return}setTimeout(function(){try{b()}catch(C){r(C)}},u*(Math.random()+.1))},y=function(b,C){b()?C():v(function(){y(b,C)})},d=function(){var b=l.getItem(p);return b&&b!==s?!1:(l.setItem(p,s),l.getItem(p)===s?!0:(gn(l,!0)||r(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){l.setItem(f,s),y(d,function(){if(l.getItem(f)===s){_();return}v(function(){if(l.getItem(p)!==s){m();return}y(function(){return!l.getItem(g)},_)})})},_=function(){l.setItem(g,"1");var b=function(){l.removeItem(g),l.getItem(p)===s&&l.removeItem(p),l.getItem(f)===s&&l.removeItem(f)};t().then(function(C){b(),e(C)}).catch(function(C){b(),r(C)})};try{if(gn(l,!0))m();else throw new Error("localStorage support check failed")}catch(b){r(b)}},this))};var Or=function(t){this.storage=t||Qi()};Or.prototype.init=function(){return this.storage?F.resolve():F.reject(new Error("localStorage is not available"))},Or.prototype.isInitialized=function(){return!0},Or.prototype.setItem=function(t,n){return new F(h.bind(function(i,e){try{this.storage.setItem(t,Er(n))}catch(r){e(r)}i()},this))},Or.prototype.getItem=function(t){return new F(h.bind(function(n,i){var e;try{e=ts(this.storage.getItem(t))}catch(r){i(r)}n(e)},this))},Or.prototype.removeItem=function(t){return new F(h.bind(function(n,i){try{this.storage.removeItem(t)}catch(e){i(e)}n()},this))};var Gh=Xe("batch"),Ze=function(t,n){n=n||{},this.storageKey=t,this.usePersistence=n.usePersistence,this.usePersistence&&(this.queueStorage=n.queueStorage||new Or,this.lock=new Wh(t,{storage:n.sharedLockStorage,timeoutMS:n.sharedLockTimeoutMS})),this.reportError=n.errorReporter||h.bind(Gh.error,Gh),this.pid=n.pid||null,this.memQueue=[],this.initialized=!1,n.enqueueThrottleMs?this.enqueuePersisted=eS(h.bind(this._enqueuePersisted,this),n.enqueueThrottleMs):this.enqueuePersisted=h.bind(function(i){return this._enqueuePersisted([i])},this)};Ze.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?F.resolve():this.queueStorage.init().then(h.bind(function(){this.initialized=!0},this)).catch(h.bind(function(t){this.reportError("Error initializing queue persistence. Disabling persistence",t),this.initialized=!0,this.usePersistence=!1},this))},Ze.prototype.enqueue=function(t,n){var i={id:Da(),flushAfter:new Date().getTime()+n*2,payload:t};return this.usePersistence?this.enqueuePersisted(i):(this.memQueue.push(i),F.resolve(!0))},Ze.prototype._enqueuePersisted=function(t){var n=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return this.saveToStorage(i.concat(t))},this)).then(h.bind(function(i){return i&&(this.memQueue=this.memQueue.concat(t)),i},this)).catch(h.bind(function(i){return this.reportError("Error enqueueing items",i,t),!1},this))},this);return this.lock.withLock(n,this.pid).catch(h.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this))},Ze.prototype.fillBatch=function(t){var n=this.memQueue.slice(0,t);return this.usePersistence&&n.length<t?this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){if(i.length){var e={};h.each(n,function(o){e[o.id]=!0});for(var r=0;r<i.length;r++){var s=i[r];if(new Date().getTime()>s.flushAfter&&!e[s.id]&&(s.orphaned=!0,n.push(s),n.length>=t))break}}return n},this)):F.resolve(n)};var Vh=function(t,n){var i=[];return h.each(t,function(e){e.id&&!n[e.id]&&i.push(e)}),i};Ze.prototype.removeItemsByID=function(t){var n={};if(h.each(t,function(e){n[e]=!0}),this.memQueue=Vh(this.memQueue,n),this.usePersistence){var i=h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){return e=Vh(e,n),this.saveToStorage(e)},this)).then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(e){for(var r=0;r<e.length;r++){var s=e[r];if(s.id&&n[s.id])throw new Error("Item not removed from storage")}return!0},this)).catch(h.bind(function(e){return this.reportError("Error removing items",e,t),!1},this))},this);return this.lock.withLock(i,this.pid).catch(h.bind(function(e){return this.reportError("Error acquiring storage lock",e),gn(this.lock.storage,!0)?!1:i().then(h.bind(function(r){return r||this.queueStorage.removeItem(this.storageKey).then(function(){return r})},this)).catch(h.bind(function(r){return this.reportError("Error clearing queue",r),!1},this))},this))}else return F.resolve(!0)};var jh=function(t,n){var i=[];return h.each(t,function(e){var r=e.id;if(r in n){var s=n[r];s!==null&&(e.payload=s,i.push(e))}else i.push(e)}),i};Ze.prototype.updatePayloads=function(t){return this.memQueue=jh(this.memQueue,t),this.usePersistence?this.lock.withLock(h.bind(function(){return this.ensureInit().then(h.bind(function(){return this.readFromStorage()},this)).then(h.bind(function(i){return i=jh(i,t),this.saveToStorage(i)},this)).catch(h.bind(function(i){return this.reportError("Error updating items",t,i),!1},this))},this),this.pid).catch(h.bind(function(n){return this.reportError("Error acquiring storage lock",n),!1},this)):F.resolve(!0)},Ze.prototype.readFromStorage=function(){return this.ensureInit().then(h.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(h.bind(function(t){return t&&(h.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null)),t||[]},this)).catch(h.bind(function(t){return this.reportError("Error retrieving queue",t),[]},this))},Ze.prototype.saveToStorage=function(t){return this.ensureInit().then(h.bind(function(){return this.queueStorage.setItem(this.storageKey,t)},this)).then(function(){return!0}).catch(h.bind(function(n){return this.reportError("Error saving queue",n),!1},this))},Ze.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(h.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):F.resolve()};var hS=600*1e3,mn=Xe("batch"),Be=function(t,n){this.errorReporter=n.errorReporter,this.queue=new Ze(t,{errorReporter:h.bind(this.reportError,this),queueStorage:n.queueStorage,sharedLockStorage:n.sharedLockStorage,sharedLockTimeoutMS:n.sharedLockTimeoutMS,usePersistence:n.usePersistence,enqueueThrottleMs:n.enqueueThrottleMs}),this.libConfig=n.libConfig,this.sendRequest=n.sendRequestFunc,this.beforeSendHook=n.beforeSendHook,this.stopAllBatching=n.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=n.flushOnlyOnInterval||!1,this._flushPromise=null};Be.prototype.enqueue=function(t){return this.queue.enqueue(t,this.flushInterval)},Be.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Be.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Be.prototype.clear=function(){return this.queue.clear()},Be.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Be.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Be.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(h.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Be.prototype.sendRequestPromise=function(t,n){return new F(h.bind(function(i){this.sendRequest(t,n,i)},this))},Be.prototype.flush=function(t){if(this.requestInProgress)return mn.log("Flush: Request already in progress"),F.resolve();this.requestInProgress=!0,t=t||{};var n=this.libConfig.batch_request_timeout_ms,i=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(h.bind(function(r){var s=r.length===e,o=[],a={};if(h.each(r,function(f){var p=f.payload;if(this.beforeSendHook&&!f.orphaned&&(p=this.beforeSendHook(p)),p){p.event&&p.properties&&(p.properties=h.extend({},p.properties,{mp_sent_by_lib_version:Pe.LIB_VERSION}));var g=!0,v=f.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:f,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[v]}),g=!1):this.reportError("[dupe] found item with no ID",{item:f}),g&&o.push(p)}a[f.id]=p},this),o.length<1)return this.requestInProgress=!1,this.resetFlush(),F.resolve();var u=h.bind(function(){return this.queue.removeItemsByID(h.map(r,function(f){return f.id})).then(h.bind(function(f){return h.each(r,h.bind(function(p){var g=p.id;g?(this.itemIdsSentSuccessfully[g]=this.itemIdsSentSuccessfully[g]||0,this.itemIdsSentSuccessfully[g]++,this.itemIdsSentSuccessfully[g]>5&&this.reportError("[dupe] item ID sent too many times",{item:p,batchSize:r.length,timesSent:this.itemIdsSentSuccessfully[g]})):this.reportError("[dupe] found item with no ID while removing",{item:p})},this)),f?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!s?(this.resetFlush(),F.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),F.resolve())},this))},this),c=h.bind(function(f){this.requestInProgress=!1;try{if(t.unloading)return this.queue.updatePayloads(a);if(h.isObject(f)&&f.error==="timeout"&&new Date().getTime()-i>=n)return this.reportError("Network timeout; retrying"),this.flush();if(h.isObject(f)&&(f.httpStatusCode>=500||f.httpStatusCode===429||f.httpStatusCode<=0&&!nS()||f.error==="timeout")){var p=this.flushInterval*2;return f.retryAfter&&(p=parseInt(f.retryAfter,10)*1e3||p),p=Math.min(hS,p),this.reportError("Error; retry in "+p+" ms"),this.scheduleFlush(p),F.resolve()}else if(h.isObject(f)&&f.httpStatusCode===413)if(r.length>1){var g=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,g,r.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),F.resolve()}else return this.reportError("Single-event request too large; dropping",r),this.resetBatchSize(),u();else return u()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:n};return t.unloading&&(l.transport="sendBeacon"),mn.log("MIXPANEL REQUEST:",o),this.sendRequestPromise(o,l).then(c)},this)).catch(h.bind(function(r){this.reportError("Error flushing request queue",r),this.resetFlush()},this))},Be.prototype.reportError=function(t,n){if(mn.error.apply(mn.error,arguments),this.errorReporter)try{n instanceof Error||(n=new Error(t)),this.errorReporter(t,n)}catch(i){mn.error(i)}};var Ga=function(t){var n=Date.now();return!t||n>t.maxExpires||n>t.idleExpires},pS=250,Hh=function(t,n){if(!h.isArray(t))return t&&n.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var i=[],e=0;e<t.length;e++)try{var r=new URL(t[e]).origin;if(r==="null"){n.critical(t[e]+" has an opaque origin. Skipping this entry.");continue}i.push(r)}catch(s){n.critical(t[e]+" is not a valid origin URL. Skipping this entry.")}return i},yn="change",ct="click",Va="hashchange",dS="input",Yh="load",Rt="mp_locationchange",Kh="popstate",rs="scrollend",ja="scroll",vS="select",ns="submit",gS="toggle",Jh="visibilitychange",mS=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],Xh=["mp-include"],Ha=["mp-no-track"],Zh=Ha.concat(["mp-sensitive"]),yS=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],_S={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},wS={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},bS={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},Qh=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],SS=5,re=Xe("autocapture");function Ya(t){for(var n={},i=ep(t).split(" "),e=0;e<i.length;e++){var r=i[e];r&&(n[r]=!0)}return n}function ep(t){switch(typeof t.className){case"string":return t.className;case"object":return t.className.baseVal||t.getAttribute("class")||"";default:return""}}function CS(t){if(t.previousElementSibling)return t.previousElementSibling;do t=t.previousSibling;while(t&&!np(t));return t}function tp(t,n,i,e,r,s){var o={$classes:ep(t).split(" "),$tag_name:t.tagName.toLowerCase()},a=t.id;a&&(o.$id=a),Xa(t,n,r,s)&&h.each(yS.concat(e),function(f){if(t.hasAttribute(f)&&!i[f]){var p=t.getAttribute(f);is(p)&&(o["$attr-"+f]=p)}});for(var u=1,c=1,l=t;l=CS(l);)u++,l.tagName===t.tagName&&c++;return o.$nth_child=u,o.$nth_of_type=c,o}function ES(t,n){var i=n.allowElementCallback,e=n.allowSelectors||[],r=n.blockAttrs||[],s=n.blockElementCallback,o=n.blockSelectors||[],a=n.captureTextContent||!1,u=n.captureExtraAttrs||[],c=n.capturedForHeatMap||!1,l={};h.each(r,function(S){l[S]=!0});var f=null,p=typeof t.target=="undefined"?t.srcElement:t.target;if(ip(p)&&(p=p.parentNode),kS(p,t)&&Ka(p,t,i,e)&&!Ja(p,t,s,o)){for(var g=[p],v=p;v.parentNode&&!Qe(v,"body");)g.push(v.parentNode),v=v.parentNode;var y=[],d,m=!1;if(h.each(g,function(S){var O=Xa(S,t,i,e);!l.href&&S.tagName.toLowerCase()==="a"&&(d=S.getAttribute("href"),d=O&&is(d)&&d),Ja(S,t,s,o)&&(m=!0),y.push(tp(S,t,l,u,i,e))},this),!m){var _=U.documentElement;if(f={$event_type:t.type,$host:E.location.host,$pathname:E.location.pathname,$elements:y,$el_attr__href:d,$viewportHeight:Math.max(_.clientHeight,E.innerHeight||0),$viewportWidth:Math.max(_.clientWidth,E.innerWidth||0),$pageHeight:U.body.offsetHeight||0,$pageWidth:U.body.offsetWidth||0},h.each(u,function(S){if(!l[S]&&p.hasAttribute(S)){var O=p.getAttribute(S);is(O)&&(f["$el_attr__"+S]=O)}}),a&&(b=rp(p,t,i,e),b&&b.length&&(f.$el_text=b)),t.type===ct&&(h.each(mS,function(S){S in t&&(f["$"+S]=t[S])}),c&&(f.$captured_for_heatmap=!0),p=IS(t)),a){var b=rp(p,t,i,e);b&&b.length&&(f.$el_text=b)}if(p){if(!Ka(p,t,i,e)||Ja(p,t,s,o))return null;var C=tp(p,t,l,u,i,e);f.$target=C,f.$el_classes=C.$classes,h.extend(f,h.strip_empty_properties({$el_id:C.$id,$el_tag_name:C.$tag_name}))}}}return f}function rp(t,n,i,e){var r="";return Xa(t,n,i,e)&&t.childNodes&&t.childNodes.length&&h.each(t.childNodes,function(s){ip(s)&&s.textContent&&(r+=h.trim(s.textContent).split(/(\s+)/).filter(is).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),h.trim(r)}function IS(t){for(var n=t.target,i=t.composedPath(),e=0;e<i.length;e++){var r=i[e];if(Qe(r,"a")||Qe(r,"button")||Qe(r,"input")||Qe(r,"select")||r.getAttribute&&r.getAttribute("role")==="button"){n=r;break}if(r===n)break}return n}function Ka(t,n,i,e){if(i)try{if(!i(t,n))return!1}catch(o){return re.critical("Error while checking element in allowElementCallback",o),!1}if(!e.length)return!0;for(var r=0;r<e.length;r++){var s=e[r];try{if(t.matches(s))return!0}catch(o){re.critical("Error while checking selector: "+s,o)}}return!1}function Ja(t,n,i,e){var r;if(i)try{if(i(t,n))return!0}catch(a){return re.critical("Error while checking element in blockElementCallback",a),!0}if(e&&e.length)for(r=0;r<e.length;r++){var s=e[r];try{if(t.matches(s))return!0}catch(a){re.critical("Error while checking selector: "+s,a)}}var o=Ya(t);for(r=0;r<Ha.length;r++)if(o[Ha[r]])return!0;return!1}function np(t){return t&&t.nodeType===1}function Qe(t,n){return t&&t.tagName&&t.tagName.toLowerCase()===n.toLowerCase()}function ip(t){return t&&t.nodeType===3}function OS(){try{var t=U.createElement("div");return!!t.matches}catch(n){return!1}}function xS(){return typeof WeakSet!="undefined"}function kS(t,n){if(!t||Qe(t,"html")||!np(t))return!1;var i=t.tagName.toLowerCase();switch(i){case"form":return n.type===ns;case"input":return["button","submit"].indexOf(t.getAttribute("type"))===-1?n.type===yn:n.type===ct;case"select":case"textarea":return n.type===yn;default:return n.type===ct}}function sp(t){var n=(t.name||t.id||"").toString().toLowerCase();if(typeof n=="string"){var i=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(i.test(n.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}function Xa(t,n,i,e){var r;if(!Ka(t,n,i,e))return!1;for(var s=t;s.parentNode&&!Qe(s,"body");s=s.parentNode){var o=Ya(s);for(r=0;r<Zh.length;r++)if(o[Zh[r]])return!1}var a=Ya(t);for(r=0;r<Xh.length;r++)if(a[Xh[r]])return!0;if(Qe(t,"input")||Qe(t,"select")||Qe(t,"textarea")||t.getAttribute("contenteditable")==="true")return!1;var u=t.type||"";if(typeof u=="string")switch(u.toLowerCase()){case"hidden":return!1;case"password":return!1}return!sp(t)}function is(t){if(t===null||h.isUndefined(t))return!1;if(typeof t=="string"){t=h.trim(t);var n=/^(?:(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}))$/;if(n.test((t||"").replace(/[- ]/g,"")))return!1;var i=/(^\d{3}-?\d{2}-?\d{4}$)/;if(i.test(t))return!1}return!0}function op(t){var n="onscrollend"in E,i=Wt(t),e=rs;if(!n){var r=null,s=100;i=Wt(function(){clearTimeout(r),r=setTimeout(t,s)}),e=ja}return{listener:i,eventType:e}}function RS(t){for(var n=0;n<Qh.length;n++)if(t.hasAttribute(Qh[n]))return!0;return!1}function AS(t){var n=t.getAttribute("role");if(!n)return!1;var i=n.trim().split(/\s+/)[0].toLowerCase();return _S[i]}function Za(t){var n=t.tagName.toLowerCase();return!!(n==="button"||n==="input"||n==="select"||n==="textarea"||n==="details"||n==="dialog"||t.isContentEditable||t.onclick||t.onmousedown||t.onmouseup||t.ontouchstart||t.ontouchend||RS(t)||AS(t)||n==="a"&&t.hasAttribute("href")||t.hasAttribute("tabindex"))}function ap(t){if(!t||!t.tagName)return!0;var n=t.tagName.toLowerCase();if(wS[n])return!0;if(Za(t))return!1;for(var i=t.parentElement,e=0;i&&e<SS;){if(Za(i))return!1;if(i.getRootNode&&i.getRootNode()!==U){var r=i.getRootNode();if(r.host&&Za(r.host))return!1}i=i.parentElement,e++}return!!bS[n]}function up(t){return"composedPath"in t?t.composedPath():[]}function cp(t){var n=up(t);return n&&n.length>0?n[0]:t.target||t.srcElement}var lp=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",MS="data-rr-is-password",TS=["password","email","tel","hidden"];function ss(t){return t?Array.isArray(t)?t:[t]:[]}function PS(t){var n={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},i=t.get_config("record_mask_input_selector"),e=t.get_config("record_unmask_input_selector"),r=t.get_config("record_mask_all_inputs");n.input.maskingSelector=ss(i).join(","),n.input.unmaskingSelector=ss(e).join(","),r!==void 0&&(n.input.maskAll=r);var s=t.get_config("record_mask_text_selector"),o=t.get_config("record_unmask_text_selector"),a=t.get_config("record_mask_all_text"),u=t.get_config("record_mask_text_class"),c=ss(s);if(u)if(u instanceof RegExp)n.text._legacyClassRegex=u;else{var l="."+u;c.indexOf(l)===-1&&c.push(l)}return n.text.maskingSelector=c.join(","),n.text.unmaskingSelector=ss(o).join(","),a===void 0&&s!==void 0?n.text.maskAll=!1:a!==void 0&&(n.text.maskAll=a),n}function xr(t,n){return n?!!t.closest(n):!1}function $S(t,n){var i=(t.getAttribute("type")||"").toLowerCase();if(TS.indexOf(i)!==-1)return!0;var e=(t.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||t.hasAttribute(MS)||sp(t)?!0:n.input.maskAll?!xr(t,n.input.unmaskingSelector):!!(xr(t,n.input.maskingSelector)||xr(t,lp))}function NS(t,n){return t?n.text._legacyClassRegex&&Jo(t,n.text._legacyClassRegex)?!0:n.text.maskAll?!xr(t,n.text.unmaskingSelector):!!(xr(t,n.text.maskingSelector)||xr(t,lp)):!1}var Gt=Xe("network-plugin");function os(t){return Math.round(Date.now()-t.performance.now())}var Qa={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 LS(t){return t.entryType==="navigation"}function eu(t){return t.entryType==="resource"}function DS(t,n){for(var i=t.length,e=i-1;e>=0;e-=1)if(n(t[e]))return t[e]}function fp(t,n,i){if(!(n in t)||typeof t[n]!="function")return function(){};var e=t[n],r=i(e);return t[n]=r,function(){t[n]=e}}var tu=1024*1024;function hp(t){return!t||typeof t!="string"?t:t.length>tu?(Gt.error("Body truncated from "+t.length+" to "+tu+" characters"),t.substring(0,tu)+"... [truncated]"):t}function FS(t,n,i){if(!n.PerformanceObserver)return Gt.error("PerformanceObserver not supported"),function(){};if(i.recordInitialRequests){var e=n.performance.getEntries().filter(function(s){return LS(s)||eu(s)&&i.initiatorTypes.includes(s.initiatorType)});t({requests:e.map(function(s){return{url:s.name,initiatorType:s.initiatorType,status:"responseStatus"in s?s.responseStatus:void 0,startTime:Math.round(s.startTime),endTime:Math.round(s.responseEnd),timeOrigin:os(n)}}),isInitial:!0})}var r=new n.PerformanceObserver(function(s){var o=s.getEntries().filter(function(a){return eu(a)&&i.initiatorTypes.includes(a.initiatorType)&&a.initiatorType!=="xmlhttprequest"&&a.initiatorType!=="fetch"});t({requests:o.map(function(a){return{url:a.name,initiatorType:a.initiatorType,status:"responseStatus"in a?a.responseStatus:void 0,startTime:Math.round(a.startTime),endTime:Math.round(a.responseEnd),timeOrigin:os(n)}})})});return r.observe({entryTypes:["navigation","resource"]}),function(){r.disconnect()}}function as(t,n,i){return!n[t]||n[t].length===0?!1:n[t].includes(i.toLowerCase())}function us(t,n,i){return!n[t]||n[t].length===0?!1:es(i,n[t])}function pp(t){if(t==null)return null;var n;if(typeof t=="string")n=t;else if(t instanceof Document)n=t.textContent;else if(t instanceof FormData)n=h.HTTPBuildQuery(t);else if(h.isObject(t))try{n=JSON.stringify(t)}catch(i){return"Failed to stringify response object"}else return"Cannot read body of type "+typeof t;return hp(n)}function dp(t){return new Promise(function(n){var i=setTimeout(function(){n("Timeout while trying to read body")},500);try{t.clone().text().then(function(e){clearTimeout(i),n(hp(e))},function(e){clearTimeout(i),n("Failed to read body: "+String(e))})}catch(e){clearTimeout(i),n("Failed to read body: "+String(e))}})}function ru(t,n,i,e,r,s){if(s===void 0&&(s=0),s>10)return Gt.error("Cannot find performance entry"),Promise.resolve(null);var o=t.performance.getEntriesByName(i),a=DS(o,function(u){return eu(u)&&u.initiatorType===n&&(!e||u.startTime>=e)&&(!r||u.startTime<=r)});return a?Promise.resolve(a):new Promise(function(u){setTimeout(u,50*s)}).then(function(){return ru(t,n,i,e,r,s+1)})}function US(t,n,i){if(!i.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=fp(n.XMLHttpRequest.prototype,"open",function(r){return function(s,o,a,u,c){a===void 0&&(a=!0);var l=this,f=new Request(o,{method:s}),p={},g,v,y={},d=l.setRequestHeader.bind(l);l.setRequestHeader=function(_,b){return as("request",i.recordHeaders,_)&&(y[_]=b),d(_,b)},p.requestHeaders=y;var m=l.send.bind(l);l.send=function(_){return us("request",i.recordBodyUrls,f.url)&&(p.requestBody=pp(_)),g=n.performance.now(),m(_)},l.addEventListener("readystatechange",function(){if(l.readyState===l.DONE){v=n.performance.now();var _={},b=l.getAllResponseHeaders();if(b){var C=b.trim().split(/[\r\n]+/);C.forEach(function(S){if(S){var O=S.indexOf(": ");if(O!==-1){var A=S.substring(0,O),k=S.substring(O+2);A&&as("response",i.recordHeaders,A)&&(_[A]=k)}}})}p.responseHeaders=_,us("response",i.recordBodyUrls,f.url)&&(p.responseBody=pp(l.response)),ru(n,"xmlhttprequest",f.url,g,v).then(function(S){if(!S){Gt.error("Failed to get performance entry for XHR request to "+f.url);return}var O={url:S.name,method:f.method,initiatorType:S.initiatorType,status:l.status,startTime:Math.round(S.startTime),endTime:Math.round(S.responseEnd),timeOrigin:os(n),requestHeaders:p.requestHeaders,requestBody:p.requestBody,responseHeaders:p.responseHeaders,responseBody:p.responseBody};t({requests:[O]})}).catch(function(S){Gt.error("Error recording XHR request to "+f.url+": "+String(S))})}}),r.call(l,s,o,a,u,c)}});return function(){e()}}function BS(t,n,i){if(!i.initiatorTypes.includes("fetch"))return function(){};var e=fp(n,"fetch",function(r){return function(){var s=new Request(arguments[0],arguments[1]),o,a={},u,c,l,f=Promise.resolve(void 0),p=Promise.resolve(void 0);try{var g={};s.headers.forEach(function(v,y){as("request",i.recordHeaders,y)&&(g[y]=v)}),a.requestHeaders=g,us("request",i.recordBodyUrls,s.url)&&(f=dp(s).then(function(v){a.requestBody=v})),u=n.performance.now(),l=r.apply(n,arguments).then(function(v){o=v,c=n.performance.now();var y={};return o.headers.forEach(function(d,m){as("response",i.recordHeaders,m)&&(y[m]=d)}),a.responseHeaders=y,us("response",i.recordBodyUrls,s.url)&&(p=dp(o).then(function(d){a.responseBody=d})),o})}catch(v){l=Promise.reject(v)}return Promise.all([f,p,l]).then(function(){return ru(n,"fetch",s.url,u,c)}).then(function(v){if(!v){Gt.error("Failed to get performance entry for fetch request to "+s.url);return}var y={url:v.name,method:s.method,initiatorType:v.initiatorType,status:o?o.status:void 0,startTime:Math.round(v.startTime),endTime:Math.round(v.responseEnd),timeOrigin:os(n),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};t({requests:[y]})}).catch(function(v){Gt.error("Error recording fetch request to "+s.url+": "+String(v))}),l}});return function(){e()}}function zS(t,n,i){if(!("performance"in n))return function(){};var e=Object.assign({},Qa.recordHeaders,i.recordHeaders||{}),r=Object.assign({},Qa.recordBodyUrls,i.recordBodyUrls||{});i=Object.assign({},i,{recordHeaders:e,recordBodyUrls:r});var s=Object.assign({},Qa,i),o=function(l){var f=l.requests.filter(function(p){var g=es(p.url,s.ignoreRequestUrls||[]);return!g&&!s.ignoreRequestFn(p)});(f.length>0||l.isInitial)&&t(Object.assign({},l,{requests:f}))},a=FS(o,n,s),u=US(o,n,s),c=BS(o,n,s);return function(){a(),u(),c()}}var qS="rrweb/network@1.mp",WS=function(t){return{name:qS,observer:zS,options:t}},Vt=Xe("recorder"),GS=E.CompressionStream,VS={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},jS=new Set([D.MouseMove,D.MouseInteraction,D.Scroll,D.ViewportResize,D.Input,D.TouchMove,D.MediaInteraction,D.Drag,D.Selection]);function HS(t){return t.type===j.IncrementalSnapshot&&jS.has(t.data.source)}var we=function(t){this._mixpanel=t.mixpanelInstance,this._onIdleTimeout=t.onIdleTimeout||Ot,this._onMaxLengthReached=t.onMaxLengthReached||Ot,this._onBatchSent=t.onBatchSent||Ot,this._rrwebRecord=t.rrwebRecord||null,this._stopRecording=null,this.replayId=t.replayId,this.batchStartUrl=t.batchStartUrl||null,this.replayStartUrl=t.replayStartUrl||null,this.idleExpires=t.idleExpires||null,this.maxExpires=t.maxExpires||null,this.replayStartTime=t.replayStartTime||null,this.lastEventTimestamp=t.lastEventTimestamp||null,this.seqNo=t.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=pn,this.recordMinMs=0;var n=gn(t.sharedLockStorage||Qi(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Ue(Fa,Uh,Ba),this.batcher=new Be(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:VS,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:t.sharedLockStorage,usePersistence:n,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:pS,sharedLockTimeoutMS:10*1e3})};we.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var t={distinct_id:String(this._mixpanel.get_distinct_id())},n=this._mixpanel.get_property("$device_id");n&&(t.$device_id=n);var i=this._mixpanel.get_property("$user_id");return i&&(t.$user_id=i),t},we.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))},we.prototype.getConfig=function(t){return this._mixpanel.get_config(t)},we.prototype.get_config=function(t){return this.getConfig(t)},we.prototype.startRecording=function(t){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){Vt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>pn&&(this.recordMaxMs=pn,Vt.critical("record_max_ms cannot be greater than "+pn+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=h.info.currentUrl(),this.replayStartUrl=h.info.currentUrl()),t||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var n=function(){clearTimeout(this.idleTimeoutId);var c=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,c),this.idleExpires=new Date().getTime()+c}.bind(this);n();var i=this.getConfig("record_block_selector");(i===""||i===null)&&(i=void 0);var e=PS(this._mixpanel),r=[];if(this.getConfig("record_network")){var s=this.getConfig("record_network_options")||{},o=(s.ignoreRequestUrls||[]).slice();o.push(this._getApiRoute()),s.ignoreRequestUrls=o,r.push(WS(s))}this.getConfig("record_console")&&r.push(Wb({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));var a=Hh(this.getConfig("record_allowed_iframe_origins"),Vt);try{this._stopRecording=this._rrwebRecord({emit:function(c){if(this.idleExpires&&this.idleExpires<c.timestamp){this._onIdleTimeout();return}HS(c)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),n()),this.__enqueuePromise=this.batcher.enqueue(c),(this.lastEventTimestamp===null||c.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=c.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:i,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn($S,e),maskTextFn:this._getMaskFn(NS,e),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:r})}catch(c){this.reportError("Unexpected error when starting rrweb recording.",c)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)},we.prototype.stopRecording=function(t){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(i){this.reportError("Error with rrweb stopRecording",i)}this._stopRecording=null}var n;return this.batcher.stopped?n=this.batcher.clear():t||(n=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),n},we.prototype.isRrwebStopped=function(){return this._stopRecording===null},we.prototype.flushEventsWithOptOut=function(t,n,i){var e=function(r){r===0&&(this.stopRecording(),i({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(t,n,i,e)},we.prototype.serialize=function(){var t;try{t=this._mixpanel.get_tab_id()}catch(n){this.reportError("Error getting tab ID for serialization ",n),t=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:t}},we.deserialize=function(t,n){var i=new we(h.extend({},n,{replayId:t.replayId,batchStartUrl:t.batchStartUrl,replayStartUrl:t.replayStartUrl,idleExpires:t.idleExpires,maxExpires:t.maxExpires,replayStartTime:t.replayStartTime,lastEventTimestamp:t.lastEventTimestamp,seqNo:t.seqNo,sharedLockStorage:n.sharedLockStorage}));return i},we.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},we.prototype._sendRequest=function(t,n,i,e){var r=function(o,a){o.status===200&&this.replayId===t&&(this.seqNo++,this.batchStartUrl=h.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:o.status,responseBody:a,retryAfter:o.headers.get("Retry-After")})}.bind(this),s=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");E.fetch(s+"/"+this._getApiRoute()+"?"+new URLSearchParams(n),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:i}).then(function(o){o.json().then(function(a){r(o,a)}).catch(function(a){e({error:a})})}).catch(function(o){e({error:o,httpStatusCode:0})})},we.prototype._flushEvents=xt(function(t,n,i){var e=t.length;if(e>0){for(var r=this.replayId,s=1/0,o=-1/0,a=!1,u=0;u<e;u++)s=Math.min(s,t[u].timestamp),o=Math.max(o,t[u].timestamp),t[u].type===j.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){i({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=s}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=s);var c=o-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:Pe.LIB_VERSION,batch_start_time:s/1e3,mp_lib:"web",replay_id:r,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},f=JSON.stringify(t);if(Object.assign(l,this.getUserIdInfo()),iS(Je,ut.vendor,vn)){var p=new Blob([f],{type:"application/json"}).stream(),g=p.pipeThrough(new GS("gzip"));new Response(g).blob().then(function(v){l.format="gzip",this._sendRequest(r,l,v,i)}.bind(this))}else l.format="body",this._sendRequest(r,l,f,i)}}),we.prototype.reportError=function(t,n){Vt.error.apply(Vt.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.getConfig("error_reporter")(t,n)}catch(i){Vt.error(i)}},we.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},we.prototype._getRecordMinMs=function(){var t=this.getConfig("record_min_ms");return t>Ma?(Vt.critical("record_min_ms cannot be greater than "+Ma+"ms. Capping value."),Ma):t},we.prototype._getMaskFn=function(t,n){return function(i,e){if(!i.trim().length)return"";var r=!0;try{r=t(e,n)}catch(o){this.reportError("Error checking if text should be masked, defaulting to masked",o)}if(r){var s=Math.min(i.length,1e4);return"*".repeat(s)}else return i}.bind(this)};var lt=function(t){this.idb=new Ue(Fa,Ua,Ba),this.errorReporter=t.errorReporter,this.mixpanelInstance=t.mixpanelInstance,this.sharedLockStorage=t.sharedLockStorage};lt.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},lt.prototype.handleError=function(t){this.errorReporter("IndexedDB error: ",t)},lt.prototype.setActiveRecording=function(t){if(!this.isPersistenceEnabled())return F.resolve();var n=t.tabId;return n?this.idb.init().then(function(){return this.idb.setItem(n,t)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),F.resolve())},lt.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(t){return Ga(t)?null:t}.bind(this)).catch(this.handleError.bind(this)):F.resolve(null)},lt.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},lt.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(t){if(t)return t.maxExpires=0,this.setActiveRecording(t)}.bind(this)).catch(this.handleError.bind(this))},lt.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):F.resolve()},lt.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(t){var n=t.filter(function(i){return Ga(i)}).map(function(i){var e=we.deserialize(i,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(i.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return F.all(n)}.bind(this)).catch(this.handleError.bind(this)):F.resolve([])};var _n=Xe("recorder"),et=function(t,n,i){this.mixpanelInstance=t,this.rrwebRecord=n||wt,this.sharedLockStorage=i,this.recordingRegistry=new lt({mixpanelInstance:this.mixpanelInstance,errorReporter:_n.error,sharedLockStorage:i}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};et.prototype.startRecording=function(t){if(t=t||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){_n.log("Recording already in progress, skipping startRecording.");return}var n=function(){_n.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),i=function(){_n.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),r={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:n,onMaxLengthReached:i,replayId:h.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return t.activeSerializedRecording?this.activeRecording=we.deserialize(t.activeSerializedRecording,r):this.activeRecording=new we(r),this.activeRecording.startRecording(t.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},et.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))},et.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},et.prototype._stopCurrentRecording=function(t,n){if(this.activeRecording){var i=this.activeRecording.stopRecording(t);return n&&(this.activeRecording=null),i}return F.resolve()},et.prototype.resumeRecording=function(t){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),F.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(n){return n&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:n}):t?this.startRecording({shouldStopBatcher:!1}):(_n.log("No resumable recording found."),null)}.bind(this))},et.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},et.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},et.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(et.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),E[Is]=et;var YS=30,KS=1e3,JS=4,XS=!1;function vp(){this.clicks=[]}vp.prototype.isRageClick=function(t,n){n=n||{};var i=n.threshold_px||YS,e=n.timeout_ms||KS,r=n.click_count||JS,s=n.interactive_elements_only||XS;if(s){var o=cp(t);if(!o||ap(o))return!1}var a=Date.now(),u=t.pageX,c=t.pageY,l=this.clicks[this.clicks.length-1];if(l&&a-l.timestamp<e&&Math.sqrt(Math.pow(u-l.x,2)+Math.pow(c-l.y,2))<i){if(this.clicks.push({x:u,y:c,timestamp:a}),this.clicks.length>=r)return this.clicks=[],!0}else this.clicks=[{x:u,y:c,timestamp:a}];return!1};function kr(t,n){this.changeCallback=t||function(){},this.observerConfig=n,this.observedShadowRoots=null,this.shadowObservers=[]}kr.prototype.getEventTarget=function(t){if(this.observedShadowRoots)return cp(t)},kr.prototype.observeFromEvent=function(t){if(this.observedShadowRoots)for(var n=up(t),i=0;i<n.length;i++){var e=n[i];e&&e.shadowRoot&&this.observeShadowRoot(e.shadowRoot)}},kr.prototype.observeShadowRoot=function(t){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(t))){var n=this;try{this.observedShadowRoots.add(t);var i=new window.MutationObserver(function(){n.changeCallback()});i.observe(t,this.observerConfig),this.shadowObservers.push(i)}catch(e){re.critical("Error while observing shadow root",e)}}},kr.prototype.start=function(){if(!this.observedShadowRoots){if(!xS()){re.critical("Shadow DOM observation unavailable: WeakSet not supported");return}this.observedShadowRoots=new WeakSet}},kr.prototype.stop=function(){if(this.observedShadowRoots){for(var t=0;t<this.shadowObservers.length;t++)try{this.shadowObservers[t].disconnect()}catch(n){re.critical("Error while disconnecting shadow DOM observer",n)}this.shadowObservers=[],this.observedShadowRoots=null}};var ZS=500,QS=[yn,dS,ns,vS,gS],eC=[rs],tC=[Va],gp={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function tt(t){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=t,this.processingActive=!1,this.processingTimeout=null}tt.prototype.addClick=function(t){var n=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(t);return n||(n=t.target||t.srcElement),!n||ap(n)?!1:(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(t),this.pendingClicks.push({element:n,event:t,timestamp:Date.now()}),!0)},tt.prototype.trackClick=function(t,n){if(!this.isTracking)return!1;var i=this.addClick(t);return i&&this.triggerProcessing(n),i},tt.prototype.getDeadClicks=function(t){if(this.pendingClicks.length===0)return[];var n=t.timeout_ms,i=Date.now(),e=this.pendingClicks.slice();this.pendingClicks=[];for(var r=[],s=0;s<e.length;s++){var o=e[s];i-o.timestamp>=n?this.hasChangesAfter(o.timestamp)||r.push(o):this.pendingClicks.push(o)}return r},tt.prototype.hasChangesAfter=function(t){return this.lastChangeEventTimestamp>=t-100},tt.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},tt.prototype.triggerProcessing=function(t){this.processingActive||(this.processingActive=!0,this.processRecursively(t))},tt.prototype.processRecursively=function(t){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var n=t.timeout_ms,i=this;this.processingTimeout=setTimeout(function(){if(i.processingActive){for(var e=i.getDeadClicks(t),r=0;r<e.length;r++)i.onDeadClickCallback(e[r].event);i.pendingClicks.length>0?i.processRecursively(t):i.processingActive=!1}},n)},tt.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var t=this;QS.forEach(function(i){var e=function(){t.recordChangeEvent()};document.addEventListener(i,e,{capture:!0,passive:!0}),t.eventListeners.push({target:document,event:i,handler:e,options:{capture:!0,passive:!0}})}),tC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e),t.eventListeners.push({target:window,event:i,handler:e})}),eC.forEach(function(i){var e=function(){t.recordChangeEvent()};window.addEventListener(i,e,{passive:!0}),t.eventListeners.push({target:window,event:i,handler:e,options:{passive:!0}})});var n=function(){t.recordChangeEvent()};if(document.addEventListener("selectionchange",n),t.eventListeners.push({target:document,event:"selectionchange",handler:n}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){t.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,gp)}catch(i){re.critical("Error while setting up mutation observer",i)}if(window.customElements)try{this.shadowDOMObserver=new kr(function(){t.recordChangeEvent()},gp),this.shadowDOMObserver.start()}catch(i){re.critical("Error while setting up shadow DOM observer",i),this.shadowDOMObserver=null}}},tt.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var t=0;t<this.eventListeners.length;t++){var n=this.eventListeners[t];try{n.target.removeEventListener(n.event,n.handler,n.options)}catch(i){re.critical("Error while removing event listener",i)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(i){re.critical("Error while disconnecting mutation observer",i)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(i){re.critical("Error while stopping shadow DOM observer",i)}this.shadowDOMObserver=null}}};var mp="autocapture",rC="track_pageview",nu="full-url",nC="url-with-path-and-query-string",iC="url-with-path",sC="allow_element_callback",yp="allow_selectors",_p="allow_url_regexes",wp="block_attrs",bp="block_element_callback",Sp="block_selectors",Cp="block_url_regexes",Ep="capture_extra_attrs",Ip="capture_text_content",Op="scroll_capture_all",xp="scroll_depth_percent_checkpoints",cs="click",ls="dead_click",iu="input",kp="pageview",fs="rage_click",su="scroll",hs="page_leave",ou="submit",Ee={};Ee[yp]=[],Ee[_p]=[],Ee[wp]=[],Ee[bp]=null,Ee[Sp]=[],Ee[Cp]=[],Ee[Ep]=[],Ee[Ip]=!1,Ee[Op]=!1,Ee[xp]=[25,50,75,100],Ee[cs]=!0,Ee[ls]=!0,Ee[iu]=!0,Ee[kp]=nu,Ee[fs]=!0,Ee[su]=!0,Ee[hs]=!1,Ee[ou]=!0;var wn={$mp_autocapture:!0},Rp="$mp_click",Ap="$mp_dead_click",oC="$mp_input_change",Mp="$mp_rage_click",aC="$mp_scroll",uC="$mp_submit",cC="$mp_page_leave",be=function(t){this.mp=t,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};be.prototype.init=function(){if(!OS()){re.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()},be.prototype.getFullConfig=function(){var t=this.mp.get_config(mp);return t?h.isObject(t)?h.extend({},Ee,t):Ee:{}},be.prototype.getConfig=function(t){return this.getFullConfig()[t]},be.prototype.currentUrlBlocked=function(){var t=h.info.currentUrl(),n=this.getConfig(_p)||[];if(n.length)try{return!es(t,n)}catch(e){return re.critical("Error while checking block URL regexes: ",e),!0}var i=this.getConfig(Cp)||[];if(!i||!i.length)return!1;try{return es(t,i)}catch(e){return re.critical("Error while checking block URL regexes: ",e),!0}},be.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(mp)?this.getConfig(kp):this.mp.get_config(rC)},be.prototype.trackDomEvent=function(t,n){if(!this.currentUrlBlocked()){var i=this.mp.is_recording_heatmap_data()&&(n===Rp&&!this.getConfig(cs)||n===Mp&&!this._getClickTrackingConfig(fs)||n===Ap&&!this._getClickTrackingConfig(ls)),e=ES(t,{allowElementCallback:this.getConfig(sC),allowSelectors:this.getConfig(yp),blockAttrs:this.getConfig(wp),blockElementCallback:this.getConfig(bp),blockSelectors:this.getConfig(Sp),captureExtraAttrs:this.getConfig(Ep),captureTextContent:this.getConfig(Ip),capturedForHeatMap:i});e&&(h.extend(e,wn),this.mp.track(n,e))}},be.prototype.initPageListeners=function(){if(E.removeEventListener(Kh,this.listenerPopstate),E.removeEventListener(Va,this.listenerHashchange),!(!this.pageviewTrackingConfig()&&!this.getConfig(hs)&&!this.mp.get_config("record_heatmap_data"))){this.listenerPopstate=function(){E.dispatchEvent(new Event(Rt))},this.listenerHashchange=function(){E.dispatchEvent(new Event(Rt))},E.addEventListener(Kh,this.listenerPopstate),E.addEventListener(Va,this.listenerHashchange);var t=E.history.pushState;typeof t=="function"&&(E.history.pushState=function(i,e,r){t.call(E.history,i,e,r),E.dispatchEvent(new Event(Rt))});var n=E.history.replaceState;typeof n=="function"&&(E.history.replaceState=function(i,e,r){n.call(E.history,i,e,r),E.dispatchEvent(new Event(Rt))})}},be.prototype._getClickTrackingConfig=function(t){var n=this.getConfig(t);return n?n===!0?{}:typeof n=="object"?n:{}:null},be.prototype._trackPageLeave=function(t,n,i){if(!this.hasTrackedScrollSession&&!(!this.getConfig(hs)&&!this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var e=Math.max(U.documentElement.clientHeight,E.innerHeight||0),r=Math.round(Math.max(this.maxScrollViewDepth-e,0)/(i-e)*100),s=Math.round(e/i*100);i<=e&&(r=100,s=100);var o=h.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:r,$fold_line_percentage:s,$scroll_height:i,$event_type:t.type,$current_url:n||h.info.currentUrl(),$viewportHeight:e,$viewportWidth:Math.max(U.documentElement.clientWidth,E.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},wn);this.mp.track(cC,o,{transport:"sendBeacon"})}},be.prototype._initScrollDepthTracking=function(){if(E.removeEventListener(ja,this.listenerScrollDepth),E.removeEventListener(rs,this.listenerScrollDepth),!!this.mp.get_config("record_heatmap_data")){re.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(U.documentElement.clientHeight,E.innerHeight||0);var t=function(){if(!this.currentUrlBlocked()){var i=Math.max(U.documentElement.clientHeight,E.innerHeight||0)+E.scrollY;i>this.maxScrollViewDepth&&(this.maxScrollViewDepth=i),this.previousScrollHeight=U.body.scrollHeight}}.bind(this),n=op(t);this.listenerScrollDepth=n.listener,E.addEventListener(n.eventType,this.listenerScrollDepth)}},be.prototype.initClickTracking=function(){E.removeEventListener(ct,this.listenerClick),!(!this.getConfig(cs)&&!this.mp.get_config("record_heatmap_data"))&&(re.log("Initializing click tracking"),this.listenerClick=function(t){!this.getConfig(cs)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(t,Rp)}.bind(this),E.addEventListener(ct,this.listenerClick))},be.prototype.initDeadClickTracking=function(){var t=this._getClickTrackingConfig(ls);if(!t&&!this.mp.get_config("record_heatmap_data")){this.stopDeadClickTracking();return}re.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new tt(function(n){this.trackDomEvent(n,Ap)}.bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=function(n){var i=this._getClickTrackingConfig(ls);if(!(!i&&!this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var e=i||{};e.timeout_ms||(e.timeout_ms=ZS),this._deadClickTracker.trackClick(n,e)}}.bind(this),E.addEventListener(ct,this.listenerDeadClick))},be.prototype.initInputTracking=function(){E.removeEventListener(yn,this.listenerChange),this.getConfig(iu)&&(re.log("Initializing input tracking"),this.listenerChange=function(t){this.getConfig(iu)&&this.trackDomEvent(t,oC)}.bind(this),E.addEventListener(yn,this.listenerChange))},be.prototype.initPageviewTracking=function(){if(E.removeEventListener(Rt,this.listenerLocationchange),!(!this.pageviewTrackingConfig()&&!this.mp.get_config("record_heatmap_data"))){re.log("Initializing pageview tracking");var t="",n=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(n=this.mp.track_pageview(wn)),n&&(t=h.info.currentUrl()),this.listenerLocationchange=Wt(function(){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),e=!1,r=i.split("#")[0].split("?")[0]!==t.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();if(!s&&this.mp.is_recording_heatmap_data()&&(s=nu),s===nu?e=i!==t:s===nC?e=i.split("#")[0]!==t.split("#")[0]:s===iC&&(e=r),e){var o=this.mp.track_pageview(wn);o&&(t=i),r&&(this.lastScrollCheckpoint=0,re.log("Path change: re-initializing scroll depth checkpoints"))}}}.bind(this)),E.addEventListener(Rt,this.listenerLocationchange)}},be.prototype.initRageClickTracking=function(){E.removeEventListener(ct,this.listenerRageClick);var t=this._getClickTrackingConfig(fs);!t&&!this.mp.get_config("record_heatmap_data")||(re.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new vp),this.listenerRageClick=function(n){var i=this._getClickTrackingConfig(fs);!i&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(n,i)&&this.trackDomEvent(n,Mp)}.bind(this),E.addEventListener(ct,this.listenerRageClick))},be.prototype.initScrollTracking=function(){if(E.removeEventListener(rs,this.listenerScroll),E.removeEventListener(ja,this.listenerScroll),!!this.getConfig(su)){re.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var t=function(){if(this.getConfig(su)&&!this.currentUrlBlocked()){var i=this.getConfig(Op),e=(this.getConfig(xp)||[]).slice().sort(function(l,f){return l-f}),r=E.scrollY,s=h.extend({$scroll_top:r},wn);try{var o=U.body.scrollHeight,a=Math.round(r/(o-E.innerHeight)*100);if(s.$scroll_height=o,s.$scroll_percentage=a,a>this.lastScrollCheckpoint)for(var u=0;u<e.length;u++){var c=e[u];a>=c&&this.lastScrollCheckpoint<c&&(s.$scroll_checkpoint=c,this.lastScrollCheckpoint=c,i=!0)}}catch(l){re.critical("Error while calculating scroll percentage",l)}i&&this.mp.track(aC,s)}}.bind(this),n=op(t);this.listenerScroll=n.listener,E.addEventListener(n.eventType,this.listenerScroll)}},be.prototype.initSubmitTracking=function(){E.removeEventListener(ns,this.listenerSubmit),this.getConfig(ou)&&(re.log("Initializing submit tracking"),this.listenerSubmit=function(t){this.getConfig(ou)&&this.trackDomEvent(t,uC)}.bind(this),E.addEventListener(ns,this.listenerSubmit))},be.prototype.initPageLeaveTracking=function(){if(U.removeEventListener(Jh,this.listenerPageLeaveVisibilitychange),E.removeEventListener(Rt,this.listenerPageLeaveLocationchange),E.removeEventListener(Yh,this.listenerPageLoad),!(!this.getConfig(hs)&&!this.mp.get_config("record_heatmap_data"))){re.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var t=h.info.currentUrl();this.listenerPageLoad=function(){this.previousScrollHeight=U.body.scrollHeight}.bind(this),E.addEventListener(Yh,this.listenerPageLoad),this.listenerPageLeaveLocationchange=Wt(function(n){if(!this.currentUrlBlocked()){var i=h.info.currentUrl(),e=i!==t;e&&(this._trackPageLeave(n,t,this.previousScrollHeight),t=i,this.maxScrollViewDepth=Math.max(U.documentElement.clientHeight,E.innerHeight||0),this.previousScrollHeight=U.body.scrollHeight,this.hasTrackedScrollSession=!1)}}.bind(this)),E.addEventListener(Rt,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=function(n){U.hidden&&this._trackPageLeave(n,t,this.previousScrollHeight)}.bind(this),U.addEventListener(Jh,this.listenerPageLeaveVisibilitychange)}},be.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(E.removeEventListener(ct,this.listenerDeadClick),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},$a(be);var Tp=function(t,n){return E[Ve]&&typeof E[Ve].then=="function"||(E[Ve]=new Promise(function(i){t(n,i)}).then(function(){var i=E[Ve];if(i&&typeof i.then=="function")return i;throw new Error("targeting failed to load")}).catch(function(i){throw delete E[Ve],i})),E[Ve]},We=Xe("flags"),lC="mixpanelFlagsDb",Pp="mixpanelFlags",fC={version:1,storeNames:[Pp]},hC="persisted_variants_for_",$p=1440*60*1e3,At=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),pC=[At.NETWORK_ONLY,At.NETWORK_FIRST,At.PERSISTENCE_UNTIL_NETWORK_SUCCESS],jt=function(t,n,i){this.idb=new Ue(lC,Pp,fC),this.persistenceConfig=t,this.persistedVariantsKey=hC+n,this.isGloballyDisabled=i||function(){return!1}};jt.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?At.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},jt.prototype.getTtlMs=function(){if(!this._isConfigValid())return $p;var t=this.persistenceConfig.persistenceTtlMs;return t==null?$p:t},jt.prototype._isConfigValid=function(){var t=this.persistenceConfig;return t?pC.indexOf(t.variantLookupPolicy)===-1?(We.error("Invalid variantLookupPolicy:",t.variantLookupPolicy),!1):t.persistenceTtlMs!==void 0&&t.persistenceTtlMs!==null&&t.persistenceTtlMs<=0?(We.error("If provided, persistenceTtlMs must be a positive number. Provided value:",t.persistenceTtlMs),!1):!0:!1},jt.prototype.loadFlagsFromStorage=function(t){var n=h.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===At.NETWORK_ONLY)return n();var i=this.getTtlMs();return this.idb.init().then(h.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(h.bind(function(e){if(!e)return We.log("No persisted variants found in IndexedDB"),null;if(i&&Date.now()-e.persistedAt>=i)return We.log("Persisted variants are expiring"),null;if(!t||e.distinctId!==t.distinct_id)return We.log("Persisted variants found, but for a different distinct_id so clearing."),n();var r=new Map;return h.each(e.flagVariants,function(s,o){r.set(o,{key:s.variant_key,value:s.variant_value,experiment_id:s.experiment_id,is_experiment_active:s.is_experiment_active,is_qa_tester:s.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:e.persistedAt,ttl_in_ms:i})}),We.log("Loaded",r.size,"variants from IndexedDB for distinct_id",e.distinctId),{flags:r,pendingFirstTimeEvents:e.pendingFirstTimeEvents||{},persistedAtMs:e.persistedAt,ttlMs:i}},this)).catch(h.bind(function(e){return We.error("Failed to load persisted variants from IndexedDB, so clearing",e),n()},this))},jt.prototype.save=function(t,n,i){if(this.getPolicy()===At.NETWORK_ONLY)return Promise.resolve();var e={};n.forEach(function(s,o){e[o]={variant_key:s.key,variant_value:s.value,experiment_id:s.experiment_id,is_experiment_active:s.is_experiment_active,is_qa_tester:s.is_qa_tester}});var r={persistedAt:Date.now(),distinctId:t&&t.distinct_id,context:t,flagVariants:e,pendingFirstTimeEvents:i||{}};return this.idb.init().then(h.bind(function(){return this.idb.setItem(this.persistedVariantsKey,r)},this)).then(function(){We.log("Saved",n.size,"variants to IndexedDB for distinct_id",r.distinctId)}).catch(function(s){We.error("Failed to persist variants to IndexedDB:",s)})},jt.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(h.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){We.log("Cleared persisted variants from IndexedDB")}).catch(function(t){We.error("Failed to clear persisted variants from IndexedDB:",t)})};var ee=Xe("flags"),ps="flags",ds="context",dC="persistence",au={};au[ds]={};var vC=function(t,n){return t+":"+n},gC=function(t){return t.split(":")[0]},Ht=function(t){return h.isObject(t)?h.extend({},t,{variant_source:"fallback"}):{value:t,variant_source:"fallback"}},R=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||""};R.prototype.init=function(){if(!this.minApisSupported()){ee.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 jt(this.getConfig(dC),this.getMpConfig("token"),h.bind(function(){return this.getMpConfig("disable_persistence")},this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(h.bind(function(t){t&&(this.flags=t.flags,this.pendingFirstTimeEvents=t.pendingFirstTimeEvents,this._loadedPersistedAtMs=t.persistedAtMs,this._loadedTtlMs=t.ttlMs)},this)),this.persistenceLoadedPromise.then(h.bind(function(){return this.fetchFlags()},this)).catch(function(){ee.error("Error initializing feature flags")})},R.prototype._buildContext=function(){return h.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(ds))},R.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(h.bind(function(){return this.fetchFlags()},this)).catch(function(){ee.error("Error during flags reset")})):Promise.resolve()},R.prototype.getFullConfig=function(){var t=this.getMpConfig(ps);return t?h.isObject(t)?h.extend({},au,t):au:{}},R.prototype.getConfig=function(t){return this.getFullConfig()[t]},R.prototype.isSystemEnabled=function(){return!!this.getMpConfig(ps)},R.prototype.updateContext=function(t,n){if(!this.isSystemEnabled())return ee.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var i=this.getMpConfig(ps);h.isObject(i)||(i={});var e=n&&n.replace?{}:this.getConfig(ds);i[ds]=h.extend({},e,t);var r={};return r[ps]=i,this.setMpConfig(r),this.fetchFlags().catch(function(){ee.error("Error fetching flags during updateContext")})},R.prototype.areFlagsReady=function(){return this.isSystemEnabled()||ee.error("Feature Flags not enabled"),!!this.flags},R.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var t=this._buildContext(),n=t.distinct_id,i=Dh();ee.log("Fetching flags for distinct ID: "+n);var e=new URLSearchParams;e.set("context",JSON.stringify(t)),e.set("token",this.getMpConfig("token")),e.set("mp_lib","web"),e.set("$lib_version",Pe.LIB_VERSION);var r=this.getFullApiRoute()+"?"+e.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(E,r,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i}}).then(function(s){return this.markFetchComplete(),s.json()}.bind(this)).then(function(s){var o=s.flags;if(!o)throw new Error("No flags in API response");var a=new Map,u={};h.each(o,function(l,f){var p=!1,g=f+":";if(h.each(this.activatedFirstTimeEvents,function(y,d){d.startsWith(g)&&(p=!0)}),p){var v=this.flags&&this.flags.get(f);v&&a.set(f,v)}else a.set(f,{key:l.variant_key,value:l.variant_value,experiment_id:l.experiment_id,is_experiment_active:l.is_experiment_active,is_qa_tester:l.is_qa_tester,variant_source:"network"})},this);var c=s.pending_first_time_events;c&&c.length>0&&h.each(c,function(l){var f=l.flag_key,p=vC(f,l.first_time_event_hash);this.activatedFirstTimeEvents[p]||(u[p]={flag_key:f,flag_id:l.flag_id,project_id:l.project_id,first_time_event_hash:l.first_time_event_hash,event_name:l.event_name,property_filters:l.property_filters,pending_variant:l.pending_variant})},this),this.activatedFirstTimeEvents&&h.each(this.activatedFirstTimeEvents,function(l,f){var p=gC(f);l&&!a.has(p)&&this.flags&&this.flags.has(p)&&a.set(p,this.flags.get(p))},this),this.flags=a,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=u,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=i,this._loadTargetingIfNeeded(),this.persistence.save(t,this.flags,this.pendingFirstTimeEvents)}.bind(this)).catch(function(s){throw this._fetchInProgressStartTime&&this.markFetchComplete(),ee.error(s),s}.bind(this)),this.fetchPromise},R.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(ee.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},R.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){ee.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},R.prototype._loadTargetingIfNeeded=function(){var t=!1;h.each(this.pendingFirstTimeEvents,function(n){n.property_filters&&!h.isEmptyObject(n.property_filters)&&(t=!0)}),t&&this.getTargeting().then(function(){ee.log("targeting loaded for property filter evaluation")})},R.prototype.getTargeting=function(){return Tp(this.loadExtraBundle.bind(this),this.targetingSrc).catch(function(t){ee.error("Failed to load targeting: "+t)}.bind(this))},R.prototype.checkFirstTimeEvents=function(t,n){!this.pendingFirstTimeEvents||h.isEmptyObject(this.pendingFirstTimeEvents)||(E[Ve]&&h.isFunction(E[Ve].then)?E[Ve].then(function(i){this._processFirstTimeEventCheck(t,n,i)}.bind(this)).catch(function(){this._processFirstTimeEventCheck(t,n,null)}.bind(this)):this._processFirstTimeEventCheck(t,n,null))},R.prototype._processFirstTimeEventCheck=function(t,n,i){h.each(this.pendingFirstTimeEvents,function(e,r){if(!this.activatedFirstTimeEvents[r]){var s=e.flag_key,o;if(!i&&e.property_filters&&!h.isEmptyObject(e.property_filters)){ee.warn('Skipping event check for "'+s+'" - property filters require targeting library');return}if(!i)o={matches:t===e.event_name,error:null};else{var a={event_name:e.event_name,property_filters:e.property_filters};o=i.eventMatchesCriteria(t,n,a)}if(o.error){ee.error('Error checking first-time event for flag "'+s+'": '+o.error);return}if(o.matches){ee.log('First-time event matched for flag "'+s+'": '+t);var u={key:e.pending_variant.variant_key,value:e.pending_variant.variant_value,experiment_id:e.pending_variant.experiment_id,is_experiment_active:e.pending_variant.is_experiment_active};this.flags.set(s,u),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[r]=!0,this.recordFirstTimeEvent(e.flag_id,e.project_id,e.first_time_event_hash)}}},this)},R.prototype.getFirstTimeEventApiRoute=function(t){return this.getFullApiRoute()+"/"+t+"/first-time-events"},R.prototype.recordFirstTimeEvent=function(t,n,i){var e=this.getMpProperty("distinct_id"),r=Dh(),s=new URLSearchParams;s.set("mp_lib","web"),s.set("$lib_version",Pe.LIB_VERSION);var o=this.getFirstTimeEventApiRoute(t)+"?"+s.toString(),a={distinct_id:e,project_id:n,first_time_event_hash:i};ee.log("Recording first-time event for flag: "+t),this.fetch.call(E,o,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r},body:JSON.stringify(a)}).catch(function(u){ee.error("Failed to record first-time event for flag "+t+": "+u)})},R.prototype.getVariant=function(t,n){if(!this.persistenceLoadedPromise)return new Promise(function(e){ee.critical("Feature Flags not initialized"),e(Ht(n))});var i=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(h.bind(function(){if(i===At.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(t,n):this.fetchPromise?this.fetchPromise.then(h.bind(function(){return this.getVariantSync(t,n)},this)).catch(function(r){return ee.error(r),Ht(n)}):Ht(n);var e=h.bind(function(){return this.getVariantSync(t,n)},this);return this.fetchPromise?this.fetchPromise.then(e).catch(e):Ht(n)},this))},R.prototype._loadedPersistenceIsStale=function(){return!this._loadedPersistedAtMs||!this._loadedTtlMs?!1:Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},R.prototype.getVariantSync=function(t,n){if(this._loadedPersistenceIsStale())return ee.log('Loaded persisted variants are past TTL so returning fallback for "'+t+'"'),Ht(n);if(!this.areFlagsReady())return ee.log("Flags not loaded yet"),Ht(n);var i=this.flags.get(t);return i?(this.trackFeatureCheck(t,i),i):(ee.log('No flag found: "'+t+'"'),Ht(n))},R.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return ee.critical("Feature Flags not initialized"),Promise.resolve(new Map);var t=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(h.bind(function(){if(t===At.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(h.bind(function(){return this.getAllVariantsSync()},this)).catch(function(i){return ee.error(i),new Map}):new Map;var n=h.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):new Map},this))},R.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(ee.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},R.prototype.getVariantValue=function(t,n){return this.getVariant(t,{value:n}).then(function(i){return i.value}).catch(function(i){return ee.error(i),n})},R.prototype.getFeatureData=function(t,n){return ee.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(t,n)},R.prototype.getVariantValueSync=function(t,n){return this.getVariantSync(t,{value:n}).value},R.prototype.isEnabled=function(t,n){return this.getVariantValue(t).then(function(){return this.isEnabledSync(t,n)}.bind(this)).catch(function(i){return ee.error(i),n})},R.prototype.isEnabledSync=function(t,n){n=n||!1;var i=this.getVariantValueSync(t,n);return i!==!0&&i!==!1&&(ee.error('Feature flag "'+t+'" value: '+i+" is not a boolean; returning fallback value: "+n),i=n),i};function Mt(t){return t!=null}R.prototype.trackFeatureCheck=function(t,n){if(!this.trackedFeatures.has(t)){this.trackedFeatures.add(t);var i={"Experiment name":t,"Variant name":n.key,$experiment_type:"feature_flag","Variant fetch start time":Mt(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":Mt(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};Mt(n.experiment_id)&&(i.$experiment_id=n.experiment_id),Mt(n.is_experiment_active)&&(i.$is_experiment_active=n.is_experiment_active),Mt(n.is_qa_tester)&&(i.$is_qa_tester=n.is_qa_tester),Mt(n.variant_source)&&(i.$variant_source=n.variant_source),Mt(n.persisted_at_in_ms)&&(i.$persisted_at_in_ms=n.persisted_at_in_ms),Mt(n.ttl_in_ms)&&(i.$ttl_in_ms=n.ttl_in_ms),this.track("$experiment_started",i)}},R.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},R.prototype.minApisSupported=function(){return!!this.fetch&&typeof Promise!="undefined"&&typeof Map!="undefined"&&typeof Set!="undefined"},$a(R),R.prototype.are_flags_ready=R.prototype.areFlagsReady,R.prototype.get_variant=R.prototype.getVariant,R.prototype.get_variant_sync=R.prototype.getVariantSync,R.prototype.get_all_variants=R.prototype.getAllVariants,R.prototype.get_all_variants_sync=R.prototype.getAllVariantsSync,R.prototype.get_variant_value=R.prototype.getVariantValue,R.prototype.get_variant_value_sync=R.prototype.getVariantValueSync,R.prototype.is_enabled=R.prototype.isEnabled,R.prototype.is_enabled_sync=R.prototype.isEnabledSync,R.prototype.load_flags=R.prototype.loadFlags,R.prototype.update_context=R.prototype.updateContext,R.prototype.when_ready=R.prototype.whenReady,R.prototype.get_feature_data=R.prototype.getFeatureData,R.prototype.getTargeting=R.prototype.getTargeting;var mC=Xe("recorder"),Np="mp_iframe_handshake_request",Lp="mp_iframe_handshake_response",Oe=function(t){this.mixpanelInstance=t.mixpanelInstance,this.getMpConfig=t.getConfigFunc,this.getTabId=t.getTabIdFunc,this.reportError=t.reportErrorFunc,this.getDistinctId=t.getDistinctIdFunc,this.loadExtraBundle=t.loadExtraBundle,this.recorderSrc=t.recorderSrc,this.targetingSrc=t.targetingSrc,this.libBasePath=t.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};Oe.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return N.log("Load recorder check skipped due to disable_persistence config"),F.resolve(!1);var t=new Ue(Fa,Ua,Ba),n=this.getTabId();return t.init().then(function(){return t.getAll()}).then(function(i){for(var e=0;e<i.length;e++)if(Ga(i[e])||i[e].tabId===n)return!0;return!1}).catch(h.bind(function(i){return this.reportError("Error checking recording registry",i),!1},this))},Oe.prototype.checkAndStartSessionRecording=function(t,n){if(!E.MutationObserver)return N.critical("Browser does not support MutationObserver; skipping session recording"),F.resolve();var i=h.bind(function(a){return new F(h.bind(function(u){var c=Wt(h.bind(function(){this._recorder=this._recorder||new E[Is](this.mixpanelInstance),this._recorder.resumeRecording(a),u()},this));if(h.isUndefined(E[Is])){var l=this.recorderSrc||this.libBasePath+Zp;this.loadExtraBundle(l,c)}else c()},this))},this),e=Hh(this.getMpConfig("record_allowed_iframe_origins"),mC),r=e.length>0;if(r&&(this._setupParentFrameListener(e),E.parent!==E))return this._setupChildFrameListener(e,i),this._sendParentFrameRequestWithRetry(e),F.resolve();var s=h.isUndefined(n)?this.getMpConfig("record_sessions_percent"):n,o=s>0&&Math.random()*100<=s;return t||o?i(!0):this.shouldLoadRecorder().then(h.bind(function(a){return a?i(!1):F.resolve()},this))},Oe.prototype.isRecording=function(){if(!this._recorder||!h.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(t){return this.reportError("Error checking if recording is active",t),!1}},Oe.prototype.startRecordingOnEvent=function(t,n){var i=this.isRecording(),e=this.getMpConfig("recording_event_triggers");if(!i&&e){var r=e[t];if(r&&typeof r.percentage=="number"){var s=r.percentage,o=r.property_filters;if(o&&!h.isEmptyObject(o)){var a=this.targetingSrc||this.libBasePath+Cu;Tp(this.loadExtraBundle,a).then(function(u){try{var c=u.eventMatchesCriteria(t,n,{event_name:t,property_filters:o});c.matches&&this.checkAndStartSessionRecording(!1,s)}catch(l){N.critical("Could not parse recording event trigger properties logic:",l)}}.bind(this)).catch(function(u){N.critical("Failed to load targeting library:",u)})}else this.checkAndStartSessionRecording(!1,s)}}},Oe.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():F.resolve()},Oe.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():F.resolve()},Oe.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():F.resolve()},Oe.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},Oe.prototype.getSessionRecordingProperties=function(){var t={},n=this.getSessionReplayId();return n&&(t.$mp_replay_id=n),t},Oe.prototype.getSessionReplayUrl=function(){var t=null,n=this.getSessionReplayId();if(n){var i=h.HTTPBuildQuery({replay_id:n,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")});t="https://mixpanel.com/projects/replay-redirect?"+i}return t},Oe.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var t=null;return this._recorder&&(t=this._recorder.replayId),t||null},Oe.prototype.getRecorder=function(){return this._recorder},Oe.prototype._setupChildFrameListener=function(t,n){if(!this._childFrameMessageHandler){var i=this;this._childFrameMessageHandler=function(e){if(t.indexOf(e.origin)!==-1){var r=e.data;r&&r.type===Lp&&r.token===i.getMpConfig("token")&&r.replayId&&(i._parentReplayId=r.replayId,r.distinctId&&i.mixpanelInstance.identify(r.distinctId),i._parentFrameRetryActive=!1,E.removeEventListener("message",i._childFrameMessageHandler),i._childFrameMessageHandler=null,n(!0))}},E.addEventListener("message",this._childFrameMessageHandler)}},Oe.prototype._sendParentFrameRequest=function(t){var n={};n.type=Np,n.token=this.getMpConfig("token");for(var i=0;i<t.length;i++)try{E.parent.postMessage(n,t[i])}catch(e){}},Oe.prototype._sendParentFrameRequestWithRetry=function(t){var n=this,i=10,e=0,r=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(t);function s(){setTimeout(function(){!n._parentFrameRetryActive||n._parentReplayId||++e>=i||(n._sendParentFrameRequest(t),r*=2,s())},r)}s()},Oe.prototype._setupParentFrameListener=function(t){if(!this._parentFrameMessageHandler){var n=this;this._parentFrameMessageHandler=function(i){if(t.indexOf(i.origin)!==-1){var e=i.data;if(e&&e.type===Np&&e.token===n.getMpConfig("token")){var r=n.getSessionReplayId();if(r){var s={};s.type=Lp,s.token=n.getMpConfig("token"),s.replayId=r,s.distinctId=n.getDistinctId(),i.source.postMessage(s,i.origin)}}}},E.addEventListener("message",this._parentFrameMessageHandler)}},$a(Oe);var ft=function(){};ft.prototype.create_properties=function(){},ft.prototype.event_handler=function(){},ft.prototype.after_track_handler=function(){},ft.prototype.init=function(t){return this.mp=t,this},ft.prototype.track=function(t,n,i,e){var r=this,s=h.dom_query(t);if(s.length===0){N.error("The DOM query ("+t+") returned 0 elements");return}return h.each(s,function(o){h.register_event(o,this.override_event,function(a){var u={},c=r.create_properties(i,this),l=r.mp.get_config("track_links_timeout");r.event_handler(a,this,u),window.setTimeout(r.track_callback(e,c,u,!0),l),r.mp.track(n,c,r.track_callback(e,c,u))})},this),!0},ft.prototype.track_callback=function(t,n,i,e){e=e||!1;var r=this;return function(){i.callback_fired||(i.callback_fired=!0,!(t&&t(e,n)===!1)&&r.after_track_handler(n,i,e))}},ft.prototype.create_properties=function(t,n){var i;return typeof t=="function"?i=t(n):i=h.extend({},t),i};var Rr=function(){this.override_event="click"};h.inherit(Rr,ft),Rr.prototype.create_properties=function(t,n){var i=Rr.superclass.create_properties.apply(this,arguments);return n.href&&(i.url=n.href),i},Rr.prototype.event_handler=function(t,n,i){i.new_tab=t.which===2||t.metaKey||t.ctrlKey||n.target==="_blank",i.href=n.href,i.new_tab||t.preventDefault()},Rr.prototype.after_track_handler=function(t,n){n.new_tab||setTimeout(function(){window.location=n.href},0)};var vs=function(){this.override_event="submit"};h.inherit(vs,ft),vs.prototype.event_handler=function(t,n,i){i.element=n,t.preventDefault()},vs.prototype.after_track_handler=function(t,n){setTimeout(function(){n.element.submit()},0)};var Tt="$set",Ar="$set_once",Ge="$unset",Yt="$add",rt="$append",Kt="$union",ht="$remove",yC="$delete",Dp={set_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[Tt]=e,i},unset_action:function(t){var n={},i=[];return h.isArray(t)||(t=[t]),h.each(t,function(e){this._is_reserved_property(e)||i.push(e)},this),n[Ge]=i,n},set_once_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[Ar]=e,i},union_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=h.isArray(r)?r:[r])},this):e[t]=h.isArray(n)?n:[n],i[Kt]=e,i},append_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[rt]=e,i},remove_action:function(t,n){var i={},e={};return h.isObject(t)?h.each(t,function(r,s){this._is_reserved_property(s)||(e[s]=r)},this):e[t]=n,i[ht]=e,i},delete_action:function(){var t={};return t[yC]="",t}},ue=function(){};h.extend(ue.prototype,Dp),ue.prototype._init=function(t,n,i){this._mixpanel=t,this._group_key=n,this._group_id=i},ue.prototype.set=Ir(function(t,n,i){var e=this.set_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),ue.prototype.set_once=Ir(function(t,n,i){var e=this.set_once_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),ue.prototype.unset=Ir(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),ue.prototype.union=Ir(function(t,n,i){h.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),ue.prototype.delete=Ir(function(t){var n=this.delete_action();return this._send_request(n,t)}),ue.prototype.remove=Ir(function(t,n,i){var e=this.remove_action(t,n);return this._send_request(e,i)}),ue.prototype._send_request=function(t,n){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var i=h.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:i,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},n)},ue.prototype._is_reserved_property=function(t){return t==="$group_key"||t==="$group_id"},ue.prototype._get_config=function(t){return this._mixpanel.get_config(t)},ue.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ue.prototype.remove=ue.prototype.remove,ue.prototype.set=ue.prototype.set,ue.prototype.set_once=ue.prototype.set_once,ue.prototype.union=ue.prototype.union,ue.prototype.unset=ue.prototype.unset,ue.prototype.toString=ue.prototype.toString;var B=function(){};h.extend(B.prototype,Dp),B.prototype._init=function(t){this._mixpanel=t},B.prototype.set=kt(function(t,n,i){var e=this.set_action(t,n);return h.isObject(t)&&(i=n),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),e[Tt]=h.extend({},h.info.people_properties(),e[Tt]),this._send_request(e,i)}),B.prototype.set_once=kt(function(t,n,i){var e=this.set_once_action(t,n);return h.isObject(t)&&(i=n),this._send_request(e,i)}),B.prototype.unset=kt(function(t,n){var i=this.unset_action(t);return this._send_request(i,n)}),B.prototype.increment=kt(function(t,n,i){var e={},r={};return h.isObject(t)?(h.each(t,function(s,o){if(!this._is_reserved_property(o))if(isNaN(parseFloat(s))){N.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else r[o]=s},this),i=n):(h.isUndefined(n)&&(n=1),r[t]=n),e[Yt]=r,this._send_request(e,i)}),B.prototype.append=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.append_action(t,n);return this._send_request(e,i)}),B.prototype.remove=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.remove_action(t,n);return this._send_request(e,i)}),B.prototype.union=kt(function(t,n,i){h.isObject(t)&&(i=n);var e=this.union_action(t,n);return this._send_request(e,i)}),B.prototype.track_charge=kt(function(){N.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),B.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},B.prototype.delete_user=function(){if(!this._identify_called()){N.error("mixpanel.people.delete_user() requires you to call identify() first");return}var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)},B.prototype.toString=function(){return this._mixpanel.toString()+".people"},B.prototype._send_request=function(t,n){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var i=this._mixpanel.get_property("$device_id"),e=this._mixpanel.get_property("$user_id"),r=this._mixpanel.get_property("$had_persisted_distinct_id");i&&(t.$device_id=i),e&&(t.$user_id=e),r&&(t.$had_persisted_distinct_id=r);var s=h.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:s,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},n):(this._enqueue(t),h.isUndefined(n)||(this._get_config("verbose")?n({status:-1,error:null}):n(-1)),h.truncate(s,255))},B.prototype._get_config=function(t){return this._mixpanel.get_config(t)},B.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0},B.prototype._enqueue=function(t){Tt in t?this._mixpanel.persistence._add_to_people_queue(Tt,t):Ar in t?this._mixpanel.persistence._add_to_people_queue(Ar,t):Ge in t?this._mixpanel.persistence._add_to_people_queue(Ge,t):Yt in t?this._mixpanel.persistence._add_to_people_queue(Yt,t):rt in t?this._mixpanel.persistence._add_to_people_queue(rt,t):ht in t?this._mixpanel.persistence._add_to_people_queue(ht,t):Kt in t?this._mixpanel.persistence._add_to_people_queue(Kt,t):N.error("Invalid call to _enqueue():",t)},B.prototype._flush_one_queue=function(t,n,i,e){var r=this,s=h.extend({},this._mixpanel.persistence.load_queue(t)),o=s;!h.isUndefined(s)&&h.isObject(s)&&!h.isEmptyObject(s)&&(r._mixpanel.persistence._pop_from_people_queue(t,s),r._mixpanel.persistence.save(),e&&(o=e(s)),n.call(r,o,function(a,u){a===0&&r._mixpanel.persistence._add_to_people_queue(t,s),h.isUndefined(i)||i(a,u)}))},B.prototype._flush=function(t,n,i,e,r,s,o){var a=this;this._flush_one_queue(Tt,this.set,t),this._flush_one_queue(Ar,this.set_once,e),this._flush_one_queue(Ge,this.unset,s,function(d){return h.keys(d)}),this._flush_one_queue(Yt,this.increment,n),this._flush_one_queue(Kt,this.union,r);var u=this._mixpanel.persistence.load_queue(rt);if(!h.isUndefined(u)&&h.isArray(u)&&u.length)for(var c,l=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(rt,c),h.isUndefined(i)||i(d,m)},f=u.length-1;f>=0;f--)u=this._mixpanel.persistence.load_queue(rt),c=u.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(ht);if(!h.isUndefined(p)&&h.isArray(p)&&p.length)for(var g,v=function(d,m){d===0&&a._mixpanel.persistence._add_to_people_queue(ht,g),h.isUndefined(o)||o(d,m)},y=p.length-1;y>=0;y--)p=this._mixpanel.persistence.load_queue(ht),g=p.pop(),a._mixpanel.persistence.save(),h.isEmptyObject(g)||a.remove(g,v)},B.prototype._is_reserved_property=function(t){return t==="$distinct_id"||t==="$token"||t==="$device_id"||t==="$user_id"||t==="$had_persisted_distinct_id"},B.prototype.set=B.prototype.set,B.prototype.set_once=B.prototype.set_once,B.prototype.unset=B.prototype.unset,B.prototype.increment=B.prototype.increment,B.prototype.append=B.prototype.append,B.prototype.remove=B.prototype.remove,B.prototype.union=B.prototype.union,B.prototype.track_charge=B.prototype.track_charge,B.prototype.clear_charges=B.prototype.clear_charges,B.prototype.delete_user=B.prototype.delete_user,B.prototype.toString=B.prototype.toString;var uu="__mps",cu="__mpso",lu="__mpus",fu="__mpa",hu="__mpap",pu="__mpr",du="__mpu",Fp="$people_distinct_id",gs="__alias",bn="__timers",_C=[uu,cu,lu,fu,hu,pu,du,Fp,gs,bn],q=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var n=t.persistence;n!=="cookie"&&n!=="localStorage"&&(N.critical("Unknown persistence type "+n+"; falling back to cookie"),n=t.persistence="cookie"),n==="localStorage"&&h.localStorage.is_supported()?this.storage=h.localStorage:this.storage=h.cookie,this.load(),this.update_config(t),this.upgrade(),this.save()};q.prototype.properties=function(){var t={};return this.load(),h.each(this.props,function(n,i){h.include(_C,i)||(t[i]=n)}),t},q.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=h.extend({},t))}},q.prototype.upgrade=function(){var t,n;this.storage===h.localStorage?(t=h.cookie.parse(this.name),h.cookie.remove(this.name),h.cookie.remove(this.name,!0),t&&this.register_once(t)):this.storage===h.cookie&&(n=h.localStorage.parse(this.name),h.localStorage.remove(this.name),n&&this.register_once(n))},q.prototype.save=function(){this.disabled||this.storage.set(this.name,Er(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},q.prototype.load_prop=function(t){return this.load(),this.props[t]},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(t,n,i){return h.isObject(t)?(typeof n=="undefined"&&(n="None"),this.expire_days=typeof i=="undefined"?this.default_expiry:i,this.load(),h.each(t,function(e,r){(!this.props.hasOwnProperty(r)||this.props[r]===n)&&(this.props[r]=e)},this),this.save(),!0):!1},q.prototype.register=function(t,n){return h.isObject(t)?(this.expire_days=typeof n=="undefined"?this.default_expiry:n,this.load(),h.extend(this.props,t),this.save(),!0):!1},q.prototype.unregister=function(t){this.load(),t in this.props&&(delete this.props[t],this.save())},q.prototype.update_search_keyword=function(t){this.register(h.info.searchInfo(t))},q.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:h.info.referringDomain(t)||"$direct"},"")},q.prototype.get_referrer_info=function(){return h.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},q.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},q.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},q.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},q.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},q.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},q.prototype.get_cross_subdomain=function(){return this.cross_subdomain},q.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},q.prototype._add_to_people_queue=function(t,n){var i=this._get_queue_key(t),e=n[t],r=this._get_or_create_queue(Tt),s=this._get_or_create_queue(Ar),o=this._get_or_create_queue(Ge),a=this._get_or_create_queue(Yt),u=this._get_or_create_queue(Kt),c=this._get_or_create_queue(ht,[]),l=this._get_or_create_queue(rt,[]);i===uu?(h.extend(r,e),this._pop_from_people_queue(Yt,e),this._pop_from_people_queue(Kt,e),this._pop_from_people_queue(Ge,e)):i===cu?(h.each(e,function(f,p){p in s||(s[p]=f)}),this._pop_from_people_queue(Ge,e)):i===lu?h.each(e,function(f){h.each([r,s,a,u],function(p){f in p&&delete p[f]}),h.each(l,function(p){f in p&&delete p[f]}),o[f]=!0}):i===fu?(h.each(e,function(f,p){p in r?r[p]+=f:(p in a||(a[p]=0),a[p]+=f)},this),this._pop_from_people_queue(Ge,e)):i===du?(h.each(e,function(f,p){h.isArray(f)&&(p in u||(u[p]=[]),h.each(f,function(g){h.include(u[p],g)||u[p].push(g)}))}),this._pop_from_people_queue(Ge,e)):i===pu?(c.push(e),this._pop_from_people_queue(rt,e)):i===hu&&(l.push(e),this._pop_from_people_queue(Ge,e)),N.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),N.log(n),this.save()},q.prototype._pop_from_people_queue=function(t,n){var i=this.props[this._get_queue_key(t)];h.isUndefined(i)||h.each(n,function(e,r){t===rt||t===ht?h.each(i,function(s){s[r]===e&&delete s[r]}):delete i[r]},this)},q.prototype.load_queue=function(t){return this.load_prop(this._get_queue_key(t))},q.prototype._get_queue_key=function(t){if(t===Tt)return uu;if(t===Ar)return cu;if(t===Ge)return lu;if(t===Yt)return fu;if(t===rt)return hu;if(t===ht)return pu;if(t===Kt)return du;N.error("Invalid queue:",t)},q.prototype._get_or_create_queue=function(t,n){var i=this._get_queue_key(t);return n=h.isUndefined(n)?{}:n,this.props[i]||(this.props[i]=n)},q.prototype.set_event_timer=function(t,n){var i=this.load_prop(bn)||{};i[t]=n,this.props[bn]=i,this.save()},q.prototype.remove_event_timer=function(t){var n=this.load_prop(bn)||{},i=n[t];return h.isUndefined(i)||(delete this.props[bn][t],this.save()),i};var ms,vu=function(t,n){throw new Error(t+" not available in this build.")},Se,Up=0,Bp=1,Le="mixpanel",zp="base64",wC="json",gu="$device:",bC="strict",SC="fallback",CC="disabled",Mr=E.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,qp=!Mr&&Je.indexOf("MSIE")===-1&&Je.indexOf("Mozilla")===-1,ys=null;ut.sendBeacon&&(ys=function(){return ut.sendBeacon.apply(ut,arguments)});var Wp={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},mu={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:Wp,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:zp,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ot,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ot,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:1800*1e3,record_mask_inputs:!0,record_max_ms:pn,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:CC},Gp=!1,w=function(){},_s=function(t,n,i){var e,r=i===Le?Se:Se[i];if(r&&ms===Up)e=r;else{if(r&&!h.isArray(r)){N.error("You have already initialized "+i);return}e=new w}if(e._cached_groups={},e._init(t,n,i),e.people=new B,e.people._init(e),!e.get_config("skip_first_touch_marketing")){var s=h.info.campaignParams(null),o={},a=!1;h.each(s,function(c,l){o["initial_"+l]=c,c&&(a=!0)}),a&&e.people.set_once(o)}Pe.DEBUG=Pe.DEBUG||e.get_config("debug");var u=ms===Up?"module":"snippet";return E.dispatchEvent(new E.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:e,source:u,token:t,name:i,info:h.info}})),!h.isUndefined(r)&&h.isArray(r)&&(e._execute_array.call(e.people,r.people),e._execute_array(r)),e};w.prototype.init=function(t,n,i){if(h.isUndefined(i)){this.report_error("You must name your new library: init(token, config, name)");return}if(i===Le){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var e=_s(t,n,i);return Se[i]=e,e._loaded(),e},w.prototype._init=function(t,n,i){n=n||{},this.__loaded=!0,this.config={};var e={};if(!("api_payload_format"in n)){var r=n.api_host||mu.api_host;r.match(/\.mixpanel\.com/)&&(e.api_payload_format=wC)}if(this.hooks={},this.set_config(h.extend({},mu,e,n,{name:i,token:t,callback_fn:(i===Le?i:Le+"."+i)+"._jsc"})),this.recorderManager=new Oe({mixpanelInstance:this,getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getTabIdFunc:h.bind(this.get_tab_id,this),reportErrorFunc:h.bind(this.report_error,this),getDistinctIdFunc:h.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:vu}),this._jsc=Ot,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(!h.localStorage.is_supported(!0)||!Mr)this._batch_requests=!1,N.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),h.each(this.get_batcher_configs(),function(u){N.log("Clearing batch queue "+u.queue_key),h.localStorage.remove(u.queue_key)});else if(this.init_batchers(),ys&&E.addEventListener){var s=h.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);E.addEventListener("pagehide",function(u){u.persisted&&s()}),E.addEventListener("visibilitychange",function(){U.visibilityState==="hidden"&&s()})}}this.persistence=this.cookie=new q(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=h.UUID();this.get_distinct_id()||this.register_once({distinct_id:gu+o,$device_id:o},""),this.flags=new R({getFullApiRoute:h.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:h.bind(this.get_config,this),setConfigFunc:h.bind(this.set_config,this),getPropertyFunc:h.bind(this.get_property,this),trackingFunc:h.bind(this.track,this),loadExtraBundle:vu,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+Cu}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var a=this.get_config("remote_settings_mode");a===bC||a===SC?this.__session_recording_init_promise=this._fetch_remote_settings(a).then(h.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new be(this),this.autocapture.init()},w.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))N.log("Tab ID initialization skipped due to disable_persistence config");else if(h.sessionStorage.is_supported())try{var t=this.get_config("name")+"_"+this.get_config("token"),n="mp_tab_id_"+t,i="mp_gen_new_tab_id_"+t;(h.sessionStorage.get(i)||!h.sessionStorage.get(n))&&h.sessionStorage.set(n,"$tab-"+h.UUID()),h.sessionStorage.set(i,"1"),this.tab_id=h.sessionStorage.get(n),E.addEventListener("beforeunload",function(){h.sessionStorage.remove(i)})}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.")},w.prototype.get_tab_id=function(){return this.tab_id||null},w.prototype._check_and_start_session_recording=xt(function(t){return this.recorderManager.checkAndStartSessionRecording(t)}),w.prototype._start_recording_on_event=Wt(function(t,n){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(h.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(t,n)},this))}),w.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},w.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},w.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},w.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},w.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},w.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},w.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},w.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},w.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},w.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 t=h.info.campaignParams(null);h.each(t,function(n,i){this.unregister(i)}.bind(this))}},w.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(U.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(h.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(U.referrer)},w.prototype._dom_loaded=function(){h.each(this.__dom_loaded_queue,function(t){this._track_dom.apply(this,t)},this),this.has_opted_out_tracking()||h.each(this.__request_queue,function(t){this._send_request.apply(this,t)},this),delete this.__dom_loaded_queue,delete this.__request_queue},w.prototype._track_dom=function(t,n){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Gp)return this.__dom_loaded_queue.push([t,n]),!1;var i=new t().init(this);return i.track.apply(i,n)},w.prototype._prepare_callback=function(t,n){if(h.isUndefined(t))return null;if(Mr){var i=function(o){t(o,n)};return i}else{var e=this._jsc,r=""+Math.floor(Math.random()*1e8),s=this.get_config("callback_fn")+"["+r+"]";return e[r]=function(o){delete e[r],t(o,n)},s}},w.prototype._send_request=function(t,n,i,e){var r=!0;if(qp)return this.__request_queue.push(arguments),r;var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},o=null;!e&&(h.isFunction(i)||typeof i=="string")&&(e=i,i=null),i=h.extend(s,i||{}),Mr||(i.method="GET");var a=i.method==="POST",u=ys&&a&&i.transport.toLowerCase()==="sendbeacon",c=i.verbose;n.verbose&&(c=!0),this.get_config("test")&&(n.test=1),c&&(n.verbose=1),this.get_config("img")&&(n.img=1),Mr||(e?n.callback=e:(c||this.get_config("test"))&&(n.callback="(function(){})")),n.ip=this.get_config("ip")?1:0,n._=new Date().getTime().toString(),a&&(o="data="+encodeURIComponent(n.data),delete n.data),h.extend(n,this.get_config("api_extra_query_params")),t+="?"+h.HTTPBuildQuery(n);var l=this;if("img"in n){var f=U.createElement("img");f.src=t,U.body.appendChild(f)}else if(u){try{r=ys(t,o)}catch(m){l.report_error(m),r=!1}try{e&&e(r?1:0)}catch(m){l.report_error(m)}}else if(Mr)try{var p=new XMLHttpRequest;p.open(i.method,t,!0);var g=this.get_config("xhr_headers");if(a&&(g["Content-Type"]="application/x-www-form-urlencoded"),h.each(g,function(m,_){p.setRequestHeader(_,m)}),i.timeout_ms&&typeof p.timeout!="undefined"){p.timeout=i.timeout_ms;var v=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(p.readyState===4)if(p.status===200){if(e)if(c){var m;try{m=h.JSONDecode(p.responseText)}catch(C){if(l.report_error(C),i.ignore_json_errors)m=p.responseText;else return}e(m)}else e(Number(p.responseText))}else{var _;if(p.timeout&&!p.status&&new Date().getTime()-v>=p.timeout?_="timeout":_="Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(_),e)if(c){var b=p.responseHeaders||{};e({status:0,httpStatusCode:p.status,error:_,retryAfter:b["Retry-After"]})}else e(0)}},p.send(o)}catch(m){l.report_error(m),r=!1}else{var y=U.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=t;var d=U.getElementsByTagName("script")[0];d.parentNode.insertBefore(y,d)}return r},w.prototype._fetch_remote_settings=function(t){var n=this,i=function(){t==="strict"&&(n.set_config({record_sessions_percent:0}),n._remote_settings_strict_disabled=!0)};if(!E.AbortController)return N.critical("Remote settings unavailable: missing minimum required APIs"),i(),Promise.resolve();var e=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,r={$lib_version:Pe.LIB_VERSION,mp_lib:"web",sdk_config:"1"},s=h.HTTPBuildQuery(r),o=e+"?"+s,a=new AbortController,u=setTimeout(function(){a.abort()},500),c={method:"GET",headers:{Authorization:"Basic "+btoa(n.get_config("token")+":")},signal:a.signal};return E.fetch(o,c).then(function(l){if(clearTimeout(u),!l.ok){N.critical("Network response was not ok"),i();return}return l.json()}).then(function(l){if(l&&l.sdk_config&&l.sdk_config.config){var f=l.sdk_config.config,p={};h.each(f,function(g,v){mu.hasOwnProperty(v)&&(p[v]=g)}),h.isEmptyObject(p)?(N.critical("No valid config keys found in remote settings."),i()):n.set_config(p)}else i()}).catch(function(l){clearTimeout(u),N.critical("Failed to fetch remote settings",l),i()})},w.prototype._execute_array=function(t){var n,i=[],e=[],r=[];h.each(t,function(o){o&&(n=o[0],h.isArray(n)?r.push(o):typeof o=="function"?o.call(this):h.isArray(o)&&n==="alias"?i.push(o):h.isArray(o)&&n.indexOf("track")!==-1&&typeof this[n]=="function"?r.push(o):e.push(o))},this);var s=function(o,a){h.each(o,function(u){if(h.isArray(u[0])){var c=a;h.each(u,function(l){c=c[l[0]].apply(c,l.slice(1))})}else this[u[0]].apply(this,u.slice(1))},a)};s(i,this),s(e,this),s(r,this)},w.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},w.prototype.get_batcher_configs=function(){var t="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:t+"_ev"},people:{type:"people",api_name:"engage",queue_key:t+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:t+"_gr"}},this._batcher_configs},w.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var t=h.bind(function(i){return new Be(i.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:h.bind(function(e,r,s){var o=this.get_config("api_routes");this._send_request(this.get_api_host(i.api_name)+"/"+o[i.api_name],this._encode_data_for_request(e),r,this._prepare_callback(s,e))},this),beforeSendHook:h.bind(function(e){var r=this._run_hook("before_send_"+i.type,e);return r?r[0]:null},this),stopAllBatchingFunc:h.bind(this.stop_batch_senders,this),usePersistence:!0})},this),n=this.get_batcher_configs();this.request_batchers={events:t(n.events),people:t(n.people),groups:t(n.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},w.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,h.each(this.request_batchers,function(t){t.start()}))},w.prototype.stop_batch_senders=function(){this._batch_requests=!1,h.each(this.request_batchers,function(t){t.stop(),t.clear()})},w.prototype.push=function(t){this._execute_array([t])},w.prototype.enable=function(t){var n,i,e,r;if(typeof t=="undefined")this._flags.disable_all_events=!1;else{for(n={},i=[],e=0;e<t.length;e++)n[t[e]]=!0;for(r=0;r<this.__disabled_events.length;r++)n[this.__disabled_events[r]]||i.push(this.__disabled_events[r]);this.__disabled_events=i}},w.prototype.disable=function(t){typeof t=="undefined"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},w.prototype._encode_data_for_request=function(t){var n=Er(t);return this.get_config("api_payload_format")===zp&&(n=h.base64Encode(n)),{data:n}},w.prototype._track_or_batch=function(t,n){var i=h.truncate(t.data,255),e=t.endpoint,r=t.batcher,s=t.should_send_immediately,o=t.send_request_options||{};n=n||Ot;var a=!0,u=h.bind(function(){return o.skip_hooks||(i=this._run_hook("before_send_"+t.type,i),i&&(i=i[0])),i?(N.log("MIXPANEL REQUEST:"),N.log(i),this._send_request(e,this._encode_data_for_request(i),o,this._prepare_callback(n,i))):null},this);return this._batch_requests&&!s?r.enqueue(i).then(function(c){c?n(1,i):u()}):a=u(),a&&i},w.prototype.track=xt(function(t,n,i,e){var r;if(!(i&&i.skip_hooks)){if(r=this._run_hook("before_track",t,n),r===null)return;t=r[0],n=r[1]}!e&&typeof i=="function"&&(e=i,i=null),i=i||{};var s=i.transport;s&&(i.transport=s);var o=i.send_immediately;if(typeof e!="function"&&(e=Ot),h.isUndefined(t)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(t)){e(0);return}n=h.extend({},n),n.token=this.get_config("token");var a=this.persistence.remove_event_timer(t);if(!h.isUndefined(a)){var u=new Date().getTime()-a;n.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?h.info.marketingParams():{};n=h.extend({},h.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),n);var l=this.get_config("property_blacklist");h.isArray(l)?h.each(l,function(p){delete n[p]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(t,n);var f={event:t,properties:n};return r=this._track_or_batch({type:"events",data:f,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},e),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(t,n),r}),w.prototype.set_group=xt(function(t,n,i){h.isArray(n)||(n=[n]);var e={};return e[t]=n,this.register(e),this.people.set(t,n,i)}),w.prototype.add_group=xt(function(t,n,i){var e=this.get_property(t),r={};return e===void 0?(r[t]=[n],this.register(r)):e.indexOf(n)===-1&&(e.push(n),r[t]=e,this.register(r)),this.people.union(t,n,i)}),w.prototype.remove_group=xt(function(t,n,i){var e=this.get_property(t);if(e!==void 0){var r=e.indexOf(n);r>-1&&(e.splice(r,1),this.register({group_key:e})),e.length===0&&this.unregister(t)}return this.people.remove(t,n,i)}),w.prototype.track_with_groups=xt(function(t,n,i,e){var r=h.extend({},n||{});return h.each(i,function(s,o){s!=null&&(r[o]=s)}),this.track(t,r,e)}),w.prototype._create_map_key=function(t,n){return t+"_"+JSON.stringify(n)},w.prototype._remove_group_from_cache=function(t,n){delete this._cached_groups[this._create_map_key(t,n)]},w.prototype.get_group=function(t,n){var i=this._create_map_key(t,n),e=this._cached_groups[i];return(e===void 0||e._group_key!==t||e._group_id!==n)&&(e=new ue,e._init(this,t,n),this._cached_groups[i]=e),e},w.prototype.track_pageview=xt(function(t,n){typeof t!="object"&&(t={}),n=n||{};var i=n.event_name||"$mp_web_page_view",e=h.extend(h.info.mpPageViewProperties(),h.info.campaignParams(),h.info.clickParams()),r=h.extend({},e,t);return this.is_recording_heatmap_data()&&(r.$captured_for_heatmap=!0),this.track(i,r)}),w.prototype.track_links=function(){return this._track_dom.call(this,Rr,arguments)},w.prototype.track_forms=function(){return this._track_dom.call(this,vs,arguments)},w.prototype.time_event=function(t){if(h.isUndefined(t)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(t)||this.persistence.set_event_timer(t,new Date().getTime())};var EC={persistent:!0},yu=function(t){var n;return h.isObject(t)?n=t:h.isUndefined(t)?n={}:n={days:t},h.extend({},EC,n)};w.prototype.register=function(t,n){var i=this._run_hook("before_register",t,n);if(i!==null){t=i[0],n=i[1];var e=yu(n);e.persistent?this.persistence.register(t,e.days):h.extend(this.unpersisted_superprops,t)}},w.prototype.register_once=function(t,n,i){var e=this._run_hook("before_register_once",t,n,i);if(e!==null){t=e[0],n=e[1],i=e[2];var r=yu(i);r.persistent?this.persistence.register_once(t,n,r.days):(typeof n=="undefined"&&(n="None"),h.each(t,function(s,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===n)&&(this.unpersisted_superprops[o]=s)},this))}},w.prototype.unregister=function(t,n){var i=this._run_hook("before_unregister",t,n);i!==null&&(t=i[0],n=i[1],n=yu(n),n.persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t])},w.prototype._register_single=function(t,n){var i={};i[t]=n,this.register(i)},w.prototype.identify=function(t,n,i,e,r,s,o,a){var u=this._run_hook("before_identify",t);if(u===null)return-1;t=u[0];var c=this.get_distinct_id();if(t&&c!==t){if(typeof t=="string"&&t.indexOf(gu)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var l=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:l},"")}t!==c&&t!==this.get_property(gs)&&(this.unregister(gs),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(n,i,e,r,s,o,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0}),t!==c&&this.flags.fetchFlags().catch(function(){N.error("[flags] Error fetching flags during identify")})},w.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var t=h.UUID();this.register_once({distinct_id:gu+t,$device_id:t},""),this._check_and_start_session_recording(),this.flags.reset()},w.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},w.prototype.alias=function(t,n){if(t===this.get_property(Fp))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var i=this;return h.isUndefined(n)&&(n=this.get_distinct_id()),t!==n?(this._register_single(gs,t),this.track("$create_alias",{alias:t,distinct_id:n},{skip_hooks:!0},function(){i.identify(t)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},w.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},w.prototype.set_config=function(t){if(h.isObject(t)){h.extend(this.config,t);var n=t.batch_size;n&&h.each(this.request_batchers,function(i){i.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),Pe.DEBUG=Pe.DEBUG||this.get_config("debug"),("autocapture"in t||"record_heatmap_data"in t)&&this.autocapture&&this.autocapture.init(),h.isObject(t.hooks)&&(this.hooks={},h.each(t.hooks,function(i,e){if(h.isFunction(i))this.hooks[e]=[i];else if(h.isArray(i)){this.hooks[e]=[];for(var r=0;r<i.length;r++)h.isFunction(i[r])||N.critical("Invalid hook added. Hook is not a function"),this.hooks[e].push(i[r])}else N.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this))}},w.prototype.get_config=function(t){return this.config[t]},w.prototype._run_hook=function(t){var n=It.call(arguments,1);return h.each(this.hooks[t],function(i){if(n===null)return null;var e=i.apply(this,n);typeof e=="undefined"?(this.report_error(t+" hook did not return a valid value"),n=null):(h.isArray(e)||(e=[e]),n.splice.apply(n,[0,e.length].concat(e)))},this),n},w.prototype.get_property=function(t){return this.persistence.load_prop([t])},w.prototype.get_api_host=function(t){return this.get_config("api_hosts")[t]||this.get_config("api_host")},w.prototype.toString=function(){var t=this.get_config("name");return t!==Le&&(t=Le+"."+t),t},w.prototype._event_is_disabled=function(t){return h.isBlockedUA(Je)||this._flags.disable_all_events||h.include(this.__disabled_events,t)},w.prototype._gdpr_init=function(){var t=this.get_config("opt_out_tracking_persistence_type")==="localStorage";t&&h.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")||h.cookie.get("mp_optout"))&&(h.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},w.prototype._gdpr_update_persistence=function(t){var n;if(t&&t.clear_persistence)n=!0;else if(t&&t.enable_persistence)n=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==n&&this.persistence.set_disabled(n),n?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},w.prototype._gdpr_call_func=function(t,n){return n=h.extend({track:h.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")},n),h.localStorage.is_supported()||(n.persistence_type="cookie"),t(this.get_config("token"),{track:n.track,trackEventName:n.track_event_name,trackProperties:n.track_properties,persistenceType:n.persistence_type,persistencePrefix:n.cookie_prefix,cookieDomain:n.cookie_domain,cookieExpiration:n.cookie_expiration,crossSiteCookie:n.cross_site_cookie,crossSubdomainCookie:n.cross_subdomain_cookie,secureCookie:n.secure_cookie,ignoreDnt:n.ignore_dnt})},w.prototype.opt_in_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(oS,t),this._gdpr_update_persistence(t)},w.prototype.opt_out_tracking=function(t){t=h.extend({clear_persistence:!0,delete_user:!0},t),t.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(aS,t),this._gdpr_update_persistence(t)},w.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(uS,t)},w.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(Bh,t)},w.prototype.clear_opt_in_out_tracking=function(t){t=h.extend({enable_persistence:!0},t),this._gdpr_call_func(cS,t),this._gdpr_update_persistence(t)},w.prototype.report_error=function(t,n){N.error.apply(N.error,arguments);try{!n&&!(t instanceof Error)&&(t=new Error(t)),this.get_config("error_reporter")(t,n)}catch(i){N.error(i)}},w.prototype.add_hook=function(t,n){this.hooks[t]||(this.hooks[t]=[]),this.hooks[t].push(n)},w.prototype.remove_hook=function(t,n){var i;this.hooks[t]&&(i=this.hooks[t].indexOf(n),i!==-1?this.hooks[t].splice(i,1):N.log("remove_hook failed. Matching hook was not found"))},w.prototype.init=w.prototype.init,w.prototype.reset=w.prototype.reset,w.prototype.enable=w.prototype.enable,w.prototype.disable=w.prototype.disable,w.prototype.time_event=w.prototype.time_event,w.prototype.track=w.prototype.track,w.prototype.track_links=w.prototype.track_links,w.prototype.track_forms=w.prototype.track_forms,w.prototype.track_pageview=w.prototype.track_pageview,w.prototype.register=w.prototype.register,w.prototype.register_once=w.prototype.register_once,w.prototype.unregister=w.prototype.unregister,w.prototype.identify=w.prototype.identify,w.prototype.alias=w.prototype.alias,w.prototype.name_tag=w.prototype.name_tag,w.prototype.set_config=w.prototype.set_config,w.prototype.get_config=w.prototype.get_config,w.prototype.get_api_host=w.prototype.get_api_host,w.prototype.get_property=w.prototype.get_property,w.prototype.get_distinct_id=w.prototype.get_distinct_id,w.prototype.toString=w.prototype.toString,w.prototype.opt_out_tracking=w.prototype.opt_out_tracking,w.prototype.opt_in_tracking=w.prototype.opt_in_tracking,w.prototype.has_opted_out_tracking=w.prototype.has_opted_out_tracking,w.prototype.has_opted_in_tracking=w.prototype.has_opted_in_tracking,w.prototype.clear_opt_in_out_tracking=w.prototype.clear_opt_in_out_tracking,w.prototype.get_group=w.prototype.get_group,w.prototype.set_group=w.prototype.set_group,w.prototype.add_group=w.prototype.add_group,w.prototype.remove_group=w.prototype.remove_group,w.prototype.add_hook=w.prototype.add_hook,w.prototype.remove_hook=w.prototype.remove_hook,w.prototype.track_with_groups=w.prototype.track_with_groups,w.prototype.start_batch_senders=w.prototype.start_batch_senders,w.prototype.stop_batch_senders=w.prototype.stop_batch_senders,w.prototype.start_session_recording=w.prototype.start_session_recording,w.prototype.stop_session_recording=w.prototype.stop_session_recording,w.prototype.pause_session_recording=w.prototype.pause_session_recording,w.prototype.resume_session_recording=w.prototype.resume_session_recording,w.prototype.get_session_recording_properties=w.prototype.get_session_recording_properties,w.prototype.get_session_replay_url=w.prototype.get_session_replay_url,w.prototype.get_tab_id=w.prototype.get_tab_id,w.prototype.DEFAULT_API_ROUTES=Wp,w.prototype.__get_recorder=w.prototype.__get_recorder,w.prototype.__get_recording_init_promise=w.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 Pt={},IC=function(){h.each(Pt,function(t,n){n!==Le&&(Se[n]=t)}),Se._=h},OC=function(){Se.init=function(t,n,i){if(i)return Se[i]||(Se[i]=Pt[i]=_s(t,n,i),Se[i]._loaded()),Se[i];var e=Se;Pt[Le]?e=Pt[Le]:t&&(e=_s(t,n,Le),e._loaded(),Pt[Le]=e),Se=e,ms===Bp&&(E[Le]=Se),IC()}},xC=function(){function t(){t.done||(t.done=!0,Gp=!0,qp=!1,h.each(Pt,function(e){e._dom_loaded()}))}function n(){try{U.documentElement.doScroll("left")}catch(e){setTimeout(n,1);return}t()}if(U.addEventListener)U.readyState==="complete"?t():U.addEventListener("DOMContentLoaded",t,!1);else if(U.attachEvent){U.attachEvent("onreadystatechange",t);var i=!1;try{i=E.frameElement===null}catch(e){}U.documentElement.doScroll&&i&&n()}h.register_event(E,"load",t,!0)};function kC(t){if(vu=t,ms=Bp,Se=E[Le],h.isUndefined(Se)){N.critical('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.');return}if(Se.__loaded||Se.config&&Se.persistence){N.critical("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.");return}var n=Se.__SV||0;if(n<1.1){N.critical("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet.");return}h.each(Se._i,function(i){i&&h.isArray(i)&&(Pt[i[i.length-1]]=_s.apply(this,i))}),OC(),Se.init(),h.each(Pt,function(i){i._loaded()}),xC()}function RC(t,n){n()}kC(RC)})();
|