1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,6154,(e,t,r)=>{"use strict";function n(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function i(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function o(e,t,r,n,o){var s;if(!t)return`<${e}></${e}>`;let a=(null==(s=t.src)?void 0:s.url)?Object.assign(Object.assign({},t),{src:i(t.src.url,t.src.params,n,o)}):t,u=Object.keys(Object.assign(Object.assign({},a),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=a[t],o=null!=n?n:i,s=!0===o?t:`${t}="${o}"`;return o?e+` ${s}`:e},"");return`<${e}${u}></${e}>`}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=i,r.createHtml=o,r.formatData=function(e,t){var r,s,a,u,c;let l=n(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),h=n(t,null==(a=null==(s=e.html)?void 0:s.attributes.src)?void 0:a.params),p=n(t,[null==(c=null==(u=e.html)?void 0:u.attributes.src)?void 0:c.slugParam]),d=n(t,[...Object.keys(l),...Object.keys(h),...Object.keys(p)],!0);return Object.assign(Object.assign({},e),{html:e.html?o(e.html.element,e.html.attributes,d,h,p):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:i(e.url,e.params,l)})):null})}},880092,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let o=i(e.r(155708)),s=e.r(6154);r.GoogleAnalytics=e=>{var t=n(e,[]);return(0,s.formatData)(o.default,t)}},490057,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let o=i(e.r(681171)),s=e.r(6154);r.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,s.formatData)(o.default,t)}},761564,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let o=i(e.r(861002)),s=e.r(6154);r.YouTubeEmbed=e=>{var t=n(e,[]);return(0,s.formatData)(o.default,t)}},508751,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var n=e.r(880092);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=e.r(490057);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var o=e.r(761564);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},157828,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:o,dataNtpc:s=""}){return(0,i.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,n.jsxs)(n.Fragment,{children:[o,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(287002),i=e.r(118201)},841388,(e,t,r)=>{"use strict";
1var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:a}=(0,o.GoogleMapsEmbed)(n);return(0,i.jsx)(s.default,{height:n.height||null,width:n.width||null,html:a,dataNtpc:"GoogleMapsEmbed"})};let i=e.r(287002),o=e.r(508751),s=n(e.r(157828))},737768,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,s.YouTubeEmbed)(e);return(0,i.jsx)(a.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(o.default,{src:e.url,strategy:u[e.strategy],stylesheets:n},e.url))})};let i=e.r(287002),o=n(e.r(416650)),s=e.r(508751),a=n(e.r(157828)),u={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},835582,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:u,preview:c,dataLayer:l,nonce:h}=e;a=n;let p=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&p.searchParams.set("id",t),"dataLayer"!==n&&p.searchParams.set("l",n),u&&p.searchParams.set("gtm_auth",u),c&&(p.searchParams.set("gtm_preview",c),p.searchParams.set("gtm_cookies_win","x")),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 2 (function(w,l){ 3 w[l]=w[l]||[]; 4 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 5 ${l?`w[l].push(${JSON.stringify(l)})`:""} 6 })(window,'${n}');`},nonce:h}),(0,i.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:p.href,nonce:h})]})};let i=e.r(287002),o=e.r(118201),s=n(e.r(416650)),a="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},310747,(e,t,r)=>{"use strict";let n;var i=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:i="dataLayer",nonce:u}=e;return void 0===n&&(n=i),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 7 window['${i}'] = window['${i}'] || []; 8 function gtag(){window['${i}'].push(arguments);} 9 gtag('js', new Date()); 10 11 gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:u}),(0,o.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:u})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let o=e.r(287002),s=e.r(118201),a=i(e.r(416650))},31056,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var i=e.r(841388);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var o=e.r(737768);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return n(o).default}});var s=e.r(835582);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return s.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return s.sendGTMEvent}});var a=e.r(310747);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return a.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return a.sendGAEvent}})},469836,e=>{"use strict";var t=e.i(851247),r=e.i(602853),n=e.i(452329),i=e.i(216180);let o=(0,t.create)()((0,r.persist)((e,t)=>({totalCredits:0,isVip:!1,vipLevel:"Free",membership:"0",free:"0",boost:"0",membershipDescription:0,creditsQuota:0,priceId:null,showBindingGuide:0,showBindAlter:0,fetchCredits:async()=>{try{let r=await (0,n.getFindCredits)();if(0===r.code){let n="0"==r.data.userSubscriptionType?"Free":r.data.planName||("1"==r.data.userSubscriptionType?"Standard":"3"==r.data.userSubscriptionType?"Basic":"Pro"),i="0"==r.data.userSubscriptionType?0:r.data.planCycle?"annual"===r.data.planCycle?2:"weekly"===r.data.planCycle?3:1:r.data.membershipDescription?"pro_plan_annual"==r.data.membershipDescription||"standard_plan_annual"==r.data.membershipDescription?2:"3"==r.data.userSubscriptionType?3:1:0;return(r.data.totalCredits!=t().totalCredits||"0"!=r.data.userSubscriptionType!=t().isVip||(r.data.membership||"0")!=t().membership||(r.data.free||"0")!=t().free||(r.data.boost||"0")!=t().boost||(void 0!==r.data.showBindingGuide?r.data.showBindingGuide:0)!=t().showBindingGuide||(r.data.showBindAlter||0)!=t().showBindAlter||n!=t().vipLevel||i!=t().membershipDescription||(r.data.priceId??null)!==t().priceId)&&e({totalCredits:r.data.totalCredits||0,showBindingGuide:void 0!==r.data.showBindingGuide?r.data.showBindingGuide:0,showBindAlter:r.data.showBindAlter||0,isVip:"0"!=r.data.userSubscriptionType,membership:r.data.membership||"0",free:r.data.free||"0",boost:r.data.boost||"0",vipLevel:n,membershipDescription:i,creditsQuota:r.data.creditsQuota||0,priceId:r.data.priceId??null}),Number(r.data.totalCredits||0)}return e({membershipDescription:0}),0}catch(t){if(t instanceof i.ApiError&&401===t.code)return 0;return e({isVip:!1,vipLevel:"Free",membershipDescription:0,creditsQuota:0,priceId:null,membership:"0",free:"0",boost:"0",showBindingGuide:0,showBindAlter:0}),0}},init(){e({isVip:!1,vipLevel:"Free",membershipDescription:0,creditsQuota:0,priceId:null,totalCredits:0,membership:"0",free:"0",boost:"0",showBindingGuide:0,showBindAlter:0})}}),{name:"fb-credits"}));e.s(["useCreditsStore",0,o])},374962,564426,e=>{"use strict";e.s(["useUserStore",()=>lJ],374962);var t,r,n,i,o,s,a,u,c,l,h,p,d,f,m,g,v,y,_=e.i(851247),b=e.i(602853),w=e.i(31056);e.i(28856);var k=e.i(469836),S=e.i(318727),x=e.i(343370),C=e.i(109601),I=e.i(578600),O=e.i(860034),E=e.i(262864);if("u"<typeof window){var M={hostname:""};sa={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:M,referrer:""},screen:{width:0,height:0},location:M,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else sa=window;var A={DEBUG:!1,LIB_VERSION:"2.80.0"},T="__mp_targeting",R="__mp_recorder",P="__MP_TARGETING_FILENAME__";function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){r(e);return}a.done?t(u):Promise.resolve(u).then(n,i)}function N(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(e){L(o,n,i,s,a,"next",e)}function a(e){L(o,n,i,s,a,"throw",e)}s(void 0)})}}function D(e,t,r){return(D=H()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&$(i,r.prototype),i}).apply(null,arguments)}function U(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
11for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}function z(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function V(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function G(e){var t="function"==typeof Map?new Map:void 0;return(G=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return D(e,arguments,B(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$(r,e)})(e)}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(H=function(){return!!e})()}function Y(e,t){var r="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return F(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F(e,void 0)}}(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function J(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var u=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){s.label=u[1];break}if(6===u[0]&&s.label<i[1]){s.label=i[1],i=u;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(u);break}i[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function Z(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var K=Object.defineProperty,X=function(e,t,r){var n;return n=(void 0===t?"undefined":W(t))!=="symbol"?t+"":t,n in e?K(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},Q=Object.defineProperty,ee=function(e,t,r){var n;return n=(void 0===t?"undefined":W(t))!=="symbol"?t+"":t,n in e?Q(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},et=((o8=et||{})[o8.Document=0]="Document",o8[o8.DocumentType=1]="DocumentType",o8[o8.Element=2]="Element",o8[o8.Text=3]="Text",o8[o8.CDATA=4]="CDATA",o8[o8.Comment=5]="Comment",o8),er={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},en={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},ei={};function eo(e){if(ei[e])return ei[e];var t=globalThis[e],r=t.prototype,n=e in er?er[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in en?en[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return ei[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;if(document.body.removeChild(a),!c)return r;return ei[e]=c}catch(e){return r}}var es={};function ea(e,t,r){var n,i=e+"."+String(r);if(es[i])return es[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(eo(e),r))?void 0:n.get;return o?(es[i]=o,o.call(t)):t[r]}var eu=function(e){return ea("Node",e,"childNodes")},ec=function(e){return ea("Node",e,"parentNode")},el=function(e){return ea("Node",e,"parentElement")},eh=function(e){return ea("Node",e,"textContent")},ep=function(e){return e&&"shadowRoot"in e?ea("Element",e,"shadowRoot"):null};
11function ed(e){return e.nodeType===e.ELEMENT_NODE}function ef(e){var t,r=e&&"host"in e&&"mode"in e&&((t=e)&&"host"in t?ea("ShadowRoot",t,"host"):null)||null;return!!(r&&"shadowRoot"in r&&ep(r)===e)}function em(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function eg(e){try{var t,r=e.rules||e.cssRules;if(!r)return null;var n=e.href;return!n&&e.ownerNode&&e.ownerNode.ownerDocument&&(n=e.ownerNode.ownerDocument.location.href),(t=Array.from(r,function(e){return ev(e,n)}).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t}catch(e){return null}}function ev(e,t){if("styleSheet"in e){var r;try{r=eg(e.styleSheet)||function(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return""===e.layerName?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(t){r=e.cssText}return e.styleSheet.href?eE(r,e.styleSheet.href):r}var n=e.cssText;return("selectorText"in e&&e.selectorText.includes(":")&&(n=n.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),t)?eE(n,t):n}var ey=function(){function e(){ee(this,"idNodeMap",new Map),ee(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(e){if(!e)return -1;var t,r=null==(t=this.getMeta(e))?void 0:t.id;return null!=r?r:-1},t.getNode=function(e){return this.idNodeMap.get(e)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(e){return this.nodeMetaMap.get(e)||null},t.removeNodeFromMap=function(e,t){var r=this;void 0===t&&(t=!1);var n=this.getId(e);this.idNodeMap.delete(n),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(e){return r.removeNodeFromMap(e,t)})},t.has=function(e){return this.idNodeMap.has(e)},t.hasNode=function(e){return this.nodeMetaMap.has(e)},t.add=function(e,t){var r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)},t.replace=function(e,t){var r=this.getNode(e);if(r){var n=this.nodeMetaMap.get(r);n&&this.nodeMetaMap.set(t,n)}this.idNodeMap.set(e,t)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function e_(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,s=e.maskInputFn,a=o||"",u=i&&eb(i);return(r[n.toLowerCase()]||u&&r[u])&&(a=s?s(a,t):"*".repeat(a.length)),a}function eb(e){return e.toLowerCase()}var ew="__rrweb_original__";function ek(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?eb(t):null}function eS(e,t){try{r=new URL(e,null!=t?t:window.location.href)}catch(e){return null}var r,n,i=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return null!=(n=null==i?void 0:i[1])?n:null}var ex=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,eC=/^(?:[a-z+]+:)?\/\//i,eI=/^www\..*/i,eO=/^(data:)([^,]*),(.*)/i;function eE(e,t){return(e||"").replace(ex,function(e,r,n,i,o,s){var a=n||o||s,u=r||i||"";if(!a)return e;if(eC.test(a)||eI.test(a)||eO.test(a))return"url("+u+a+u+")";if("/"===a[0])return"url("+u+((t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+a)+u+")";var c=t.split("/"),l=a.split("/");c.pop();for(var h,p,d=Y(l);!(p=d()).done;){var f=p.value;"."!==f&&(".."===f?c.pop():c.push(f))}return"url("+u+c.join("/")+u+")"})}function eM(e,t){return(void 0===t&&(t=!1),t)?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}var eA=1,eT=RegExp("[^a-z0-9-_:]");function eR(){return eA++}var eP=/^[^ \t\n\r\u000c]+/,eF=/^[, \t\n\r\u000c]+/,eL=new WeakMap;function eN(e,t){return t&&""!==t.trim()?eD(e,t):t}function eD(e,t){var r=eL.get(e);if(r||(r=e.createElement("a"),eL.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function eU(e,t,r,n){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return eN(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return eN(e,n
11);if("srcset"===r)return function(e,t){if(""===t.trim())return t;var r=0;function n(e){var n,i=e.exec(t.substring(r));return i?(n=i[0],r+=n.length,n):""}for(var i=[];n(eF),!(r>=t.length);){var o=n(eP);if(","===o.slice(-1))o=eN(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=eN(e,o);for(var a=!1;;){var u=t.charAt(r);if(""===u){i.push((o+s).trim());break}if(a)")"===u&&(a=!1);else if(","===u){r+=1,i.push((o+s).trim());break}else"("===u&&(a=!0);s+=u,r+=1}}}return i.join(", ")}(e,n);if("style"===r)return eE(n,eD(e));else if("object"===t&&"data"===r)return eN(e,n);return n}function ej(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function eB(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return!!r&&eB(ec(e),t,r);for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return!!r&&eB(ec(e),t,r)}function eq(e,t,r,n){var i;if(ed(e)){if(!eu(i=e).length)return!1}else{if(null===el(e))return!1;i=el(e)}try{if("string"==typeof t){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(eB(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch(e){}return!1}function ez(e){return null==e?"":e.toLowerCase()}function eV(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,u=t.skipChild,c=void 0!==u&&u,l=t.inlineStylesheet,h=void 0===l||l,p=t.maskInputOptions,d=void 0===p?{}:p,f=t.maskTextFn,m=t.maskInputFn,g=t.slimDOMOptions,v=t.dataURLOptions,y=void 0===v?{}:v,_=t.inlineImages,b=void 0!==_&&_,w=t.recordCanvas,k=void 0!==w&&w,S=t.onSerialize,x=t.onIframeLoad,C=t.iframeLoadTimeout,I=void 0===C?5e3:C,O=t.onStylesheetLoad,E=t.stylesheetLoadTimeout,M=void 0===E?5e3:E,A=t.keepIframeSrcFn,T=void 0===A?function(){return!1}:A,R=t.newlyAddedElement,P=t.cssCaptured,F=t.needsMask,L=t.preserveWhiteSpace,N=void 0===L||L;F||(F=eq(e,s,a,void 0===F));var D=function(e,t){var r,n,i,o,s,a,u,c,l,h,p,d=t.doc,f=t.mirror,m=t.blockClass,g=t.blockSelector,v=t.needsMask,y=t.inlineStylesheet,_=t.maskInputOptions,b=t.maskTextFn,w=t.maskInputFn,k=t.dataURLOptions,S=t.inlineImages,x=t.recordCanvas,C=t.keepIframeSrcFn,I=t.newlyAddedElement,O=t.cssCaptured,E=function(e,t){if(t.hasNode(e)){var r=t.getId(e);return 1===r?void 0:r}}(d,f);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:et.Document,childNodes:[],compatMode:e.compatMode};return{type:et.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:et.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){for(var r,n=t.doc,i=t.blockClass,o=t.blockSelector,s=t.inlineStylesheet,a=t.maskInputOptions,u=void 0===a?{}:a,c=t.maskInputFn,l=t.dataURLOptions,h=void 0===l?{}:l,p=t.inlineImages,d=t.recordCanvas,f=t.keepIframeSrcFn,m=t.newlyAddedElement,g=t.rootId,v=function(e,t,r){try{if("string"==typeof t){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,o),y=function(e){if(z(e,HTMLFormElement))return"form";var t=eb(e.tagName);return eT.test(t)?"div":t}(e),_={},b=e.attributes.length,w=0;w<b;w++){var k=e.attributes[w];ej(y,k.name,k.value)||(_[k.name]=eU(n,y,eb(k.name),k.value))}if("link"===y&&s){var S=Array.from(n.styleSheets).find(function(t){return t.href===e.href}),x=null;S&&(x=eg(S)),x&&(delete _.rel,delete _.href,_._cssText=x)}if("style"===y&&e.sheet){var C=eg(e.sheet);C&&(e.childNodes.length>1&&(C=(function(e,t,r){void 0===r&&(r=!1);var n=Array.from(t.childNodes),i=[],o=0;if(n.length>1&&e&&"string"==typeof e){for(var s=eM(e,r),a=s.length/e.length,u=1;u<n.length;u++)if(n[u].textContent&&"string"==typeof n[u].textContent){for(var c=eM(n[u].textContent,r),l=3;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||-1!==c.indexOf(c.substring(0,l),1));l++);for(;l<c.length;l++){var h=c.substring(0,l),p=s.split(h),d=-1;if(2===p.length)d=p[0].length;else if(p.length>2&&""===p[0]&&""!==n[u-1].textContent)d=s.indexOf(h,1);else if(1===p.length){if(h=h.substring(0,h.length-1),(p=s.split(h)).length<=1)return i.push(e),i;l=101}
11else l===c.length-1&&(d=s.indexOf(h));if(p.length>=2&&l>100){var f=n[u-1].textContent;if(f&&"string"==typeof f){var m=eM(f).length;d=s.indexOf(h,m)}-1===d&&(d=p[0].length)}if(-1!==d){for(var g=Math.floor(d/a);g>0&&g<e.length;){if((o+=1)>50*n.length)return i.push(e),i;var v=eM(e.substring(0,g),r);if(v.length===d){i.push(e.substring(0,g)),e=e.substring(g),s=s.substring(d);break}v.length<d?g+=Math.max(1,Math.floor((d-v.length)/a)):g-=Math.max(1,Math.floor((v.length-d)*a))}break}}}}return i.push(e),i})(C,e).join("/* rr_split */")),_._cssText=C)}if("input"===y||"textarea"===y||"select"===y){var I=e.value,O=e.checked;"radio"!==_.type&&"checkbox"!==_.type&&"submit"!==_.type&&"button"!==_.type&&I?_.value=e_({element:e,type:ek(e),tagName:y,value:I,maskInputOptions:u,maskInputFn:c}):O&&(_.checked=O)}if("option"===y&&(e.selected&&!u.select?_.selected=!0:delete _.selected),"dialog"===y&&e.open&&(_.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),"canvas"===y&&d){if("2d"===e.__context)!function(e){var t=e.getContext("2d");if(!t)return!0;for(var r=0;r<e.width;r+=50)for(var n=0;n<e.height;n+=50){var i=t.getImageData;if(new Uint32Array((ew in i?i[ew]:i).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(function(e){return 0!==e}))return!1}return!0}(e)&&(_.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){var E=e.toDataURL(h.type,h.quality),M=n.createElement("canvas");M.width=e.width,M.height=e.height,E!==M.toDataURL(h.type,h.quality)&&(_.rr_dataURL=E)}}if("img"===y&&p){sc||(sl=(sc=n.createElement("canvas")).getContext("2d"));var A=e.currentSrc||e.getAttribute("src")||"<unknown-src>",T=e.crossOrigin,R=function(){e.removeEventListener("load",R);try{sc.width=e.naturalWidth,sc.height=e.naturalHeight,sl.drawImage(e,0,0),_.rr_dataURL=sc.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?R():e.addEventListener("load",R);return}console.warn("Cannot inline img src="+A+"! Error: "+t)}"anonymous"===e.crossOrigin&&(T?_.crossOrigin=T:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?R():e.addEventListener("load",R)}if("audio"===y||"video"===y){var P=_;P.rr_mediaState=e.paused?"paused":"played",P.rr_mediaCurrentTime=e.currentTime,P.rr_mediaPlaybackRate=e.playbackRate,P.rr_mediaMuted=e.muted,P.rr_mediaLoop=e.loop,P.rr_mediaVolume=e.volume}if(!(void 0!==m&&m)&&(e.scrollLeft&&(_.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(_.rr_scrollTop=e.scrollTop)),v){var F=e.getBoundingClientRect(),L=F.width,N=F.height;_={class:_.class,rr_width:""+L+"px",rr_height:""+N+"px"}}"iframe"!==y||f(_.src)||(e.contentDocument||(_.rr_src=_.src),delete _.src);try{customElements.get(y)&&(r=!0)}catch(e){}return{type:et.Element,tagName:y,attributes:_,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:v,rootId:g,isCustom:r}}(e,{doc:d,blockClass:m,blockSelector:g,inlineStylesheet:y,maskInputOptions:void 0===_?{}:_,maskInputFn:w,dataURLOptions:void 0===k?{}:k,inlineImages:S,recordCanvas:x,keepIframeSrcFn:C,newlyAddedElement:void 0!==I&&I,rootId:E});case e.TEXT_NODE:return r=e,i=(n={doc:d,needsMask:v,maskTextFn:b,rootId:E,cssCaptured:void 0!==O&&O}).needsMask,o=n.maskTextFn,s=n.rootId,a=n.cssCaptured,c=(u=ec(r))&&u.tagName,l="",h="STYLE"===c||void 0,(p="SCRIPT"===c||void 0)?l="SCRIPT_PLACEHOLDER":!a&&(l=eh(r),h&&l&&(l=eE(l,eD(n.doc)))),!h&&!p&&l&&i&&(l=o?o(l,el(r)):l.replace(/[\S]/g,"*")),{type:et.Text,textContent:l||"",rootId:s};case e.CDATA_SECTION_NODE:return{type:et.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:et.Comment,textContent:eh(e)||"",rootId:E};default:return!1}}(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:m,dataURLOptions:y,inlineImages:b,recordCanvas:k,keepIframeSrcFn:T,newlyAddedElement:void 0!==R&&R,cssCaptured:void 0!==P&&P});if(!D)return console.warn(e,"not serialized"),null;V=n.hasNode(e)?n.getId(e):!function(e,t){if(t.comment&&e.type===et.Comment)return!0;if(e.type===et.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===eS(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(ez(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===ez(e.attributes.name)||"icon"===ez(e.attributes.rel)||"apple-touch-icon"===ez(e.attributes.rel)||"shortcut icon"===ez(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&ez(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(ez(e.attributes.property).match(/^(og|twitter|fb):/)||ez(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===ez(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===ez(e.attributes.name)||"googlebot"===ez(e.attributes.name)||"bingbot"===ez(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===ez(e.attributes.name)||"generator"===ez(e.attributes.name)||"framework"===ez(e.attributes.name)||"publisher"===ez(e.attributes.name)||"progid"===ez(e.attributes.name)||ez(e.attributes.property).match(/^article:/)||ez(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===ez(e.attributes.name)||"yandex-verification"===ez(e.attributes.name)||"csrf-token"===ez(e.attributes.name)||"p:domain_verify"===ez(e.attributes.name)||"verify-v1"===ez(e.attributes.name)||"verification"===ez(e.attributes.name)||"shopify-checkout-api-token"===ez(e.attributes.name)))return!0}}return!1}(D,g)&&(N||D.type!==et.Text||D.textContent.replace(/^\s+|\s+$/gm,"").length)?eR():-2;var U=Object.assign(D,{id:V});if(n.add(e,U),-2===V)return null;S&&S(e);var j=!c;if(U.type===et.Element){j=j&&!U.needBlock,delete U.needBlock;var B=ep(e);B&&em(B)&&(U.isShadowHost=!0)}if((U.type===et.Document||U.type===et.Element)&&j){g.headWhitespace&&U.type===et.Element&&"head"===U.tagName&&(N=!1);var q={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:T,cssCaptured:!1};if(U.type===et.Element&&"textarea"===U.tagName&&void 0!==U.attributes.value);else{U.type===et.Element&&void 0!==U.attributes._cssText&&"string"==typeof U.attributes._cssText&&(q.cssCaptured=!0);for(var V,$,W=Y(Array.from(eu(e)));!($=W()).done;){var G=eV($.value,q);G&&U.childNodes.push(G)}}var H=null;if(ed(e)&&(H=ep(e)))for(var J,Z=Y(Array.from(eu(H)));!(J=Z()).done;){var K=eV(J.value,q);K&&(em(H)&&(K.isShadow=!0),U.childNodes.push(K))}}var X=ec(e);return X&&ef(X)&&em(X)&&(U.isShadow=!0),U.type===et.Element&&"iframe"===U.tagName&&function(e,t,r){var n,i=e.contentWindow;if(i){var o=!1;try{n=i.document.readyState}catch(e){return}if("complete"!==n){var s=setTimeout(function(){o||(t(),o=!0)},r);e.addEventListener("load",function(){clearTimeout(s),o=!0,t()});return}var a="about:blank";if(i.location.href!==a||e.src===a||""===e.src)return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}(e,function(){var t=e.contentDocument;if(t&&x){var r=eV(t,{doc:t,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:T});r&&x(e,r)}},I),U.type===et.Element&&"link"===U.tagName&&"string"==typeof U.attributes.rel&&("stylesheet"===U.attributes.rel||"preload"===U.attributes.rel&&"string"==typeof U.attributes.href&&"css"===eS(U.attributes.href))&&function(e,t,r){var n,i=!1;try{n=e.sheet}catch(e){return}if(!n){var o=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(o),i=!0,t()})}}(e,function(){if(O){var t=eV(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:F,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:h,maskInputOptions:d,maskTextFn:f,maskInputFn:m,slimDOMOptions:g,dataURLOptions:y,inlineImages:b,recordCanvas:k,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:x,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:M,keepIframeSrcFn:T});t&&O(e,t)}},M),U}var e$={exports:{}},eW=String,eG=function(){return{isColorSupported:!1,reset:eW,bold:eW,dim:eW,italic:eW,underline:eW,inverse:eW,hidden:eW,strikethrough:eW,black:eW,red:eW,green:eW,yellow:eW,blue:eW,magenta:eW,cyan:eW,white:eW,gray:eW,bgBlack:eW,bgRed:eW,bgGreen:eW,bgYellow:eW,bgBlue:eW,bgMagenta:eW,bgCyan:eW,bgWhite:eW}};
11e$.exports=eG(),e$.exports.createColors=eG;var eH=e$.exports,eY=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),eJ=function(e){function t(r,n,i,o,s,a){var u;return(u=e.call(this,r)||this).name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}q(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=eH.isColorSupported),eY&&e&&(i=eY(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=eH.createColors(!0),l=c.bold,h=c.gray,p=c.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-u)+" | ";if(o===n.line){var c=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+c+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(G(Error));eJ.default=eJ;var eZ={};eZ.isClean=Symbol("isClean"),eZ.my=Symbol("my");var eK={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},eX=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return eK[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=eK[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function eQ(e,t){new eX(t).stringify(e)}eX.default=eX,eQ.default=eQ;var e0=eZ.isClean,e1=eZ.my,e2=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[e0]=!1,this[e1]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":W(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new eJ(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[e0]){this[e0]=!1;for(var e=this;e=e.parent;)e[e0]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
11else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new eX().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":W(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":W(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=eQ),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}();e2.default=e2;var e3=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=j({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(e2);e3.default=e3;var e4=eY.SourceMapConsumer,e5=eY.SourceMapGenerator,e6=eY.existsSync,e9=eY.readFileSync,e8=eY.dirname,e7=eY.join,te=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=e8(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new e4(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),E.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":W(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
11if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=e8(e),e6(e))return this.mapFile=e,e9(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(z(t,e4))return e5.fromSourceMap(t).toString();else if(z(t,e5))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=e7(e8(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();te.default=te;var tt=eY.SourceMapConsumer,tr=eY.SourceMapGenerator,tn=eY.fileURLToPath,ti=eY.pathToFileURL,to=eY.isAbsolute,ts=eY.resolve,ta=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
11,tu=Symbol("fromOffsetCache"),tc=!!(tt&&tr),tl=!!(ts&&to),th=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":W(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!tl||/^\w+:\/\//.test(t.from)||to(t.from)?this.file=t.from:this.file=ts(t.from)),tl&&tc){var r=new te(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ta(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":W(t))==="object"){var i,o,s,a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new eJ(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new eJ(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ti&&(i.input.url=ti(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[tu])a=this[tu];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[tu]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,u,c=a.length-2;o<c;)if(e<a[u=o+(c-o>>1)])c=u-1;else if(e>=a[u+1])o=u+1;else{o=u;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:ts(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=to(a.source)?ti(a.source):new URL(a.source,this.map.consumer().sourceRoot||ti(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(tn)u.file=tn(o);else throw Error("file: protocol is not available in this PostCSS build");var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=j({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();th.default=th,eY&&eY.registerInput&&eY.registerInput(th);var tp=eY.SourceMapConsumer,td=eY.SourceMapGenerator,tf=eY.dirname,tm=eY.relative,tg=eY.resolve,tv=eY.sep,ty=eY.pathToFileURL,t_=!!(tp&&td),tb=!!(tf&&tg&&tm&&tv),tw=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||tf(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new tp(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),tb&&t_&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=td.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new td({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new td({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(r.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=r.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};(!("decl"===u.type||"atrule"===u.type&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=r.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?tf(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=tf(tg(r,this.mapOpts.annotation)));var n=tm(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new th(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return E.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ty){var r=ty(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===tv&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),tk=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(e2);tk.default=tk;var tS=eZ.isClean,tx=eZ.my,tC=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),u=Y(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
11else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Y(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Y(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sh(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Y(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,u=Y(e);!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new e3(e)]}else if(e.selector)e=[new sp(e)];else if(e.name)e=[new sd(e)];else if(e.text)e=[new tk(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[tx]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[tS]&&function e(t){if(t[tS]=!1,t.proxyOf.nodes)for(var r,n=Y(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Y(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=Y(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Y(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},U(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(e2);tC.registerParse=function(e){sh=e},tC.registerRule=function(e){sp=e},tC.registerAtRule=function(e){sd=e},tC.registerRoot=function(e){sf=e},tC.default=tC,tC.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sd.prototype):"rule"===e.type?Object.setPrototypeOf(e,sp.prototype):"decl"===e.type?Object.setPrototypeOf(e,e3.prototype):"comment"===e.type?Object.setPrototypeOf(e,tk.prototype):"root"===e.type&&Object.setPrototypeOf(e,sf.prototype),e[tx]=!0,e.nodes&&e.nodes.forEac
11h(function(e){tC.rebuild(e)})};var tI=function(e){function t(t){var r;return(r=e.call(this,j({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sm(new sg,this,e).stringify()},t}(tC);tI.registerLazyResult=function(e){sm=e},tI.registerProcessor=function(e){sg=e},tI.default=tI;var tO=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();tO.default=tO;var tE=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new tO(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}();tE.default=tE;var tM=/[\t\n\f\r "#'()/;[\\\]{}]/g,tA=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,tT=/.[\r\n"'(/\\]/,tR=/[\da-f]/i,tP=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(tC);tP.default=tP,tC.registerAtRule(tP);var tF=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Y(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new sv(new sy,this,e).stringify()},t}(tC);tF.registerLazyResult=function(e){sv=e},tF.registerProcessor=function(e){sy=e},tF.default=tF,tC.registerRoot(tF);var tL={comma:function(e){return tL.split(e,[","],!0)},space:function(e){return tL.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};tL.default=tL;var tN=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return tL.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(tC);tN.default=tN,tC.registerRule(tN);var tD=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,m];break;
11case 40:if(c=g.length?g.pop()[1]:"",l=p.charCodeAt(m+1),"url"===c&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=m;break}else y("bracket");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a)h=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||tT.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=m+1;break}else y("string");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a)h=["string",p.slice(m,n+1),m,n],m=n;break;case 64:tM.lastIndex=m+1,tM.test(p),n=0===tM.lastIndex?p.length-1:tM.lastIndex-2,h=["at-word",p.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,tR.test(p.charAt(n)))){for(;tR.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(m,n+1),m,n],m=n;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(n=p.indexOf("*/",m+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(m,n+1),m,n]):(tA.lastIndex=m+1,tA.test(p),n=0===tA.lastIndex?p.length-1:tA.lastIndex-2,h=["word",p.slice(m,n+1),m,n],g.push(h)),m=n}return m++,h}},position:function(){return m}}},tU={empty:!0,space:!0},tj=function(){function e(e){this.input=e,this.root=new tF,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new tP;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=Y(e.entries());!(n=o()).done;){var s=n.value,a=s[0],u=s[1];if("("===(t=u[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(u);r=u}return!1},t.comment=function(e){var t=new tk;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=tD(this.input)},t.decl=function(e,t){var r,n,i=new e3;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
11e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(r=e[u])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new tN;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",tU[a]||tU[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new tN;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function tB(e,t){var r=new tj(new th(e,t));try{r.parse()}catch(e){throw e}return r.root}tB.default=tB,tC.registerParse(tB);var tq=eZ.isClean,tz=eZ.my,tV={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"}
11,t$={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},tW={Once:!0,postcssPlugin:!0,prepare:!0};function tG(e){return(void 0===e?"undefined":W(e))==="object"&&"function"==typeof e.then}function tH(e){var t=!1,r=tV[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function tY(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:tH(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function tJ(e){return e[tq]=!1,e.nodes&&e.nodes.forEach(function(e){return tJ(e)}),e}var tZ={},tK=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":W(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=tJ(r);else if(z(r,e)||z(r,tE))i=tJ(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=tB;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[tz]&&tC.rebuild(i)}this.result=new tE(t,i,n),this.helpers=j({},tZ,{postcss:tZ,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":W(e))==="object"&&e.prepare?j({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Y(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":W(i))==="object")for(var o in i){if(!t$[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!tW[o])if("object"===W(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return N(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return J(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!tG(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[tq])return[3,14];o[tq]=!0,s=[tY(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!tG(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw u=d.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return J(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=Y(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,Z(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":W(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(tG(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=eQ;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new tw(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Y(this.plugins);!(e=t()).done;){var r=e.value;if(tG(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[tq];)n[tq]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
11if(tG(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[tq]){a[tq]=!0,e.push(tY(a));return}t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[tq]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[tq]=!0;for(var r,n=tH(e),i=Y(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[tq]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();tK.registerPostcss=function(e){tZ=e},tK.default=tK,tF.registerLazyResult(tK),tI.registerLazyResult(tK);var tX=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new tE(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new tw(eQ,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],u=s[1];a&&(this.result.css=a),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=tB(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();tX.default=tX;var tQ=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":W(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":W(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":W(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new tK(this,e,t):new tX(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function t0(e,t){if(Array.isArray(e))return e.map(function(e){return t0(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=i.value,a=j({},s,{__proto__:th.prototype});a.map&&(a.map=j({},a.map,{__proto__:te.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return t0(e,t)})),n.source){var u=n.source,c=u.inputId;n.source=V(u,["inputId"]),null!=c&&(n.source.input=t[c])}if("root"===n.type)return new tF(n);if("decl"===n.type)return new e3(n);if("rule"===n.type)return new tN(n);if("comment"===n.type)return new tk(n);if("atrule"===n.type)return new tP(n);else throw Error("Unknown node type: "+e.type)}function t1(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new tQ(t)}tQ.default=tQ,tF.registerProcessor(tQ),tI.registerProcessor(tQ),t0.default=t0,t1.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),O.default.env.LANG&&O.default.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new tQ().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return t1([i(r)]).process(e,t)},i},t1.stringify=eQ,t1.parse=tB,t1.fromJSON=t0,t1.list=tL,t1.comment=function(e){return new tk(e)},t1.atRule=function(e){return new tP(e)},t1.decl=function(e){return new e3(e)},t1.rule=function(e){return new tN(e)},t1.root=function(e){return new tF(e)},t1.document=function(e){return new tI(e)},t1.CssSyntaxError=eJ,t1.Declaration=e3,t1.Container=tC,t1.Processor=tQ,t1.Document=tI,t1.Comment=tk,t1.Warning=tO,t1.AtRule=tP,t1.Result=tE,t1.Input=th,t1.Rule=tN,t1.Root=tF,t1.Node=e2,tK.registerPostcss(t1),t1.default=t1;var t2=t1&&t1.__esModule&&Object.prototype.hasOwnProperty.call(t1,"default")?t1.default:t1;t2.stringify,t2.fromJSON,t2.plugin,t2.parse,t2.list,t2.document,t2.comment,t2.atRule,t2.rule,t2.decl,t2.root,t2.CssSyntaxError,t2.Declaration,t2.Container,t2.Processor,t2.Document,t2.Comment,t2.Warning,t2.AtRule,t2.Result,t2.Input,t2.Rule,t2.Root,t2.Node;var t3=Object.defineProperty,t4=function(e,t,r){var n;return n=(void 0===t?"undefined":W(t))!=="symbol"?t+"":t,n in e?t3(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},t5={exports:{}},t6=String,t9=function(){return{isColorSupported:!1,reset:t6,bold:t6,dim:t6,italic:t6,underline:t6,inverse:t6,hidden:t6,strikethrough:t6,black:t6,red:t6,green:t6,yellow:t6,blue:t6,magenta:t6,cyan:t6,white:t6,gray:t6,bgBlack:t6,bgRed:t6,bgGreen:t6,bgYellow:t6,bgBlue:t6,bgMagenta:t6,bgCyan:t6,bgWhite:t6}};t5.exports=t9(),t5.exports.createColors=t9;var t8=t5.exports,t7=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
11return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),re=function(e){function t(r,n,i,o,s,a){var u;return(u=e.call(this,r)||this).name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}q(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=t8.isColorSupported),t7&&e&&(i=t7(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=t8.createColors(!0),l=c.bold,h=c.gray,p=c.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-u)+" | ";if(o===n.line){var c=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+c+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(G(Error));re.default=re;var rt={};rt.isClean=Symbol("isClean"),rt.my=Symbol("my");var rr={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},rn=function(){function e(e){this.builder=e}var t=e.prototype;return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return rr[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=rr[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function ri(e,t){new rn(t).stringify(e)}rn.default=rn,ri.default=ri;var ro=rt.isClean,rs=rt.my,ra=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[ro]=!1,this[rs]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":W(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new re(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[ro]){this[ro]=!1;for(var e=this;e=e.parent;)e[ro]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
11else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new rn().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":W(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":W(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=ri),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}();ra.default=ra;var ru=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=j({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(ra);ru.default=ru;var rc=t7.SourceMapConsumer,rl=t7.SourceMapGenerator,rh=t7.existsSync,rp=t7.readFileSync,rd=t7.dirname,rf=t7.join,rm=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=rd(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new rc(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),E.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":W(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);
11if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=rd(e),rh(e))return this.mapFile=e,rp(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(z(t,rc))return rl.fromSourceMap(t).toString();else if(z(t,rl))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=rf(rd(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();rm.default=rm;var rg=t7.SourceMapConsumer,rv=t7.SourceMapGenerator,ry=t7.fileURLToPath,r_=t7.pathToFileURL,rb=t7.isAbsolute,rw=t7.resolve,rk=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
11,rS=Symbol("fromOffsetCache"),rx=!!(rg&&rv),rC=!!(rw&&rb),rI=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":W(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!rC||/^\w+:\/\//.test(t.from)||rb(t.from)?this.file=t.from:this.file=rw(t.from)),rC&&rx){var r=new rm(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+rk(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":W(t))==="object"){var i,o,s,a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new re(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new re(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(r_&&(i.input.url=r_(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[rS])a=this[rS];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[rS]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,u,c=a.length-2;o<c;)if(e<a[u=o+(c-o>>1)])c=u-1;else if(e>=a[u+1])o=u+1;else{o=u;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:rw(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=rb(a.source)?r_(a.source):new URL(a.source,this.map.consumer().sourceRoot||r_(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(ry)u.file=ry(o);else throw Error("file: protocol is not available in this PostCSS build");var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=j({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();rI.default=rI,t7&&t7.registerInput&&t7.registerInput(rI);var rO=t7.SourceMapConsumer,rE=t7.SourceMapGenerator,rM=t7.dirname,rA=t7.relative,rT=t7.resolve,rR=t7.sep,rP=t7.pathToFileURL,rF=!!(rO&&rE),rL=!!(rM&&rT&&rA&&rR),rN=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||rM(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new rO(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),rL&&rF&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=rE.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new rE({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new rE({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(r.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=r.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};(!("decl"===u.type||"atrule"===u.type&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=r.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?rM(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=rM(rT(r,this.mapOpts.annotation)));var n=rA(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new rI(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return E.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(rP){var r=rP(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===rR&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),rD=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(ra);rD.default=rD;var rU=rt.isClean,rj=rt.my,rB=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),u=Y(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
11else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Y(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Y(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(s_(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Y(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,u=Y(e);!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new ru(e)]}else if(e.selector)e=[new sb(e)];else if(e.name)e=[new sw(e)];else if(e.text)e=[new rD(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[rj]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[rU]&&function e(t){if(t[rU]=!1,t.proxyOf.nodes)for(var r,n=Y(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Y(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=Y(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Y(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},U(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(ra);rB.registerParse=function(e){s_=e},rB.registerRule=function(e){sb=e},rB.registerAtRule=function(e){sw=e},rB.registerRoot=function(e){sk=e},rB.default=rB,rB.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sw.prototype):"rule"===e.type?Object.setPrototypeOf(e,sb.prototype):"decl"===e.type?Object.setPrototypeOf(e,ru.prototype):"comment"===e.type?Object.setPrototypeOf(e,rD.prototype):"root"===e.type&&Object.setPrototypeOf(e,sk.prototype),e[rj]=!0,e.nodes&&e.nodes.forEac
11h(function(e){rB.rebuild(e)})};var rq=function(e){function t(t){var r;return(r=e.call(this,j({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sS(new sx,this,e).stringify()},t}(rB);rq.registerLazyResult=function(e){sS=e},rq.registerProcessor=function(e){sx=e},rq.default=rq;var rz=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();rz.default=rz;var rV=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new rz(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}();rV.default=rV;var r$=/[\t\n\f\r "#'()/;[\\\]{}]/g,rW=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,rG=/.[\r\n"'(/\\]/,rH=/[\da-f]/i,rY=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(rB);rY.default=rY,rB.registerAtRule(rY);var rJ=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Y(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new sC(new sI,this,e).stringify()},t}(rB);rJ.registerLazyResult=function(e){sC=e},rJ.registerProcessor=function(e){sI=e},rJ.default=rJ,rB.registerRoot(rJ);var rZ={comma:function(e){return rZ.split(e,[","],!0)},space:function(e){return rZ.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};rZ.default=rZ;var rK=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return rZ.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(rB);rK.default=rK,rB.registerRule(rK);var rX=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,m];break;
11case 40:if(c=g.length?g.pop()[1]:"",l=p.charCodeAt(m+1),"url"===c&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=m;break}else y("bracket");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a)h=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||rG.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=m+1;break}else y("string");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a)h=["string",p.slice(m,n+1),m,n],m=n;break;case 64:r$.lastIndex=m+1,r$.test(p),n=0===r$.lastIndex?p.length-1:r$.lastIndex-2,h=["at-word",p.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,rH.test(p.charAt(n)))){for(;rH.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(m,n+1),m,n],m=n;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(n=p.indexOf("*/",m+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(m,n+1),m,n]):(rW.lastIndex=m+1,rW.test(p),n=0===rW.lastIndex?p.length-1:rW.lastIndex-2,h=["word",p.slice(m,n+1),m,n],g.push(h)),m=n}return m++,h}},position:function(){return m}}},rQ={empty:!0,space:!0},r0=function(){function e(e){this.input=e,this.root=new rJ,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new rY;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=Y(e.entries());!(n=o()).done;){var s=n.value,a=s[0],u=s[1];if("("===(t=u[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(u);r=u}return!1},t.comment=function(e){var t=new rD;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=rX(this.input)},t.decl=function(e,t){var r,n,i=new ru;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
11e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(r=e[u])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new rK;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",rQ[a]||rQ[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new rK;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function r1(e,t){var r=new r0(new rI(e,t));try{r.parse()}catch(e){throw e}return r.root}r1.default=r1,rB.registerParse(r1);var r2=rt.isClean,r3=rt.my,r4={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},r5={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},r6={Once:!0,postcssPlugin:!0,prepare:!0};function r9(e){return(void 0===e?"undefined":W(e))==="object"&&"function"==typeof e.then}function r8(e){var t=!1,r=r4[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function r7(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:r8(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}
11function ne(e){return e[r2]=!1,e.nodes&&e.nodes.forEach(function(e){return ne(e)}),e}var nt={},nr=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":W(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=ne(r);else if(z(r,e)||z(r,rV))i=ne(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=r1;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[r3]&&rB.rebuild(i)}this.result=new rV(t,i,n),this.helpers=j({},nt,{postcss:nt,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":W(e))==="object"&&e.prepare?j({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Y(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":W(i))==="object")for(var o in i){if(!r5[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!r6[o])if("object"===W(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return N(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return J(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!r9(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[r2])return[3,14];o[r2]=!0,s=[r7(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!r9(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw u=d.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return J(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=Y(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,Z(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":W(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(r9(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=ri;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new rN(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Y(this.plugins);!(e=t()).done;){var r=e.value;if(r9(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[r2];)n[r2]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
11if(r9(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[r2]){a[r2]=!0,e.push(r7(a));return}t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[r2]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[r2]=!0;for(var r,n=r8(e),i=Y(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[r2]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();nr.registerPostcss=function(e){nt=e},nr.default=nr,rJ.registerLazyResult(nr),rq.registerLazyResult(nr);var nn=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new rV(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new rN(ri,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],u=s[1];a&&(this.result.css=a),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=r1(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();nn.default=nn;var ni=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":W(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":W(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":W(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new nr(this,e,t):new nn(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function no(e,t){if(Array.isArray(e))return e.map(function(e){return no(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=i.value,a=j({},s,{__proto__:rI.prototype});a.map&&(a.map=j({},a.map,{__proto__:rm.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return no(e,t)})),n.source){var u=n.source,c=u.inputId;n.source=V(u,["inputId"]),null!=c&&(n.source.input=t[c])}if("root"===n.type)return new rJ(n);if("decl"===n.type)return new ru(n);if("rule"===n.type)return new rK(n);if("comment"===n.type)return new rD(n);if("atrule"===n.type)return new rY(n);else throw Error("Unknown node type: "+e.type)}function ns(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new ni(t)}ni.default=ni,rJ.registerProcessor(ni),rq.registerProcessor(ni),no.default=no,ns.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),O.default.env.LANG&&O.default.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new ni().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return ns([i(r)]).process(e,t)},i},ns.stringify=ri,ns.parse=r1,ns.fromJSON=no,ns.list=rZ,ns.comment=function(e){return new rD(e)},ns.atRule=function(e){return new rY(e)},ns.decl=function(e){return new ru(e)},ns.rule=function(e){return new rK(e)},ns.root=function(e){return new rJ(e)},ns.document=function(e){return new rq(e)},ns.CssSyntaxError=re,ns.Declaration=ru,ns.Container=rB,ns.Processor=ni,ns.Document=rq,ns.Comment=rD,ns.Warning=rz,ns.AtRule=rY,ns.Result=rV,ns.Input=rI,ns.Rule=rK,ns.Root=rJ,ns.Node=ra,nr.registerPostcss(ns),ns.default=ns;var na=ns&&ns.__esModule&&Object.prototype.hasOwnProperty.call(ns,"default")?ns.default:ns;na.stringify,na.fromJSON,na.plugin,na.parse,na.list,na.document,na.comment,na.atRule,na.rule,na.decl,na.root,na.CssSyntaxError,na.Declaration,na.Container,na.Processor,na.Document,na.Comment,na.Warning,na.AtRule,na.Result,na.Input,na.Rule,na.Root,na.Node;var nu=function(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t4(this,"parentElement",null),t4(this,"parentNode",null),t4(this,"ownerDocument"),t4(this,"firstChild",null),t4(this,"lastChild",null),t4(this,"previousSibling",null),t4(this,"nextSibling",null),t4(this,"ELEMENT_NODE",1),t4(this,"TEXT_NODE",3),t4(this,"nodeType"),t4(this,"nodeName"),t4(this,"RRNodeType")}var t=e.prototype;return t.contains=function(t){if(!z(t,e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1},t.appendChild=function(e){throw Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(e,t){throw Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(e){throw Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},U(e,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),e}(),nc={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},nl={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},nh={};function np(e){if(nh[e])return nh[e];var t=globalThis[e],r=t.prototype,n=e in nc?nc[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in nl?nl[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return nh[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;if(document.body.removeChild(a),!c)return r;return nh[e]=c}catch(e){return r}}var nd={};function nf(e,t,r){var n,i=e+"."+String(r);if(nd[i])return nd[i].call(t);var o=null==(n=Object.getOwnPropertyDescriptor(np(e),r))?void 0:n.get;return o?(nd[i]=o,o.call(t)):t[r]}var nm={};function ng(e,t,r){var n=e+"."+String(r);if(nm[n])return nm[n].bind(t);var i=np(e)[r];return"function"!=typeof i?t[r]:(nm[n]=i,i.bind(t))}function nv(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch(e){return function(){}}}var ny=function(e){return nf("Node",e,"childNodes")},n_=function(e){return nf("Node",e,"parentNode")},nb=function(e){return nf("Node",e,"parentElement")},nw=function(e){return nf("Node",e,"textContent")},nk=function(e,t){return ng("Node",e,"contains")(t)},nS=function(e){return ng("Node",e,"getRootNode")()},nx=function(e){return e&&"host"in e?nf("ShadowRoot",e,"host"):null},nC=function(e){return e&&"shadowRoot"in e?nf("Element",e,"shadowRoot"):null};function nI(e,t,r){void 0===r&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var nO="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.",nE={map:{},getId:function(){return console.error(nO),-1},getNode:function(){return console.error(nO),null},removeNodeFromMap:function(){console.error(nO)},has:function(){return console.error(nO),!1},reset:function(){console.error(nO)}};function nM(e,t,r){void 0===r&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,s=Array(o),a=0;a<o;a++)s[a]=arguments[a];var u=Date.now();i||!1!==r.leading||(i=u);var c=t-(u-i),l=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=u,e.apply(l,s)):n||!1===r.trailing||(n=setTimeout(function(){i=!1===r.leading?0:Date.now(),n=null,e.apply(l,s)},c))}}function nA(e,t,r,n,i){void 0===i&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);
11return i.Object.defineProperty(e,t,n?r:{set:function(e){var t=this;setTimeout(function(){r.set.call(t,e)},0),o&&o.set&&o.set.call(this,e)}}),function(){return nA(e,t,o||{},!0)}}"u">typeof window&&window.Proxy&&window.Reflect&&(nE=new Proxy(nE,{get:function(e,t,r){return"map"===t&&console.error(nO),Reflect.get(e,t,r)}}));var nT=Date.now;function nR(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:o.documentElement.scrollLeft||(null==o?void 0:o.body)&&(null==(t=nb(o.body))?void 0:t.scrollLeft)||(null==(r=null==o?void 0:o.body)?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==o?void 0:o.documentElement.scrollTop)||(null==o?void 0:o.body)&&(null==(n=nb(o.body))?void 0:n.scrollTop)||(null==(i=null==o?void 0:o.body)?void 0:i.scrollTop)||0}}function nP(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function nF(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function nL(e){return e?e.nodeType===e.ELEMENT_NODE?e:nb(e):null}function nN(e,t,r,n){if(!e)return!1;var i=nL(e);if(!i)return!1;try{if("string"==typeof t){if(i.classList.contains(t)||n&&null!==i.closest("."+t))return!0}else if(eB(i,t,n))return!0}catch(e){}return!!(r&&(i.matches(r)||n&&null!==i.closest(r)))||!1}function nD(e,t,r){return"TITLE"===e.tagName&&!!r.headTitleMutations||-2===t.getId(e)}function nU(e){return!!e.changedTouches}function nj(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function nB(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function nq(e){return!!e&&(z(e,nu)&&"shadowRoot"in e?!!e.shadowRoot:!!nC(e))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nT=function(){return new Date().getTime()});var nz=function(){function e(){X(this,"id",1),X(this,"styleIDMap",new WeakMap),X(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(e){var t;return null!=(t=this.styleIDMap.get(e))?t:-1},t.has=function(e){return this.styleIDMap.has(e)},t.add=function(e,t){var r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)},t.getStyle=function(e){return this.idStyleMap.get(e)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},t.remove=function(e){var t=this.styleIDMap.get(e);return void 0!==t&&(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0)},e}();function nV(e){var t,r=null;return"getRootNode"in e&&(null==(t=nS(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&nx(nS(e))&&(r=nx(nS(e))),r}function n$(e){var t,r,n=e.ownerDocument;return!!n&&(nk(n,e)||!!(r=(t=e).ownerDocument)&&nk(r,function(e){for(var t,r=e;t=nV(r);)r=t;return r}(t)))}var nW=((o7=nW||{})[o7.DomContentLoaded=0]="DomContentLoaded",o7[o7.Load=1]="Load",o7[o7.FullSnapshot=2]="FullSnapshot",o7[o7.IncrementalSnapshot=3]="IncrementalSnapshot",o7[o7.Meta=4]="Meta",o7[o7.Custom=5]="Custom",o7[o7.Plugin=6]="Plugin",o7),nG=((se=nG||{})[se.Mutation=0]="Mutation",se[se.MouseMove=1]="MouseMove",se[se.MouseInteraction=2]="MouseInteraction",se[se.Scroll=3]="Scroll",se[se.ViewportResize=4]="ViewportResize",se[se.Input=5]="Input",se[se.TouchMove=6]="TouchMove",se[se.MediaInteraction=7]="MediaInteraction",se[se.StyleSheetRule=8]="StyleSheetRule",se[se.CanvasMutation=9]="CanvasMutation",se[se.Font=10]="Font",se[se.Log=11]="Log",se[se.Drag=12]="Drag",se[se.StyleDeclaration=13]="StyleDeclaration",se[se.Selection=14]="Selection",se[se.AdoptedStyleSheet=15]="AdoptedStyleSheet",se[se.CustomElement=16]="CustomElement",se),nH=((st=nH||{})[st.MouseUp=0]="MouseUp",st[st.MouseDown=1]="MouseDown",st[st.Click=2]="Click",st[st.ContextMenu=3]="ContextMenu",st[st.DblClick=4]="DblClick",st[st.Focus=5]="Focus",st[st.Blur=6]="Blur",st[st.TouchStart=7]="TouchStart",st[st.TouchMove_Departed=8]="TouchMove_Departed",st[st.TouchEnd=9]="TouchEnd",st[st.TouchCancel=10]="TouchCancel",st),nY=((sr=nY||{})[sr.Mouse=0]="Mouse",sr[sr.Pen=1]="Pen",sr[sr.Touch=2]="Touch",sr),nJ=((sn=nJ||{})[sn["2D"]=0]="2D",sn[sn.WebGL=1]="WebGL",sn[sn.WebGL2=2]="WebGL2",sn),nZ=((si=nZ||{})[si.Play=0]="Play",si[si.Pause=1]="Pause",si[si.Seeked=2]="Seeked",si[si.VolumeChange=3]="VolumeChange",si[si.RateChange=4]="RateChange",si),nK=((so=nK||{})[so.Document=0]="Document",so[so.DocumentType=1]="DocumentType",so[so.Element=2]="Element",so[so.Text=3]="Text",so[so.CDATA=4]="CDATA",so[so.Comment=5]="Comment",so),nX=function(){function e(){X(this,"length",0),X(this,"head",null),X(this,"tail",null)}var t=e.prototype;return t.get=function(e){if(e>=this.length)throw Error("Position outside of list range");for(var t=this.head,r=0;r<e;r++)t=(null==t?void 0:t.next)||null;return t},t.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){var r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){var n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++},t.removeNode=function(e){var t=e.__ln;
11this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},e}(),nQ=function(e,t){return e+"@"+t},n0=function(){function e(){var e=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(t){t.forEach(e.processMutation),e.emit()}),X(this,"emit",function(){if(!e.frozen&&!e.locked){for(var t=[],r=new Set,n=new nX,i=function(t){for(var r=t,n=-2;-2===n;)n=(r=r&&r.nextSibling)&&e.mirror.getId(r);return n},o=function(o){var s=n_(o);if(s&&n$(o)){var a=!1;if(o.nodeType===Node.TEXT_NODE){var u=s.tagName;if("TEXTAREA"===u)return;"STYLE"===u&&e.addedSet.has(s)&&(a=!0)}var c=ef(s)?e.mirror.getId(nV(o)):e.mirror.getId(s),l=i(o);if(-1===c||-1===l)return n.addNode(o);var h=eV(o,{doc:e.doc,mirror:e.mirror,blockClass:e.blockClass,blockSelector:e.blockSelector,maskTextClass:e.maskTextClass,maskTextSelector:e.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:e.inlineStylesheet,maskInputOptions:e.maskInputOptions,maskTextFn:e.maskTextFn,maskInputFn:e.maskInputFn,slimDOMOptions:e.slimDOMOptions,dataURLOptions:e.dataURLOptions,recordCanvas:e.recordCanvas,inlineImages:e.inlineImages,onSerialize:function(t){nj(t,e.mirror)&&e.iframeManager.addIframe(t),nB(t,e.mirror)&&e.stylesheetManager.trackLinkElement(t),nq(o)&&e.shadowDomManager.addShadowRoot(nC(o),e.doc)},onIframeLoad:function(t,r){e.iframeManager.attachIframe(t,r),e.shadowDomManager.observeAttachShadow(t)},onStylesheetLoad:function(t,r){e.stylesheetManager.attachLinkElement(t,r)},cssCaptured:a});h&&(t.push({parentId:c,nextId:l,node:h}),r.add(h.id))}};e.mapRemoves.length;){var s=e.mapRemoves.shift();e.cleanupRemovedNode(s),e.mirror.removeNodeFromMap(s)}for(var a,u=Y(e.movedSet);!(a=u()).done;){var c=a.value;(!n2(e.removesSubTreeCache,c,e.mirror)||e.movedSet.has(n_(c)))&&o(c)}for(var l,h=Y(e.addedSet);!(l=h()).done;){var p=l.value;n3(e.droppedSet,p)||n2(e.removesSubTreeCache,p,e.mirror)?n3(e.movedSet,p)?o(p):e.droppedSet.add(p):o(p)}for(var d=null;n.length;){var f=null;if(d){var m=e.mirror.getId(n_(d.value)),g=i(d.value);-1!==m&&-1!==g&&(f=d)}if(!f)for(var v=n.tail;v;){var y=v;if(v=v.previous,y){var _=e.mirror.getId(n_(y.value));if(-1===i(y.value))continue;if(-1!==_){f=y;break}var b=n_(y.value);if(b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var w=nx(b);if(-1!==e.mirror.getId(w)){f=y;break}}}}if(!f){for(;n.head;)n.removeNode(n.head.value);break}d=f.previous,n.removeNode(f.value),o(f.value)}var k={texts:e.texts.map(function(t){var r=t.node,n=n_(r);return n&&"TEXTAREA"===n.tagName&&e.genTextAreaValueMutation(n),{id:e.mirror.getId(r),value:t.value}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),attributes:e.attributes.map(function(t){var r=t.attributes;if("string"==typeof r.style){var n=JSON.stringify(t.styleDiff),i=JSON.stringify(t._unchangedStyles);n.length<r.style.length&&(n+i).split("var(").length===r.style.split("var(").length&&(r.style=t.styleDiff)}return{id:e.mirror.getId(t.node),attributes:r}}).filter(function(e){return!r.has(e.id)}).filter(function(t){return e.mirror.has(t.id)}),removes:e.removes,adds:t};(k.texts.length||k.attributes.length||k.removes.length||k.adds.length)&&(e.texts=[],e.attributes=[],e.attributeMap=new WeakMap,e.removes=[],e.addedSet=new Set,e.movedSet=new Set,e.droppedSet=new Set,e.removesSubTreeCache=new Set,e.movedMap={},e.mutationCb(k))}}),X(this,"genTextAreaValueMutation",function(t){var r=e.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(r),e.attributeMap.set(t,r));var n=Array.from(ny(t),function(e){return nw(e)||""}).join("");r.attributes.value=e_({element:t,maskInputOptions:e.maskInputOptions,tagName:t.tagName,type:ek(t),value:n,maskInputFn:e.maskInputFn})}),X(this,"processMutation",function(t){if(!nD(t.target,e.mirror,e.slimDOMOptions))switch(t.type){case"characterData":var r=nw(t.target);nN(t.target,e.blockClass,e.blockSelector,!1)||r===t.oldValue||e.texts.push({value:eq(t.target,e.maskTextClass,e.maskTextSelector,!0)&&r?e.maskTextFn?e.maskTextFn(r,nL(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break;case"attributes":var n=t.target,i=t.attributeName,o=t.target.getAttribute(i);if("value"===i){var s=ek(n);o=e_({element:n,maskInputOptions:e.maskInputOptions,tagName:n.tagName,type:s,value:o,maskInputFn:e.maskInputFn})}if(nN(t.target,e.blockClass,e.blockSelector,!1)||o===t.oldValue)return;var a=e.attributeMap.get(t.target);
11if("IFRAME"===n.tagName&&"src"===i&&!e.keepIframeSrcFn(o))if(n.contentDocument)return;else i="rr_src";if(a||(a={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},e.attributes.push(a),e.attributeMap.set(t.target,a)),"type"===i&&"INPUT"===n.tagName&&"password"===(t.oldValue||"").toLowerCase()&&n.setAttribute("data-rr-is-password","true"),!ej(n.tagName,i))if(a.attributes[i]=eU(e.doc,eb(n.tagName),eb(i),o),"style"===i){if(!e.unattachedDoc)try{e.unattachedDoc=document.implementation.createHTMLDocument()}catch(t){e.unattachedDoc=e.doc}var u=e.unattachedDoc.createElement("span");t.oldValue&&u.setAttribute("style",t.oldValue);for(var c,l=Y(Array.from(n.style));!(c=l()).done;){var h=c.value,p=n.style.getPropertyValue(h),d=n.style.getPropertyPriority(h);p!==u.style.getPropertyValue(h)||d!==u.style.getPropertyPriority(h)?""===d?a.styleDiff[h]=p:a.styleDiff[h]=[p,d]:a._unchangedStyles[h]=[p,d]}for(var f,m=Y(Array.from(u.style));!(f=m()).done;){var g=f.value;""===n.style.getPropertyValue(g)&&(a.styleDiff[g]=!1)}}else"open"===i&&"DIALOG"===n.tagName&&(n.matches("dialog:modal")?a.attributes.rr_open_mode="modal":a.attributes.rr_open_mode="non-modal");break;case"childList":if(nN(t.target,e.blockClass,e.blockSelector,!0))return;if("TEXTAREA"===t.target.tagName)return void e.genTextAreaValueMutation(t.target);t.addedNodes.forEach(function(r){return e.genAdds(r,t.target)}),t.removedNodes.forEach(function(r){var n=e.mirror.getId(r),i=ef(t.target)?e.mirror.getId(nx(t.target)):e.mirror.getId(t.target);nN(t.target,e.blockClass,e.blockSelector,!1)||nD(r,e.mirror,e.slimDOMOptions)||-1===e.mirror.getId(r)||(e.addedSet.has(r)?(n1(e.addedSet,r),e.droppedSet.add(r)):e.addedSet.has(t.target)&&-1===n||function e(t,r){if(ef(t))return!1;var n=r.getId(t);if(!r.has(n))return!0;var i=n_(t);return(!i||i.nodeType!==t.DOCUMENT_NODE)&&(!i||e(i,r))}(t.target,e.mirror)||(e.movedSet.has(r)&&e.movedMap[nQ(n,i)]?n1(e.movedSet,r):(e.removes.push({parentId:i,id:n,isShadow:!!(ef(t.target)&&em(t.target))||void 0}),function(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),ny(n).forEach(function(e){return r.push(e)}))}}(r,e.removesSubTreeCache))),e.mapRemoves.push(r))})}}),X(this,"genAdds",function(t,r){if(!e.processedNodeManager.inOtherBuffer(t,e)&&!(e.addedSet.has(t)||e.movedSet.has(t))){if(e.mirror.hasNode(t)){if(nD(t,e.mirror,e.slimDOMOptions))return;e.movedSet.add(t);var n=null;r&&e.mirror.hasNode(r)&&(n=e.mirror.getId(r)),n&&-1!==n&&(e.movedMap[nQ(e.mirror.getId(t),n)]=!0)}else e.addedSet.add(t),e.droppedSet.delete(t);!nN(t,e.blockClass,e.blockSelector,!1)&&(ny(t).forEach(function(t){return e.genAdds(t)}),nq(t)&&ny(nC(t)).forEach(function(r){e.processedNodeManager.add(r,e),e.genAdds(r,t)}))}}),X(this,"cleanupRemovedNode",function(t){if("IFRAME"===t.nodeName)try{e.iframeManager.removeIframe(t)}catch(e){}else try{e.stylesheetManager.cleanupStylesheetsForRemovedNode(t)}catch(e){}t.childNodes.forEach(function(t){e.cleanupRemovedNode(t)})})}var t=e.prototype;return t.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(r){t[r]=e[r]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},t.getDoc=function(){return this.doc},e}();function n1(e,t){e.delete(t),ny(t).forEach(function(t){return n1(e,t)})}function n2(e,t,r){var n,i;return 0!==e.size&&(n=e,!!(i=n_(t))&&n.has(i))}function n3(e,t){return 0!==e.size&&function e(t,r){var n=n_(r);return!!n&&(!!t.has(n)||e(t,n))}(e,t)}var n4=function(e){return sO?function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];try{return e.apply(void 0,[].concat(r))}catch(e){if(sO&&!0===sO(e))return;throw e}}:e},n5=[];function n6(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch(e){}return e&&e.target}function n9(e,t){var r=new n0;
11n5.push(r),r.init(e);var n=new(np("MutationObserver")).constructor(n4(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function n8(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;return nI("scroll",n4(nM(n4(function(e){var s=n6(e);if(!(!s||nN(s,i,o,!0))){var a=n.getId(s);if(s===r&&r.defaultView){var u=nR(r.defaultView);t({id:a,x:u.left,y:u.top})}else t({id:a,x:s.scrollLeft,y:s.scrollTop})}}),s.scroll||100)),r)}var n7=["INPUT","TEXTAREA","SELECT"],ie=new WeakMap;function it(e){var t=[];if(is("CSSGroupingRule")&&z(e.parentRule,CSSGroupingRule)||is("CSSMediaRule")&&z(e.parentRule,CSSMediaRule)||is("CSSSupportsRule")&&z(e.parentRule,CSSSupportsRule)||is("CSSConditionRule")&&z(e.parentRule,CSSConditionRule)){var r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){var n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function ir(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function ii(e,t){var r,n,i,o=e.mirror,s=e.stylesheetManager,a=null;a="#document"===t.nodeName?o.getId(t):o.getId(nx(t));var u="#document"===t.nodeName?null==(r=t.defaultView)?void 0:r.Document:null==(i=null==(n=t.ownerDocument)?void 0:n.defaultView)?void 0:i.ShadowRoot,c=(null==u?void 0:u.prototype)?Object.getOwnPropertyDescriptor(null==u?void 0:u.prototype,"adoptedStyleSheets"):void 0;return null!==a&&-1!==a&&u&&c?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var e;return null==(e=c.get)?void 0:e.call(this)},set:function(e){var t,r=null==(t=c.set)?void 0:t.call(this,e);if(null!==a&&-1!==a)try{s.adoptStyleSheets(e,a)}catch(e){}return r}}),n4(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})})):function(){}}function io(e,t){void 0===t&&(t={});var r=e.doc.defaultView;if(!r)return function(){};d=t,f=e.mutationCb,m=e.mousemoveCb,g=e.mouseInteractionCb,v=e.scrollCb,y=e.viewportResizeCb,_=e.inputCb,b=e.mediaInteractionCb,w=e.styleSheetRuleCb,k=e.styleDeclarationCb,S=e.canvasMutationCb,x=e.fontCb,C=e.selectionCb,I=e.customElementCb,e.mutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mutation&&d.mutation.apply(d,[].concat(t)),f.apply(void 0,[].concat(t))},e.mousemoveCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mousemove&&d.mousemove.apply(d,[].concat(t)),m.apply(void 0,[].concat(t))},e.mouseInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mouseInteraction&&d.mouseInteraction.apply(d,[].concat(t)),g.apply(void 0,[].concat(t))},e.scrollCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.scroll&&d.scroll.apply(d,[].concat(t)),v.apply(void 0,[].concat(t))},e.viewportResizeCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.viewportResize&&d.viewportResize.apply(d,[].concat(t)),y.apply(void 0,[].concat(t))},e.inputCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.input&&d.input.apply(d,[].concat(t)),_.apply(void 0,[].concat(t))},e.mediaInteractionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.mediaInteaction&&d.mediaInteaction.apply(d,[].concat(t)),b.apply(void 0,[].concat(t))},e.styleSheetRuleCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleSheetRule&&d.styleSheetRule.apply(d,[].concat(t)),w.apply(void 0,[].concat(t))},e.styleDeclarationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.styleDeclaration&&d.styleDeclaration.apply(d,[].concat(t)),k.apply(void 0,[].concat(t))},e.canvasMutationCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.canvasMutation&&d.canvasMutation.apply(d,[].concat(t)),S.apply(void 0,[].concat(t))},e.fontCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.font&&d.font.apply(d,[].concat(t)),x.apply(void 0,[].concat(t))},e.selectionCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.selection&&d.selection.apply(d,[].concat(t)),C.apply(void 0,[].concat(t))},e.customElementCb=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];d.customElement&&d.customElement.apply(d,[].concat(t)),I.apply(void 0,[].concat(t))},e.recordDOM&&(es=n9(e,e.doc));var n=function(e){var t,r=e.mousemoveCb,n=e.sampling,i=e.doc,o=e.mirror;if(!1===n.mousemove)return function(){};var s="number"==typeof n.mousemove?n.mousemove:50,a="number"==typeof n.mousemoveCallback?n.mousemoveCallback:500,u=[],c=nM(n4(function(e){var n=Date.now()-t;r(u.map(function(e){return e.timeOffset-=n,e}),e),u=[],t=null}),a),l=n4(nM(n4(function(e){var r=n6(e),n=nU(e)?e.changedTouches[0]:e,i=n.clientX,s=n.clientY;t||(t=nT()),u.push({x:i,y:s,id:o.getId(r),timeOffset:nT()-t}),c("u">typeof DragEvent&&z(e,DragEvent)?nG.Drag:z(e,MouseEvent)?nG.MouseMove:nG.TouchMove)}),s,{trailing:!1}
11)),h=[nI("mousemove",l,i),nI("touchmove",l,i),nI("drag",l,i)];return n4(function(){h.forEach(function(e){return e()})})}(e),i=function(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.sampling;if(!1===s.mouseInteraction)return function(){};var a=!0===s.mouseInteraction||void 0===s.mouseInteraction?{}:s.mouseInteraction,u=[],c=null;return Object.keys(nH).filter(function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==a[e]}).forEach(function(e){var s=eb(e),a=function(r){var s=n6(r);if(!nN(s,i,o,!0)){var a=null,u=e;if("pointerType"in r){switch(r.pointerType){case"mouse":a=nY.Mouse;break;case"touch":a=nY.Touch;break;case"pen":a=nY.Pen}a===nY.Touch?nH[e]===nH.MouseDown?u="TouchStart":nH[e]===nH.MouseUp&&(u="TouchEnd"):nY.Pen}else nU(r)&&(a=nY.Touch);null!==a?(c=a,(u.startsWith("Touch")&&a===nY.Touch||u.startsWith("Mouse")&&a===nY.Mouse)&&(a=null)):nH[e]===nH.Click&&(a=c,c=null);var l=nU(r)?r.changedTouches[0]:r;if(l){var h=n.getId(s),p=l.clientX,d=l.clientY;n4(t)(j({type:nH[u],id:h,x:p,y:d},null!==a&&{pointerType:a}))}}};if(window.PointerEvent)switch(nH[e]){case nH.MouseDown:case nH.MouseUp:s=s.replace("mouse","pointer");break;case nH.TouchStart:case nH.TouchEnd:return}u.push(nI(s,a,r))}),n4(function(){u.forEach(function(e){return e()})})}(e),o=n8(e),s=(O={win:r},E=e.viewportResizeCb,M=O.win,A=-1,T=-1,nI("resize",n4(nM(n4(function(){var e=nP(),t=nF();(A!==e||T!==t)&&(E({width:Number(t),height:Number(e)}),A=e,T=t)}),200)),M)),a=function(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,s=e.ignoreClass,a=e.ignoreSelector,u=e.maskInputOptions,c=e.maskInputFn,l=e.sampling,h=e.userTriggeredOnInput;function p(e){var t=n6(e),n=e.isTrusted,l=t&&t.tagName;if((t&&"OPTION"===l&&(t=nb(t)),!(!t||!l||0>n7.indexOf(l)||nN(t,i,o,!0)))&&!(t.classList.contains(s)||a&&t.matches(a))){var p=t.value,f=!1,m=ek(t)||"";"radio"===m||"checkbox"===m?f=t.checked:(u[l.toLowerCase()]||u[m])&&(p=e_({element:t,maskInputOptions:u,tagName:l,type:m,value:p,maskInputFn:c})),d(t,h?{text:p,isChecked:f,userTriggered:n}:{text:p,isChecked:f});var g=t.name;"radio"===m&&g&&f&&r.querySelectorAll('input[type="radio"][name="'+g+'"]').forEach(function(e){if(e!==t){var r=e.value;d(e,h?{text:r,isChecked:!f,userTriggered:!1}:{text:r,isChecked:!f})}})}}function d(e,r){var i=ie.get(e);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){ie.set(e,r);var o=n.getId(e);n4(t)(j({},r,{id:o}))}}var f=("last"===l.input?["change"]:["input","change"]).map(function(e){return nI(e,n4(p),r)}),m=r.defaultView;if(!m)return function(){f.forEach(function(e){return e()})};var g=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),v=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return g&&g.set&&f.push.apply(f,[].concat(v.map(function(e){return nA(e[0],e[1],{set:function(){n4(p)({target:this,isTrusted:!1})}},!1,m)}))),n4(function(){f.forEach(function(e){return e()})})}(e),u=(R=e.mediaInteractionCb,P=e.blockClass,F=e.blockSelector,L=e.mirror,N=e.sampling,D=e.doc,B=[nI("play",(U=n4(function(e){return nM(n4(function(t){var r=n6(t);if(!(!r||nN(r,P,F,!0))){var n=r.currentTime,i=r.volume,o=r.muted,s=r.playbackRate,a=r.loop;R({type:e,id:L.getId(r),currentTime:n,volume:i,muted:o,playbackRate:s,loop:a})}}),N.media||500)}))(nZ.Play),D),nI("pause",U(nZ.Pause),D),nI("seeked",U(nZ.Seeked),D),nI("volumechange",U(nZ.VolumeChange),D),nI("ratechange",U(nZ.RateChange),D)],n4(function(){B.forEach(function(e){return e()})})),c=function(){},l=function(){},h=function(){},p=function(){};e.recordDOM&&(c=function(e,t){var r,n,i=e.styleSheetRuleCb,o=e.mirror,s=e.stylesheetManager,a=t.win;if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return function(){};var u=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(u,{apply:n4(function(e,t,r){var n=r[0],a=r[1],u=ir(t,o,s.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&i({id:c,styleId:l,adds:[{rule:n,index:a}]}),e.apply(t,r)}
11)}),a.CSSStyleSheet.prototype.addRule=function(e,t,r){return void 0===r&&(r=this.cssRules.length),a.CSSStyleSheet.prototype.insertRule.apply(this,[e+" { "+t+" }",r])};var c=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(c,{apply:n4(function(e,t,r){var n=r[0],a=ir(t,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,removes:[{index:n}]}),e.apply(t,r)})}),a.CSSStyleSheet.prototype.removeRule=function(e){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[e])},a.CSSStyleSheet.prototype.replace&&(r=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(r,{apply:n4(function(e,t,r){var n=r[0],a=ir(t,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,replace:n}),e.apply(t,r)})})),a.CSSStyleSheet.prototype.replaceSync&&(n=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(n,{apply:n4(function(e,t,r){var n=r[0],a=ir(t,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,replaceSync:n}),e.apply(t,r)})}));var l={};ia("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(ia("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),ia("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),ia("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));var h={};return Object.entries(l).forEach(function(e){var t=e[0],r=e[1];h[t]={insertRule:r.prototype.insertRule,deleteRule:r.prototype.deleteRule},r.prototype.insertRule=new Proxy(h[t].insertRule,{apply:n4(function(e,t,r){var n=r[0],a=r[1],u=ir(t.parentStyleSheet,o,s.styleMirror),c=u.id,l=u.styleId;return(c&&-1!==c||l&&-1!==l)&&i({id:c,styleId:l,adds:[{rule:n,index:[].concat(it(t),[a||0])}]}),e.apply(t,r)})}),r.prototype.deleteRule=new Proxy(h[t].deleteRule,{apply:n4(function(e,t,r){var n=r[0],a=ir(t.parentStyleSheet,o,s.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&i({id:u,styleId:c,removes:[{index:[].concat(it(t),[n])}]}),e.apply(t,r)})})}),n4(function(){a.CSSStyleSheet.prototype.insertRule=u,a.CSSStyleSheet.prototype.deleteRule=c,r&&(a.CSSStyleSheet.prototype.replace=r),n&&(a.CSSStyleSheet.prototype.replaceSync=n),Object.entries(l).forEach(function(e){var t=e[0],r=e[1];r.prototype.insertRule=h[t].insertRule,r.prototype.deleteRule=h[t].deleteRule})})}(e,{win:r}),l=ii(e,e.doc),q=e.styleDeclarationCb,V=e.mirror,$=e.ignoreCSSAttributes,W=e.stylesheetManager,H=(G=({win:r}).win).CSSStyleDeclaration.prototype.setProperty,G.CSSStyleDeclaration.prototype.setProperty=new Proxy(H,{apply:n4(function(e,t,r){var n,i=r[0],o=r[1],s=r[2];if($.has(i))return H.apply(t,[i,o,s]);var a=ir(null==(n=t.parentRule)?void 0:n.parentStyleSheet,V,W.styleMirror),u=a.id,c=a.styleId;return(u&&-1!==u||c&&-1!==c)&&q({id:u,styleId:c,set:{property:i,value:o,priority:s},index:it(t.parentRule)}),e.apply(t,r)})}),J=G.CSSStyleDeclaration.prototype.removeProperty,G.CSSStyleDeclaration.prototype.removeProperty=new Proxy(J,{apply:n4(function(e,t,r){var n,i=r[0];if($.has(i))return J.apply(t,[i]);var o=ir(null==(n=t.parentRule)?void 0:n.parentStyleSheet,V,W.styleMirror),s=o.id,a=o.styleId;return(s&&-1!==s||a&&-1!==a)&&q({id:s,styleId:a,remove:{property:i},index:it(t.parentRule)}),e.apply(t,r)})}),h=n4(function(){G.CSSStyleDeclaration.prototype.setProperty=H,G.CSSStyleDeclaration.prototype.removeProperty=J}),e.collectFonts&&(p=function(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,r){var n=new s(e,t,r);return o.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};var a=nv(r.fonts,"add",function(e){return function(r){return setTimeout(n4(function(){var e=o.get(r);e&&(t(e),o.delete(r))}),0),e.apply(this,[r])}});return i.push(function(){n.FontFace=s}),i.push(a),n4(function(){i.forEach(function(e){return e()})})}(e)));for(var d,f,m,g,v,y,_,b,w,k,S,x,C,I,O,E,M,A,T,R,P,F,L,N,D,U,B,q,V,$,W,G,H,J,Z,K,X,Q,ee,et,er,en,ei,eo,es,ea,eu=(Z=e.doc,K=e.mirror,X=e.blockClass,Q=e.blockSelector,ee=e.selectionCb,et=!0,(er=n4(function(){var e=Z.getSelection();if(e&&(!et||null==e||!e.isCollapsed)){et=e.isCollapsed||!1;for(var t=[],r=e.rangeCount||0,n=0;n<r;n++){var i=e.getRangeAt(n),o=i.startContainer,s=i.startOffset,a=i.endContainer,u=i.endOffset;nN(o,X,Q,!0)||nN(a,X,Q,!0)||t.push({start:K.getId(o),startOffset:s,end:K.getId(a),endOffset:u})}ee({ranges:t})}}))(),nI("selectionchange",er)),ec=(en=e.doc,ei=e.customElementCb,(eo=en.defaultView)&&eo.customElements?nv(eo.customElements,"define",function(e){return function(t,r,n){try{ei({define:{name:t}})}catch(e){console.warn("Custom element callback failed for "+t)}return e.apply(this,[t,r,n])}}):function(){}),el=[],eh=Y(e.plugins);!(ea=eh()).done;){var ep=ea.value;el.push(ep.observer(ep.callback,r,ep.options))}
11return n4(function(){n5.forEach(function(e){return e.reset()}),null==es||es.disconnect(),n(),i(),o(),s(),a(),u(),c(),l(),h(),p(),eu(),ec(),el.forEach(function(e){return e()})})}function is(e){return void 0!==window[e]}function ia(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}for(var iu=function(){function e(e){X(this,"iframeIdToRemoteIdMap",new WeakMap),X(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}var t=e.prototype;return t.getId=function(e,t,r,n){var i=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),s=i.get(t);return s||(s=this.generateIdFn(),i.set(t,s),o.set(s,t)),s},t.getIds=function(e,t){var r=this,n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return t.map(function(t){return r.getId(e,t,n,i)})},t.getRemoteId=function(e,t,r){var n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;var i=n.get(t);return i||-1},t.getRemoteIds=function(e,t){var r=this,n=this.getRemoteIdToIdMap(e);
vendor: 1,534 bytes, line 11
11return t.map(function(t){return r.getRemoteId(e,t,n)})},t.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},t.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},t.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},e}(),ic=function(){function e(e){X(this,"iframes",new WeakMap),X(this,"crossOriginIframeMap",new WeakMap),X(this,"crossOriginIframeMirror",new iu(eR)),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=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iu(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}
11,t.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},t.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},t.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},t.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var r=this.iframeObserverCleanupMap.get(e);if(r){try{r()}catch(e){}this.iframeObserverCleanupMap.delete(e)}},t.addLoadListener=function(e){this.loadListener=e},t.attachIframe=function(e,t){var r,n;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&(null==(r=e.contentWindow)||r.addEventListener("message",this.handleMessage.bind(this))),null==(n=this.loadListener)||n.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},t.handleMessage=function(e){if("rrweb"===e.data.type&&e.origin===e.data.origin&&e.source){var t=this.crossOriginIframeMap.get(e.source);if(t){var r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}}},t.transformCrossOriginEvent=function(e,t){var r,n=this;switch(t.type){case nW.FullSnapshot:this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var i=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,i),this.patchRootIdOnNode(t.data.node,i),{timestamp:t.timestamp,type:nW.IncrementalSnapshot,data:{source:nG.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case nW.Meta:case nW.Load:case nW.DomContentLoaded:break;case nW.Plugin:return t;case nW.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case nW.IncrementalSnapshot:switch(t.data.source){case nG.Mutation:return t.data.adds.forEach(function(t){n.replaceIds(t,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(t.node,e);var r=n.crossOriginIframeRootIdMap.get(e);r&&n.patchRootIdOnNode(t.node,r)}),t.data.removes.forEach(function(t){n.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(function(t){n.replaceIds(t,e,["id"])}),t.data.texts.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nG.Drag:case nG.TouchMove:case nG.MouseMove:return t.data.positions.forEach(function(t){n.replaceIds(t,e,["id"])}),t;case nG.ViewportResize:return!1;case nG.MediaInteraction:case nG.MouseInteraction:case nG.Scroll:case nG.CanvasMutation:case nG.Input:return this.replaceIds(t.data,e,["id"]),t;case nG.StyleSheetRule:case nG.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case nG.Font:return t;case nG.Selection:return t.data.ranges.forEach(function(t){n.replaceIds(t,e,["start","end"])}),t;case nG.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),null==(r=t.data.styles)||r.forEach(function(t){n.replaceStyleIds(t,e,["styleId"])}),t}}return!1},t.replace=function(e,t,r,n){for(var i,o=Y(n);!(i=o()).done;){var s=i.value;(Array.isArray(t[s])||"number"==typeof t[s])&&(Array.isArray(t[s])?t[s]=e.getIds(r,t[s]):t[s]=e.getId(r,t[s]))}return t},t.replaceIds=function(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)},t.replaceStyleIds=function(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)},t.replaceIdOnNode=function(e,t){var r=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(e){r.replaceIdOnNode(e,t)})},t.patchRootIdOnNode=function(e,t){var r=this;e.type===nK.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(e){r.patchRootIdOnNode(e,t)})},e}(),il=function(){function e(e){X(this,"shadowDoms",new WeakSet),X(this,"mutationCb"),X(this,"scrollCb"),X(this,"bypassOptions"),X(this,"mirror"),X(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(e,t){var r=this;if(em(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var n=n9(j({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return n.disconnect()}),this.restoreHandlers.push(n8(j({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&r.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,r.mirror.getId(nx(e))),r.restoreHandlers.push(ii({mirror:r.mirror,stylesheetManager:r.bypassOptions.stylesheetManager},e))},0)}},t.observeAttachShadow=function(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},t.patchAttachShadow=function(e,t){var r=this;this.restoreHandlers.push(nv(e.prototype,"attachShadow",function(e){return function(n){var i=e.call(this,n),o=nC(this);return o&&n$(this)&&r.addShadowRoot(o,t),i}}))}
11,t.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),ih="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ip="u"<typeof Uint8Array?[]:new Uint8Array(256),id=0;id<ih.length;id++)ip[ih.charCodeAt(id)]=id;var im=function(e){var t,r=new Uint8Array(e),n=r.length,i="";for(t=0;t<n;t+=3)i+=ih[r[t]>>2],i+=ih[(3&r[t])<<4|r[t+1]>>4],i+=ih[(15&r[t+1])<<2|r[t+2]>>6],i+=ih[63&r[t+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i},ig=new Map,iv=function(e,t,r){if(e&&(i_(e,t)||(void 0===e?"undefined":W(e))==="object")){var n,i=e.constructor.name,o=((n=ig.get(r))||(n=new Map,ig.set(r,n)),n.has(i)||n.set(i,[]),n.get(i)),s=o.indexOf(e);return -1===s&&(s=o.length,o.push(e)),s}},iy=function(e,t,r){return e.map(function(e){return function e(t,r,n){if(z(t,Array))return t.map(function(t){return e(t,r,n)});if(null===t);else if(z(t,Float32Array)||z(t,Float64Array)||z(t,Int32Array)||z(t,Uint32Array)||z(t,Uint8Array)||z(t,Uint16Array)||z(t,Int16Array)||z(t,Int8Array)||z(t,Uint8ClampedArray))return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(z(t,ArrayBuffer))return{rr_type:t.constructor.name,base64:im(t)};else if(z(t,DataView))return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(z(t,HTMLImageElement))return{rr_type:t.constructor.name,src:t.src};else if(z(t,HTMLCanvasElement))return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(z(t,ImageData))return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(i_(t,r)||(void 0===t?"undefined":W(t))==="object")return{rr_type:t.constructor.name,index:iv(t,r,n)};return t}(e,t,r)})},i_=function(e,t){return!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(function(e){return"function"==typeof t[e]}).find(function(r){return z(e,t[r])})};function ib(e,t,r,n){var i=[];try{var o=nv(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i){for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(!nN(this,t,r,!0)){var u="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(s[0]&&"object"===W(s[0])){var c=s[0];c.preserveDrawingBuffer||(c.preserveDrawingBuffer=!0)}else s.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[].concat([i],s))}});i.push(o)}catch(e){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){i.forEach(function(e){return e()})}}function iw(e,t,r,n,i,o){for(var s,a=[],u=Object.getOwnPropertyNames(e),c=Y(u);!(s=c()).done;)!function(){var u=s.value;if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{if("function"!=typeof e[u])return"continue";var c=nv(e,u,function(e){return function(){for(var s=arguments.length,a=Array(s),c=0;c<s;c++)a[c]=arguments[c];var l=e.apply(this,a);if(iv(l,o,this),"tagName"in this.canvas&&!nN(this.canvas,n,i,!0)){var h=iy(a,o,this);r(this.canvas,{type:t,property:u,args:h})}return l}});a.push(c)}catch(n){a.push(nA(e,u,{set:function(e){r(this.canvas,{type:t,property:u,args:[e],setter:!0})}}))}}();return a}var ik="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSA
11yKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",iS="u">typeof window&&window.Blob&&new Blob([Uint8Array.from(atob(ik),function(e){return e.charCodeAt(0)})],{type:"text/javascript;charset=utf-8"});function ix(e){var t;try{if(!(t=iS&&(window.URL||window.webkitURL).createObjectURL(iS)))throw"";var r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch(t){return new Worker("data:text/javascript;base64,"+ik,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var iC=function(){function e(e){var t=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(e,r){(t.rafStamps.invokeId&&t.rafStamps.latestId!==t.rafStamps.invokeId||!t.rafStamps.invokeId)&&(t.rafStamps.invokeId=t.rafStamps.latestId),t.pendingCanvasMutations.has(e)||t.pendingCanvasMutations.set(e,[]),t.pendingCanvasMutations.get(e).push(r)});var r=e.sampling,n=void 0===r?"all":r,i=e.win,o=e.blockClass,s=e.blockSelector,a=e.recordCanvas,u=e.dataURLOptions;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&"all"===n&&this.initCanvasMutationObserver(i,o,s),a&&"number"==typeof n&&this.initCanvasFPSObserver(n,i,o,s,{dataURLOptions:u})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(e,t,r,n,i){var o,s=this,a=ib(t,r,n,!0),u=new Map,c=new ix;c.onmessage=function(e){var t=e.data.id;if(u.set(t,!1),"base64"in e.data){var r=e.data,n=r.base64,i=r.type,o=r.width,a=r.height;s.mutationCb({id:t,type:nJ["2D"],commands:[{property:"clearRect",args:[0,0,o,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:i}]},0,0]}]})}};var l=1e3/e,h=0,p=function(){var e=[];return t.document.querySelectorAll("canvas").forEach(function(t){nN(t,r,n,!0)||e.push(t)}),e},d=function(e){if(h&&e-h<l){o=requestAnimationFrame(d);return}
11h=e,p().forEach(N(function(e){var t,r,n,o;return J(this,function(a){switch(a.label){case 0:if(r=s.mirror.getId(e),u.get(r)||0===e.width||0===e.height)return[2];return u.set(r,!0),["webgl","webgl2"].includes(e.__context)&&(null==(t=null==(n=e.getContext(e.__context))?void 0:n.getContextAttributes())?void 0:t.preserveDrawingBuffer)===!1&&n.clear(n.COLOR_BUFFER_BIT),[4,createImageBitmap(e)];case 1:return o=a.sent(),c.postMessage({id:r,bitmap:o,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[o]),[2]}})})),o=requestAnimationFrame(d)};o=requestAnimationFrame(d),this.resetObservers=function(){a(),cancelAnimationFrame(o)}},t.initCanvasMutationObserver=function(e,t,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var n,i,o=ib(e,t,r,!1),s=function(e,t,r,n){for(var i,o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),a=Y(s);!(i=a()).done;)!function(){var s=i.value;try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])return"continue";var a=nv(t.CanvasRenderingContext2D.prototype,s,function(i){return function(){for(var o=this,a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];return nN(this.canvas,r,n,!0)||setTimeout(function(){var r=iy(u,t,o);e(o.canvas,{type:nJ["2D"],property:s,args:r})},0),i.apply(this,u)}});o.push(a)}catch(r){var u=nA(t.CanvasRenderingContext2D.prototype,s,{set:function(t){e(this.canvas,{type:nJ["2D"],property:s,args:[t],setter:!0})}});o.push(u)}}();return function(){o.forEach(function(e){return e()})}}(this.processMutation.bind(this),e,t,r),a=(n=this.processMutation.bind(this),(i=[]).push.apply(i,[].concat(iw(e.WebGLRenderingContext.prototype,nJ.WebGL,n,t,r,e))),void 0!==e.WebGL2RenderingContext&&i.push.apply(i,[].concat(iw(e.WebGL2RenderingContext.prototype,nJ.WebGL2,n,t,r,e))),function(){i.forEach(function(e){return e()})});this.resetObservers=function(){o(),s(),a()}},t.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var e=this,t=function(r){e.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)},t.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,r){var n=e.mirror.getId(r);e.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(e,t){if(!this.frozen&&!this.locked){var r=this.pendingCanvasMutations.get(e);if(r&&-1!==t){var n=r.map(function(e){return e.type,V(e,["type"])}),i=r[0].type;this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations.delete(e)}}},e}(),iI=function(){function e(e){X(this,"trackedLinkElements",new WeakSet),X(this,"mutationCb"),X(this,"adoptedStyleSheetCb"),X(this,"styleMirror",new nz),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},t.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},t.adoptStyleSheets=function(e,t){if(0!==e.length){for(var r,n,i={id:t,styleIds:[]},o=[],s=Y(e);!(n=s()).done;)r=this,function(){var e=n.value,t=void 0;r.styleMirror.has(e)?t=r.styleMirror.getId(e):(t=r.styleMirror.add(e),o.push({styleId:t,rules:Array.from(e.rules||CSSRule,function(t,r){return{rule:ev(t,e.href),index:r}})})),i.styleIds.push(t)}();o.length>0&&(i.styles=o),this.adoptedStyleSheetCb(i)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE&&e.adoptedStyleSheets)for(var r,n=Y(e.adoptedStyleSheets);!(r=n()).done;){var i=r.value;this.styleMirror.remove(i)}"STYLE"===e.nodeName&&e.sheet&&this.styleMirror.remove(e.sheet),"LINK"===e.nodeName&&"stylesheet"===e.rel&&e.sheet&&this.styleMirror.remove(e.sheet),e.childNodes&&e.childNodes.forEac
11h(function(e){t.cleanupStylesheetsForRemovedNode(e)})}catch(e){}},t.trackStylesheetInLinkElement=function(e){},e}(),iO=function(){function e(){X(this,"nodeMap",new WeakMap),X(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(e,t){var r=this.nodeMap.get(e);return r&&Array.from(r).some(function(e){return e!==t})},t.add=function(e,t){var r=this;this.active||(this.active=!0,requestAnimationFrame(function(){r.nodeMap=new WeakMap,r.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},t.destroy=function(){},e}(),iE=!1;try{if(2!==Array.from([1],function(e){return 2*e})[0]){var iM=document.createElement("iframe");document.body.appendChild(iM),Array.from=(null==(su=iM.contentWindow)?void 0:su.Array.from)||Array.from,document.body.removeChild(iM)}}catch(e){console.debug("Unable to override Array.from",e)}var iA=new ey;function iT(e){void 0===e&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=void 0===i?"rr-block":i,s=e.blockSelector,a=void 0===s?null:s,u=e.ignoreClass,c=void 0===u?"rr-ignore":u,l=e.ignoreSelector,h=void 0===l?null:l,p=e.maskTextClass,d=void 0===p?"rr-mask":p,f=e.maskTextSelector,m=void 0===f?null:f,g=e.inlineStylesheet,v=void 0===g||g,y=e.maskAllInputs,_=e.maskInputOptions,b=e.slimDOMOptions,w=e.maskInputFn,k=e.maskTextFn,S=e.hooks,x=e.packFn,C=e.sampling,I=void 0===C?{}:C,O=e.dataURLOptions,E=void 0===O?{}:O,M=e.mousemoveWait,A=e.recordDOM,T=void 0===A||A,R=e.recordCanvas,P=void 0!==R&&R,F=e.recordCrossOriginIframes,L=void 0!==F&&F,N=e.allowedIframeOrigins,D=e.recordAfter,U=void 0===D?"DOMContentLoaded"===e.recordAfter?e.recordAfter:"load":D,B=e.userTriggeredOnInput,q=void 0!==B&&B,z=e.collectFonts,V=void 0!==z&&z,$=e.inlineImages,G=void 0!==$&&$,H=e.plugins,J=e.keepIframeSrcFn,Z=void 0===J?function(){return!1}:J,K=e.ignoreCSSAttributes,X=void 0===K?new Set([]):K;sO=e.errorHandler,L&&N&&N.length>0&&0===(es=function(e){if(!Array.isArray(e)||0===e.length)throw Error("[rrweb] allowedIframeOrigins must be a non-empty array of origin strings.");for(var t=new Set,r=0;r<e.length;r++){var n=e[r];if("string"!=typeof n)throw Error("[rrweb] allowedIframeOrigins["+r+"] must be a string, got "+(void 0===n?"undefined":W(n))+".");var i=function(e){try{var t=new URL(e).origin;return"null"!==t?t:null}catch(e){return null}}(n);i&&t.add(i)}return Object.freeze(t)}(N)).size&&(es=void 0);var Q=!L||window.parent===window,ee=!1;if(!Q)try{window.parent.document&&(ee=!1)}catch(e){ee=!0}if(Q&&!t)throw Error("emit function is required");if(!Q&&!ee)return function(){};void 0!==M&&void 0===I.mousemove&&(I.mousemove=M),iA.reset();var et=!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:void 0!==_?_:{password:!0},er=!0===b||"all"===b?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===b,headMetaDescKeywords:"all"===b,headTitleMutations:"all"===b}:b||{};void 0===eo&&(eo=window),"NodeList"in eo&&!eo.NodeList.prototype.forEach&&(eo.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in eo&&!eo.DOMTokenList.prototype.forEach&&(eo.DOMTokenList.prototype.forEach=Array.prototype.forEach);var en=0,ei=function(e){for(var t,r=Y(H||[]);!(t=r()).done;){var n=t.value;n.eventProcessor&&(e=n.eventProcessor(e))}return x&&!ee&&(e=x(e)),e};sE=function(e,i){if(e.timestamp=nT(),(null==(s=n5[0])?void 0:s.isFrozen())&&e.type!==nW.FullSnapshot&&(e.type!==nW.IncrementalSnapshot||e.data.source!==nG.Mutation)&&n5.forEach(function(e){return e.unfreeze()}),Q)null==t||t(ei(e),i);else if(ee){var o={type:"rrweb",event:ei(e),origin:window.location.origin,isCheckout:i};if(es)for(var s,a,u=Y(es);!(a=u()).done;){var c=a.value;window.parent.postMessage(o,c)}else window.parent.postMessage(o,"*")}if(e.type===nW.FullSnapshot)ea=e,en=0;else if(e.type===nW.IncrementalSnapshot){if(e.data.source===nG.Mutation&&e.data.isAttachIframe)return;en++;var l=n&&en>=n,h=r&&e.timestamp-ea.timestamp>r;(l||h)&&sM(!0)}};for(var eo,es,ea,eu,ec=function(e){sE({type:nW.IncrementalSnapshot,data:j({source:nG.Mutation},e)})},el=function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.Scroll},e)})},eh=function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.CanvasMutation},e)})},ep=new iI({mutationCb:ec,adoptedStyleSheetCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.AdoptedStyleSheet},e)})}}),ed=new ic({mirror:iA,mutationCb:ec,stylesheetManager:ep,recordCrossOriginIframes:L,wrappedEmit:sE}),ef=Y(H||[]);!(eu=ef()).done;){var em=eu.value;em.getMirror&&em.getMirror({nodeMirror:iA,crossOriginIframeMirror:ed.crossOriginIframeMirror,crossOriginIframeStyleMirror:ed.crossOriginIframeStyleMirror})}var eg=new iO;sA=new iC({recordCanvas:P,mutationCb:eh,win:window,blockClass:o,blockSelector:a,mirror:iA,sampling:I.canvas,dataURLOptions:E});var ev=new il({mutationCb:ec,scrollCb:el,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:v,maskInputOptions:et,dataURLOptions:E,maskTextFn:k,maskInputFn:w,recordCanvas:P,inlineImages:G,sampling:I,slimDOMOptions:er,iframeManager:ed,stylesheetManager:ep,canvasManager:sA,keepIframeSrcFn:Z,processedNodeManager:eg},mirror:iA});sM=function(e){if(void 0===e&&(e=!1),T){sE({type:nW.Meta,data:{href:window.location.href,width:nF(),height:nP()}}
11,e),ep.reset(),ev.init(),n5.forEach(function(e){return e.lock()});var t,r,n,i,s,u,c,l,h,p,f,g,y,_,b,S,x,C,I,O,M,A,R,F,L=(t=document,i=void 0===(n=(r={mirror:iA,blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:m,inlineStylesheet:v,maskAllInputs:et,maskTextFn:k,maskInputFn:w,slimDOM:er,dataURLOptions:E,recordCanvas:P,inlineImages:G,onSerialize:function(e){nj(e,iA)&&ed.addIframe(e),nB(e,iA)&&ep.trackLinkElement(e),nq(e)&&ev.addShadowRoot(nC(e),document)},onIframeLoad:function(e,t){ed.attachIframe(e,t),ev.observeAttachShadow(e)},onStylesheetLoad:function(e,t){ep.attachLinkElement(e,t)},keepIframeSrcFn:Z}).mirror)?new ey:n,s=r.blockClass,u=r.blockSelector,c=r.maskTextClass,l=r.maskTextSelector,h=r.inlineStylesheet,p=r.inlineImages,f=r.recordCanvas,y=void 0!==(g=r.maskAllInputs)&&g,_=r.maskTextFn,b=r.maskInputFn,x=void 0!==(S=r.slimDOM)&&S,C=r.dataURLOptions,I=r.preserveWhiteSpace,O=r.onSerialize,M=r.onIframeLoad,A=r.iframeLoadTimeout,R=r.onStylesheetLoad,eV(t,{doc:t,mirror:i,blockClass:void 0===s?"rr-block":s,blockSelector:void 0===u?null:u,maskTextClass:void 0===c?"rr-mask":c,maskTextSelector:void 0===l?null:l,skipChild:!1,inlineStylesheet:void 0===h||h,maskInputOptions:!0===y?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:!1===y?{password:!0}:y,maskTextFn:_,maskInputFn:b,slimDOMOptions:!0===x||"all"===x?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===x,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===x?{}:x,dataURLOptions:C,inlineImages:void 0!==p&&p,recordCanvas:void 0!==f&&f,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:M,iframeLoadTimeout:A,onStylesheetLoad:R,stylesheetLoadTimeout:r.stylesheetLoadTimeout,keepIframeSrcFn:void 0===(F=r.keepIframeSrcFn)?function(){return!1}:F,newlyAddedElement:!1}));if(!L)return console.warn("Failed to snapshot the document");sE({type:nW.FullSnapshot,data:{node:L,initialOffset:nR(window)}},e),n5.forEach(function(e){return e.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ep.adoptStyleSheets(document.adoptedStyleSheets,iA.getId(document))}};try{var e_=[],eb=function(e){var t;return n4(io)({mutationCb:ec,mousemoveCb:function(e,t){return sE({type:nW.IncrementalSnapshot,data:{source:t,positions:e}})},mouseInteractionCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.MouseInteraction},e)})},scrollCb:el,viewportResizeCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.ViewportResize},e)})},inputCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.Input},e)})},mediaInteractionCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.MediaInteraction},e)})},styleSheetRuleCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.StyleSheetRule},e)})},styleDeclarationCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.StyleDeclaration},e)})},canvasMutationCb:eh,fontCb:function(e){return sE({type:nW.IncrementalSnapshot,data:j({source:nG.Font},e)})},selectionCb:function(e){sE({type:nW.IncrementalSnapshot,data:j({source:nG.Selection},e)})},customElementCb:function(e){sE({type:nW.IncrementalSnapshot,data:j({source:nG.CustomElement},e)})},blockClass:o,ignoreClass:c,ignoreSelector:h,maskTextClass:d,maskTextSelector:m,maskInputOptions:et,inlineStylesheet:v,sampling:I,recordDOM:T,recordCanvas:P,inlineImages:G,userTriggeredOnInput:q,collectFonts:V,doc:e,maskInputFn:w,maskTextFn:k,keepIframeSrcFn:Z,blockSelector:a,slimDOMOptions:er,dataURLOptions:E,mirror:iA,iframeManager:ed,stylesheetManager:ep,shadowDomManager:ev,processedNodeManager:eg,canvasManager:sA,ignoreCSSAttributes:X,plugins:(null==(t=null==H?void 0:H.filter(function(e){return e.observer}))?void 0:t.map(function(e){return{observer:e.observer,options:e.options,callback:function(t){return sE({type:nW.Plugin,data:{plugin:e.name,payload:t}})}}}))||[]},S)};ed.addLoadListener(function(e){try{var t=e.contentDocument,r=eb(t);e_.push(r);var n=ed.getObserverCleanup(e);ed.setObserverCleanup(e,function(){if(n)try{n()}catch(e){}try{r();var e=e_.indexOf(r);-1!==e&&e_.splice(e,1);for(var i=n5.length-1;i>=0;i--)n5[i].getDoc()===t&&n5.splice(i,1)}catch(e){}})}catch(e){console.warn(e)}});var ew=function(){sM(),e_.push(eb(document)),iE=!0};return"interactive"===document.readyState||"complete"===document.readyState?ew():(e_.push(nI("DOMContentLoaded",function(){sE({type:nW.DomContentLoaded,data:{}}),"DOMContentLoaded"===U&&ew()})),e_.push(nI("load",function(){sE({type:nW.Load,data:{}}),"load"===U&&ew()},window))),function(){e_.forEach(function(e){try{e()}catch(e){String(e).toLowerCase().includes("cross-origin")||console.warn(e)}}),eg.destroy(),iE=!1,sO=void 0}}catch(e){console.warn(e)}}iT.addCustomEvent=function(e,t){if(!iE)throw Error("please add custom event after start recording");sE({type:nW.Custom,data:{tag:e,payload:t}}
11)},iT.freezePage=function(){n5.forEach(function(e){return e.freeze()})},iT.takeFullSnapshot=function(e){if(!iE)throw Error("please take full snapshot after start recording");sM(e)},iT.mirror=iA,(ss=sT||(sT={}))[ss.NotStarted=0]="NotStarted",ss[ss.Running=1]="Running",ss[ss.Stopped=2]="Stopped",iT.addCustomEvent,iT.freezePage,iT.takeFullSnapshot;var iR={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},iP={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},iF={};function iL(e){if(iF[e])return iF[e];var t=globalThis[e],r=t.prototype,n=e in iR?iR[e]:void 0,i=!!(n&&n.every(function(e){var t,n;return!!(null==(n=null==(t=Object.getOwnPropertyDescriptor(r,e))?void 0:t.get)?void 0:n.toString().includes("[native code]"))})),o=e in iP?iP[e]:void 0,s=!!(o&&o.every(function(e){var t;return"function"==typeof r[e]&&(null==(t=r[e])?void 0:t.toString().includes("[native code]"))}));if(i&&s&&!globalThis.Zone)return iF[e]=t.prototype,t.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return t.prototype;var c=u[e].prototype;if(document.body.removeChild(a),!c)return r;return iF[e]=c}catch(e){return r}}var iN={},iD=function(e){var t="Node",r=e,n="parentNode",i,o=t+"."+String(n);if(iN[o])return iN[o].call(r);var s=null==(i=Object.getOwnPropertyDescriptor(iL(t),n))?void 0:i.get;return s?(iN[o]=s,s.call(r)):r[n]},iU={exports:{}},ij=String,iB=function(){return{isColorSupported:!1,reset:ij,bold:ij,dim:ij,italic:ij,underline:ij,inverse:ij,hidden:ij,strikethrough:ij,black:ij,red:ij,green:ij,yellow:ij,blue:ij,magenta:ij,cyan:ij,white:ij,gray:ij,bgBlack:ij,bgRed:ij,bgGreen:ij,bgYellow:ij,bgBlue:ij,bgMagenta:ij,bgCyan:ij,bgWhite:ij}};iU.exports=iB(),iU.exports.createColors=iB;var iq=iU.exports,iz=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return z(this,e)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"}))),iV=function(e){function t(r,n,i,o,s,a){var u;return(u=e.call(this,r)||this).name="CssSyntaxError",u.reason=r,s&&(u.file=s),o&&(u.source=o),a&&(u.plugin=a),void 0!==n&&void 0!==i&&("number"==typeof n?(u.line=n,u.column=i):(u.line=n.line,u.column=n.column,u.endLine=i.line,u.endColumn=i.column)),u.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(u,t),u}q(t,e);var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(e){var t,r,n=this;if(!this.source)return"";var i=this.source;null==e&&(e=iq.isColorSupported),iz&&e&&(i=iz(i));var o=i.split(/\r?\n/),s=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;if(e){var c=iq.createColors(!0),l=c.bold,h=c.gray,p=c.red;t=function(e){return l(p(e))},r=function(e){return h(e)}}else t=r=function(e){return e};return o.slice(s,a).map(function(e,i){var o=s+1+i,a=" "+(" "+o).slice(-u)+" | ";if(o===n.line){var c=r(a.replace(/\d/g," "))+e.slice(0,n.column-1).replace(/[^\t]/g," ");return t(">")+r(a)+e+"\n "+c+t("^")}return" "+r(a)+e}).join("\n")},r.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},t}(G(Error));iV.default=iV;var i$={};i$.isClean=Symbol("isClean"),i$.my=Symbol("my");var iW={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1},iG=function(){function e(e){this.builder=e}var t=e.prototype;
11return t.atrule=function(e,t){var r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{var i=(e.raws.between||"")+(t?";":"");this.builder(r+n+i,e)}},t.beforeAfter=function(e,t){for(var r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose"),n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(r.includes("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s<i;s++)r+=o}return r},t.block=function(e,t){var r,n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},t.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n<e.nodes.length;n++){var i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==n||r)}},t.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)},t.decl=function(e,t){var r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)},t.document=function(e){this.body(e)},t.raw=function(e,t,r){if(r||(r=t),t&&void 0!==(n=e.raws[t]))return n;var n,i=e.parent;if("before"===r&&(!i||"root"===i.type&&i.first===e||i&&"document"===i.type))return"";if(!i)return iW[r];var o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[r])return o.rawCache[r];if("before"===r||"after"===r)return this.beforeAfter(e,r);var s,a="raw"+((s=r)[0].toUpperCase()+s.slice(1));return this[a]?n=this[a](o,e):o.walk(function(e){if(void 0!==(n=e.raws[t]))return!1}),void 0===n&&(n=iW[r]),o.rawCache[r]=n,n},t.rawBeforeClose=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return(t=e.raws.after).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawBeforeComment=function(e,t){var r;return e.walkComments(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeDecl=function(e,t){var r;return e.walkDecls(function(e){if(void 0!==e.raws.before)return(r=e.raws.before).includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1}),void 0===r?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r},t.rawBeforeOpen=function(e){var t;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},t.rawBeforeRule=function(e){var t;return e.walk(function(r){if(r.nodes&&(r.parent!==e||e.first!==r)&&void 0!==r.raws.before)return(t=r.raws.before).includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},t.rawColon=function(e){var t;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},t.rawEmptyBody=function(e){var t;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},t.rawIndent=function(e){var t;return e.raws.indent?e.raws.indent:(e.walk(function(r){var n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==r.raws.before){var i=r.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/\S/g,""),!1}}),t)},t.rawSemicolon=function(e){var t;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},t.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r},t.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},t.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},t.stringify=function(e,t){if(!this[e.type])throw Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},e}();function iH(e,t){new iG(t).stringify(e)}iG.default=iG,iH.default=iH;var iY=i$.isClean,iJ=i$.my,iZ=function(){function e(e){for(var t in void 0===e&&(e={}),this.raws={},this[iY]=!1,this[iJ]=!0,e)if("nodes"===t){this.nodes=[];for(var r,n=Y(e[t]);!(r=n()).done;){var i=r.value;"function"==typeof i.clone?this.append(i.clone()):this.append(i)}}else this[t]=e[t]}var t=e.prototype;return t.addToError=function(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){var t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,"$&"+t.input.from+":"+t.start.line+":"+t.start.column+"$&")}return e},t.after=function(e){return this.parent.insertAfter(this,e),this},t.assign=function(e){for(var t in void 0===e&&(e={}),e)this[t]=e[t];return this},t.before=function(e){return this.parent.insertBefore(this,e),this},t.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},t.clone=function(e){void 0===e&&(e={});var t=function e(t,r){var n=new t.constructor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"proxyCache"!==i){var o=t[i],s=void 0===o?"undefined":W(o);"parent"===i&&"object"===s?r&&(n[i]=r):"source"===i?n[i]=o:Array.isArray(o)?n[i]=o.map(function(t){return e(t,n)}):("object"===s&&null!==o&&(o=e(o)),n[i]=o)}return n}(this);for(var r in e)t[r]=e[r];return t},t.cloneAfter=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},t.cloneBefore=function(e){void 0===e&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},t.error=function(e,t){if(void 0===t&&(t={}),this.source){var r=this.rangeBy(t),n=r.end,i=r.start;return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new iV(e)},t.getProxyProcessor=function(){return{get:function(e,t){return"proxyOf"===t?e:"root"===t?function(){return e.root().toProxy()}:e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("prop"===t||"value"===t||"name"===t||"params"===t||"important"===t||"text"===t)&&e.markDirty(),!0)}}},t.markDirty=function(){if(this[iY]){this[iY]=!1;for(var e=this;e=e.parent;)e[iY]=!1}},t.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},t.positionBy=function(e,t){var r=this.source.start;if(e.index)r=this.positionInside(e.index,t);
11else if(e.word){var n=(t=this.toString()).indexOf(e.word);-1!==n&&(r=this.positionInside(n,t))}return r},t.positionInside=function(e,t){for(var r=t||this.toString(),n=this.source.start.column,i=this.source.start.line,o=0;o<e;o++)"\n"===r[o]?(n=1,i+=1):n+=1;return{column:n,line:i}},t.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},t.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var n=this.toString(),i=n.indexOf(e.word);-1!==i&&(t=this.positionInside(i,n),r=this.positionInside(i+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}},t.raw=function(e,t){return new iG().raw(this,e,t)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(this.parent){for(var n,i=this,o=!1,s=Y(t);!(n=s()).done;){var a=n.value;a===this?o=!0:o?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a)}o||this.remove()}return this},t.root=function(){for(var e=this;e.parent&&"document"!==e.parent.type;)e=e.parent;return e},t.toJSON=function(e,t){var r={},n=null==t;t=t||new Map;var i=0;for(var o in this)if(Object.prototype.hasOwnProperty.call(this,o)&&"parent"!==o&&"proxyCache"!==o){var s=this[o];if(Array.isArray(s))r[o]=s.map(function(e){return(void 0===e?"undefined":W(e))==="object"&&e.toJSON?e.toJSON(null,t):e});else if((void 0===s?"undefined":W(s))==="object"&&s.toJSON)r[o]=s.toJSON(null,t);else if("source"===o){var a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),r[o]={end:s.end,inputId:a,start:s.start}}else r[o]=s}return n&&(r.inputs=[].concat(t.keys()).map(function(e){return e.toJSON()})),r},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(e){void 0===e&&(e=iH),e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},t.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},U(e,[{key:"proxyOf",get:function(){return this}}]),e}();iZ.default=iZ;var iK=function(e){function t(t){var r;return t&&void 0!==t.value&&"string"!=typeof t.value&&(t=j({},t,{value:String(t.value)})),(r=e.call(this,t)||this).type="decl",r}return q(t,e),U(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||"$"===this.prop[0]}}]),t}(iZ);iK.default=iK;
11var iX=iz.SourceMapConsumer,iQ=iz.SourceMapGenerator,i0=iz.existsSync,i1=iz.readFileSync,i2=iz.dirname,i3=iz.join,i4=function(){function e(e,t){if(!1!==t.map){this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");var r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i2(this.mapFile)),n&&(this.text=n)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new iX(this.text)),this.consumerCache},t.decodeInline=function(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e)){var t;return t=e.substr(RegExp.lastMatch.length),E.Buffer.from(t,"base64").toString()}throw Error("Unsupported source map encoding "+e.match(/data:application\/json;([^,]+),/)[1])},t.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(e){return(void 0===e?"undefined":W(e))==="object"&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))},t.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}},t.loadFile=function(e){if(this.root=i2(e),i0(e))return this.mapFile=e,i1(e,"utf-8").toString().trim()},t.loadMap=function(e,t){if(!1===t)return!1;if(t)if("string"==typeof t)return t;else if("function"==typeof t){var r=t(e);if(r){var n=this.loadFile(r);if(!n)throw Error("Unable to load previous source map: "+r.toString());return n}}else if(z(t,iX))return iQ.fromSourceMap(t).toString();else if(z(t,iQ))return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error("Unsupported previous source map format: "+t.toString());else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){var i=this.annotation;return e&&(i=i3(i2(e),i)),this.loadFile(i)}},t.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}();i4.default=i4;var i5=iz.SourceMapConsumer,i6=iz.SourceMapGenerator,i9=iz.fileURLToPath,i8=iz.pathToFileURL,i7=iz.isAbsolute,oe=iz.resolve,ot=function(e){void 0===e&&(e=21);for(var t="",r=e;r--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t}
11,or=Symbol("fromOffsetCache"),on=!!(i5&&i6),oi=!!(oe&&i7),oo=function(){function e(e,t){if(void 0===t&&(t={}),null==e||(void 0===e?"undefined":W(e))==="object"&&!e.toString)throw Error("PostCSS received "+e+" instead of CSS string");if(this.css=e.toString(),"\uFEFF"===this.css[0]||"￾"===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!oi||/^\w+:\/\//.test(t.from)||i7(t.from)?this.file=t.from:this.file=oe(t.from)),oi&&on){var r=new i4(this.css,t);if(r.text){this.map=r;var n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+ot(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(e,t,r,n){if(void 0===n&&(n={}),t&&(void 0===t?"undefined":W(t))==="object"){var i,o,s,a=t,u=r;if("number"==typeof a.offset){var c=this.fromOffset(a.offset);t=c.line,r=c.col}else t=a.line,r=a.column;if("number"==typeof u.offset){var l=this.fromOffset(u.offset);o=l.line,s=l.col}else o=u.line,s=u.column}else if(!r){var h=this.fromOffset(t);t=h.line,r=h.col}var p=this.origin(t,r,o,s);return(i=p?new iV(e,void 0===p.endLine?p.line:{column:p.column,line:p.line},void 0===p.endLine?p.column:{column:p.endColumn,line:p.endLine},p.source,p.file,n.plugin):new iV(e,void 0===o?t:{column:r,line:t},void 0===o?r:{column:s,line:o},this.css,this.file,n.plugin)).input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(i8&&(i.input.url=i8(this.file).toString()),i.input.file=this.file),i},t.fromOffset=function(e){if(this[or])a=this[or];else{var t=this.css.split("\n");a=Array(t.length);for(var r=0,n=0,i=t.length;n<i;n++)a[n]=r,r+=t[n].length+1;this[or]=a}s=a[a.length-1];var o=0;if(e>=s)o=a.length-1;else for(var s,a,u,c=a.length-2;o<c;)if(e<a[u=o+(c-o>>1)])c=u-1;else if(e>=a[u+1])o=u+1;else{o=u;break}return{col:e-a[o]+1,line:o+1}},t.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:oe(this.map.consumer().sourceRoot||this.map.root||".",e)},t.origin=function(e,t,r,n){if(!this.map)return!1;var i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof r&&(i=s.originalPositionFor({column:n,line:r})),o=i7(a.source)?i8(a.source):new URL(a.source,this.map.consumer().sourceRoot||i8(this.map.mapFile));var u={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol)if(i9)u.file=i9(o);else throw Error("file: protocol is not available in this PostCSS build");var c=s.sourceContentFor(a.source);return c&&(u.source=c),u},t.toJSON=function(){for(var e={},t=0,r=["hasBOM","css","file","id"];t<r.length;t++){var n=r[t];null!=this[n]&&(e[n]=this[n])}return this.map&&(e.map=j({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},U(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();oo.default=oo,iz&&iz.registerInput&&iz.registerInput(oo);var os=iz.SourceMapConsumer,oa=iz.SourceMapGenerator,ou=iz.dirname,oc=iz.relative,ol=iz.resolve,oh=iz.sep,op=iz.pathToFileURL,od=!!(os&&oa),of=!!(ou&&ol&&oc&&oh),om=function(){function e(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map",t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},t.applyPrevMaps=function(){for(var e,t=Y(this.previous());!(e=t()).done;){var r=e.value,n=this.toUrl(this.path(r.file)),i=r.root||ou(r.file),o=void 0;!1===this.mapOpts.sourcesContent?(o=new os(r.text)).sourcesContent&&(o.sourcesContent=null):o=r.consumer(),this.map.applySourceMap(o,n,this.toUrl(this.path(i)))}},t.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),of&&od&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},t.generateMap=function(){if(this.root)this.generateString();else if(1===this.previous().length){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=oa.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new oa({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return(this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline())?[this.css]:[this.css,this.map]},t.generateString=function(){var e,t,r=this;this.css="",this.map=new oa({file:this.outputFile(),ignoreInvalidMapping:!0});var n=1,i=1,o="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,function(a,u,c){if(r.css+=a,u&&"end"!==c&&(s.generated.line=n,s.generated.column=i-1,u.source&&u.source.start?(s.source=r.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1):(s.source=o,s.original.line=1,s.original.column=0),r.map.addMapping(s)),(e=a.match(/\n/g))?(n+=e.length,t=a.lastIndexOf("\n"),i=a.length-t):i+=a.length,u&&"start"!==c){var l=u.parent||{raws:{}};(!("decl"===u.type||"atrule"===u.type&&!u.nodes)||u!==l.last||l.raws.semicolon)&&(u.source&&u.source.end?(s.source=r.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=n,s.generated.column=i-2):(s.source=o,s.original.line=1,s.original.column=0,s.generated.line=n,s.generated.column=i-1),r.map.addMapping(s))}})},t.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},t.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},t.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},t.path=function(e){if(this.mapOpts.absolute||60===e.charCodeAt(0)||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var r=this.opts.to?ou(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(r=ou(ol(r,this.mapOpts.annotation)));var n=oc(r,e);return this.memoizedPaths.set(e,n),n},t.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;e.previousMaps.includes(r)||e.previousMaps.push(r)}});else{var t=new oo(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},t.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.usesFileUrls?e.toFileUrl(n):e.toUrl(e.path(n));e.map.setSourceContent(i,r.source.input.css)}}});else if(this.css){var r=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(r,this.css)}},t.sourcePath=function(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))},t.toBase64=function(e){return E.Buffer.from(e).toString("base64")},t.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(op){var r=op(e).toString();return this.memoizedFileURLs.set(e,r),r}throw Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;"\\"===oh&&(e=e.replace(/\\/g,"/"));var r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r},e}(),og=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="comment",r}return q(t,e),t}(iZ);og.default=og;var ov=i$.isClean,oy=i$.my,o_=function(e){function t(){return e.apply(this,arguments)||this}q(t,e);var r=t.prototype;return r.append=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var n,i=Y(t);!(n=i()).done;)for(var o,s=n.value,a=this.normalize(s,this.last),u=Y(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.push(c)}return this.markDirty(),this},r.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes)for(var r,n=Y(this.nodes);!(r=n()).done;)r.value.cleanRaws(t)},r.each=function(e){if(this.proxyOf.nodes){for(var t,r,n=this.getIterator();this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],!1!==(r=e(this.proxyOf.nodes[t],t)));)this.indexes[n]+=1;return delete this.indexes[n],r}},r.every=function(e){return this.nodes.every(e)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var e=this.lastEach;return this.indexes[e]=0,e},r.getProxyProcessor=function(){return{get:function(e,t){if("proxyOf"===t)return e;if(!e[t])return e[t];if("each"===t||"string"==typeof t&&t.startsWith("walk"))return function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return e[t].apply(e,[].concat(n.map(function(e){return"function"==typeof e?function(t,r){return e(t.toProxy(),r)}:e})))};if("every"===t||"some"===t)return function(r){return e[t](function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.apply(void 0,[].concat([e.toProxy()],n))})};if("root"===t)return function(){return e.root().toProxy()};
11else if("nodes"===t)return e.nodes.map(function(e){return e.toProxy()});else if("first"===t||"last"===t)return e[t].toProxy();else return e[t]},set:function(e,t,r){return e[t]===r||(e[t]=r,("name"===t||"params"===t||"selector"===t)&&e.markDirty(),!0)}}},r.index=function(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))},r.insertAfter=function(e,t){var r,n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(var o,s=Y(i);!(o=s()).done;){var a=o.value;this.proxyOf.nodes.splice(n+1,0,a)}for(var u in this.indexes)n<(r=this.indexes[u])&&(this.indexes[u]=r+i.length);return this.markDirty(),this},r.insertBefore=function(e,t){var r,n=this.index(e),i=0===n&&"prepend",o=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(var s,a=Y(o);!(s=a()).done;){var u=s.value;this.proxyOf.nodes.splice(n,0,u)}for(var c in this.indexes)n<=(r=this.indexes[c])&&(this.indexes[c]=r+o.length);return this.markDirty(),this},r.normalize=function(e,r){var n=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(sR(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(var i,o=Y(e);!(i=o()).done;){var s=i.value;s.parent&&s.parent.removeChild(s,"ignore")}}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(var a,u=Y(e);!(a=u()).done;){var c=a.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new iK(e)]}else if(e.selector)e=[new sP(e)];else if(e.name)e=[new sF(e)];else if(e.text)e=[new og(e)];else throw Error("Unknown node type in node creation");return e.map(function(e){return e[oy]||t.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[ov]&&function e(t){if(t[ov]=!1,t.proxyOf.nodes)for(var r,n=Y(t.proxyOf.nodes);!(r=n()).done;)e(r.value)}(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/\S/g,"")),e.parent=n.proxyOf,e})},r.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];t=t.reverse();for(var n,i=Y(t);!(n=i()).done;){for(var o,s=n.value,a=this.normalize(s,this.first,"prepend").reverse(),u=Y(a);!(o=u()).done;){var c=o.value;this.proxyOf.nodes.unshift(c)}for(var l in this.indexes)this.indexes[l]=this.indexes[l]+a.length}return this.markDirty(),this},r.push=function(e){return e.parent=this,this.proxyOf.nodes.push(e),this},r.removeAll=function(){for(var e,t=Y(this.proxyOf.nodes);!(e=t()).done;)e.value.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(e){var t;for(var r in e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1),this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this.markDirty(),this},r.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&!t.props.includes(n.prop)||(!t.fast||n.value.includes(t.fast))&&(n.value=n.value.replace(e,r))}),this.markDirty(),this},r.some=function(e){return this.nodes.some(e)},r.walk=function(e){return this.each(function(t,r){var n;try{n=e(t,r)}catch(e){throw t.addToError(e)}return!1!==n&&t.walk&&(n=t.walk(e)),n})},r.walkAtRules=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("atrule"===r.type&&e.test(r.name))return t(r,n)}):this.walk(function(r,n){if("atrule"===r.type&&r.name===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("atrule"===e.type)return t(e,r)}))},r.walkComments=function(e){return this.walk(function(t,r){if("comment"===t.type)return e(t,r)})},r.walkDecls=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("decl"===r.type&&e.test(r.prop))return t(r,n)}):this.walk(function(r,n){if("decl"===r.type&&r.prop===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("decl"===e.type)return t(e,r)}))},r.walkRules=function(e,t){return t?z(e,RegExp)?this.walk(function(r,n){if("rule"===r.type&&e.test(r.selector))return t(r,n)}):this.walk(function(r,n){if("rule"===r.type&&r.selector===e)return t(r,n)}):(t=e,this.walk(function(e,r){if("rule"===e.type)return t(e,r)}))},U(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(iZ);o_.registerParse=function(e){sR=e},o_.registerRule=function(e){sP=e},o_.registerAtRule=function(e){sF=e},o_.registerRoot=function(e){sL=e},o_.default=o_,o_.rebuild=function(e){"atrule"===e.type?Object.setPrototypeOf(e,sF.prototype):"rule"===e.type?Object.setPrototypeOf(e,sP.prototype):"decl"===e.type?Object.setPrototypeOf(e,iK.prototype):"comment"===e.type?Object.setPrototypeOf(e,og.prototype):"root"===e.type&&Object.setPrototypeOf(e,sL.prototype),e[oy
11]=!0,e.nodes&&e.nodes.forEach(function(e){o_.rebuild(e)})};var ob=function(e){function t(t){var r;return(r=e.call(this,j({type:"document"},t))||this).nodes||(r.nodes=[]),r}return q(t,e),t.prototype.toResult=function(e){return void 0===e&&(e={}),new sN(new sD,this,e).stringify()},t}(o_);ob.registerLazyResult=function(e){sN=e},ob.registerProcessor=function(e){sD=e},ob.default=ob;var ow=function(){function e(e,t){if(void 0===t&&(t={}),this.type="warning",this.text=e,t.node&&t.node.source){var r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(var n in t)this[n]=t[n]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();ow.default=ow;var ok=function(){function e(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(e,t){void 0===t&&(t={}),!t.plugin&&this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new ow(e,t);return this.messages.push(r),r},t.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},U(e,[{key:"content",get:function(){return this.css}}]),e}();ok.default=ok;var oS=/[\t\n\f\r "#'()/;[\\\]{}]/g,ox=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,oC=/.[\r\n"'(/\\]/,oI=/[\da-f]/i,oO=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="atrule",r}q(t,e);var r=t.prototype;return r.append=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.append).call.apply(t,[].concat([this],n))},r.prepend=function(){for(var t,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return this.proxyOf.nodes||(this.nodes=[]),(t=e.prototype.prepend).call.apply(t,[].concat([this],n))},t}(o_);oO.default=oO,o_.registerAtRule(oO);var oE=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="root",r.nodes||(r.nodes=[]),r}q(t,e);var r=t.prototype;return r.normalize=function(t,r,n){var i=e.prototype.normalize.call(this,t);if(r){if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(var o,s=Y(i);!(o=s()).done;)o.value.raws.before=r.raws.before}return i},r.removeChild=function(t,r){var n=this.index(t);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),e.prototype.removeChild.call(this,t)},r.toResult=function(e){return void 0===e&&(e={}),new sU(new sj,this,e).stringify()},t}(o_);oE.registerLazyResult=function(e){sU=e},oE.registerProcessor=function(e){sj=e},oE.default=oE,o_.registerRoot(oE);var oM={comma:function(e){return oM.split(e,[","],!0)},space:function(e){return oM.split(e,[" ","\n"," "])},split:function(e,t,r){for(var n,i=[],o="",s=!1,a=0,u=!1,c="",l=!1,h=Y(e);!(n=h()).done;){var p=n.value;l?l=!1:"\\"===p?l=!0:u?p===c&&(u=!1):'"'===p||"'"===p?(u=!0,c=p):"("===p?a+=1:")"===p?a>0&&(a-=1):0===a&&t.includes(p)&&(s=!0),s?(""!==o&&i.push(o.trim()),o="",s=!1):o+=p}return(r||""!==o)&&i.push(o.trim()),i}};oM.default=oM;var oA=function(e){function t(t){var r;return(r=e.call(this,t)||this).type="rule",r.nodes||(r.nodes=[]),r}return q(t,e),U(t,[{key:"selectors",get:function(){return oM.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}]),t}(o_);oA.default=oA,o_.registerRule(oA);var oT=function(e,t){void 0===t&&(t={});var r,n,i,o,s,a,u,c,l,h,p=e.css.valueOf(),d=t.ignoreErrors,f=p.length,m=0,g=[],v=[];function y(t){throw e.error("Unclosed "+t,m)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&m>=f},nextToken:function(e){if(v.length)return v.pop();if(!(m>=f)){var t=!!e&&e.ignoreUnclosed;switch(r=p.charCodeAt(m)){case 10:case 32:case 9:case 13:case 12:n=m;do n+=1,r=p.charCodeAt(n);while(32===r||10===r||9===r||13===r||12===r)h=["space",p.slice(m,n)],m=n-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:var _=String.fromCharCode(r);h=[_,_,m];break;
11case 40:if(c=g.length?g.pop()[1]:"",l=p.charCodeAt(m+1),"url"===c&&39!==l&&34!==l&&32!==l&&10!==l&&9!==l&&12!==l&&13!==l){n=m;do{if(a=!1,-1===(n=p.indexOf(")",n+1)))if(d||t){n=m;break}else y("bracket");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a)h=["brackets",p.slice(m,n+1),m,n],m=n}else n=p.indexOf(")",m+1),o=p.slice(m,n+1),-1===n||oC.test(o)?h=["(","(",m]:(h=["brackets",o,m,n],m=n);break;case 39:case 34:i=39===r?"'":'"',n=m;do{if(a=!1,-1===(n=p.indexOf(i,n+1)))if(d||t){n=m+1;break}else y("string");for(u=n;92===p.charCodeAt(u-1);)u-=1,a=!a}while(a)h=["string",p.slice(m,n+1),m,n],m=n;break;case 64:oS.lastIndex=m+1,oS.test(p),n=0===oS.lastIndex?p.length-1:oS.lastIndex-2,h=["at-word",p.slice(m,n+1),m,n],m=n;break;case 92:for(n=m,s=!0;92===p.charCodeAt(n+1);)n+=1,s=!s;if(r=p.charCodeAt(n+1),s&&47!==r&&32!==r&&10!==r&&9!==r&&13!==r&&12!==r&&(n+=1,oI.test(p.charAt(n)))){for(;oI.test(p.charAt(n+1));)n+=1;32===p.charCodeAt(n+1)&&(n+=1)}h=["word",p.slice(m,n+1),m,n],m=n;break;default:47===r&&42===p.charCodeAt(m+1)?(0===(n=p.indexOf("*/",m+2)+1)&&(d||t?n=p.length:y("comment")),h=["comment",p.slice(m,n+1),m,n]):(ox.lastIndex=m+1,ox.test(p),n=0===ox.lastIndex?p.length-1:ox.lastIndex-2,h=["word",p.slice(m,n+1),m,n],g.push(h)),m=n}return m++,h}},position:function(){return m}}},oR={empty:!0,space:!0},oP=function(){function e(e){this.input=e,this.root=new oE,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(e){var t,r,n,i=new oO;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);for(var o=!1,s=!1,a=[],u=[];!this.tokenizer.endOfFile();){if("("===(t=(e=this.tokenizer.nextToken())[0])||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length)if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}else if("{"===t){s=!0;break}else if("}"===t){if(a.length>0){for(n=a.length-1,r=a[n];r&&"space"===r[0];)r=a[--n];r&&(i.source.end=this.getPosition(r[3]||r[2]),i.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(e){var t,r=this.colon(e);if(!1!==r){for(var n=0,i=r-1;i>=0&&("space"===(t=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon","word"===t[0]?t[3]+1:t[2])}},t.colon=function(e){for(var t,r,n,i=0,o=Y(e.entries());!(n=o()).done;){var s=n.value,a=s[0],u=s[1];if("("===(t=u[0])&&(i+=1),")"===t&&(i-=1),0===i&&":"===t)if(r)if("word"===r[0]&&"progid"===r[1])continue;else return a;else this.doubleColon(u);r=u}return!1},t.comment=function(e){var t=new og;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{var n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}},t.createTokenizer=function(){this.tokenizer=oT(this.input)},t.decl=function(e,t){var r,n,i=new iK;this.init(i,e[0][2]);var o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),i.source.end=this.getPosition(o[3]||o[2]||function(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}(e)),i.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),i.raws.before+=e.shift()[1];for(i.source.start=this.getPosition(e[0][2]),i.prop="";e.length;){var s=e[0][0];if(":"===s||"space"===s||"comment"===s)break;i.prop+=e.shift()[1]}for(i.raws.between="";e.length;){if(":"===(r=e.shift())[0]){i.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),i.raws.between+=r[1]}("_"===i.prop[0]||"*"===i.prop[0])&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1));for(var a=[];
11e.length&&("space"===(n=e[0][0])||"comment"===n);)a.push(e.shift());this.precheckMissedSemicolon(e);for(var u=e.length-1;u>=0;u--){if("!important"===(r=e[u])[1].toLowerCase()){i.important=!0;var c=this.stringFrom(e,u);" !important"!==(c=this.spacesFromEnd(e)+c)&&(i.raws.important=c);break}if("important"===r[1].toLowerCase()){for(var l=e.slice(0),h="",p=u;p>0;p--){var d=l[p][0];if(0===h.trim().indexOf("!")&&"space"!==d)break;h=l.pop()[1]+h}0===h.trim().indexOf("!")&&(i.important=!0,i.raws.important=h,e=l)}if("space"!==r[0]&&"comment"!==r[0])break}e.some(function(e){return"space"!==e[0]&&"comment"!==e[0]})&&(i.raws.between+=a.map(function(e){return e[1]}).join(""),a=[]),this.raw(i,"value",a.concat(e),t),i.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},t.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},t.emptyRule=function(e){var t=new oA;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},t.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},t.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},t.other=function(e){for(var t=!1,r=null,n=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],u=e;u;){if(r=u[0],a.push(u),"("===r||"["===r)i||(i=u),o.push("("===r?")":"]");else if(s&&n&&"{"===r)i||(i=u),o.push("}");else if(0===o.length)if(";"===r)if(n)return void this.decl(a,s);else break;else if("{"===r)return void this.rule(a);else if("}"===r){this.tokenizer.back(a.pop()),t=!0;break}else":"===r&&(n=!0);else r===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&n){if(!s)for(;a.length&&("space"===(u=a[a.length-1][0])||"comment"===u);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)},t.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(e,t,r,n){for(var i,o,s,a,u=r.length,c="",l=!0,h=0;h<u;h+=1)"space"!==(o=(i=r[h])[0])||h!==u-1||n?"comment"===o?(a=r[h-1]?r[h-1][0]:"empty",s=r[h+1]?r[h+1][0]:"empty",oR[a]||oR[s]||","===c.slice(-1)?l=!1:c+=i[1]):c+=i[1]:l=!1;if(!l){var p=r.reduce(function(e,t){return e+t[1]},"");e.raws[t]={raw:p,value:c}}e[t]=c},t.rule=function(e){e.pop();var t=new oA;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},t.spacesAndCommentsFromEnd=function(e){for(var t,r="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)r=e.pop()[1]+r;return r},t.spacesAndCommentsFromStart=function(e){for(var t,r="";e.length&&("space"===(t=e[0][0])||"comment"===t);)r+=e.shift()[1];return r},t.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},t.stringFrom=function(e,t){for(var r="",n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r},t.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},t.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},t.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},t.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},t.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},e}();function oF(e,t){var r=new oP(new oo(e,t));try{r.parse()}catch(e){throw e}return r.root}oF.default=oF,o_.registerParse(oF);var oL=i$.isClean,oN=i$.my,oD={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},oU={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}
11,oj={Once:!0,postcssPlugin:!0,prepare:!0};function oB(e){return(void 0===e?"undefined":W(e))==="object"&&"function"==typeof e.then}function oq(e){var t=!1,r=oD[e.type];return("decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append)?[r,r+"-"+t,0,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function oz(e){return{eventIndex:0,events:"document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:oq(e),iterator:0,node:e,visitorIndex:0,visitors:[]}}function oV(e){return e[oL]=!1,e.nodes&&e.nodes.forEach(function(e){return oV(e)}),e}var o$={},oW=function(){function e(t,r,n){var i,o=this;if(this.stringified=!1,this.processed=!1,(void 0===r?"undefined":W(r))==="object"&&null!==r&&("root"===r.type||"document"===r.type))i=oV(r);else if(z(r,e)||z(r,ok))i=oV(r.root),r.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{var s=oF;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(r,n)}catch(e){this.processed=!0,this.error=e}i&&!i[oN]&&o_.rebuild(i)}this.result=new ok(t,i,n),this.helpers=j({},o$,{postcss:o$,result:this.result}),this.plugins=this.processor.plugins.map(function(e){return(void 0===e?"undefined":W(e))==="object"&&e.prepare?j({},e,e.prepare(o.result)):e})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.getAsyncError=function(){throw Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(e,t){var r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?r.postcssVersion:(e.plugin=r.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e},t.prepareVisitors=function(){var e=this;this.listeners={};for(var t,r=function(t,r,n){e.listeners[r]||(e.listeners[r]=[]),e.listeners[r].push([t,n])},n=Y(this.plugins);!(t=n()).done;){var i=t.value;if((void 0===i?"undefined":W(i))==="object")for(var o in i){if(!oU[o]&&/^[A-Z]/.test(o))throw Error("Unknown event "+o+" in "+i.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!oj[o])if("object"===W(i[o]))for(var s in i[o])r(i,"*"===s?o:o+"-"+s.toLowerCase(),i[o][s]);else"function"==typeof i[o]&&r(i,o,i[o])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var e=this;return N(function(){var t,r,n,i,o,s,a,u,c,l,h,p;return J(this,function(d){switch(d.label){case 0:e.plugin=0,t=0,d.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(r=e.plugins[t],!oB(n=e.runOnRoot(r)))return[3,5];d.label=2;case 2:return d.trys.push([2,4,,5]),[4,n];case 3:return d.sent(),[3,5];case 4:throw i=d.sent(),e.handleError(i);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];o=e.result.root,d.label=7;case 7:if(o[oL])return[3,14];o[oL]=!0,s=[oz(o)],d.label=8;case 8:if(!(s.length>0))return[3,13];if(!oB(a=e.visitTick(s)))return[3,12];d.label=9;case 9:return d.trys.push([9,11,,12]),[4,a];case 10:return d.sent(),[3,12];case 11:throw u=d.sent(),c=s[s.length-1].node,e.handleError(u,c);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];l=function(){var t,r,n,i;return J(this,function(s){switch(s.label){case 0:r=(t=p.value)[0],n=t[1],e.result.lastPlugin=r,s.label=1;case 1:if(s.trys.push([1,6,,7]),"document"!==o.type)return[3,3];return[4,Promise.all(o.nodes.map(function(t){return n(t,e.helpers)}))];case 2:return s.sent(),[3,5];case 3:return[4,n(o,e.helpers)];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:throw i=s.sent(),e.handleError(i);case 7:return[2]}})},h=Y(e.listeners.OnceExit),d.label=15;case 15:if((p=h()).done)return[3,18];return[5,Z(l())];case 16:d.sent(),d.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},t.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((void 0===e?"undefined":W(e))==="object"&&e.Once){if("document"===this.result.root.type){var r=this.result.root.nodes.map(function(r){return e.Once(r,t.helpers)});if(oB(r[0]))return Promise.all(r);return r}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=iH;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new om(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e,t=Y(this.plugins);!(e=t()).done;){var r=e.value;if(oB(this.runOnRoot(r)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var n=this.result.root;!n[oL];)n[oL]=!0,this.walkSync(n);if(this.listeners.OnceExit)if("document"===n.type)for(var i,o=Y(n.nodes);!(i=o()).done;){var s=i.value;this.visitSync(this.listeners.OnceExit,s)}else this.visitSync(this.listeners.OnceExit,n)}return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this.css},t.visitSync=function(e,t){for(var r,n=Y(e);!(r=n()).done;){var i=r.value,o=i[0],s=i[1];this.result.lastPlugin=o;var a=void 0;try{a=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;
11if(oB(a))throw this.getAsyncError()}},t.visitTick=function(e){var t=e[e.length-1],r=t.node,n=t.visitors;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){var i=n[t.visitorIndex],o=i[0],s=i[1];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return s(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(0!==t.iterator){for(var a,u=t.iterator;a=r.nodes[r.indexes[u]];)if(r.indexes[u]+=1,!a[oL]){a[oL]=!0,e.push(oz(a));return}t.iterator=0,delete r.indexes[u]}for(var c=t.events;t.eventIndex<c.length;){var l=c[t.eventIndex];if(t.eventIndex+=1,0===l){r.nodes&&r.nodes.length&&(r[oL]=!0,t.iterator=r.getIterator());return}if(this.listeners[l]){t.visitors=this.listeners[l];return}}e.pop()},t.walkSync=function(e){var t=this;e[oL]=!0;for(var r,n=oq(e),i=Y(n);!(r=i()).done;){var o=r.value;if(0===o)e.nodes&&e.each(function(e){e[oL]||t.walkSync(e)});else{var s=this.listeners[o];if(s&&this.visitSync(s,e.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},U(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();oW.registerPostcss=function(e){o$=e},oW.default=oW,oE.registerLazyResult(oW),ob.registerLazyResult(oW);var oG=function(){function e(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0,this.result=new ok(this._processor,n,this._opts),this.result.css=t;var n,i=this;Object.defineProperty(this.result,"root",{get:function(){return i.root}});var o=new om(iH,n,this._opts,t);if(o.isMap()){var s=o.generate(),a=s[0],u=s[1];a&&(this.result.css=a),u&&(this.result.map=u)}else o.clearAnnotation(),this.result.css=o.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(e){return this.async().catch(e)},t.finally=function(e){return this.async().then(e,e)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(e,t){return this.async().then(e,t)},t.toString=function(){return this._css},t.warnings=function(){return[]},U(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){var e;if(this._root)return this._root;try{e=oF(this._css,this._opts)}catch(e){this.error=e}if(!this.error)return this._root=e,e;throw this.error}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}();oG.default=oG;var oH=function(){function e(e){void 0===e&&(e=[]),this.version="8.4.38",this.plugins=this.normalize(e)}var t=e.prototype;return t.normalize=function(e){for(var t,r=[],n=Y(e);!(t=n()).done;){var i=t.value;if(!0===i.postcss?i=i():i.postcss&&(i=i.postcss),(void 0===i?"undefined":W(i))==="object"&&Array.isArray(i.plugins))r=r.concat(i.plugins);else if((void 0===i?"undefined":W(i))==="object"&&i.postcssPlugin)r.push(i);else if("function"==typeof i)r.push(i);else if((void 0===i?"undefined":W(i))==="object"&&(i.parse||i.stringify));else throw Error(i+" is not a PostCSS plugin")}return r},t.process=function(e,t){return(void 0===t&&(t={}),this.plugins.length||t.parser||t.stringifier||t.syntax)?new oW(this,e,t):new oG(this,e,t)},t.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e}();function oY(e,t){if(Array.isArray(e))return e.map(function(e){return oY(e)});var r=e.inputs,n=V(e,["inputs"]);if(r){t=[];for(var i,o=Y(r);!(i=o()).done;){var s=i.value,a=j({},s,{__proto__:oo.prototype});a.map&&(a.map=j({},a.map,{__proto__:i4.prototype})),t.push(a)}}if(n.nodes&&(n.nodes=e.nodes.map(function(e){return oY(e,t)})),n.source){var u=n.source,c=u.inputId;n.source=V(u,["inputId"]),null!=c&&(n.source.input=t[c])}if("root"===n.type)return new oE(n);if("decl"===n.type)return new iK(n);if("rule"===n.type)return new oA(n);if("comment"===n.type)return new og(n);if("atrule"===n.type)return new oO(n);else throw Error("Unknown node type: "+e.type)}function oJ(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new oH(t)}oH.default=oH,oE.registerProcessor(oH),ob.registerProcessor(oH),oY.default=oY,oJ.plugin=function(e,t){var r,n=!1;function i(){for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];console&&console.warn&&!n&&(n=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),O.default.env.LANG&&O.default.env.LANG.startsWith("cn")&&console.warn(e+": éé¢ postcss.plugin 被å¼ç¨. è¿ç§»æå:\nhttps://www.w3ctech.com/topic/2226"));var s=t.apply(void 0,[].concat(i));return s.postcssPlugin=e,s.postcssVersion=new oH().version,s}return Object.defineProperty(i,"postcss",{get:function(){return r||(r=i()),r}}),i.process=function(e,t,r){return oJ([i(r)]).process(e,t)},i},oJ.stringify=iH,oJ.parse=oF,oJ.fromJSON=oY,oJ.list=oM,oJ.comment=function(e){return new og(e)},oJ.atRule=function(e){return new oO(e)},oJ.decl=function(e){return new iK(e)},oJ.rule=function(e){return new oA(e)},oJ.root=function(e){return new oE(e)},oJ.document=function(e){return new ob(e)},oJ.CssSyntaxError=iV,oJ.Declaration=iK,oJ.Container=o_,oJ.Processor=oH,oJ.Document=ob,oJ.Comment=og,oJ.Warning=ow,oJ.AtRule=oO,oJ.Result=ok,oJ.Input=oo,oJ.Rule=oA,oJ.Root=oE,oJ.Node=iZ,oW.registerPostcss(oJ),oJ.default=oJ;var oZ=oJ&&oJ.__esModule&&Object.prototype.hasOwnProperty.call(oJ,"default")?oJ.default:oJ;oZ.stringify,oZ.fromJSON,oZ.plugin,oZ.parse,oZ.list,oZ.document,oZ.comment,oZ.atRule,oZ.rule,oZ.decl,oZ.root,oZ.CssSyntaxError,oZ.Declaration,oZ.Container,oZ.Processor,oZ.Document,oZ.Comment,oZ.Warning,oZ.AtRule,oZ.Result,oZ.Input,oZ.Rule,oZ.Root,oZ.Node;var oK=Object.defineProperty,oX=function(e,t,r){var n;return n=(void 0===t?"undefined":W(t))!=="symbol"?t+"":t,n in e?oK(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},oQ=function(){function e(e){oX(this,"fileName"),oX(this,"functionName"),oX(this,"lineNumber"),oX(this,"columnNumber"),this.fileName=e.fileName||"",this.functionName=e.functionName||"",this.lineNumber=e.lineNumber,this.columnNumber=e.columnNumber}return e.prototype.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},e}(),o0=/(^|@)\S+:\d+/,o1=/^\s*at .*(\S+:\d+|\(native\))/m,o2=/^(eval@)?(\[native code])?$/,o3={parse:function(e){return e?void 0!==e.stacktrace||void 0!==e["opera#sourceloc"]?this.parseOpera(e):e.stack&&e.stack.match(o1)?this.parseV8OrIE(e):e.stack?this.parseFFOrSafari(e):(console.warn("[console-record-plugin]: Failed to parse error object:",e),[]):[]},extractLocation:function(e){if(-1===e.indexOf(":"))return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));if(!t)throw Error("Cannot parse given url: "+e);return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(o1)},this).map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=t.match(/ (\((.+):(\d+):(\d+)\)$)/),n=(t=r?t.replace(r[0],""):t).split(/\s+/).slice(1),i=this.extractLocation(r?r[1]:n.pop());return new oQ({functionName:n.join(" ")||void 0,fileName:["eval","<anonymous>"].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter(function(e){return!e.match(o2)},this).map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new oQ({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(t),n=r&&r[1]?r[1]:void 0,i=this.extractLocation(e.replace(t,""));return new oQ({functionName:n,fileName:i[0],lineNumber:i[1],columnNumber:i[2]})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),n=[],i=2,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new oQ({fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera10:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=e.stacktrace.split("\n"),n=[],i=0,o=r.length;i<o;i+=2){var s=t.exec(r[i]);s&&n.push(new oQ({functionName:s[3]||void 0,fileName:s[2],lineNumber:parseFloat(s[1])}))}return n},parseOpera11:function(e){return e.stack.split("\n").filter(function(e){return!!e.match(o0)&&!e.match(/^Error created at/)},this).map(function(e){var t=e.split("@"),r=this.extractLocation(t.pop());return new oQ({functionName:(t.shift()||"").replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0,fileName:r[0],lineNumber:r[1],columnNumber:r[2]})},this)}};function o4(e){return"[object Object]"===Object.prototype.toString.call(e)}
11function o5(e,t){var r={numOfKeysLimit:50,depthOfLimit:4};Object.assign(r,t);var n=[],i=[];return JSON.stringify(e,function(e,t){if(n.length>0){var o,s,a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?i.splice(a,1/0,e):i.push(e),~n.indexOf(t)&&(t=n[0]===t?"[Circular ~]":"[Circular ~."+i.slice(0,n.indexOf(t)).join(".")+"]")}else n.push(t);if(null===t)return t;if(void 0===t)return"undefined";if(o4(o=t)&&Object.keys(o).length>r.numOfKeysLimit||"function"==typeof o||o4(o)&&function e(t,r){if(0===r)return!0;for(var n,i=Object.keys(t),o=Y(i);!(n=o()).done;){var s=n.value;if(o4(t[s])&&e(t[s],r-1))return!0}return!1}(o,r.depthOfLimit)){return s=t.toString(),r.stringLengthLimit&&s.length>r.stringLengthLimit&&(s=""+s.slice(0,r.stringLengthLimit)+"..."),s}if((void 0===t?"undefined":W(t))==="bigint")return t.toString()+"n";if(z(t,Event)){var u={};for(var c in t){var l=t[c];Array.isArray(l)?u[c]=function(e){if(!e||!e.outerHTML)return"";for(var t="";e.parentElement;){var r=e.localName;if(!r)break;r=r.toLowerCase();var n=e.parentElement,i=[];if(n.children&&n.children.length>0)for(var o=0;o<n.children.length;o++){var s=n.children[o];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===r&&i.push(s)}i.length>1&&(r+=":eq("+i.indexOf(e)+")"),t=r+(t?">"+t:""),e=n}return t}(l.length?l[0]:null):u[c]=l}return u}return z(t,Node)?z(t,HTMLElement)?t?t.outerHTML:"":t.nodeName:z(t,Error)?t.stack?t.stack+"\nEnd of stack for Error object":t.name+": "+t.message:t})}var o6={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 o9(e,t,r){var n=r?Object.assign({},o6,r):o6,i=n.logger;if(!i)return function(){};l="string"==typeof i?t[i]:i;var o=0,s=!1,a=[];if(n.level.includes("error")){var u=function(t){var r=t.message,i=t.error;e({level:"error",trace:o3.parse(i).map(function(e){return e.toString()}),payload:[o5(r,n.stringifyOptions)]})};t.addEventListener("error",u),a.push(function(){t.removeEventListener("error",u)});var c=function(t){var r,i;z(t.reason,Error)?i=[o5("Uncaught (in promise) "+(r=t.reason).name+": "+r.message,n.stringifyOptions)]:(r=Error(),i=[o5("Uncaught (in promise)",n.stringifyOptions),o5(t.reason,n.stringifyOptions)]),e({level:"error",trace:o3.parse(r).map(function(e){return e.toString()}),payload:i})};t.addEventListener("unhandledrejection",c),a.push(function(){t.removeEventListener("unhandledrejection",c)})}for(var l,h,p=Y(n.level);!(h=p()).done;){var d=h.value;a.push(function(t,r){var i=this;if(!t[r])return function(){};try{if(!(r in t))return function(){};var a=t[r],u=function(t){return function(){for(var a=arguments.length,u=Array(a),c=0;c<a;c++)u[c]=arguments[c];if((t.apply(i,u),"assert"!==r||!u[0])&&!s){s=!0;try{var l=o3.parse(Error()).map(function(e){return e.toString()}).splice(1),h=("assert"===r?u.slice(1):u).map(function(e){return o5(e,n.stringifyOptions)});++o<n.lengthThreshold?e({level:r,trace:l,payload:h}):o===n.lengthThreshold&&e({level:"warn",trace:[],payload:[o5("The number of log records reached the threshold.")]})}catch(e){t.apply(void 0,[].concat(["rrweb logger error:",e],u))}finally{s=!1}}}}(a);return"function"==typeof u&&(u.prototype=u.prototype||{},Object.defineProperties(u,{__rrweb_original__:{enumerable:!1,value:a}})),t[r]=u,function(){t[r]=a}}catch(e){return function(){}}}(l,d))}return function(){a.forEach(function(e){return e()})}}var o8,o7,se,st,sr,sn,si,so,ss,sa,su,sc,sl,sh,sp,sd,sf,sm,sg,sv,sy,s_,sb,sw,sk,sS,sx,sC,sI,sO,sE,sM,sA,sT,sR,sP,sF,sL,sN,sD,sU,sj,sB,sq,sz,sV=sa.setImmediate,s$=Object.prototype.toString,sW=void 0!==sV?function(e){return sV(e)}:setTimeout;try{Object.defineProperty({},"x",{}),sB=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(e){sB=function(e,t,r){return e[t]=r,e}}function sG(e,t){sz.add(e,t),sq||(sq=sW(sz.drain))}function sH(e){var t,r=typeof e;return null!==e&&("object"===r||"function"===r)&&(t=e.then),"function"==typeof t&&t}function sY(){for(var e=0;e<this.chain.length;e++)!function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=sH(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}}(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function sJ(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=sH(e))?sG(function(){var n=new sX(r);try{t.call(e,function(){sJ.apply(n,arguments)},function(){sZ.apply(n,arguments)})}catch(e){sZ.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&sG(sY,r))}catch(e){sZ.call(new sX(r),e)}}}function sZ(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&sG(sY,t))}function sK(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)}(i)}function sX(e){this.def=e,this.triggered=!1}function sQ(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function s0(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new sQ(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&sG(sY,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){sJ.call(t,e)},function(e){sZ.call(t,e)})}catch(e){sZ.call(t,e)}}sz=function(){var e,t,r;function n(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(i,o){r=new n(i,o),t?t.next=r:e=r,t=r,r=void 0},drain:function(){var r=e;for(e=t=sq=void 0;r;)r.fn.call(r.self),r=r.next}}}();var s1=sB({},"constructor",s0,!1);s0.prototype=s1,sB(s1,"__NPO__",0,!1),sB(s0,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),sB(s0,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),sB(s0,"all",function(e){var t=this;return"[object Array]"!==s$.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,o=Array(i),s=0;sK(t,e,function(e,t){o[e]=t,++s===i&&r(o)},n)})}),sB(s0,"race",function(e){var t=this;return"[object Array]"!==s$.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");sK(t,e,function(e,t){r(t)},n)})}),m="u">typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?Promise:s0;var s2=Array.prototype,s3=Function.prototype,s4=Object.prototype,s5=s2.slice,s6=s4.toString,s9=s4.hasOwnProperty,s8=sa.c
11onsole,s7=sa.navigator,ae=sa.document,at=sa.opera,ar=sa.screen,an=s7.userAgent,ai=s3.bind,ao=s2.forEach,as=s2.indexOf,aa=s2.map,au=Array.isArray,ac={},al={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},ah={log:function(){if(A.DEBUG&&!al.isUndefined(s8)&&s8)try{s8.log.apply(s8,arguments)}catch(e){al.each(arguments,function(e){s8.log(e)})}},warn:function(){if(A.DEBUG&&!al.isUndefined(s8)&&s8){var e=["Mixpanel warning:"].concat(al.toArray(arguments));try{s8.warn.apply(s8,e)}catch(t){al.each(e,function(e){s8.warn(e)})}}},error:function(){if(A.DEBUG&&!al.isUndefined(s8)&&s8){var e=["Mixpanel error:"].concat(al.toArray(arguments));try{s8.error.apply(s8,e)}catch(t){al.each(e,function(e){s8.error(e)})}}},critical:function(){if(!al.isUndefined(s8)&&s8){var e=["Mixpanel error:"].concat(al.toArray(arguments));try{s8.error.apply(s8,e)}catch(t){al.each(e,function(e){s8.error(e)})}}}},ap=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(ah,arguments)}},ad=function(e){return{log:ap(ah.log,e),warn:ap(ah.warn,e),error:ap(ah.error,e),critical:ap(ah.critical,e)}},af=function(e){return function(){try{return e.apply(this,arguments)}catch(e){ah.critical("Implementation error. Please turn on debug and contact [email protected]."),A.DEBUG&&ah.critical(e)}}},am=function(e){var t=e.prototype;for(var r in t)"function"==typeof t[r]&&(t[r]=af(t[r]))};al.bind=function(e,t){var r,n;if(ai&&e.bind===ai)return ai.apply(e,s5.call(arguments,1));if(!al.isFunction(e))throw TypeError();return r=s5.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(s5.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var s=e.apply(o,r.concat(s5.call(arguments)));return Object(s)===s?s:o}},al.each=function(e,t,r){if(null!=e){if(ao&&e.forEach===ao)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===ac)return}else for(var o in e)if(s9.call(e,o)&&t.call(r,e[o],o,e)===ac)return}},al.extend=function(e){return al.each(s5.call(arguments,1),function(t){for(var r in t)void 0!==t[r]&&(e[r]=t[r])}),e},al.isArray=au||function(e){return"[object Array]"===s6.call(e)},al.isFunction=function(e){return"function"==typeof e},al.isArguments=function(e){return!!(e&&s9.call(e,"callee"))},al.toArray=function(e){return e?e.toArray?e.toArray():al.isArray(e)||al.isArguments(e)?s5.call(e):al.values(e):[]},al.map=function(e,t,r){if(aa&&e.map===aa)return e.map(t,r);var n=[];return al.each(e,function(e){n.push(t.call(r,e))}),n},al.keys=function(e){var t=[];return null===e||al.each(e,function(e,r){t[t.length]=r}),t},al.values=function(e){var t=[];return null===e||al.each(e,function(e){t[t.length]=e}),t},al.include=function(e,t){var r=!1;return null===e?r:as&&e.indexOf===as?-1!=e.indexOf(t):(al.each(e,function(e){if(r||(r=e===t))return ac}),r)},al.includes=function(e,t){return -1!==e.indexOf(t)},al.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},al.isObject=function(e){return e===Object(e)&&!al.isArray(e)},al.isEmptyObject=function(e){if(al.isObject(e)){for(var t in e)if(s9.call(e,t))return!1;return!0}return!1},al.isUndefined=function(e){return void 0===e},al.isString=function(e){return"[object String]"==s6.call(e)},al.isDate=function(e){return"[object Date]"==s6.call(e)},al.isNumber=function(e){return"[object Number]"==s6.call(e)},al.isElement=function(e){return!!(e&&1===e.nodeType)},al.encodeDates=function(e){return al.each(e,function(t,r){al.isDate(t)?e[r]=al.formatDate(t):al.isObject(t)&&(e[r]=al.encodeDates(t))}),e},al.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},al.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},al.strip_empty_properties=function(e){var t={};return al.each(e,function(e,r){al.isString(e)&&e.length>0&&(t[r]=e)}),t},al.truncate=function(e,t){var r;return"string"==typeof e?r=e.slice(0,t):al.isArray(e)?(r=[],al.each(e,function(e){r.push(al.truncate(e,t))})):al.isObject(e)?(r={},al.each(e,function(e,n){r[n]=al.truncate(e,t)})):r=e,r},al.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=r[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},r=function(e,n){var i="",o=0,s="",a="",u=0,c=i,l=[],h=n[e];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(e)),typeof h){case"string":return t(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(i+=" ",l=[],"[object Array]"===s6.apply(h)){for(o=0,u=h.length;o<u;o+=1)l[o]=r(o,h)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+c+"]":"["+l.join(",")+"]",i=c,a}for(s in h)s9.call(h,s)&&(a=r(s,h))&&l.push(t(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+c+"}":"{"+l.join(",")+"}",i=c,a}};return r("",{"":e})},o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},s=function(e){var r=SyntaxError(e);throw r.at=t,r.text=n,r},a=function(e){return e&&e!==r&&s("Expected '"+e+"' instead of '"+r
11+"'"),r=n.charAt(t),t+=1,r},u=function(){var e,t="";for("-"===r&&(t="-",a("-"));r>="0"&&r<="9";)t+=r,a();if("."===r)for(t+=".";a()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,a(),("-"===r||"+"===r)&&(t+=r,a());r>="0"&&r<="9";)t+=r,a();if(isFinite(e=+t))return e;s("Bad number")},c=function(){var e,t,n,i="";if('"'===r)for(;a();){if('"'===r)return a(),i;if("\\"===r)if(a(),"u"===r){for(t=0,n=0;t<4&&isFinite(e=parseInt(a(),16));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else if("string"==typeof o[r])i+=o[r];else break;else i+=r}s("Bad string")},l=function(){for(;r&&r<=" ";)a()},h=function(){switch(r){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}s('Unexpected "'+r+'"')},p=function(){var e=[];if("["===r){if(a("["),l(),"]"===r)return a("]"),e;for(;r;){if(e.push(i()),l(),"]"===r)return a("]"),e;a(","),l()}}s("Bad array")},d=function(){var e,t={};if("{"===r){if(a("{"),l(),"}"===r)return a("}"),t;for(;r;){if(e=c(),l(),a(":"),Object.hasOwnProperty.call(t,e)&&s('Duplicate key "'+e+'"'),t[e]=i(),l(),"}"===r)return a("}"),t;a(","),l()}}s("Bad object")},i=function(){switch(l(),r){case"{":return d();case"[":return p();case'"':return c();case"-":return u();default:return r>="0"&&r<="9"?u():h()}},al.JSONDecode=function(e){var o;return n=e,t=0,r=" ",o=i(),l(),r&&s("Syntax error"),o},al.base64Encode=function(e){var t,r,n,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,c=0,l="",h=[];if(!e)return e;e=al.utf8Encode(e);do t=e.charCodeAt(u++),r=(s=t<<16|e.charCodeAt(u++)<<8|e.charCodeAt(u++))>>18&63,n=s>>12&63,i=s>>6&63,o=63&s,h[c++]=a.charAt(r)+a.charAt(n)+a.charAt(i)+a.charAt(o);while(u<e.length)switch(l=h.join(""),e.length%3){case 1:l=l.slice(0,-2)+"==";break;case 2:l=l.slice(0,-1)+"="}return l},al.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var t,r,n,i="",o=0;for(n=0,t=r=0,o=e.length;n<o;n++){var s=e.charCodeAt(n),a=null;s<128?r++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>t&&(i+=e.substring(t,r)),i+=a,t=r=n+1)}return r>t&&(i+=e.substring(t,e.length)),i},al.UUID=function(){try{return sa.crypto.randomUUID()}catch(r){for(var e=Array(36),t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",al.map(e,function(e){return e.toString(16)}).join("")}};var ag=["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"];al.isBlockedUA=function(e){var t;for(t=0,e=e.toLowerCase();t<ag.length;t++)if(-1!==e.indexOf(ag[t]))return!0;return!1},al.HTTPBuildQuery=function(e,t){var r,n,i=[];return al.isUndefined(t)&&(t="&"),al.each(e,function(e,t){r=encodeURIComponent(e.toString()),n=encodeURIComponent(t),i[i.length]=n+"="+r}),i.join(t)},al.getQueryParam=function(e,t){var r=RegExp("[\\?&]"+(t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"))+"=([^&#]*)").exec(e);if(null===r||r&&"string"!=typeof r[1]&&r[1].length)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(e){ah.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},al.cookie={get:function(e){for(var t=e+"=",r=ae.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=al.JSONDecode(al.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=aT(ae.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+1e3*r),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),ae.cookie=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c},set:function(e,t,r,n,i,o,s){var a="",u="",c="";if(s)a="; domain="+s;else if(n){var l=aT(ae.location.hostname);a=l?"; domain=."+l:""}if(r){var h=new Date;h.setTime(h.getTime()+24*r*36e5),u="; expires="+h.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var p=e+"="+encodeURIComponent(t)+u+"; path=/"+a+c;return ae.cookie=p,p},remove:function(e,t,r){al.cookie.set(e,"",-1,t,!1,!1,r)}};var av=function(e){var t=!0;
11try{var r="__mplss_"+aO(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(t=!1),e.removeItem(r)}catch(e){t=!1}return t},ay=null,a_=function(e,t){return null===ay||t?ay=av(e):ay},ab=null;function aw(e,t,r){var n=function(e){ah.error(t+" error: "+e)};return{is_supported:function(n){var i=r(e,n);return i||ah.error(t+" unsupported"),i},error:n,get:function(t){try{return e.getItem(t)}catch(e){n(e)}return null},parse:function(t){try{return al.JSONDecode(e.getItem(t))||{}}catch(e){}return null},set:function(t,r){try{e.setItem(t,r)}catch(e){n(e)}},remove:function(t){try{e.removeItem(t)}catch(e){n(e)}}}}var ak=function(){try{return sa.localStorage}catch(e){return null}};al.localStorage=aw(ak(),"localStorage",a_),al.sessionStorage=aw(function(){try{return sa.sessionStorage}catch(e){return null}}(),"sessionStorage",function(e,t){return null===ab||t?ab=av(e):ab}),al.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,r,n,i,o){if(!t)return void ah.error("No valid element provided to register_event");if(t.addEventListener&&!i)t.addEventListener(r,n,!!o);else{var s,a,u,c="on"+r,l=t[c];t[c]=(s=t,a=n,u=l,function(t){if(t=t||e(sa.event)){var r,n,i=!0;return al.isFunction(u)&&(r=u(t)),n=a.call(s,t),(!1===r||!1===n)&&(i=!1),i}})}}}();var aS=RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');al.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(r){if(!ae.getElementsByTagName)return[];var n=r.split(" "),i=[ae];for(f=0;f<n.length;f++){if((l=n[f].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){b=(h=l.split("#"))[0];var o=h[1],s=ae.getElementById(o);if(!s||b&&s.nodeName.toLowerCase()!=b)return[];i=[s];continue}if(l.indexOf(".")>-1){b=(h=l.split("."))[0];var a,u=h[1];for(b||(b="*"),p=[],d=0,m=0;m<i.length;m++)for(g=0,v="*"==b?e(i[m]):i[m].getElementsByTagName(b);g<v.length;g++)p[d++]=v[g];for(m=0,i=[],y=0;m<p.length;m++)p[m].className&&al.isString(p[m].className)&&(a=p[m],(" "+a.className+" ").replace(t," ").indexOf(" "+u+" ")>=0)&&(i[y++]=p[m]);continue}var c=l.match(aS);if(c){var l,h,p,d,f,m,g,v,y,_,b=c[1],w=c[2],k=c[3],S=c[4];for(b||(b="*"),p=[],d=0,m=0;m<i.length;m++)for(g=0,v="*"==b?e(i[m]):i[m].getElementsByTagName(b);g<v.length;g++)p[d++]=v[g];switch(i=[],y=0,k){case"=":_=function(e){return e.getAttribute(w)==S};break;case"~":_=function(e){return e.getAttribute(w).match(RegExp("\\b"+S+"\\b"))};break;case"|":_=function(e){return e.getAttribute(w).match(RegExp("^"+S+"-?"))};break;case"^":_=function(e){return 0===e.getAttribute(w).indexOf(S)};break;case"$":_=function(e){return e.getAttribute(w).lastIndexOf(S)==e.getAttribute(w).length-S.length};break;case"*":_=function(e){return e.getAttribute(w).indexOf(S)>-1};break;default:_=function(e){return e.getAttribute(w)}}for(m=0,i=[],y=0;m<p.length;m++)_(p[m])&&(i[y++]=p[m]);continue}for(m=0,b=l,p=[],d=0;m<i.length;m++)for(g=0,v=i[m].getElementsByTagName(b);g<v.length;g++)p[d++]=v[g];i=p}return i}return function(e){return al.isElement(e)?[e]:al.isObject(e)&&!al.isUndefined(e.length)?e:r.call(this,e)}}();var ax=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],aC=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];al.info={campaignParams:function(e){var t="",r={};return al.each(ax,function(n){(t=al.getQueryParam(ae.URL,n)).length?r[n]=t:void 0!==e&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return al.each(aC,function(r){(e=al.getQueryParam(ae.URL,r)).length&&(t[r]=e)}),t},marketingParams:function(){return al.extend(al.info.campaignParams(),al.info.clickParams())},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=al.info.searchEngine(e),r={};if(null!==t){r.$search_engine=t;var n=al.getQueryParam(e,"yahoo"!=t?"q":"p");n.length&&(r.mp_keyword=n)}return r},browser:function(e,t,r){if(t=t||"",r||al.includes(e," OPR/"))return al.includes(e,"Mini")?"Opera Mini":"Opera";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";if(al.includes(e,"IEMobile")||al.includes(e,"WPDesktop"))return"Internet Explorer Mobile";if(al.includes(e,"SamsungBrowser/"))return"Samsung Internet";if(al.includes(e,"Edge")||al.includes(e,"Edg/"))return"Microsoft Edge";else if(al.includes(e,"FBIOS"))return"Facebook Mobile";else if(al.includes(e,"Whale/"))return"Whale Browser";else if(al.includes(e,"Chrome"))return"Chrome";else if(al.includes(e,"CriOS"))return"Chrome iOS";else if(al.includes(e,"UCWEB")||al.includes(e,"UCBrowser"))return"UC Browser";else if(al.includes(e,"FxiOS"))return"Firefox iOS";else if(al.includes(t,"Apple"))return al.includes(e,"Mobile")?"Mobile Safari":"Safari";else if(al.includes(e,"Android"))return"Android Mobile";else if(al.includes(e,"Konqueror"))return"Konqueror";else if(al.includes(e,"Firefox"))return"Firefox";else if(al.includes(e,"MSIE")||al.includes(e,"Trident/"))return"Internet Explorer";else if(al.includes(e,"Gecko"))return"Mozilla";else return""},browserVersion:function(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/}[al.info.browser(e,t,r)];if(void 0===n)return null;var i=e.match(n);return i?parseFloat(i[i.length-2]):null},os:function(){if(/Windows/i.test(an))return/Phone/.test(an)||/WPDesktop/.test(an)?"Windows Phone":"Windows";if(/(iPhone|iPad|iPod)/.test(an))return"iOS";if(/Android/.test(an))return"Android";if(/(BlackBerry|PlayBook|BB10)/i.test(an))return"BlackBerry";if(/Mac/i.test(an))return"Mac OS X";else if(/Linux/.test(an))return"Linux";else if(/CrOS/.test(an))return"Chrome OS";else return""},device:function(e){if(/Windows Phone/i.test(e)||/WPDesktop/.test(e))return"Windows Phone";if(/iPad/.test(e))return"iPad";if(/iPod/.test(e))return"iPod Touch";if(/iPhone/.test(e))return"iPhone";if(/(BlackBerry|PlayBook|BB10)/i.test(e))return"BlackBerry";else if(/Android/.test(e))return"Android";else return""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return sa.location.href},properties:function(e){return"object"!=typeof e&&(e={}),al.extend(al.strip_empty_properties({$os:al.info.os(),$browser:al.info.browser(an,s7.vendor,at),$referrer:ae.referrer,$referring_domain:al.info.referringDomain(ae.referrer),$device:al.info.device(an)}),{$current_url:al.info.currentUrl(),$browser_version:al.info.browserVersion(an,s7.vendor,at),$screen_height:ar.height,$screen_width:ar.width,mp_lib:"web",$lib_version:A.LIB_VERSION,$insert_id:aO(),time:al.timestamp()/1e3},al.strip_empty_properties(e))},people_properties:function(){return al.extend(al.strip_empty_properties({$os:al.info.os(),$browser:al.info.browser(an,s7.vendor,at)}),{$browser_version:al.info.browserVersion(an,s7.vendor,at)})},mpPageViewProperties:function(){return al.strip_empty_properties({current_page_title:ae.title,current_domain:sa.location.hostname,current_url_path:sa.location.pathname,current_url_protocol:sa.location.protocol,current_url_search:sa.location.search})}};var aI=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new m(function(i){setTimeout(function(){var t=e.apply(o,[n]);r=null,n=[],i(t)},t)}
11)),r}},aO=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},aE=function(){return"00-"+al.UUID().replace(/-/g,"")+"-"+al.UUID().replace(/-/g,"").substring(0,16)+"-01"},aM=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,aA=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,aT=function(e){var t=aA,r=e.split("."),n=r[r.length-1];(n.length>4||"com"===n||"org"===n)&&(t=aM);var i=e.match(t);return i?i[0]:""},aR=function(){var e=sa.navigator.onLine;return al.isUndefined(e)||e},aP=function(){},aF=function(e,t){for(var r=!1,n=0;n<t.length;n++)if(e.match(t[n])){r=!0;break}return r},aL=null,aN=null;"u">typeof JSON&&(aL=JSON.stringify,aN=JSON.parse),aL=aL||al.JSONEncode,aN=aN||al.JSONDecode;var aD=function(e,t,r){if(!sa.CompressionStream)return!1;var n=al.info.browser(e,t,r),i=al.info.browserVersion(e,t,r);return"Safari"!==n&&"Mobile Safari"!==n||!(i>=16.4)||!(i<16.6)};al.info=al.info,al.info.browser=al.info.browser,al.info.browserVersion=al.info.browserVersion,al.info.device=al.info.device,al.info.properties=al.info.properties,al.isBlockedUA=al.isBlockedUA,al.isEmptyObject=al.isEmptyObject,al.isObject=al.isObject,al.JSONDecode=al.JSONDecode,al.JSONEncode=al.JSONEncode,al.toArray=al.toArray,al.NPO=s0;var aU=function(e,t,r){this.dbName=e,this.storeName=t,this.version=r.version,this.storeNamesInDb=r.storeNames,this.dbPromise=null};aU.prototype._openDb=function(){var e=this.dbName,t=this.version,r=this.storeNamesInDb;return new m(function(n,i){var o=sa.indexedDB.open(e,t);o.onerror=function(){i(o.error)},o.onsuccess=function(){n(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;r.forEach(function(e){t.objectStoreNames.contains(e)||t.createObjectStore(e)})}})},aU.prototype.init=function(){return sa.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof sa.IDBDatabase?m.resolve():m.reject(e)})):m.reject("indexedDB is not supported in this browser")},aU.prototype.isInitialized=function(){return!!this.dbPromise},aU.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(n){return new m(function(i,o){var s=n.transaction(r,e);s.oncomplete=function(){i(s)},s.onabort=s.onerror=function(){o(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(e){return e&&"InvalidStateError"===e.name?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):m.reject(e)}).bind(this))},aU.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})},aU.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})},aU.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})},aU.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var aj="mixpanelBrowserDb",aB="mixpanelRecordingEvents",aq="mixpanelRecordingRegistry",az={version:1,storeNames:[aB,aq]};function aV(e,t){a0(!0,e,t)}function a$(e,t){a0(!1,e,t)}function aW(e,t){return"1"===aQ(e,t)}function aG(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||sa,r=t.navigator||{},n=!1;return al.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(e){al.includes([!0,1,"1","yes"],e)&&(n=!0)}),n}(t))return ah.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===aQ(e,t);return r&&ah.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function aH(e){return a1(e,function(e){return this.get_config(e)})}function aY(e){return a1(e,function(e){return this._get_config(e)})}function aJ(e){return a1(e,function(e){return this._get_config(e)})}function aZ(e,t){aK(t=t||{}).remove(aX(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function aK(e){return"localStorage"===(e=e||{}).persistenceType?al.localStorage:al.cookie}function aX(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function aQ(e,t){return aK(t).get(aX(e,t))}function a0(e,t,r){al.isString(t)&&t.length?(aK(r=r||{}).set(aX(t,r),+!!e,al.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})):ah.error("gdpr."+(e?"optIn":"optOut")+" called with an invali
11d token")}function a1(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),a=t.call(this,"window");n&&(r=aG(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(e){ah.error("Unexpected error when checking tracking opt-out status: "+e)}if(!r)return e.apply(this,arguments);var u=arguments[arguments.length-1];"function"==typeof u&&u(0)}}var a2=ad("lock"),a3=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||ak(),this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||m};a3.prototype.withLock=function(e,t){return new this.promiseImpl(al.bind(function(r,n){var i=t||new Date().getTime()+"|"+Math.random(),o=new Date().getTime(),s=this.storageKey,a=this.pollIntervalMS,u=this.timeoutMS,c=this.storage,l=s+":X",h=s+":Y",p=s+":Z",d=function(e){if(new Date().getTime()-o>u){a2.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+i+"]"),c.removeItem(p),c.removeItem(h),g();return}setTimeout(function(){try{e()}catch(e){n(e)}},a*(Math.random()+.1))},f=function(e,t){e()?t():d(function(){f(e,t)})},m=function(){var e=c.getItem(h);return(!e||e===i)&&(c.setItem(h,i),c.getItem(h)===i||(a_(c,!0)||n(Error("localStorage support dropped while acquiring lock")),!1))},g=function(){c.setItem(l,i),f(m,function(){c.getItem(l)===i?v():d(function(){c.getItem(h)!==i?g():f(function(){return!c.getItem(p)},v)})})},v=function(){c.setItem(p,"1");var t=function(){c.removeItem(p),c.getItem(h)===i&&c.removeItem(h),c.getItem(l)===i&&c.removeItem(l)};e().then(function(e){t(),r(e)}).catch(function(e){t(),n(e)})};try{if(a_(c,!0))g();else throw Error("localStorage support check failed")}catch(e){n(e)}},this))};var a4=function(e){this.storage=e||ak()};a4.prototype.init=function(){return this.storage?m.resolve():m.reject(Error("localStorage is not available"))},a4.prototype.isInitialized=function(){return!0},a4.prototype.setItem=function(e,t){return new m(al.bind(function(r,n){try{this.storage.setItem(e,aL(t))}catch(e){n(e)}r()},this))},a4.prototype.getItem=function(e){return new m(al.bind(function(t,r){var n;try{n=aN(this.storage.getItem(e))}catch(e){r(e)}t(n)},this))},a4.prototype.removeItem=function(e){return new m(al.bind(function(t,r){try{this.storage.removeItem(e)}catch(e){r(e)}t()},this))};var a5=ad("batch"),a6=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new a4,this.lock=new a3(e,{storage:t.sharedLockStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||al.bind(a5.error,a5),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=aI(al.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=al.bind(function(e){return this._enqueuePersisted([e])},this)};a6.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?m.resolve():this.queueStorage.init().then(al.bind(function(){this.initialized=!0},this)).catch(al.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))},a6.prototype.enqueue=function(e,t){var r={id:aO(),flushAfter:new Date().getTime()+2*t,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),m.resolve(!0))},a6.prototype._enqueuePersisted=function(e){var t=al.bind(function(){return this.ensureInit().then(al.bind(function(){return this.readFromStorage()},this)).then(al.bind(function(t){return this.saveToStorage(t.concat(e))},this)).then(al.bind(function(t){return t&&(this.memQueue=this.memQueue.concat(e)),t},this)).catch(al.bind(function(t){return this.reportError("Error enqueueing items",t,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(al.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this))},a6.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(al.bind(function(){return this.readFromStorage()},this)).then(al.bind(function(r){if(r.length){var n={};al.each(t,function(e){n[e.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):m.resolve(t)};var a9=function(e,t){var r=[];return al.each(e,function(e){e.id&&!t[e.id]&&r.push(e)}),r};a6.prototype.removeItemsByID=function(e){var t={};if(al.each(e,function(e){t[e]=!0}),this.memQueue=a9(this.memQueue,t),!this.usePersistence)return m.resolve(!0);var r=al.bind(function(){return this.ensureInit().then(al.bind(function(){return this.readFromStorage()},this)).then(al.bind(function(e){return e=a9(e,t),this.saveToStorage(e)},this)).then(al.bind(function(){return this.readFromStorage()},this)).then(al.bind(function(e){for(var r=0;r<e.length;r++){var n=e[r];if(n.id&&t[n.id])throw Error("Item not removed from storage")}return!0},this)).catch(al.bind(function(t){return this.reportError("Error removing items",t,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(al.bind(function(e){return this.reportError("Error acquiring storage lock",e),!a_(this.lock.storage,!0)&&r().then(al.bind(function(e){return e||this.queueStorage.removeItem(this.storageKey).then(function(){return e})},this)).catch(al.bind(function(e){return this.reportError("Error clearing queue",e),!1},this))},this))};var a8=function(e,t){var r=[];return al.each(e,function(e){var n=e.id;if(n in t){var i=t[n];null!==i&&(e.payload=i,r.push(e))}else r.push(e)}),r};a6.prototype.updatePayloads=function(e){return(this.memQueue=a8(this.memQueue,e),this.usePersistence)?this.lock.withLock(al.bind(function(){return this.ensureInit().then(al.bind(function(){return this.readFromStorage()},this)).then(al.bind(function(t){return t=a8(t,e),this.saveToStorage(t)}
11,this)).catch(al.bind(function(t){return this.reportError("Error updating items",e,t),!1},this))},this),this.pid).catch(al.bind(function(e){return this.reportError("Error acquiring storage lock",e),!1},this)):m.resolve(!0)},a6.prototype.readFromStorage=function(){return this.ensureInit().then(al.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(al.bind(function(e){return e&&!al.isArray(e)&&(this.reportError("Invalid storage entry:",e),e=null),e||[]},this)).catch(al.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))},a6.prototype.saveToStorage=function(e){return this.ensureInit().then(al.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(al.bind(function(e){return this.reportError("Error saving queue",e),!1},this))},a6.prototype.clear=function(){return(this.memQueue=[],this.usePersistence)?this.ensureInit().then(al.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):m.resolve()};var a7=ad("batch"),ue=function(e,t){this.errorReporter=t.errorReporter,this.queue=new a6(e,{errorReporter:al.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};ue.prototype.enqueue=function(e){return this.queue.enqueue(e,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(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(al.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},ue.prototype.sendRequestPromise=function(e,t){return new m(al.bind(function(r){this.sendRequest(e,t,r)},this))},ue.prototype.flush=function(e){if(this.requestInProgress)return a7.log("Flush: Request already in progress"),m.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(al.bind(function(i){var o=i.length===n,s=[],a={};if(al.each(i,function(e){var t=e.payload;if(this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t){t.event&&t.properties&&(t.properties=al.extend({},t.properties,{mp_sent_by_lib_version:A.LIB_VERSION}));var r=!0,n=e.id;n?(this.itemIdsSentSuccessfully[n]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[n]}),r=!1):this.reportError("[dupe] found item with no ID",{item:e}),r&&s.push(t)}a[e.id]=t},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),m.resolve();var u=al.bind(function(){return this.queue.removeItemsByID(al.map(i,function(e){return e.id})).then(al.bind(function(e){return(al.each(i,al.bind(function(e){var t=e.id;t?(this.itemIdsSentSuccessfully[t]=this.itemIdsSentSuccessfully[t]||0,this.itemIdsSentSuccessfully[t]++,this.itemIdsSentSuccessfully[t]>5&&this.reportError("[dupe] item ID sent too many times",{item:e,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[t]})):this.reportError("[dupe] found item with no ID while removing",{item:e})},this)),e)?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o)?(this.resetFlush(),m.resolve()):this.flush():(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),m.resolve())},this))},this),c=al.bind(function(o){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(a);if(al.isObject(o)&&"timeout"===o.error&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(al.isObject(o)&&(o.httpStatusCode>=500||429===o.httpStatusCode||o.httpStatusCode<=0&&!aR()||"timeout"===o.error)){var s=2*this.flushInterval;return o.retryAfter&&(s=1e3*parseInt(o.retryAfter,10)||s),s=Math.min(6e5,s),this.reportError("Error; retry in "+s+" ms"),this.scheduleFlush(s),m.resolve()}else{if(!al.isObject(o)||413!==o.httpStatusCode)return u();if(!(i.length>1))return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),u();var c=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,c,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),m.resolve()}}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(l.transport="sendBeacon"),a7.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(c)},this)).catch(al.bind(function(e){this.reportError("Error flushing request queue",e),this.resetFlush()},this))},ue.prototype.reportError=function(e,t){if(a7.error.apply(a7.error,arguments),this.errorReporter)try{t instanceof Error||(t=Error(e)),this.errorReporter(e,t)}catch(e){a7.error(e)}};var ut=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},ur=function(e,t){if(!al.isArray(e))return e&&t.critical("record_allowed_iframe_origins must be an array of origin strings, cross-origin recording will be disabled."),[];for(var r=[],n=0;n<e.length;n++)try{var i=new URL(e[n]).origin;if("null"===i){t.critical(e[n]+" has an opaque origin. Skipping this entry.");continue}r.push(i)}catch(r){t.critical(e[n]+" is not a valid origin URL. Skipping this entry.")}return r},un="change",ui="click",uo="hashchange",us="load",ua="mp_locationchange",uu="popstate",uc="scrollend",ul="scroll",uh="submit",up="visibilitychange",ud=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],uf=["mp-include"],um=["mp-no-track"],ug=um.concat(["mp-sensitive"]),uv=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],uy={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},u_={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},ub={article:!0,div:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,p:!0,section:!0,span:!0},uw=["onclick","onmousedown","onmouseup","onpointerdown","onpointerup","ontouchend","ontouchstart"],uk=ad("autocapture");function uS(e){for(var t={},r=ux(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function ux(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function uC(e,t,r,n,i,o){var s={$classes:ux(e).split(" "),$tag_name:e.tagName.toLowerCase()},a=e.id;a&&(s.$id=a),uP(e,t,i,o)&&al.each(uv.concat(n),function(t){if(e.hasAttribute(t)&&!r[t]){var n=e.getAttribute(t);uF(n)&&(s["$attr-"+t]=n)}});for(var u=1,c=1,l=e;l=function(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!uM(e))return e}(l);)u++,l.tagName===e.tagName&&c++;return s.$nth_child=u,s.$nth_of_type=c,s}function uI(e,t,r,n){var i="";return uP(e,t,r,n)&&e.childNodes&&e.childNodes.length&&al.each(e.childNodes,function(e){uT(e)&&e.textContent&&(i+=al.trim(e.textContent).split(/(\s+)/).filter(uF).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),al.trim(i)}function uO(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(e){return uk.critical("Error while checking element in allowElementCallback",e),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(e){uk.critical("Error while checking selector: "+o,e)}}return!1}function uE(e,t,r,n){if(r)try{if(r(e,t))return!0}catch(e){return uk.critical("Error while checking element in blockElementCallback",e),!0}if(n&&n.length)for(i=0;i<n.length;i++){var i,o=n[i];try{if(e.matches(o))return!0}catch(e){uk.critical("Error while checking selector: "+o,e)}}var s=uS(e);for(i=0;i<um.length;i++)if(s[um[i]])return!0;return!1}function uM(e){return e&&1===e.nodeType}function uA(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}
11function uT(e){return e&&3===e.nodeType}function uR(e){var t=(e.name||e.id||"").toString().toLowerCase();return!!("string"==typeof t&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(t.replace(/[^a-zA-Z0-9]/g,"")))||!1}function uP(e,t,r,n){if(!uO(e,t,r,n))return!1;for(var i,o=e;o.parentNode&&!uA(o,"body");o=o.parentNode){var s=uS(o);for(i=0;i<ug.length;i++)if(s[ug[i]])return!1}var a=uS(e);for(i=0;i<uf.length;i++)if(a[uf[i]])return!0;if(uA(e,"input")||uA(e,"select")||uA(e,"textarea")||"true"===e.getAttribute("contenteditable"))return!1;var u=e.type||"";if("string"==typeof u)switch(u.toLowerCase()){case"hidden":case"password":return!1}return!uR(e)}function uF(e){if(null===e||al.isUndefined(e))return!1;if("string"==typeof e&&(e=al.trim(e),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((e||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(e)))return!1;return!0}function uL(e){var t="onscrollend"in sa,r=af(e),n=uc;if(!t){var i=null;r=af(function(){clearTimeout(i),i=setTimeout(e,100)}),n=ul}return{listener:r,eventType:n}}function uN(e){var t,r=e.tagName.toLowerCase();return!!("button"===r||"input"===r||"select"===r||"textarea"===r||"details"===r||"dialog"===r||e.isContentEditable||e.onclick||e.onmousedown||e.onmouseup||e.ontouchstart||e.ontouchend||function(e){for(var t=0;t<uw.length;t++)if(e.hasAttribute(uw[t]))return!0;return!1}(e))||!!((t=e.getAttribute("role"))&&uy[t.trim().split(/\s+/)[0].toLowerCase()]||"a"===r&&e.hasAttribute("href")||e.hasAttribute("tabindex"))}function uD(e){if(!e||!e.tagName)return!0;var t=e.tagName.toLowerCase();if(u_[t])return!0;if(uN(e))return!1;for(var r=e.parentElement,n=0;r&&n<5;){if(uN(r))return!1;if(r.getRootNode&&r.getRootNode()!==ae){var i=r.getRootNode();if(i.host&&uN(i.host))return!1}r=r.parentElement,n++}return!!ub[t]}function uU(e){return"composedPath"in e?e.composedPath():[]}function uj(e){var t=uU(e);return t&&t.length>0?t[0]:e.target||e.srcElement}var uB=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",uq=["password","email","tel","hidden"];function uz(e){return e?Array.isArray(e)?e:[e]:[]}function uV(e,t){return!!t&&!!e.closest(t)}function u$(e,t){var r=(e.getAttribute("type")||"").toLowerCase();if(-1!==uq.indexOf(r))return!0;var n=(e.getAttribute("autocomplete")||"").toLowerCase();return!!(n&&""!==n&&"off"!==n||e.hasAttribute("data-rr-is-password")||uR(e))||(t.input.maskAll?!uV(e,t.input.unmaskingSelector):!!(uV(e,t.input.maskingSelector)||uV(e,uB)))}function uW(e,t){return!!e&&(!!(t.text._legacyClassRegex&&function e(t,r,n){if(!t)return!1;
11if(t.nodeType!==t.ELEMENT_NODE)return e(iD(t),r);for(var i=t.classList.length;i--;){var o=t.classList[i];if(r.test(o))return!0}return e(iD(t),r)}(e,t.text._legacyClassRegex))||(t.text.maskAll?!uV(e,t.text.unmaskingSelector):!!(uV(e,t.text.maskingSelector)||uV(e,uB))))}var uG=ad("network-plugin");function uH(e){return Math.round(Date.now()-e.performance.now())}var uY={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 uJ(e){return"resource"===e.entryType}function uZ(e,t,r){if(!(t in e)||"function"!=typeof e[t])return function(){};var n=e[t],i=r(n);return e[t]=i,function(){e[t]=n}}function uK(e){return e&&"string"==typeof e&&e.length>1048576?(uG.error("Body truncated from "+e.length+" to 1048576 characters"),e.substring(0,1048576)+"... [truncated]"):e}function uX(e,t,r){return!!t[e]&&0!==t[e].length&&t[e].includes(r.toLowerCase())}function uQ(e,t,r){return!!t[e]&&0!==t[e].length&&aF(r,t[e])}function u0(e){var t;if(null==e)return null;if("string"==typeof e)t=e;else if(e instanceof Document)t=e.textContent;else if(e instanceof FormData)t=al.HTTPBuildQuery(e);else if(!al.isObject(e))return"Cannot read body of type "+typeof e;else try{t=JSON.stringify(e)}catch(e){return"Failed to stringify response object"}return uK(t)}function u1(e){return new Promise(function(t){var r=setTimeout(function(){t("Timeout while trying to read body")},500);try{e.clone().text().then(function(e){clearTimeout(r),t(uK(e))},function(e){clearTimeout(r),t("Failed to read body: "+String(e))})}catch(e){clearTimeout(r),t("Failed to read body: "+String(e))}})}function u2(e,t,r,n,i,o){if(void 0===o&&(o=0),o>10)return uG.error("Cannot find performance entry"),Promise.resolve(null);var s=function(e,t){for(var r=e.length,n=r-1;n>=0;n-=1)if(t(e[n]))return e[n]}(e.performance.getEntriesByName(r),function(e){return uJ(e)&&e.initiatorType===t&&(!n||e.startTime>=n)&&(!i||e.startTime<=i)});return s?Promise.resolve(s):new Promise(function(e){setTimeout(e,50*o)}).then(function(){return u2(e,t,r,n,i,o+1)})}function u3(e,t,r){if(!("performance"in t))return function(){};var n=Object.assign({},uY.recordHeaders,r.recordHeaders||{}),i=Object.assign({},uY.recordBodyUrls,r.recordBodyUrls||{}),o=Object.assign({},uY,r=Object.assign({},r,{recordHeaders:n,recordBodyUrls:i})),s=function(t){var r=t.requests.filter(function(e){return!aF(e.url,o.ignoreRequestUrls||[])&&!o.ignoreRequestFn(e)});(r.length>0||t.isInitial)&&e(Object.assign({},t,{requests:r}))},a=function(e,t,r){if(!t.PerformanceObserver)return uG.error("PerformanceObserver not supported"),function(){};r.recordInitialRequests&&e({requests:t.performance.getEntries().filter(function(e){return"navigation"===e.entryType||uJ(e)&&r.initiatorTypes.includes(e.initiatorType)}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:uH(t)}}),isInitial:!0});var n=new t.PerformanceObserver(function(n){e({requests:n.getEntries().filter(function(e){return uJ(e)&&r.initiatorTypes.includes(e.initiatorType)&&"xmlhttprequest"!==e.initiatorType&&"fetch"!==e.initiatorType}).map(function(e){return{url:e.name,initiatorType:e.initiatorType,status:"responseStatus"in e?e.responseStatus:void 0,startTime:Math.round(e.startTime),endTime:Math.round(e.responseEnd),timeOrigin:uH(t)}})})});return n.observe({entryTypes:["navigation","resource"]}),function(){n.disconnect()}}(s,t,o),u=function(e,t,r){if(!r.initiatorTypes.includes("xmlhttprequest"))return function(){};var n=uZ(t.XMLHttpRequest.prototype,"open",function(n){return function(i,o,s,a,u){void 0===s&&(s=!0);var c,l,h=this,p=new Request(o,{method:i}),d={},f={},m=h.setRequestHeader.bind(h);h.setRequestHeader=function(e,t){return uX("request",r.recordHeaders,e)&&(f[e]=t),m(e,t)},d.requestHeaders=f;var g=h.send.bind(h);h.send=function(e){return uQ("request",r.recordBodyUrls,p.url)&&(d.requestBody=u0(e)),c=t.performance.now(),g(e)},h.addEventListener("readystatechange",function(){if(h.readyState===h.DONE){l=t.performance.now();var n={},i=h.getAllResponseHeaders();
11i&&i.trim().split(/[\r\n]+/).forEach(function(e){if(e){var t=e.indexOf(": ");if(-1!==t){var i=e.substring(0,t),o=e.substring(t+2);i&&uX("response",r.recordHeaders,i)&&(n[i]=o)}}}),d.responseHeaders=n,uQ("response",r.recordBodyUrls,p.url)&&(d.responseBody=u0(h.response)),u2(t,"xmlhttprequest",p.url,c,l).then(function(r){r?e({requests:[{url:r.name,method:p.method,initiatorType:r.initiatorType,status:h.status,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:uH(t),requestHeaders:d.requestHeaders,requestBody:d.requestBody,responseHeaders:d.responseHeaders,responseBody:d.responseBody}]}):uG.error("Failed to get performance entry for XHR request to "+p.url)}).catch(function(e){uG.error("Error recording XHR request to "+p.url+": "+String(e))})}}),n.call(h,i,o,s,a,u)}});return function(){n()}}(s,t,o),c=function(e,t,r){if(!r.initiatorTypes.includes("fetch"))return function(){};var n=uZ(t,"fetch",function(n){return function(){var i,o,s,a,u=new Request(arguments[0],arguments[1]),c={},l=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var p={};u.headers.forEach(function(e,t){uX("request",r.recordHeaders,t)&&(p[t]=e)}),c.requestHeaders=p,uQ("request",r.recordBodyUrls,u.url)&&(l=u1(u).then(function(e){c.requestBody=e})),o=t.performance.now(),a=n.apply(t,arguments).then(function(e){i=e,s=t.performance.now();var n={};return i.headers.forEach(function(e,t){uX("response",r.recordHeaders,t)&&(n[t]=e)}),c.responseHeaders=n,uQ("response",r.recordBodyUrls,u.url)&&(h=u1(i).then(function(e){c.responseBody=e})),i})}catch(e){a=Promise.reject(e)}return Promise.all([l,h,a]).then(function(){return u2(t,"fetch",u.url,o,s)}).then(function(r){r?e({requests:[{url:r.name,method:u.method,initiatorType:r.initiatorType,status:i?i.status:void 0,startTime:Math.round(r.startTime),endTime:Math.round(r.responseEnd),timeOrigin:uH(t),requestHeaders:c.requestHeaders,requestBody:c.requestBody,responseHeaders:c.responseHeaders,responseBody:c.responseBody}]}):uG.error("Failed to get performance entry for fetch request to "+u.url)}).catch(function(e){uG.error("Error recording fetch request to "+u.url+": "+String(e))}),a}});return function(){n()}}(s,t,o);return function(){a(),u(),c()}}var u4=ad("recorder"),u5=sa.CompressionStream,u6={batch_size:1e3,batch_flush_interval_ms:1e4,batch_request_timeout_ms:9e4,batch_autostart:!0},u9=new Set([nG.MouseMove,nG.MouseInteraction,nG.Scroll,nG.ViewportResize,nG.Input,nG.TouchMove,nG.MediaInteraction,nG.Drag,nG.Selection]),u8=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||aP,this._onMaxLengthReached=e.onMaxLengthReached||aP,this._onBatchSent=e.onBatchSent||aP,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.lastEventTimestamp=e.lastEventTimestamp||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=864e5,this.recordMinMs=0,this._recordMinMsCheckStart=null;var t=a_(e.sharedLockStorage||ak(),!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new aU(aj,aB,az),this.batcher=new ue(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:u6,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:250,sharedLockTimeoutMS:1e4})};u8.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e},u8.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init(
11).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))},u8.prototype.getConfig=function(e){return this._mixpanel.get_config(e)},u8.prototype.get_config=function(e){return this.getConfig(e)},u8.prototype.startRecording=function(e){if(null===this._rrwebRecord)return void this.reportError("rrweb record function not provided. ");if(null!==this._stopRecording)return void u4.log("Recording already in progress, skipping startRecording.");this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>864e5&&(this.recordMaxMs=864e5,u4.critical("record_max_ms cannot be greater than 86400000ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=al.info.currentUrl(),this.replayStartUrl=al.info.currentUrl()),e||this.recordMinMs>0?(this.batcher.stop(),this._recordMinMsCheckStart=null):this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var e=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,e),this.idleExpires=new Date().getTime()+e}).bind(this);t();var r=this.getConfig("record_block_selector");(""===r||null===r)&&(r=void 0);var n=function(e){var t={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},r=e.get_config("record_mask_input_selector"),n=e.get_config("record_unmask_input_selector"),i=e.get_config("record_mask_all_inputs");t.input.maskingSelector=uz(r).join(","),t.input.unmaskingSelector=uz(n).join(","),void 0!==i&&(t.input.maskAll=i);var o=e.get_config("record_mask_text_selector"),s=e.get_config("record_unmask_text_selector"),a=e.get_config("record_mask_all_text"),u=e.get_config("record_mask_text_class"),c=uz(o);if(u)if(u instanceof RegExp)t.text._legacyClassRegex=u;else{var l="."+u;-1===c.indexOf(l)&&c.push(l)}return t.text.maskingSelector=c.join(","),t.text.unmaskingSelector=uz(s).join(","),void 0===a&&void 0!==o?t.text.maskAll=!1:void 0!==a&&(t.text.maskAll=a),t}(this._mixpanel),i=[];if(this.getConfig("record_network")){var o=this.getConfig("record_network_options")||{},s=(o.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),o.ignoreRequestUrls=s,i.push({name:"rrweb/[email protected]",observer:u3,options:o})}this.getConfig("record_console")&&i.push({name:"rrweb/console@1",observer:o9,options:{stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}});var a=ur(this.getConfig("record_allowed_iframe_origins"),u4);try{this._stopRecording=this._rrwebRecord({emit:(function(e){this.idleExpires&&this.idleExpires<e.timestamp?this._onIdleTimeout():(null===this._recordMinMsCheckStart&&(this._recordMinMsCheckStart=e.timestamp),e.type===nW.IncrementalSnapshot&&u9.has(e.data.source)&&(this.batcher.stopped&&e.timestamp-this._recordMinMsCheckStart>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(e),(null===this.lastEventTimestamp||e.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=e.timestamp))}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(u$,n),maskTextFn:this._getMaskFn(uW,n),recordCrossOriginIframes:a.length>0,allowedIframeOrigins:a,recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:i})}catch(e){this.reportError("Unexpected error when starting rrweb recording.",e)}if("function"!=typeof this._stopRecording){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var u=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),u)},u8.prototype.stopRecording=function(e){var t;if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(e){this.reportError("Error with rrweb stopRecording",e)}this._stopRecording=null}return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t},u8.prototype.isRrwebStopped=function(){return null===this._stopRecording},u8.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(e){0===e&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)},u8.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,lastEventTimestamp:this.lastEventTimestamp,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}},u8.deserialize=function(e,t){return new u8(al.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,lastEventTimestamp:e.lastEventTimestamp,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}))},u8.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},u8.prototype._sendRequest=function(e,t,r,n){var i=(function(t,r){200===t.status&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=al.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:t.status,responseBody:r,retryAfter:t.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");sa.fetch(o+"/"+this._getApiRoute()+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(e){e.json().then(function(t){i(e,t)}).catch(function(e){n({error:e})})}).catch(function(e){n({error:e,httpStatusCode:0})})},u8.prototype._flushEvents=aH(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,s=-1/0,a=!1,u=0;u<n;u++)o=Math.min(o,e[u].timestamp),s=Math.max(s,e[u].timestamp),e[u].type===nW.FullSnapshot&&(a=!0);if(0===this.seqNo){if(!a){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:A.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},h=JSON.stringify(e);Object.assign(l,this.getUserIdInfo()),aD(an,s7.vendor,at)?new Response(new Blob([h],{type:"application/json"}).stream().pipeThrough(new u5("gzip"))).blob().then((function(e){l.format="gzip",this._sendRequest(i,l,e,r)}).bind(this)):(l.format="body",this._sendRequest(i,l,h,r))}}),u8.prototype.reportError=function(e,t){u4.error.apply(u4.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.getConfig("error_reporter")(e,t)}catch(e){u4.error(e)}},u8.prototype.getDurationMs=function(){return null===this.replayStartTime?0:null===this.lastEventTimestamp?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},u8.prototype._getRecordMinMs=function(){var e=this.getConfig("record_min_ms");return e>8e3?(u4.critical("record_min_ms cannot be greater than 8000ms. Capping value."),8e3):e},u8.prototype._getMaskFn=function(e,t){return(function(r,n){if(!r.trim().length)return"";var i=!0;try{i=e(n,t)}catch(e){this.reportError("Error checking if text should be masked, defaulting to masked",e)}if(!i)return r;var o=Math.min(r.length,1e4);return"*".repeat(o)}).bind(this)};
11var u7=function(e){this.idb=new aU(aj,aq,az),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};u7.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},u7.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)},u7.prototype.setActiveRecording=function(e){if(!this.isPersistenceEnabled())return m.resolve();var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),m.resolve())},u7.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return ut(e)?null:e}).bind(this)).catch(this.handleError.bind(this)):m.resolve(null)},u7.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},u7.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))},u7.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):m.resolve()},u7.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(e){return ut(e)}).map((function(e){return u8.deserialize(e,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage}).unloadPersistedData().then((function(){return this.idb.removeItem(e.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return m.all(t)}).bind(this)).catch(this.handleError.bind(this)):m.resolve([])};var ce=ad("recorder"),ct=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||iT,this.sharedLockStorage=r,this.recordingRegistry=new u7({mixpanelInstance:this.mixpanelInstance,errorReporter:ce.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};ct.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped())return void ce.log("Recording already in progress, skipping startRecording.");var t=(function(){ce.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){ce.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:al.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=u8.deserialize(e.activeSerializedRecording,i):this.activeRecording=new u8(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},ct.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))},ct.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},ct.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return m.resolve()},ct.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),m.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(ce.log("No resumable recording found."),null)}).bind(this))},ct.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},ct.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},ct.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(ct.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),sa[R]=ct;var cr={exports:{}},cn=(cr.exports,(f=function(){var e,t;if(g)return cr.exports;return g=1,Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,r){return void 0===r?e<t:e<t&&t<r},"<=":function(e,t,r){return void 0===r?e<=t:e<=t&&t<=r},"!!":function(t){return e.truthy(t)},"!":function(t){return!e.truthy(t)},"%":function(e,t){return e%t},log:function(e){return console.log(e),e},in:function(e,t){return!!t&&void 0!==t.indexOf&&-1!==t.indexOf(e)},cat:function(){return Array.prototype.join.call(arguments,"")},substr:function(e,t,r){if(r<0){var n=String(e).substr(t);return n.substr(0,n.length+r)}return String(e).substr(t,r)},"+":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)+parseFloat(t,10)},0)},"*":function(){return Array.prototype.reduce.call(arguments,function(e,t){return parseFloat(e,10)*parseFloat(t,10)})},"-":function(e,t){return void 0===t?-e:e-t},"/":function(e,t){return e/t},min:function(){return Math.min.apply(this,arguments)},max:function(){return Math.max.apply(this,arguments)},merge:function(){return Array.prototype.reduce.call(arguments,function(e,t){return e.concat(t)},[])},var:function(e,t){var r=void 0===t?null:t,n=this;if(void 0===e||""===e||null===e)return n;for(var i=String(e).split("."),o=0;o<i.length;o++)if(null==n||void 0===(n=n[i[o]]))return r;return n},missing:function(){for(var t=[],r=Array.isArray(arguments[0])?arguments[0]:arguments,n=0;n<r.length;n++){var i=r[n],o=e.apply({var:i},this);
11(null===o||""===o)&&t.push(i)}return t},missing_some:function(t,r){var n=e.apply({missing:r},this);return r.length-n.length>=t?[]:n}},e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return(!Array.isArray(e)||0!==e.length)&&!!e},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(r,n){if(Array.isArray(r))return r.map(function(t){return e.apply(t,n)});if(!e.is_logic(r))return r;var i,o,s,a,u,c=e.get_operator(r),l=r[c];if(Array.isArray(l)||(l=[l]),"if"===c||"?:"==c){for(i=0;i<l.length-1;i+=2)if(e.truthy(e.apply(l[i],n)))return e.apply(l[i+1],n);return l.length===i+1?e.apply(l[i],n):null}if("and"===c){for(i=0;i<l.length&&(o=e.apply(l[i],n),e.truthy(o));i+=1);return o}if("or"===c){for(i=0;i<l.length&&(o=e.apply(l[i],n),!e.truthy(o));i+=1);return o}if("filter"===c)return(a=e.apply(l[0],n),s=l[1],Array.isArray(a))?a.filter(function(t){return e.truthy(e.apply(s,t))}):[];if("map"===c)return(a=e.apply(l[0],n),s=l[1],Array.isArray(a))?a.map(function(t){return e.apply(s,t)}):[];else if("reduce"===c)return(a=e.apply(l[0],n),s=l[1],u=void 0!==l[2]?e.apply(l[2],n):null,Array.isArray(a))?a.reduce(function(t,r){return e.apply(s,{current:r,accumulator:t})},u):u;else if("all"===c){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(!e.truthy(e.apply(s,a[i])))return!1;return!0}else if("none"===c){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!0;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!1;return!0}else if("some"===c){if(a=e.apply(l[0],n),s=l[1],!Array.isArray(a)||!a.length)return!1;for(i=0;i<a.length;i+=1)if(e.truthy(e.apply(s,a[i])))return!0;return!1}if(l=l.map(function(t){return e.apply(t,n)}),t.hasOwnProperty(c)&&"function"==typeof t[c])return t[c].apply(n,l);if(c.indexOf(".")>0){var h=String(c).split("."),p=t;for(i=0;i<h.length;i++){if(!p.hasOwnProperty(h[i]))throw Error("Unrecognized operation "+c+" (failed at "+h.slice(0,i+1).join(".")+")");p=p[h[i]]}return p.apply(n,l)}throw Error("Unrecognized operation "+c)},e.uses_data=function(t){var r=[];if(e.is_logic(t)){var n=e.get_operator(t),i=t[n];Array.isArray(i)||(i=[i]),"var"===n?r.push(i[0]):i.forEach(function(t){r.push.apply(r,e.uses_data(t))})}for(var o=[],s=0,a=r.length;s<a;s++)-1===o.indexOf(r[s])&&o.push(r[s]);return o},e.add_operation=function(e,r){t[e]=r},e.rm_operation=function(e){delete t[e]},e.rule_like=function(t,r){if(r===t||"@"===r)return!0;if("number"===r)return"number"==typeof t;if("string"===r)return"string"==typeof t;if("array"===r)return Array.isArray(t)&&!e.is_logic(t);if(e.is_logic(r)){if(e.is_logic(t)){var n=e.get_operator(r),i=e.get_operator(t);if("@"===n||n===i)return e.rule_like(e.get_values(t,!1),e.get_values(r,!1))}return!1}if(Array.isArray(r)&&Array.isArray(t)){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o+=1)if(!e.rule_like(t[o],r[o]))return!1;return!0}return!1},cr.exports=e,cr.exports}())&&f.__esModule&&Object.prototype.hasOwnProperty.call(f,"default")?f.default:f),ci={};function co(){this.clicks=[]}function cs(e,t){this.changeCallback=e||function(){},this.observerConfig=t,this.observedShadowRoots=null,this.shadowObservers=[]}ci.eventMatchesCriteria=function(e,t,r){if(e!==r.event_name)return{matches:!1};var n=r.property_filters,i=!0;if(n&&!al.isEmptyObject(n))try{i=cn.apply(n,t||{})}catch(e){return{matches:!1,error:e.toString()}}return{matches:i}},sa[T]=Promise.resolve(ci),co.prototype.isRageClick=function(e,t){var r=(t=t||{}).threshold_px||30,n=t.timeout_ms||1e3,i=t.click_count||4;if(t.interactive_elements_only){var o=uj(e);if(!o||uD(o))return!1}var s=Date.now(),a=e.pageX,u=e.pageY,c=this.clicks[this.clicks.length-1];if(c&&s-c.timestamp<n&&Math.sqrt(Math.pow(a-c.x,2)+Math.pow(u-c.y,2))<r){if(this.clicks.push({x:a,y:u,timestamp:s}),this.clicks.length>=i)return this.clicks=[],!0}else this.clicks=[{x:a,y:u,timestamp:s}];return!1},cs.prototype.getEventTarget=function(e){if(this.observedShadowRoots)return uj(e)},cs.prototype.observeFromEvent=function(e){if(this.observedShadowRoots)for(var t=uU(e),r=0;r<t.length;r++){var n=t[r];n&&n.shadowRoot&&this.observeShadowRoot(n.shadowRoot)}},cs.prototype.observeShadowRoot=function(e){if(!(!this.observedShadowRoots||this.observedShadowRoots.has(e))){var t=this;try{this.observedShadowRoots.add(e);var r=new window.MutationObserver(function(){t.changeCallback()});r.observe(e,this.observerConfig),this.shadowObservers.push(r)}catch(e){uk.critical("Error while observing shadow root",e)}}}
11,cs.prototype.start=function(){if(!this.observedShadowRoots){if(!("u">typeof WeakSet))return void uk.critical("Shadow DOM observation unavailable: WeakSet not supported");this.observedShadowRoots=new WeakSet}},cs.prototype.stop=function(){if(this.observedShadowRoots){for(var e=0;e<this.shadowObservers.length;e++)try{this.shadowObservers[e].disconnect()}catch(e){uk.critical("Error while disconnecting shadow DOM observer",e)}this.shadowObservers=[],this.observedShadowRoots=null}};var ca=[un,"input",uh,"select","toggle"],cu=[uc],cc=[uo],cl={characterData:!0,childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class","hidden","checked","selected","value","display","visibility"]};function ch(e){this.eventListeners=[],this.mutationObserver=null,this.shadowDOMObserver=null,this.isTracking=!1,this.lastChangeEventTimestamp=0,this.pendingClicks=[],this.onDeadClickCallback=e,this.processingActive=!1,this.processingTimeout=null}ch.prototype.addClick=function(e){var t=this.shadowDOMObserver&&this.shadowDOMObserver.getEventTarget(e);return t||(t=e.target||e.srcElement),!(!t||uD(t))&&(this.shadowDOMObserver&&this.shadowDOMObserver.observeFromEvent(e),this.pendingClicks.push({element:t,event:e,timestamp:Date.now()}),!0)},ch.prototype.trackClick=function(e,t){if(!this.isTracking)return!1;var r=this.addClick(e);return r&&this.triggerProcessing(t),r},ch.prototype.getDeadClicks=function(e){if(0===this.pendingClicks.length)return[];var t=e.timeout_ms,r=Date.now(),n=this.pendingClicks.slice();this.pendingClicks=[];for(var i=[],o=0;o<n.length;o++){var s=n[o];r-s.timestamp>=t?this.hasChangesAfter(s.timestamp)||i.push(s):this.pendingClicks.push(s)}return i},ch.prototype.hasChangesAfter=function(e){return this.lastChangeEventTimestamp>=e-100},ch.prototype.recordChangeEvent=function(){this.lastChangeEventTimestamp=Date.now()},ch.prototype.triggerProcessing=function(e){this.processingActive||(this.processingActive=!0,this.processRecursively(e))},ch.prototype.processRecursively=function(e){if(!this.isTracking||!this.onDeadClickCallback){this.processingActive=!1;return}var t=e.timeout_ms,r=this;this.processingTimeout=setTimeout(function(){if(r.processingActive){for(var t=r.getDeadClicks(e),n=0;n<t.length;n++)r.onDeadClickCallback(t[n].event);r.pendingClicks.length>0?r.processRecursively(e):r.processingActive=!1}},t)},ch.prototype.startTracking=function(){if(!this.isTracking){this.isTracking=!0;var e=this;ca.forEach(function(t){var r=function(){e.recordChangeEvent()};document.addEventListener(t,r,{capture:!0,passive:!0}),e.eventListeners.push({target:document,event:t,handler:r,options:{capture:!0,passive:!0}})}),cc.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r),e.eventListeners.push({target:window,event:t,handler:r})}),cu.forEach(function(t){var r=function(){e.recordChangeEvent()};window.addEventListener(t,r,{passive:!0}),e.eventListeners.push({target:window,event:t,handler:r,options:{passive:!0}})});var t=function(){e.recordChangeEvent()};if(document.addEventListener("selectionchange",t),e.eventListeners.push({target:document,event:"selectionchange",handler:t}),window.MutationObserver)try{this.mutationObserver=new window.MutationObserver(function(){e.recordChangeEvent()}),this.mutationObserver.observe(document.body||document.documentElement,cl)}catch(e){uk.critical("Error while setting up mutation observer",e)}if(window.customElements)try{this.shadowDOMObserver=new cs(function(){e.recordChangeEvent()},cl),this.shadowDOMObserver.start()}catch(e){uk.critical("Error while setting up shadow DOM observer",e),this.shadowDOMObserver=null}}},ch.prototype.stopTracking=function(){if(this.isTracking){this.isTracking=!1,this.pendingClicks=[],this.lastChangeEventTimestamp=0,this.processingActive=!1,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null);for(var e=0;e<this.eventListeners.length;e++){var t=this.eventListeners[e];try{t.target.removeEventListener(t.event,t.handler,t.options)}catch(e){uk.critical("Error while removing event listener",e)}}if(this.eventListeners=[],this.mutationObserver){try{this.mutationObserver.disconnect()}catch(e){uk.critical("Error while disconnecting mutation observer",e)}this.mutationObserver=null}if(this.shadowDOMObserver){try{this.shadowDOMObserver.stop()}catch(e){uk.critical("Error while stopping shadow DOM observer",e)}this.shadowDOMObserver=null}}};var cp="autocapture",cd="full-url",cf="allow_selectors",cm="allow_url_regexes",cg="block_attrs",cv="block_element_callback",cy="block_selectors",c_="block_url_regexes",cb="capture_extra_attrs",cw="capture_text_content",ck="scroll_capture_all",cS="scroll_depth_percent_checkpoints",cx="click",cC="dead_click",cI="input",cO="pageview",cE="rage_click",cM="scroll",cA="page_leave",cT="submit",cR={};
11cR[cf]=[],cR[cm]=[],cR[cg]=[],cR[cv]=null,cR[cy]=[],cR[c_]=[],cR[cb]=[],cR[cw]=!1,cR[ck]=!1,cR[cS]=[25,50,75,100],cR[cx]=!0,cR[cC]=!0,cR[cI]=!0,cR[cO]=cd,cR[cE]=!0,cR[cM]=!0,cR[cA]=!1,cR[cT]=!0;var cP={$mp_autocapture:!0},cF="$mp_click",cL="$mp_dead_click",cN="$mp_rage_click",cD=function(e){this.mp=e,this.maxScrollViewDepth=0,this.hasTrackedScrollSession=!1,this.previousScrollHeight=0};cD.prototype.init=function(){!function(){try{return!!ae.createElement("div").matches}catch(e){return!1}}()?uk.critical("Autocapture unavailable: missing required DOM APIs"):(this.initPageListeners(),this.initPageviewTracking(),this.initClickTracking(),this.initDeadClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking(),this.initPageLeaveTracking())},cD.prototype.getFullConfig=function(){var e=this.mp.get_config(cp);return e?al.isObject(e)?al.extend({},cR,e):cR:{}},cD.prototype.getConfig=function(e){return this.getFullConfig()[e]},cD.prototype.currentUrlBlocked=function(){var e=al.info.currentUrl(),t=this.getConfig(cm)||[];if(t.length)try{return!aF(e,t)}catch(e){return uk.critical("Error while checking block URL regexes: ",e),!0}var r=this.getConfig(c_)||[];if(!r||!r.length)return!1;try{return aF(e,r)}catch(e){return uk.critical("Error while checking block URL regexes: ",e),!0}},cD.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(cp)?this.getConfig(cO):this.mp.get_config("track_pageview")},cD.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===cF&&!this.getConfig(cx)||t===cN&&!this._getClickTrackingConfig(cE)||t===cL&&!this._getClickTrackingConfig(cC)),n=function(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,s=t.blockSelectors||[],a=t.captureTextContent||!1,u=t.captureExtraAttrs||[],c=t.capturedForHeatMap||!1,l={};al.each(i,function(e){l[e]=!0});var h=null,p=void 0===e.target?e.srcElement:e.target;if(uT(p)&&(p=p.parentNode),function(e,t){if(!e||uA(e,"html")||!uM(e))return!1;switch(e.tagName.toLowerCase()){case"form":return t.type===uh;case"input":if(-1===["button","submit"].indexOf(e.getAttribute("type")))return t.type===un;return t.type===ui;case"select":case"textarea":return t.type===un;default:return t.type===ui}}(p,e)&&uO(p,e,r,n)&&!uE(p,e,o,s)){for(var d=[p],f=p;f.parentNode&&!uA(f,"body");)d.push(f.parentNode),f=f.parentNode;var m,g=[],v=!1;if(al.each(d,function(t){var i=uP(t,e,r,n);l.href||"a"!==t.tagName.toLowerCase()||(m=t.getAttribute("href"),m=i&&uF(m)&&m),uE(t,e,o,s)&&(v=!0),g.push(uC(t,e,l,u,r,n))},this),!v){var y=ae.documentElement;if(h={$event_type:e.type,$host:sa.location.host,$pathname:sa.location.pathname,$elements:g,$el_attr__href:m,$viewportHeight:Math.max(y.clientHeight,sa.innerHeight||0),$viewportWidth:Math.max(y.clientWidth,sa.innerWidth||0),$pageHeight:ae.body.offsetHeight||0,$pageWidth:ae.body.offsetWidth||0},al.each(u,function(e){if(!l[e]&&p.hasAttribute(e)){var t=p.getAttribute(e);uF(t)&&(h["$el_attr__"+e]=t)}}),a&&(_=uI(p,e,r,n))&&_.length&&(h.$el_text=_),e.type===ui&&(al.each(ud,function(t){t in e&&(h["$"+t]=e[t])}),c&&(h.$captured_for_heatmap=!0),p=function(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(uA(i,"a")||uA(i,"button")||uA(i,"input")||uA(i,"select")||i.getAttribute&&"button"===i.getAttribute("role")){t=i;break}if(i===t)break}return t}(e)),a){var _=uI(p,e,r,n);_&&_.length&&(h.$el_text=_)}if(p){if(!uO(p,e,r,n)||uE(p,e,o,s))return null;var b=uC(p,e,l,u,r,n);h.$target=b,h.$el_classes=b.$classes,al.extend(h,al.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return h}(e,{allowElementCallback:this.getConfig("allow_element_callback"),allowSelectors:this.getConfig(cf),blockAttrs:this.getConfig(cg),blockElementCallback:this.getConfig(cv),blockSelectors:this.getConfig(cy),captureExtraAttrs:this.getConfig(cb),captureTextContent:this.getConfig(cw),capturedForHeatMap:r});n&&(al.extend(n,cP),this.mp.track(t,n))}},cD.prototype.initPageListeners=function(){if(sa.removeEventListener(uu,this.listenerPopstate),sa.removeEventListener(uo,this.listenerHashchange),this.pageviewTrackingConfig()||this.getConfig(cA)||this.mp.get_config("record_heatmap_data")){this.listenerPopstate=function(){sa.dispatchEvent(new Event(ua))},this.listenerHashchange=function(){sa.dispatchEvent(new Event(ua))},sa.addEventListener(uu,this.listenerPopstate),sa.addEventListener(uo,this.listenerHashchange);var e=sa.history.pushState;"function"==typeof e&&(sa.history.pushState=function(t,r,n){e.call(sa.history,t,r,n),sa.dispatchEvent(new Event(ua))});var t=sa.history.replaceState;"function"==typeof t&&(sa.history.replaceState=function(e,r,n){t.call(sa.history,e,r,n),sa.dispatchEvent(new Event(ua))})}},cD.prototype._getClickTrackingConfig=function(e){var t=this.getConfig(e);return t?!0===t?{}:"object"==typeof t?t:{}:null},cD.prototype._trackPageLeave=function(e,t,r){if(!this.hasTrackedScrollSession&&(this.getConfig(cA)||this.mp.is_recording_heatmap_data())){this.hasTrackedScrollSession=!0;var n=Math.max(ae.documentElement.clientHeight,sa.innerHeight||0),i=Math.round(Math.max(this.maxScrollViewDepth-n,0)/(r-n)*100),o=Math.round(n/r*100);r<=n&&(i=100,o=100);var s=al.extend({$max_scroll_view_depth:this.maxScrollViewDepth,$max_scroll_percentage:i,$fold_line_percentage:o,$scroll_height:r,$event_type:e.type,$current_url:t||al.info.currentUrl(),$viewportHe
11ight:n,$viewportWidth:Math.max(ae.documentElement.clientWidth,sa.innerWidth||0),$captured_for_heatmap:this.mp.is_recording_heatmap_data()},cP);this.mp.track("$mp_page_leave",s,{transport:"sendBeacon"})}},cD.prototype._initScrollDepthTracking=function(){if(sa.removeEventListener(ul,this.listenerScrollDepth),sa.removeEventListener(uc,this.listenerScrollDepth),this.mp.get_config("record_heatmap_data")){uk.log("Initializing scroll depth tracking"),this.maxScrollViewDepth=Math.max(ae.documentElement.clientHeight,sa.innerHeight||0);var e=uL((function(){if(!this.currentUrlBlocked()){var e=Math.max(ae.documentElement.clientHeight,sa.innerHeight||0)+sa.scrollY;e>this.maxScrollViewDepth&&(this.maxScrollViewDepth=e),this.previousScrollHeight=ae.body.scrollHeight}}).bind(this));this.listenerScrollDepth=e.listener,sa.addEventListener(e.eventType,this.listenerScrollDepth)}},cD.prototype.initClickTracking=function(){sa.removeEventListener(ui,this.listenerClick,!0),(this.getConfig(cx)||this.mp.get_config("record_heatmap_data"))&&(uk.log("Initializing click tracking"),this.listenerClick=(function(e){(this.getConfig(cx)||this.mp.is_recording_heatmap_data())&&this.trackDomEvent(e,cF)}).bind(this),sa.addEventListener(ui,this.listenerClick,!0))},cD.prototype.initDeadClickTracking=function(){this._getClickTrackingConfig(cC)||this.mp.get_config("record_heatmap_data")?(uk.log("Initializing dead click tracking"),this._deadClickTracker||(this._deadClickTracker=new ch((function(e){this.trackDomEvent(e,cL)}).bind(this)),this._deadClickTracker.startTracking()),this.listenerDeadClick||(this.listenerDeadClick=(function(e){var t=this._getClickTrackingConfig(cC);if((t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()){var r=t||{};r.timeout_ms||(r.timeout_ms=500),this._deadClickTracker.trackClick(e,r)}}).bind(this),sa.addEventListener(ui,this.listenerDeadClick,!0))):this.stopDeadClickTracking()},cD.prototype.initInputTracking=function(){sa.removeEventListener(un,this.listenerChange,!0),this.getConfig(cI)&&(uk.log("Initializing input tracking"),this.listenerChange=(function(e){this.getConfig(cI)&&this.trackDomEvent(e,"$mp_input_change")}).bind(this),sa.addEventListener(un,this.listenerChange,!0))},cD.prototype.initPageviewTracking=function(){if(sa.removeEventListener(ua,this.listenerLocationchange),this.pageviewTrackingConfig()||this.mp.get_config("record_heatmap_data")){uk.log("Initializing pageview tracking");var e="",t=!1;(this.pageviewTrackingConfig()||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&(t=this.mp.track_pageview(cP)),t&&(e=al.info.currentUrl()),this.listenerLocationchange=af((function(){if(!this.currentUrlBlocked()){var t=al.info.currentUrl(),r=!1,n=t.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],i=this.pageviewTrackingConfig();!i&&this.mp.is_recording_heatmap_data()&&(i=cd),i===cd?r=t!==e:"url-with-path-and-query-string"===i?r=t.split("#")[0]!==e.split("#")[0]:"url-with-path"===i&&(r=n),r&&(this.mp.track_pageview(cP)&&(e=t),n&&(this.lastScrollCheckpoint=0,uk.log("Path change: re-initializing scroll depth checkpoints")))}}).bind(this)),sa.addEventListener(ua,this.listenerLocationchange)}},cD.prototype.initRageClickTracking=function(){sa.removeEventListener(ui,this.listenerRageClick,!0),(this._getClickTrackingConfig(cE)||this.mp.get_config("record_heatmap_data"))&&(uk.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new co),this.listenerRageClick=(function(e){var t=this._getClickTrackingConfig(cE);(t||this.mp.is_recording_heatmap_data())&&!this.currentUrlBlocked()&&this._rageClickTracker.isRageClick(e,t)&&this.trackDomEvent(e,cN)}).bind(this),sa.addEventListener(ui,this.listenerRageClick,!0))},cD.prototype.initScrollTracking=function(){if(sa.removeEventListener(uc,this.listenerScroll),sa.removeEventListener(ul,this.listenerScroll),this.getConfig(cM)){uk.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0;var e=(function(){if(this.getConfig(cM)&&!this.currentUrlBlocked()){var e=this.getConfig(ck),t=(this.getConfig(cS)||[]).slice().sort(function(e,t){return e-t}
11),r=sa.scrollY,n=al.extend({$scroll_top:r},cP);try{var i=ae.body.scrollHeight,o=Math.round(r/(i-sa.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var s=0;s<t.length;s++){var a=t[s];o>=a&&this.lastScrollCheckpoint<a&&(n.$scroll_checkpoint=a,this.lastScrollCheckpoint=a,e=!0)}}catch(e){uk.critical("Error while calculating scroll percentage",e)}e&&this.mp.track("$mp_scroll",n)}}).bind(this),t=uL(e);this.listenerScroll=t.listener,sa.addEventListener(t.eventType,this.listenerScroll)}},cD.prototype.initSubmitTracking=function(){sa.removeEventListener(uh,this.listenerSubmit,!0),this.getConfig(cT)&&(uk.log("Initializing submit tracking"),this.listenerSubmit=(function(e){this.getConfig(cT)&&this.trackDomEvent(e,"$mp_submit")}).bind(this),sa.addEventListener(uh,this.listenerSubmit,!0))},cD.prototype.initPageLeaveTracking=function(){if(ae.removeEventListener(up,this.listenerPageLeaveVisibilitychange),sa.removeEventListener(ua,this.listenerPageLeaveLocationchange),sa.removeEventListener(us,this.listenerPageLoad),this.getConfig(cA)||this.mp.get_config("record_heatmap_data")){uk.log("Initializing page visibility tracking."),this._initScrollDepthTracking();var e=al.info.currentUrl();this.listenerPageLoad=(function(){this.previousScrollHeight=ae.body.scrollHeight}).bind(this),sa.addEventListener(us,this.listenerPageLoad),this.listenerPageLeaveLocationchange=af((function(t){if(!this.currentUrlBlocked()){var r=al.info.currentUrl();r!==e&&(this._trackPageLeave(t,e,this.previousScrollHeight),e=r,this.maxScrollViewDepth=Math.max(ae.documentElement.clientHeight,sa.innerHeight||0),this.previousScrollHeight=ae.body.scrollHeight,this.hasTrackedScrollSession=!1)}}).bind(this)),sa.addEventListener(ua,this.listenerPageLeaveLocationchange),this.listenerPageLeaveVisibilitychange=(function(t){ae.hidden&&this._trackPageLeave(t,e,this.previousScrollHeight)}).bind(this),ae.addEventListener(up,this.listenerPageLeaveVisibilitychange)}},cD.prototype.stopDeadClickTracking=function(){this.listenerDeadClick&&(sa.removeEventListener(ui,this.listenerDeadClick,!0),this.listenerDeadClick=null),this._deadClickTracker&&(this._deadClickTracker.stopTracking(),this._deadClickTracker=null)},am(cD);var cU=function(e,t){return sa[T]&&"function"==typeof sa[T].then||(sa[T]=new Promise(function(r){e(t,r)}).then(function(){var e=sa[T];if(e&&"function"==typeof e.then)return e;throw Error("targeting failed to load")}).catch(function(e){throw delete sa[T],e})),sa[T]},cj=ad("flags"),cB="mixpanelFlags",cq={version:1,storeNames:[cB]},cz=Object.freeze({NETWORK_ONLY:"networkOnly",NETWORK_FIRST:"networkFirst",PERSISTENCE_UNTIL_NETWORK_SUCCESS:"persistenceUntilNetworkSuccess"}),cV=[cz.NETWORK_ONLY,cz.NETWORK_FIRST,cz.PERSISTENCE_UNTIL_NETWORK_SUCCESS],c$=function(e,t,r){this.idb=new aU("mixpanelFlagsDb",cB,cq),this.persistenceConfig=e,this.persistedVariantsKey="persisted_variants_for_"+t,this.isGloballyDisabled=r||function(){return!1}};c$.prototype.getPolicy=function(){return this.isGloballyDisabled()||!this._isConfigValid()?cz.NETWORK_ONLY:this.persistenceConfig.variantLookupPolicy},c$.prototype.getTtlMs=function(){if(!this._isConfigValid())return 864e5;var e=this.persistenceConfig.persistenceTtlMs;return null==e?864e5:e},c$.prototype._isConfigValid=function(){var e=this.persistenceConfig;return!!e&&(-1===cV.indexOf(e.variantLookupPolicy)?(cj.error("Invalid variantLookupPolicy:",e.variantLookupPolicy),!1):void 0===e.persistenceTtlMs||null===e.persistenceTtlMs||!(e.persistenceTtlMs<=0)||(cj.error("If provided, persistenceTtlMs must be a positive number. Provided value:",e.persistenceTtlMs),!1))},c$.prototype.loadFlagsFromStorage=function(e){var t=al.bind(function(){return this.clear().then(function(){return null}).catch(function(){return null})},this);if(this.getPolicy()===cz.NETWORK_ONLY)return t();var r=this.getTtlMs();return this.idb.init().then(al.bind(function(){return this.idb.getItem(this.persistedVariantsKey)},this)).then(al.bind(function(n){if(!n)return cj.log("No persisted variants found in IndexedDB"),null;if(r&&Date.now()-n.persistedAt>=r)return cj.log("Persisted variants are expiring"),null;if(!e||n.distinctId!==e.distinct_id)return cj.log("Persisted variants found, but for a different distinct_id so clearing."),t();var i=new Map;return al.each(n.flagVariants,function(e,t){i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"persistence",persisted_at_in_ms:n.persistedAt,ttl_in_ms:r})}),cj.log("Loaded",i.size,"variants from IndexedDB for distinct_id",n.distinctId),{flags:i,pendingFirstTimeEvents:n.pendingFirstTimeEvents||{},persistedAtMs:n.persistedAt,ttlMs:r}},this)).catch(al.bind(function(e){return cj.error("Failed to load persisted variants from IndexedDB, so clearing",e),t()},this))},c$.prototype.save=function(e,t,r){if(this.getPolicy()===cz.NETWORK_ONLY)return Promise.resolve();var n={};t.forEach(function(e,t){n[t]={variant_key:e.key,variant_value:e.value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester}});var i={persistedAt:Date.now(),distinctId:e&&e.distinct_id,context:e,flagVariants:n,pendingFirstTimeEvents:r||{}};return this.idb.init().then(al.bind(function(){return this.idb.setItem(this.persistedVariantsKey,i)},this)).then(function(){cj.log("Saved",t.size,"variants to IndexedDB for distinct_id",i.distinctId)}).catch(function(e){cj.error("Failed to persist variants to IndexedDB:",e)})},c$.prototype.clear=function(){return this.isGloballyDisabled()?Promise.resolve():this.idb.init().then(al.bind(function(){return this.idb.removeItem(this.persistedVariantsKey)},this)).then(function(){cj.log("Cleared persisted variants from IndexedDB")}).catch(function(e){cj.error("Failed to clear persisted variants from IndexedDB:",e)})};var cW=ad("flags"),cG="flags",cH="context",cY={};cY[cH]={};var cJ=function(e){return al.isObject(e)?al.extend({},e,{variant_source:"fallback"}):{value:e,variant_source:"fallback"}},cZ=function(e){this.fetch=sa.fetch,this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc,this.loadExtraBundle=e.loadExtraBundle||function(){},this.targetingSrc=e.targetingSrc||""};function cK(e){return null!=e}cZ.prototype.init=function(){return this.minApisSupported()?(this.flags=null,this.trackedFeatures=new Set,this.pendingFirstTimeEvents={},this.activatedFirstTimeEvents={},this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this.persistence=new c$(this.getConfig("persistence"),this.getMpConfig("token"),al.bind(function(){return this.getMpConfig("disable_persistence")}
11,this)),this.persistenceLoadedPromise=this.persistence.loadFlagsFromStorage(this._buildContext()).then(al.bind(function(e){e&&(this.flags=e.flags,this.pendingFirstTimeEvents=e.pendingFirstTimeEvents,this._loadedPersistedAtMs=e.persistedAtMs,this._loadedTtlMs=e.ttlMs)},this)),this.persistenceLoadedPromise.then(al.bind(function(){return this.fetchFlags()},this)).catch(function(){cW.error("Error initializing feature flags")})):void cW.critical("Feature Flags unavailable: missing minimum required APIs")},cZ.prototype._buildContext=function(){return al.extend({distinct_id:this.getMpProperty("distinct_id"),device_id:this.getMpProperty("$device_id")},this.getConfig(cH))},cZ.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(al.bind(function(){return this.fetchFlags()},this)).catch(function(){cW.error("Error during flags reset")})):Promise.resolve()},cZ.prototype.getFullConfig=function(){var e=this.getMpConfig(cG);return e?al.isObject(e)?al.extend({},cY,e):cY:{}},cZ.prototype.getConfig=function(e){return this.getFullConfig()[e]},cZ.prototype.isSystemEnabled=function(){return!!this.getMpConfig(cG)},cZ.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return cW.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(cG);al.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(cH);r[cH]=al.extend({},n,e);var i={};return i[cG]=r,this.setMpConfig(i),this.fetchFlags().catch(function(){cW.error("Error fetching flags during updateContext")})},cZ.prototype.areFlagsReady=function(){return this.isSystemEnabled()||cW.error("Feature Flags not enabled"),!!this.flags},cZ.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this._buildContext(),t=e.distinct_id,r=aE();cW.log("Fetching flags for distinct ID: "+t);var n=new URLSearchParams;n.set("context",JSON.stringify(e)),n.set("token",this.getMpConfig("token")),n.set("mp_lib","web"),n.set("$lib_version",A.LIB_VERSION);var i=this.getFullApiRoute()+"?"+n.toString();return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=this.fetch.call(sa,i,{method:"GET",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:r}}).then((function(e){return this.markFetchComplete(),e.json()}).bind(this)).then((function(t){var n=t.flags;if(!n)throw Error("No flags in API response");var i=new Map,o={};al.each(n,function(e,t){var r=!1,n=t+":";if(al.each(this.activatedFirstTimeEvents,function(e,t){t.startsWith(n)&&(r=!0)}),r){var o=this.flags&&this.flags.get(t);o&&i.set(t,o)}else i.set(t,{key:e.variant_key,value:e.variant_value,experiment_id:e.experiment_id,is_experiment_active:e.is_experiment_active,is_qa_tester:e.is_qa_tester,variant_source:"network"})},this);var s=t.pending_first_time_events;s&&s.length>0&&al.each(s,function(e){var t=e.flag_key,r=t+":"+e.first_time_event_hash;this.activatedFirstTimeEvents[r]||(o[r]={flag_key:t,flag_id:e.flag_id,project_id:e.project_id,first_time_event_hash:e.first_time_event_hash,event_name:e.event_name,property_filters:e.property_filters,pending_variant:e.pending_variant})},this),this.activatedFirstTimeEvents&&al.each(this.activatedFirstTimeEvents,function(e,t){var r=t.split(":")[0];e&&!i.has(r)&&this.flags&&this.flags.has(r)&&i.set(r,this.flags.get(r))},this),this.flags=i,this.trackedFeatures=new Set,this.pendingFirstTimeEvents=o,this._loadedPersistedAtMs=null,this._loadedTtlMs=null,this._traceparent=r,this._loadTargetingIfNeeded(),this.persistence.save(e,this.flags,this.pendingFirstTimeEvents)}).bind(this)).catch((function(e){throw this._fetchInProgressStartTime&&this.markFetchComplete(),cW.error(e),e}).bind(this)),this.fetchPromise},cZ.prototype.loadFlags=function(){return this.isSystemEnabled()?this.trackedFeatures?this._fetchInProgressStartTime?this.fetchPromise:this.fetchFlags():(cW.error("loadFlags called before init"),Promise.resolve()):Promise.resolve()},cZ.prototype.markFetchComplete=function(){this._fetchInProgressStartTime?(this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null):cW.error("Fetch in progress started time not set, cannot mark fetch complete")},cZ.prototype._loadTargetingIfNeeded=function(){var e=!1;al.each(this.pendingFirstTimeEvents,function(t){t.property_filters&&!al.isEmptyObject(t.property_filters)&&(e=!0)}),e&&this.getTargeting().then(function(){cW.log("targeting loaded for property filter evaluation")})},cZ.prototype.getTargeting=function(){return cU(this.loadExtraBundle.bind(this),this.targetingSrc).catch((function(e){cW.error("Failed to load targeting: "+e)}).bind(this))},cZ.prototype.checkFirstTimeEvents=function(e,t){!this.pendingFirstTimeEvents||al.isEmptyObject(this.pendingFirstTimeEvents)||(sa[T]&&al.isFunction(sa[T].then)?sa[T].then((function(r){this._processFirstTimeEventCheck(e,t,r)}).bind(this)).catch((function(){this._processFirstTimeEventCheck(e,t,null)}).bind(this)):this._processFirstTimeEventCheck(e,t,null))},cZ.prototype._processFirstTimeEventCheck=function(e,t,r){al.each(this.pendingFirstTimeEvents,function(n,i){if
11(!this.activatedFirstTimeEvents[i]){var o,s=n.flag_key;if(!r&&n.property_filters&&!al.isEmptyObject(n.property_filters))return void cW.warn('Skipping event check for "'+s+'" - property filters require targeting library');if(r){var a={event_name:n.event_name,property_filters:n.property_filters};o=r.eventMatchesCriteria(e,t,a)}else o={matches:e===n.event_name,error:null};if(o.error)return void cW.error('Error checking first-time event for flag "'+s+'": '+o.error);if(o.matches){cW.log('First-time event matched for flag "'+s+'": '+e);var u={key:n.pending_variant.variant_key,value:n.pending_variant.variant_value,experiment_id:n.pending_variant.experiment_id,is_experiment_active:n.pending_variant.is_experiment_active};this.flags.set(s,u),this.trackedFeatures.delete(s),this.activatedFirstTimeEvents[i]=!0,this.recordFirstTimeEvent(n.flag_id,n.project_id,n.first_time_event_hash)}}},this)},cZ.prototype.getFirstTimeEventApiRoute=function(e){return this.getFullApiRoute().replace(/\/$/,"")+"/"+e+"/first-time-events"},cZ.prototype.recordFirstTimeEvent=function(e,t,r){var n=this.getMpProperty("distinct_id"),i=aE(),o=new URLSearchParams;o.set("mp_lib","web"),o.set("$lib_version",A.LIB_VERSION);var s=this.getFirstTimeEventApiRoute(e)+"?"+o.toString();cW.log("Recording first-time event for flag: "+e),this.fetch.call(sa,s,{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),traceparent:i},body:JSON.stringify({distinct_id:n,project_id:t,first_time_event_hash:r})}).catch(function(t){cW.error("Failed to record first-time event for flag "+e+": "+t)})},cZ.prototype.getVariant=function(e,t){if(!this.persistenceLoadedPromise)return new Promise(function(e){cW.critical("Feature Flags not initialized"),e(cJ(t))});var r=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(al.bind(function(){if(r===cz.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getVariantSync(e,t):this.fetchPromise?this.fetchPromise.then(al.bind(function(){return this.getVariantSync(e,t)},this)).catch(function(e){return cW.error(e),cJ(t)}):cJ(t);var n=al.bind(function(){return this.getVariantSync(e,t)},this);return this.fetchPromise?this.fetchPromise.then(n).catch(n):cJ(t)},this))},cZ.prototype._loadedPersistenceIsStale=function(){return!!this._loadedPersistedAtMs&&!!this._loadedTtlMs&&Date.now()-this._loadedPersistedAtMs>=this._loadedTtlMs},cZ.prototype.getVariantSync=function(e,t){if(this._loadedPersistenceIsStale())return cW.log('Loaded persisted variants are past TTL so returning fallback for "'+e+'"'),cJ(t);if(!this.areFlagsReady())return cW.log("Flags not loaded yet"),cJ(t);var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(cW.log('No flag found: "'+e+'"'),cJ(t))},cZ.prototype.getAllVariants=function(){if(!this.persistenceLoadedPromise)return cW.critical("Feature Flags not initialized"),Promise.resolve(new Map);var e=this.persistence.getPolicy();return this.persistenceLoadedPromise.then(al.bind(function(){if(e===cz.PERSISTENCE_UNTIL_NETWORK_SUCCESS)return this.areFlagsReady()&&!this._loadedPersistenceIsStale()?this.getAllVariantsSync():this.fetchPromise?this.fetchPromise.then(al.bind(function(){return this.getAllVariantsSync()},this)).catch(function(e){return cW.error(e),new Map}):new Map;var t=al.bind(this.getAllVariantsSync,this);return this.fetchPromise?this.fetchPromise.then(t).catch(t):new Map},this))},cZ.prototype.getAllVariantsSync=function(){return this._loadedPersistenceIsStale()?(cW.log("Loaded persisted variants are past TTL so returning empty Map"),new Map):this.flags||new Map},cZ.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(e){return e.value}).catch(function(e){return cW.error(e),t})},cZ.prototype.getFeatureData=function(e,t){return cW.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value() instead."),this.getVariantValue(e,t)},cZ.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value},cZ.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(e){return cW.error(e),t})},cZ.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return!0!==r&&!1!==r&&(cW.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r},cZ.prototype.trackFeatureCheck=function(e,t){if(!this.trackedFeatures.has(e)){this.trackedFeatures.add(e);var r={"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":cK(this._fetchStartTime)?new Date(this._fetchStartTime).toISOString():null,"Variant fetch complete time":cK(this._fetchCompleteTime)?new Date(this._fetchCompleteTime).toISOString():null,"Variant fetch latency (ms)":this._fetchLatency,"Variant fetch traceparent":this._traceparent};cK(t.experiment_id)&&(r.$experiment_id=t.experiment_id),cK(t.is_experiment_active)&&(r.$is_experiment_active=t.is_experiment_active),cK(t.is_qa_tester)&&(r.$is_qa_tester=t.is_qa_tester),cK(t.variant_source)&&(r.$variant_source=t.variant_source),cK(t.persisted_at_in_ms)&&(r.$persisted_at_in_ms=t.persisted_at_in_ms),cK(t.ttl_in_ms)&&(r.$ttl_in_ms=t.ttl_in_ms),this.track("$experiment_started",r)}},cZ.prototype.whenReady=function(){return this.fetchPromise?this.fetchPromise:Promise.resolve()},cZ.prototype.minApisSupported=function(){return!!this.fetch&&"u">typeof Promise&&"u">typeof Map&&"u">typeof Set},am(cZ),cZ.prototype.are_flags_ready=cZ.prototype.areFlagsReady,cZ.prototype.get_variant=cZ.prototype.getVariant,cZ.prototype.get_variant_sync=cZ.prototype.getVariantSync,cZ.prototype.get_all_variants=cZ.prototype.getAllVariants,cZ.prototype.get_all_variants_sync=cZ.prototype.getAllVariantsSync,cZ.prototype.get_variant_value=cZ.prototype.getVariantValue,cZ.prototype.get_variant_value_sync=cZ.prototype.getVariantValueSync,cZ.prototype.is_enabled=cZ.prototype.isEnabled,cZ.prototype.is_enabled_sync=cZ.prototype.isEnabledSync,cZ.prototype.load_flags=cZ.prototype.loadFlags,cZ.prototype.update_context=cZ.prototype.updateContext,cZ.prototype.when_ready=cZ.prototype.whenReady,cZ.prototype.get_feature_data=cZ.prototype.getFeatureData,cZ.prototype.getTargeting=cZ.prototype.getTargeting;var cX=ad("recorder"),cQ="mp_iframe_handshake_request",c0="mp_iframe_handshake_response",c1=function(e){this.mixpanelInstance=e.mixpanelInstance,this.getMpConfig=e.getConfigFunc,this.getTabId=e.getTabIdFunc,this.reportError=e.reportErrorFunc,this.getDistinctId=e.getDistinctIdFunc,this.loadExtraBundle=e.loadExtraBundle,this.recorderSrc=e.recorderSrc,this.targetingSrc=e.targetingSrc,this.libBasePath=e.libBasePath,this._recorder=null,this._parentReplayId=null,this._parentFrameRetryInterval=null};c1.prototype.shouldLoadRecorder=function(){if(this.getMpConfig("disable_persistence"))return ah.log("Load recorder check skipped due to disable_persistence config"),m.resolve(!1);var e=new aU(aj,aq,az),t=this.getTabId();return e.init().then(function(){return e.getAll()}).then(function(e){for(var r=0;r<e.length;r++)if(ut(e[r])||e[r].tabId===t)return!0;return!1}).catch(al.bind(function(e){return this.reportError("Error checking recording registry",e),!1},this))},c1.prototype.checkAndStartSessionRecording=function(e,t){if(!sa.MutationObserver)return ah.critical("Browser does not support MutationObserver; skipping session recording"),m.resolve();var r=al.bind(function(e){return new m(al.bind(function(t){var r=af(al.bind(function(){this._recorder=this._recorder||new sa[R](this.mixpanelInstance),this._recorder.resumeRecording(e),t()},this));if(al.isUndefined(sa[R])){var n=this.recorderSrc||this.libBasePath+"__MP_RECORDER_FILENAME__";this.loadExtraBundle(n,r)}else r()},this))},this),n=ur(this.getMpConfig("record_allowed_iframe_origins"),cX);if(n.length>0&&(this._setupParentFrameListener(n),sa.parent!==sa))return this._setupChildFrameListener(n,r),this._sendParentFrameRequestWithRetry(n),m.resolve();var i=al.isUndefined(t)?this.getMpConfig("record_sessions_percent"):t,o=i>0&&100*Math.random()<=i;return e||o?r(!0):this.shouldLoadRecorder().then(al.bind(function(e){return e?r(!1):m.resolve()},this))},c1.prototype.isRecording=function(){if(!this._recorder||!al.isFunction(this._recorder.isRecording))return!1;try{return this._recorder.isRecording()}catch(e){return this.reportError("Error checking if recording is active",e),!1}},c1.prototype.startRecordingOnEvent=function(e,t){var r=this.isRecording(),n=this.getMpConfig("recording_event_triggers");if(!r&&n){var i=n[e];if(i&&"number"==typeof i.percentage){var o=i.percentage,s=i.property_filters;if(s&&!al.isEmptyObject(s)){var a=this.targetingSrc||this.libBasePath+P;cU(this.loadExtraBundle,a).then((function(r){try{r.eventMatchesCriteria(e,t,{event_name:e,property_filters:s}).matches&&this.checkAndStartSessionRecording(!1,o)}catch(e){ah.critical("Could not parse recording event trigger properties logic:",e)}}).bind(this)).catch(function(e){ah.critical("Failed to load targeting library:",e)})}else this.checkAndStartSessionRecording(!1,o)}}},c1.prototype.stopSessionRecording=function(){return this._recorder?this._recorder.stopRecording():m.resolve()},c1.prototype.pauseSessionRecording=function(){return this._recorder?this._recorder.pauseRecording():m.resolve()},c1.prototype.resumeSessionRecording=function(){return this._recorder?this._recorder.resumeRecording():m.resolve()}
11,c1.prototype.isRecordingHeatmapData=function(){return this.getSessionReplayId()&&this.getMpConfig("record_heatmap_data")},c1.prototype.getSessionRecordingProperties=function(){var e={},t=this.getSessionReplayId();return t&&(e.$mp_replay_id=t),e},c1.prototype.getSessionReplayUrl=function(){var e=null,t=this.getSessionReplayId();return t&&(e="https://mixpanel.com/projects/replay-redirect?"+al.HTTPBuildQuery({replay_id:t,distinct_id:this.getDistinctId(),token:this.getMpConfig("token")})),e},c1.prototype.getSessionReplayId=function(){if(this._parentReplayId)return this._parentReplayId;var e=null;return this._recorder&&(e=this._recorder.replayId),e||null},c1.prototype.getRecorder=function(){return this._recorder},c1.prototype._setupChildFrameListener=function(e,t){if(!this._childFrameMessageHandler){var r=this;this._childFrameMessageHandler=function(n){if(-1!==e.indexOf(n.origin)){var i=n.data;i&&i.type===c0&&i.token===r.getMpConfig("token")&&i.replayId&&(r._parentReplayId=i.replayId,i.distinctId&&r.mixpanelInstance.identify(i.distinctId),r._parentFrameRetryActive=!1,sa.removeEventListener("message",r._childFrameMessageHandler),r._childFrameMessageHandler=null,t(!0))}},sa.addEventListener("message",this._childFrameMessageHandler)}},c1.prototype._sendParentFrameRequest=function(e){var t={};t.type=cQ,t.token=this.getMpConfig("token");for(var r=0;r<e.length;r++)try{sa.parent.postMessage(t,e[r])}catch(e){}},c1.prototype._sendParentFrameRequestWithRetry=function(e){var t=this,r=0,n=50;this._parentFrameRetryActive=!0,this._sendParentFrameRequest(e),!function i(){setTimeout(function(){!t._parentFrameRetryActive||t._parentReplayId||++r>=10||(t._sendParentFrameRequest(e),n*=2,i())},n)}()},c1.prototype._setupParentFrameListener=function(e){if(!this._parentFrameMessageHandler){var t=this;this._parentFrameMessageHandler=function(r){if(-1!==e.indexOf(r.origin)){var n=r.data;if(n&&n.type===cQ&&n.token===t.getMpConfig("token")){var i=t.getSessionReplayId();if(i){var o={};o.type=c0,o.token=t.getMpConfig("token"),o.replayId=i,o.distinctId=t.getDistinctId(),r.source.postMessage(o,r.origin)}}}},sa.addEventListener("message",this._parentFrameMessageHandler)}},am(c1);var c2=function(){};c2.prototype.create_properties=function(){},c2.prototype.event_handler=function(){},c2.prototype.after_track_handler=function(){},c2.prototype.init=function(e){return this.mp=e,this},c2.prototype.track=function(e,t,r,n){var i=this,o=al.dom_query(e);return 0===o.length?void ah.error("The DOM query ("+e+") returned 0 elements"):(al.each(o,function(e){al.register_event(e,this.override_event,function(e){var o={},s=i.create_properties(r,this),a=i.mp.get_config("track_links_timeout");i.event_handler(e,this,o),window.setTimeout(i.track_callback(n,s,o,!0),a),i.mp.track(t,s,i.track_callback(n,s,o))})},this),!0)},c2.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,e&&!1===e(n,t)||i.after_track_handler(t,r,n))}},c2.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):al.extend({},e)};var c3=function(){this.override_event="click"};al.inherit(c3,c2),c3.prototype.create_properties=function(e,t){var r=c3.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r},c3.prototype.event_handler=function(e,t,r){r.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,r.href=t.href,r.new_tab||e.preventDefault()},c3.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var c4=function(){this.override_event="submit"};al.inherit(c4,c2),c4.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()},c4.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var c5="$set",c6="$set_once",c9="$unset",c8="$add",c7="$append",le="$union",lt="$remove",lr={set_action:function(e,t){var r={},n={};return al.isObject(e)?al.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[c5]=n,r},unset_action:function(e){var t={},r=[];return al.isArray(e)||(e=[e]),al.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),t[c9]=r,t},set_once_action:function(e,t){var r={},n={};return al.isObject(e)?al.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[c6]=n,r},union_action:function(e,t){var r={},n={};return al.isObject(e)?al.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=al.isArray(e)?e:[e])},this):n[e]=al.isArray(t)?t:[t],r[le]=n,r},append_action:function(e,t){var r={},n={};return al.isObject(e)?al.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[c7]=n,r},remove_action:function(e,t){var r={},n={};return al.isObject(e)?al.each(e,function(e,t){this._is_reserved_property(t)||(n[t]=e)},this):n[e]=t,r[lt]=n,r},delete_action:function(){var e={};return e.$delete="",e}},ln=function(){};al.extend(ln.prototype,lr),ln.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r},ln.prototype.set=aJ(function(e,t,r){var n=this.set_action(e,t);return al.isObject(e)&&(r=t),this._send_request(n,r)}),ln.prototype.set_once=aJ(function(e,t,r){var n=this.set_once_action(e,t);return al.isObject(e)&&(r=t),this._send_request(n,r)}),ln.prototype.unset=aJ(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),ln.prototype.union=aJ(function(e,t,r){al.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),ln.prototype.delete=aJ(function(e){var t=this.delete_action();return this._send_request(t,e)}),ln.prototype.remove=aJ(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)}),ln.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=al.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)},ln.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},ln.prototype._get_config=function(e){return this._mixpanel.get_config(e)},ln.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},ln.prototype.remove=ln.prototype.remove,ln.prototype.set=ln.prototype.set,ln.prototype.set_once=ln.prototype.set_once,ln.prototype.union=ln.prototype.union,ln.prototype.unset=ln.prototype.unset,ln.prototype.toString=ln.prototype.toString;var li=function(){};al.extend(li.prototype,lr),li.prototype._init=function(e){this._mixpanel=e},li.prototype.set=aY(function(e,t,r){var n=this.set_action(e,t);return al.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[c5]=al.extend({},al.info.people_properties(),n[c5]),this._send_request(n,r)}),li.prototype.set_once=aY(function(e,t,r){var n=this.set_once_action(e,t);return al.isObject(e)&&(r=t),this._send_request(n,r)}),li.prototype.unset=aY(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)}),li.prototype.increment=aY(function(e,t,r){var n={},i={};return al.isObject(e)?(al.each(e,function(e,t){if(!this._is_reserved_property(t))if(isNaN(parseFloat(e)))return void ah.error("Invalid increment value passed to mixpanel.people.increment - must be a number");else i[t]=e},this),r=t):(al.isUndefined(t)&&(t=1),i[e]=t),n[c8]=i,this._send_request(n,r)}),li.prototype.append=aY(function(e,t,r){al.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)}),li.prototype.remove=aY(function(e,t,r){al.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)}),li.prototype.union=aY(function(e,t,r){al.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)}),li.prototype.track_charge=aY(function(){ah.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")}),li.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},li.prototype.delete_user=function(){if(!this._identify_called())return void ah.error("mixpanel.people.delete_user() requires you to call identify() first");var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)},li.prototype.toString=function(){return this._mixpanel.toString()+".people"},li.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=al.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),al.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),al.truncate(o,255))},li.prototype._get_config=function(e){return this._mixpanel.get_config(e)},li.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},li.prototype._enqueue=function(e){c5 in e?this._mixpanel.persistence._add_to_people_queue(c5,e):c6 in e?this._mixpanel.persistence._add_to_people_queue(c6,e):c9 in e?this._mixpanel.persistence._add_to_people_queue(c9,e):c8 in e?this._mixpanel.persistence._add_to_people_queue(c8,e):c7 in e?this._mixpanel.persistence._add_to_people_queue(c7,e):lt in e?this._mixpanel.persistence._add_to_people_queue(lt,e):le in e?this._mixpanel.persistence._add_to_people_queue(le,e):ah.error("Invalid call to _enqueue():",e)},li.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=al.extend({},this._mixpanel.persistence.load_queue(e)),s=o;!al.isUndefined(o)&&al.isObject(o)&&!al.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mi
11xpanel.persistence.save(),n&&(s=n(o)),t.call(i,s,function(t,n){0===t&&i._mixpanel.persistence._add_to_people_queue(e,o),al.isUndefined(r)||r(t,n)}))},li.prototype._flush=function(e,t,r,n,i,o,s){var a=this;this._flush_one_queue(c5,this.set,e),this._flush_one_queue(c6,this.set_once,n),this._flush_one_queue(c9,this.unset,o,function(e){return al.keys(e)}),this._flush_one_queue(c8,this.increment,t),this._flush_one_queue(le,this.union,i);var u=this._mixpanel.persistence.load_queue(c7);if(!al.isUndefined(u)&&al.isArray(u)&&u.length)for(var c,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(c7,c),al.isUndefined(r)||r(e,t)},h=u.length-1;h>=0;h--)c=(u=this._mixpanel.persistence.load_queue(c7)).pop(),a._mixpanel.persistence.save(),al.isEmptyObject(c)||a.append(c,l);var p=this._mixpanel.persistence.load_queue(lt);if(!al.isUndefined(p)&&al.isArray(p)&&p.length)for(var d,f=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(lt,d),al.isUndefined(s)||s(e,t)},m=p.length-1;m>=0;m--)d=(p=this._mixpanel.persistence.load_queue(lt)).pop(),a._mixpanel.persistence.save(),al.isEmptyObject(d)||a.remove(d,f)},li.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},li.prototype.set=li.prototype.set,li.prototype.set_once=li.prototype.set_once,li.prototype.unset=li.prototype.unset,li.prototype.increment=li.prototype.increment,li.prototype.append=li.prototype.append,li.prototype.remove=li.prototype.remove,li.prototype.union=li.prototype.union,li.prototype.track_charge=li.prototype.track_charge,li.prototype.clear_charges=li.prototype.clear_charges,li.prototype.delete_user=li.prototype.delete_user,li.prototype.toString=li.prototype.toString;var lo="__mps",ls="__mpso",la="__mpus",lu="__mpa",lc="__mpap",ll="__mpr",lh="__mpu",lp="$people_distinct_id",ld="__alias",lf="__timers",lm=[lo,ls,la,lu,lc,ll,lh,lp,ld,lf],lg=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(ah.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&al.localStorage.is_supported()?this.storage=al.localStorage:this.storage=al.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};lg.prototype.properties=function(){var e={};return this.load(),al.each(this.props,function(t,r){al.include(lm,r)||(e[r]=t)}),e},lg.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=al.extend({},e))}},lg.prototype.upgrade=function(){var e,t;this.storage===al.localStorage?(e=al.cookie.parse(this.name),al.cookie.remove(this.name),al.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===al.cookie&&(t=al.localStorage.parse(this.name),al.localStorage.remove(this.name),t&&this.register_once(t))},lg.prototype.save=function(){this.disabled||this.storage.set(this.name,aL(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},lg.prototype.load_prop=function(e){return this.load(),this.props[e]},lg.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},lg.prototype.clear=function(){this.remove(),this.props={}},lg.prototype.register_once=function(e,t,r){return!!al.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===r?this.default_expiry:r,this.load(),al.each(e,function(e,r){this.props.hasOwnProperty(r)&&this.props[r]!==t||(this.props[r]=e)},this),this.save(),!0)},lg.prototype.register=function(e,t){return!!al.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,this.load(),al.extend(this.props,e),this.save(),!0)},lg.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())},lg.prototype.update_search_keyword=function(e){this.register(al.info.searchInfo(e))},lg.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:al.info.referringDomain(e)||"$direct"},"")},lg.prototype.get_referrer_info=function(){return al.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},lg.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},lg.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},lg.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},lg.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},lg.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},lg.prototype.get_cross_subdomain=function(){return this.cross_subdomain},lg.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},lg.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(c5),o=this._get_or_create_queue(c6),s=this._get_or_create_queue(c9),a=this._get_or_create_queue(c8),u=this._get_or_create_queue(le),c=this._get_or_create_queue(lt,[]),l=this._get_or_create_queue(c7,[]);r===lo?(al.extend(i,n),this._pop_from_people_queue(c8,n),this._pop_from_people_queue(le,n),this._pop_from_people_queue(c9,n)):r===ls?(al.each(n,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(c9,n)):r===la?al.each(n,function(e){al.each([i,o,a,u],function(t){e in t&&delete t[e]}),al.each(l,function(t){e in t&&delete t[e]}),s[e]=!0}):r===lu?(al.each(n,function(e,t){t in i?i[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(c9,n)):r===lh?(al.each(n,function(e,t){al.isArray(e)&&(t in u||(u[t]=[]),al.each(e,function(e){al.include(u[t],e)||u[t].push(e)}))}),this._pop_from_people_queue(c9,n)):r===ll?(c.push(n),this._pop_from_people_queue(c7,n)):r===lc&&(l.push(n),this._pop_from_people_queue(c9,n)),ah.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),ah.log(t),this.save()},lg.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];al.isUndefined(r)||al.each(t,function(t,n){e===c7||e===lt?al.each(r,function(e){e[n]===t&&delete e[n]}):delete r[n]},this)},lg.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))},lg.prototype._get_queue_key=function(e){return e===c5?lo:e===c6?ls:e===c9?la:e===c8?lu:e===c7?lc:e===lt?ll:e===le?lh:void ah.error("Invalid queue:",e)},lg.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=al.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)},lg.prototype.set_event_timer=function(e,t){var r=this.load_prop(lf)||{};r[e]=t,this.props[lf]=r,this.save()},lg.prototype.remove_event_timer=function(e){var t=(this.load_prop(lf)||{})[e];return al.isUndefined(t)||(delete this.props[lf][e],this.save()),t};var lv=function(e,t){throw Error(e+" not available in this build.")},ly="mixpanel",l_="base64",lb="$device:",lw=sa.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,lk=!lw&&-1===an.indexOf("MSIE")&&-1===an.indexOf("Mozilla"),lS=null;s7.sendBeacon&&(lS=function(){return s7.sendBeacon.apply(s7,arguments)});var lx={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/",settings:"settings/"},lC={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:lx,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:l_,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:aP,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:aP,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
11:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_allowed_iframe_origins:[],record_block_class:RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_console:!0,record_heatmap_data:!1,recording_event_triggers:{},record_idle_timeout_ms:18e5,record_mask_inputs:!0,record_max_ms:864e5,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:"disabled"},lI=!1,lO=function(){},lE=function(e,t,r){var n,i=r===ly?y:y[r];if(i&&0===v)n=i;else{if(i&&!al.isArray(i))return void ah.error("You have already initialized "+r);n=new lO}if(n._cached_groups={},n._init(e,t,r),n.people=new li,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=al.info.campaignParams(null),s={},a=!1;al.each(o,function(e,t){s["initial_"+t]=e,e&&(a=!0)}),a&&n.people.set_once(s)}A.DEBUG=A.DEBUG||n.get_config("debug");var u=0===v?"module":"snippet";return sa.dispatchEvent(new sa.CustomEvent("$mp_sdk_to_extension_event",{detail:{instance:n,source:u,token:e,name:r,info:al.info}})),!al.isUndefined(i)&&al.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};lO.prototype.init=function(e,t,r){if(al.isUndefined(r))return void this.report_error("You must name your new library: init(token, config, name)");if(r===ly)return void this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");var n=lE(e,t,r);return y[r]=n,n._loaded(),n},lO.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if("api_payload_format"in t||(t.api_host||lC.api_host).match(/\.mixpanel\.com/)&&(n.api_payload_format="json"),this.hooks={},this.set_config(al.extend({},lC,n,t,{name:r,token:e,callback_fn:(r===ly?r:ly+"."+r)+"._jsc"})),this.recorderManager=new c1({mixpanelInstance:this,getConfigFunc:al.bind(this.get_config,this),setConfigFunc:al.bind(this.set_config,this),getTabIdFunc:al.bind(this.get_tab_id,this),reportErrorFunc:al.bind(this.report_error,this),getDistinctIdFunc:al.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:lv}),this._jsc=aP,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(al.localStorage.is_supported(!0)&&lw){if(this.init_batchers(),lS&&sa.addEventListener){var i=al.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);sa.addEventListener("pagehide",function(e){e.persisted&&i()}),sa.addEventListener("visibilitychange",function(){"hidden"===ae.visibilityState&&i()})}}else this._batch_requests=!1,ah.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),al.each(this.get_batcher_configs(),function(e){ah.log("Clearing batch queue "+e.queue_key),al.localStorage.remove(e.queue_key)});this.persistence=this.cookie=new lg(this.config),this.unpersisted_superprops={},this._gdpr_init();var o=al.UUID();this.get_distinct_id()||this.register_once({distinct_id:lb+o,$device_id:o},""),this.flags=new cZ({getFullApiRoute:al.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:al.bind(this.get_config,this),setConfigFunc:al.bind(this.set_config,this),getPropertyFunc:al.bind(this.get_property,this),trackingFunc:al.bind(this.track,this),loadExtraBundle:lv,targetingSrc:this.get_config("targeting_src")||this.get_config("lib_base_path")+P}),this.flags.init(),this.flags=this.flags,this._init_tab_id();var s=this.get_config("remote_settings_mode");"strict"===s||"fallback"===s?this.__session_recording_init_promise=this._fetch_remote_settings(s).then(al.bind(function(){return this._check_and_start_session_recording()},this)):this.__session_recording_init_promise=this._check_and_start_session_recording(),this.autocapture=new cD(this),this.autocapture.init()},lO.prototype._init_tab_id=function(){if(this.get_config("disable_persistence"))ah.log("Tab ID initialization skipped due to disable_persistence config");
11else if(al.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(al.sessionStorage.get(r)||!al.sessionStorage.get(t))&&al.sessionStorage.set(t,"$tab-"+al.UUID()),al.sessionStorage.set(r,"1"),this.tab_id=al.sessionStorage.get(t),sa.addEventListener("beforeunload",function(){al.sessionStorage.remove(r)})}catch(e){this.report_error("Error initializing tab id",e)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")},lO.prototype.get_tab_id=function(){return this.tab_id||null},lO.prototype._check_and_start_session_recording=aH(function(e){return this.recorderManager.checkAndStartSessionRecording(e)}),lO.prototype._start_recording_on_event=af(function(e,t){this.__session_recording_init_promise&&this.__session_recording_init_promise.then(al.bind(function(){if(!this._remote_settings_strict_disabled)return this.recorderManager.startRecordingOnEvent(e,t)},this))}),lO.prototype.start_session_recording=function(){return this._check_and_start_session_recording(!0)},lO.prototype.stop_session_recording=function(){return this.recorderManager.stopSessionRecording()},lO.prototype.pause_session_recording=function(){return this.recorderManager.pauseSessionRecording()},lO.prototype.resume_session_recording=function(){return this.recorderManager.resumeSessionRecording()},lO.prototype.is_recording_heatmap_data=function(){return this.recorderManager.isRecordingHeatmapData()},lO.prototype.get_session_recording_properties=function(){return this.recorderManager.getSessionRecordingProperties()},lO.prototype.get_session_replay_url=function(){return this.recorderManager.getSessionReplayUrl()},lO.prototype.__get_recorder=function(){return this.recorderManager.getRecorder()},lO.prototype.__get_recording_init_promise=function(){return this.__session_recording_init_promise},lO.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=al.info.campaignParams(null);al.each(e,(function(e,t){this.unregister(t)}).bind(this))}},lO.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(ae.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(al.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(ae.referrer)},lO.prototype._dom_loaded=function(){al.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||al.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},lO.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!lI)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)},lO.prototype._prepare_callback=function(e,t){if(al.isUndefined(e))return null;if(lw)return function(r){e(r,t)};var r=this._jsc,n=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+n+"]";return r[n]=function(i){delete r[n],e(i,t)},i},lO.prototype._send_request=function(e,t,r,n){var i=!0;if(lk)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;!n&&(al.isFunction(r)||"string"==typeof r)&&(n=r,r=null),r=al.extend(o,r||{}),lw||(r.method="GET");var a="POST"===r.method,u=lS&&a&&"sendbeacon"===r.transport.toLowerCase(),c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),!lw&&(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=+!!this.get_config("ip"),t._=new Date().getTime().toString(),a&&(s="data="+encodeURIComponent(t.data),delete t.data),al.extend(t,this.get_config("api_extra_query_params")),e+="?"+al.HTTPBuildQuery(t);var l=this;if("img"in t){var h=ae.createElement("img");h.src=e,ae.body.appendChild(h)}else if(u){try{i=lS(e,s)}catch(e){l.report_error(e),i=!1}try{n&&n(+!!i)}catch(e){l.report_error(e)}}else if(lw)try{var p=new XMLHttpRequest;p.open(r.method,e,!0);var d=this.get_config("xhr_headers");
11if(a&&(d["Content-Type"]="application/x-www-form-urlencoded"),al.each(d,function(e,t){p.setRequestHeader(t,e)}),r.timeout_ms&&void 0!==p.timeout){p.timeout=r.timeout_ms;var f=new Date().getTime()}p.withCredentials=!0,p.onreadystatechange=function(){if(4===p.readyState){if(200===p.status){if(n)if(c){try{e=al.JSONDecode(p.responseText)}catch(t){if(l.report_error(t),!r.ignore_json_errors)return;e=p.responseText}n(e)}else n(Number(p.responseText))}else if(t=p.timeout&&!p.status&&new Date().getTime()-f>=p.timeout?"timeout":"Bad HTTP status: "+p.status+" "+p.statusText,l.report_error(t),n)if(c){var e,t,i=p.responseHeaders||{};n({status:0,httpStatusCode:p.status,error:t,retryAfter:i["Retry-After"]})}else n(0)}},p.send(s)}catch(e){l.report_error(e),i=!1}else{var m=ae.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var g=ae.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},lO.prototype._fetch_remote_settings=function(e){var t=this,r=function(){"strict"===e&&(t.set_config({record_sessions_percent:0}),t._remote_settings_strict_disabled=!0)};if(!sa.AbortController)return ah.critical("Remote settings unavailable: missing minimum required APIs"),r(),Promise.resolve();var n=this.get_api_host("settings")+"/"+this.get_config("api_routes").settings,i={$lib_version:A.LIB_VERSION,mp_lib:"web",sdk_config:"1"},o=al.HTTPBuildQuery(i),s=new AbortController,a=setTimeout(function(){s.abort()},500),u={method:"GET",headers:{Authorization:"Basic "+btoa(t.get_config("token")+":")},signal:s.signal};return sa.fetch(n+"?"+o,u).then(function(e){if(clearTimeout(a),!e.ok){ah.critical("Network response was not ok"),r();return}return e.json()}).then(function(e){if(e&&e.sdk_config&&e.sdk_config.config){var n=e.sdk_config.config,i={};al.each(n,function(e,t){lC.hasOwnProperty(t)&&(i[t]=e)}),al.isEmptyObject(i)?(ah.critical("No valid config keys found in remote settings."),r()):t.set_config(i)}else r()}).catch(function(e){clearTimeout(a),ah.critical("Failed to fetch remote settings",e),r()})},lO.prototype._execute_array=function(e){var t,r=[],n=[],i=[];al.each(e,function(e){e&&(t=e[0],al.isArray(t)?i.push(e):"function"==typeof e?e.call(this):al.isArray(e)&&"alias"===t?r.push(e):al.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?i.push(e):n.push(e))},this);var o=function(e,t){al.each(e,function(e){if(al.isArray(e[0])){var r=t;al.each(e,function(e){r=r[e[0]].apply(r,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};o(r,this),o(n,this),o(i,this)},lO.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},lO.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs},lO.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=al.bind(function(e){return new ue(e.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:al.bind(function(t,r,n){var i=this.get_config("api_routes");this._send_request(this.get_api_host(e.api_name)+"/"+i[e.api_name],this._encode_data_for_request(t),r,this._prepare_callback(n,t))},this),beforeSendHook:al.bind(function(t){var r=this._run_hook("before_send_"+e.type,t);return r?r[0]:null},this),stopAllBatchingFunc:al.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()},lO.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,al.each(this.request_batchers,function(e){e.start()}))},lO.prototype.stop_batch_senders=function(){this._batch_requests=!1,al.each(this.request_batchers,function(e){e.stop(),e.clear()})},lO.prototype.push=function(e){this._execute_array([e])},lO.prototype.enable=function(e){var t,r,n,i;if(void 0===e)this._flags.disable_all_events=!1;else{for(n=0,t={},r=[];n<e.length;n++)t[e[n]]=!0;for(i=0;i<this.__disabled_events.length;i++)t[this.__disabled_events[i]]||r.push(this.__disabled_events[i]);this.__disabled_events=r}},lO.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},lO.prototype._encode_data_for_request=function(e){var t=aL(e);return this.get_config("api_payload_format")===l_&&(t=al.base64Encode(t)),{data:t}},lO.prototype._track_or_batch=function(e,t){var r=al.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||aP;var a=!0,u=al.bind(function(){return(!s.skip_hooks&&(r=this._run_hook("before_send_"+e.type,r))&&(r=r[0]),r)?(ah.log("MIXPANEL REQUEST:"),ah.log(r),this._send_request(n,this._encode_data_for_request(r),s,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(e){e?t(1,r):u()}):a=u(),a&&r},lO.prototype.track=aH(function(e,t,r,n){if(!(r&&r.skip_hooks)){if(null===(i=this._run_hook("before_track",e,t)))return;e=i[0],t=i[1]}n||"function"!=typeof r||(n=r,r=null);var i,o=(r=r||{}).transport;o&&(r.transport=o);var s=r.send_immediately;if("function"!=typeof n&&(n=aP),al.isUndefined(e))return void this.report_error("No event name provided to mixpanel.track");if(this._event_is_disabled(e))return void n(0);(t=al.extend({},t)).token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!al.isUndefined(a)){var u=new Date().getTime()-a;t.$duration=parseFloat((u/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?al.info.marketingParams():{};t=al.extend({},al.info.properties({mp_loader:this.get_config("mp_loader")}),c,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var l=this.get_config("property_blacklist");al.isArray(l)?al.each(l,function(e){delete t[e]}):this.report_error("Invalid value for property_blacklist config: "+l),this._start_recording_on_event(e,t);var h={event:e,properties:t};return i=this._track_or_batch({type:"events",data:h,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:s,send_request_options:r},n),this.flags&&this.flags.checkFirstTimeEvents&&this.flags.checkFirstTimeEvents(e,t),i}),lO.prototype.set_group=aH(function(e,t,r){al.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)}),lO.prototype.add_group=aH(function(e,t,r){var n=this.get_property(e),i={};return void 0===n?(i[e]=[t],this.register(i)):-1===n.indexOf(t)&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)}),lO.prototype.remove_group=aH(function(e,t,r){var n=this.get_property(e);if(void 0!==n){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),0===n.length&&this.unregister(e)}return this.people.remove(e,t,r)}),lO.prototype.track_with_groups=aH(function(e,t,r,n){var i=al.extend({},t||{});return al.each(r,function(e,t){null!=e&&(i[t]=e)}),this.track(e,i,n)}),lO.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},lO.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},lO.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(void 0===n||n._group_key!==e||n._group_id!==t)&&((n=new ln)._init(this,e,t),this._cached_groups[r]=n),n},lO.prototype.track_pageview=aH(function(e,t){"object"!=typeof e&&(e={});var r=(t=t||{}).event_name||"$mp_web_page_view",n=al.extend(al.info.mpPageViewProperties(),al.info.campaignParams(),al.info.clickParams()),i=al.extend({},n,e);return this.is_recording_heatmap_data()&&(i.$captured_for_heatmap=!0),this.track(r,i)}),lO.prototype.track_links=function(){return this._track_dom.call(this,c3,arguments)},lO.prototype.track_forms=function(){return this._track_dom.call(this,c4,arguments)},lO.prototype.time_event=function(e){al.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var lM={persistent:!0},lA=function(e){var t;return t=al.isObject(e)?e:al.isUndefined(e)?{}:{days:e},al.extend({},lM,t)};lO.prototype.register=function(e,t){var r=this._run_hook("before_register",e,t);if(null!==r){e=r[0];var n=lA(t=r[1]);n.persistent?this.persistence.register(e,n.days):al.extend(this.unpersisted_superprops,e)}},lO.prototype.register_once=function(e,t,r){var n=this._run_hook("before_register_once",e,t,r);if(null!==n){e=n[0],t=n[1];var i=lA(r=n[2]);i.persistent?this.persistence.register_once(e,t,i.days):(void 0===t&&(t="None"),al.each(e,function(e,r){this.unpersisted_superprops.hasOwnProperty(r)&&this.unpersisted_superprops[r]!==t||(this.unpersisted_superprops[r]=e)},this))}},lO.prototype.unregister=function(e,t){var r=this._run_hook("before_unregister",e,t);
11null!==r&&(e=r[0],(t=lA(t=r[1])).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e])},lO.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)},lO.prototype.identify=function(e,t,r,n,i,o,s,a){var u=this._run_hook("before_identify",e);if(null===u)return -1;e=u[0];var c=this.get_distinct_id();if(e&&c!==e){if("string"==typeof e&&0===e.indexOf(lb))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(ld)&&(this.unregister(ld),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,s,a),e!==c&&this.track("$identify",{distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0}),e!==c&&this.flags.fetchFlags().catch(function(){ah.error("[flags] Error fetching flags during identify")})},lO.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=al.UUID();this.register_once({distinct_id:lb+e,$device_id:e},""),this._check_and_start_session_recording(),this.flags.reset()},lO.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},lO.prototype.alias=function(e,t){if(e===this.get_property(lp))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return(al.isUndefined(t)&&(t=this.get_distinct_id()),e!==t)?(this._register_single(ld,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},lO.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},lO.prototype.set_config=function(e){al.isObject(e)&&(al.extend(this.config,e),e.batch_size&&al.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),A.DEBUG=A.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init(),al.isObject(e.hooks)&&(this.hooks={},al.each(e.hooks,function(e,t){if(al.isFunction(e))this.hooks[t]=[e];else if(al.isArray(e)){this.hooks[t]=[];for(var r=0;r<e.length;r++)al.isFunction(e[r])||ah.critical("Invalid hook added. Hook is not a function"),this.hooks[t].push(e[r])}else ah.critical("Invalid hooks added. Ensure that the hook values passed into config.hooks are functions or arrays of functions.")},this)))},lO.prototype.get_config=function(e){return this.config[e]},lO.prototype._run_hook=function(e){var t=s5.call(arguments,1);return al.each(this.hooks[e],function(r){if(null===t)return null;var n=r.apply(this,t);void 0===n?(this.report_error(e+" hook did not return a valid value"),t=null):(al.isArray(n)||(n=[n]),t.splice.apply(t,[0,n.length].concat(n)))},this),t},lO.prototype.get_property=function(e){return this.persistence.load_prop([e])},lO.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")},lO.prototype.toString=function(){var e=this.get_config("name");return e!==ly&&(e=ly+"."+e),e},lO.prototype._event_is_disabled=function(e){return al.isBlockedUA(an)||this._flags.disable_all_events||al.include(this.__disabled_events,e)},lO.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&al.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")||al.cookie.get("mp_optout"))&&(al.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},lO.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()},lO.prototype._gdpr_call_func=function(e,t){return t=al.extend({track:al.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),al.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie
11:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},lO.prototype.opt_in_tracking=function(e){e=al.extend({enable_persistence:!0},e),this._gdpr_call_func(aV,e),this._gdpr_update_persistence(e)},lO.prototype.opt_out_tracking=function(e){(e=al.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(a$,e),this._gdpr_update_persistence(e)},lO.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(aW,e)},lO.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(aG,e)},lO.prototype.clear_opt_in_out_tracking=function(e){e=al.extend({enable_persistence:!0},e),this._gdpr_call_func(aZ,e),this._gdpr_update_persistence(e)},lO.prototype.report_error=function(e,t){ah.error.apply(ah.error,arguments);try{t||e instanceof Error||(e=Error(e)),this.get_config("error_reporter")(e,t)}catch(e){ah.error(e)}},lO.prototype.add_hook=function(e,t){this.hooks[e]||(this.hooks[e]=[]),this.hooks[e].push(t)},lO.prototype.remove_hook=function(e,t){var r;this.hooks[e]&&(-1!==(r=this.hooks[e].indexOf(t))?this.hooks[e].splice(r,1):ah.log("remove_hook failed. Matching hook was not found"))},lO.prototype.init=lO.prototype.init,lO.prototype.reset=lO.prototype.reset,lO.prototype.enable=lO.prototype.enable,lO.prototype.disable=lO.prototype.disable,lO.prototype.time_event=lO.prototype.time_event,lO.prototype.track=lO.prototype.track,lO.prototype.track_links=lO.prototype.track_links,lO.prototype.track_forms=lO.prototype.track_forms,lO.prototype.track_pageview=lO.prototype.track_pageview,lO.prototype.register=lO.prototype.register,lO.prototype.register_once=lO.prototype.register_once,lO.prototype.unregister=lO.prototype.unregister,lO.prototype.identify=lO.prototype.identify,lO.prototype.alias=lO.prototype.alias,lO.prototype.name_tag=lO.prototype.name_tag,lO.prototype.set_config=lO.prototype.set_config,lO.prototype.get_config=lO.prototype.get_config,lO.prototype.get_api_host=lO.prototype.get_api_host,lO.prototype.get_property=lO.prototype.get_property,lO.prototype.get_distinct_id=lO.prototype.get_distinct_id,lO.prototype.toString=lO.prototype.toString,lO.prototype.opt_out_tracking=lO.prototype.opt_out_tracking,lO.prototype.opt_in_tracking=lO.prototype.opt_in_tracking,lO.prototype.has_opted_out_tracking=lO.prototype.has_opted_out_tracking,lO.prototype.has_opted_in_tracking=lO.prototype.has_opted_in_tracking,lO.prototype.clear_opt_in_out_tracking=lO.prototype.clear_opt_in_out_tracking,lO.prototype.get_group=lO.prototype.get_group,lO.prototype.set_group=lO.prototype.set_group,lO.prototype.add_group=lO.prototype.add_group,lO.prototype.remove_group=lO.prototype.remove_group,lO.prototype.add_hook=lO.prototype.add_hook,lO.prototype.remove_hook=lO.prototype.remove_hook,lO.prototype.track_with_groups=lO.prototype.track_with_groups,lO.prototype.start_batch_senders=lO.prototype.start_batch_senders,lO.prototype.stop_batch_senders=lO.prototype.stop_batch_senders,lO.prototype.start_session_recording=lO.prototype.start_session_recording,lO.prototype.stop_session_recording=lO.prototype.stop_session_recording,lO.prototype.pause_session_recording=lO.prototype.pause_session_recording,lO.prototype.resume_session_recording=lO.prototype.resume_session_recording,lO.prototype.get_session_recording_properties=lO.prototype.get_session_recording_properties,lO.prototype.get_session_replay_url=lO.prototype.get_session_replay_url,lO.prototype.get_tab_id=lO.prototype.get_tab_id,lO.prototype.DEFAULT_API_ROUTES=lx,lO.prototype.__get_recorder=lO.prototype.__get_recorder,lO.prototype.__get_recording_init_promise=lO.prototype.__get_recording_init_promise,lg.prototype.properties=lg.prototype.properties,lg.prototype.update_search_keyword=lg.prototype.update_search_keyword,lg.prototype.update_referrer_info=lg.prototype.update_referrer_info,lg.prototype.get_cross_subdomain=lg.prototype.get_cross_subdomain,lg.prototype.clear=lg.prototype.clear;var lT={},lR=function(){al.each(lT,function(e,t){t!==ly&&(y[t]=e)}),y._=al},lP=(lv=function(e,t){t()},v=0,(y=new lO).init=function(e,t,r){if(r)return y[r]||(y[r]=lT[r]=lE(e,t,r),y[r]._loaded()),y[r];var n=y;lT[ly]?n=lT[ly]:e&&((n=lE(e,t,ly))._loaded(),lT[ly]=n),y=n,1===v&&(sa[ly]=y),lR()},y.init(),function(){function e(){e.done||(e.done=!0,lI=!0,lk=!1,al.each(lT,function(e){e._dom_loaded()}))}if(ae.addEventListener)"complete"===ae.readyState?e():ae.addEventListener("DOMContentLoaded",e,!1);else if(ae.attachEvent){ae.attachEvent("onreadystatechange",e);var t=!1;try{t=null===sa.frameElement}catch(e){}ae.documentElement.doScroll&&t&&function t(){try{ae.documentElement.doScroll("left")}catch(e){setTimeout(t,1);return}e()}()}al.register_event(sa,"load",e,!0)}(),y),lF=e.i(194483);let lL="a42e0c92afe3ff386ee51f22cd47b838",lN="production",lD=!1;function lU(e,t){if(lL)try{lj(),e()}catch(e){}}function lj(){lL&&!lD&&(lP.init(lL,{api_host:"https://api-js.mixpanel.com",debug:!1,persistence:"localStorage",track_pageview:!1,ignore_dnt:!1,autocapture:!1}),lP.register(l$()),lD=!0)}function lB(e,t,r){lU(()=>{var n;return lP.track(e,(n=t,{...l$(),...(0,lF.getCurrentAnalyticsPageRoute)(),...function(){try{let e=window.localStorage.getItem("fb-user");if(!e)return{};let t=JSON.parse(e),r=t?.state?.user?.userId;return lW({user_id:null==r?void 0:r.toString()})}catch{return{}}}(),...n}),r)},"mixpanel track error")}function lq(e){e?.userId&&lU(()=>{var t;let r=e.userId?.toString(),n=lW({$email:(t=e).email,$name:t.name,phone_number:t.phoneNumber,phone_country:t.phoneCountry,platform:t.platform,member:t.member,primary_account:t.primaryAccount,created_at:t.createTime,time_zone:t.timeZone,location:t.location});
11lP.identify(r),lP.people.set(n)},"mixpanel identify error")}function lz(e){e?.userId&&lU(()=>lP.alias(e.userId?.toString()??""),"mixpanel alias error")}function lV(){lU(()=>lP.reset(),"mixpanel reset error")}function l$(){return lW({environment:lN,app_environment:lN,app_origin:window.location.origin})}function lW(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e&&""!==e))}e.s(["aliasMixpanelUser",()=>lz,"identifyMixpanelUser",()=>lq,"initMixpanel",()=>lj,"resetMixpanelUser",()=>lV,"trackMixpanelEvent",()=>lB],564426);let lG=null,lH=null;function lY(e,t){!e||lH===e||lG||(lG=fetch("/api/migrate-session",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({token:e,user:t})}).then(t=>{if(!t.ok)throw Error(`Session migration failed: ${t.status}`);lH=e}).catch(e=>{console.error("[auth] failed to migrate login session",e)}).finally(()=>{lG=null}))}let lJ=(0,_.create)()((0,b.persist)(e=>({user:null,token:null,linkStep:0,thirdSource:null,thirdUser:null,isAuthenticated:!1,setUser:async t=>{let r=(0,I.getUserAuthToken)(t);if(!r){(0,C.setAuthToken)(null),e({user:null,token:null,isAuthenticated:!1});return}if((0,C.setAuthToken)(r),e({user:t,token:r,isAuthenticated:!0}),lY(r,t),k.useCreditsStore.getState().fetchCredits(),t.newUser){(0,w.sendGAEvent)("event","signup");try{window.gtag?.("event","conversion",{send_to:"AW-17026549291/EI0TCPPLzL4aEKuM8rY_"}),window.uetq=window.uetq||[],window.uetq.push("event","signup",{}),(0,w.sendGAEvent)("event","signup google ads")}catch(e){console.error("sendGAEvent signup error",e)}try{let e=window.oaiq;"function"==typeof e&&(e("measure","registration_completed",{type:"customer_action",amount:0,currency:"USD"}),(0,w.sendGAEvent)("event","signup openai ads pixel"))}catch(e){console.error("sendGAEvent signup error",e)}try{window.rdt("track","SignUp")}catch(e){}try{x.default.capture("user_signed_up",{email:t.email,phoneNumber:t.phoneNumber})}catch(e){console.error("posthog capture signup error",e)}lz(t),lB("user_signed_up",{email:t.email,phoneNumber:t.phoneNumber});try{let[e,r]=await Promise.all([(0,S.sha256)(t.email||""),(0,S.sha256)(t.phoneNumber||"")]);window.ttq.identify({email:e,phone_number:r}),window.ttq.track("CompleteRegistration",{value:1,currency:"USD"}),(0,w.sendGAEvent)("event","signup tiktok pixel")}catch(e){console.error("sendGAEvent signup error",e)}try{window.fbq("track","CompleteRegistration",{value:1,currency:"USD"}),(0,w.sendGAEvent)("event","signup facebook pixel")}catch(e){console.error("sendGAEvent signup error",e)}try{window.wcs.trans({type:"sign up"}),(0,w.sendGAEvent)("event","signup wcs")}catch(e){console.error("sendGAEvent signup error",e)}t.newUser=!1}if(null!=t.userId){try{x.default.identify(t.userId.toString(),{email:t.email,phoneNumber:t.phoneNumber,name:t.name})}catch(e){console.error("posthog identify error",e)}lq(t)}(0,w.sendGAEvent)("event","signup all user");try{let e=window.fbq;"function"==typeof e&&e("init","1324714679091712",{em:t.email||"",ph:t.phoneNumber||"",fn:t.name||"",external_id:t.userId?.toString()||""})}catch(e){}e({user:t,token:r,isAuthenticated:!0})},logout:()=>{lV(),(0,C.setAuthToken)(null),e({user:null,token:null,isAuthenticated:!1}),k.useCreditsStore.getState().init()},setLinkStep:t=>e({linkStep:t}),setThirdSource:t=>e({thirdSource:t}),setThirdUser:t=>e({thirdUser:t}),clearThirdUser:()=>e({thirdUser:null})}),{name:"fb-user",storage:(0,b.createJSONStorage)(()=>localStorage),onRehydrateStorage:()=>e=>{if(e){let t=(0,I.getUserAuthToken)(e.user)??e.token??null;if((0,C.setAuthToken)(t),e.token=t,e.isAuthenticated=!!t,t||(e.user=null),t&&e.user&&lY(t,e.user),e.isAuthenticated&&e.user?.userId){try{x.default.identify(e.user.userId.toString(),{email:e.user.email,phoneNumber:e.user.phoneNumber,name:e.user.name})}catch(e){console.error("posthog identify on rehydrate error",e)}lq(e.user)}}}}));lJ.subscribe(e=>{let t=(0,I.getUserAuthToken)(e.user)??e.token??null;(0,C.setAuthToken)(t),e.isAuthenticated&&!t&&lJ.setState({user:null,token:null,isAuthenticated:!1})})},143061,208514,e=>{"use strict";var t=e.i(851247),r=e.i(216180);let n=e=>
11r.default.post("/v1/course/getAigcCountdown",e);e.s(["GetAigcCountdown",0,n,"GetUserAge",0,()=>r.default.post("/v1/user/profile/age"),"PasswordLogin",0,e=>r.default.post("/v1/user/com/login",e),"SendEmailVerifyCode",0,e=>r.default.post("/v1/user/com/newSendEmailVerifyCode",e),"ThirdLogin",0,e=>r.default.post("/v1/user/third/login",e),"sendEmailVerifyCodeV2",0,e=>r.default.post("/v1/user/com/sendEmailVerifyCodeV2",e),"sensitiveWord",0,e=>r.default.post("/v1/tools/sensitiveWord",e),"thirdLoginCombineV2",0,e=>r.default.post("/v1/user/third/loginV2",e),"updateUserInfo",0,e=>r.default.post("/v1/user/info/update",e)],208514);let i=(0,t.create)((e,t)=>({aiMember:null,rideMember:null,createMember:!1,requestMember:async()=>{let t=await n({sourceTypeList:["AI_COURSE_CREATE","RIDE"]});0===t.code&&e({aiMember:t.data.find(e=>"AI_COURSE_CREATE"===e.sourceType)||null,rideMember:t.data.find(e=>"RIDE"===e.sourceType)||null})}}));e.s(["useMemberStore",0,i],143061)},28856,17264,57509,414724,4701,e=>{"use strict";e.s([],28856),e.i(374962),e.i(143061),e.i(469836);var t=e.i(851247),r=e.i(602853);let n=(0,t.create)()((0,r.persist)(e=>({language:"en",setLanguage:t=>{e({language:t})}}),{name:"fb-home",storage:(0,r.createJSONStorage)(()=>localStorage)}));e.s(["useHomeStore",0,n],17264);var i=e.i(216180);async function o(e,t,r){try{let n=await fetch("/api/feedback/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({feedback_text:e,context_summary:t,feedback_history:r})});if(!n.ok)return console.error("[Feedback] Validate API failed:",n.status),{is_valid:!0,reason:"Validation unavailable"};return await n.json()}catch(e){return console.error("[Feedback] Validate request error:",e),{is_valid:!0,reason:"Network error, defaulting to valid"}}}function s(e){try{return JSON.parse(e)}catch{return e}}async function a(e){let t=e.item_id?.trim(),r={serialNo:e.thread_id,stepId:e.step_id,...t?{itemId:t}:{itemIndex:e.item_index}};return(await i.default.post("/v1/aiAgent/agent/getContextUploadUrl",r)).data}async function u(e,t,r){let n=await fetch(e,{method:"PUT",headers:{"Content-Type":"application/json",...t??{}},body:JSON.stringify(r)});if(200!==n.status&&204!==n.status)throw Error(`Context upload failed: ${n.status} ${n.statusText}`)}async function c(e){let t;if(console.group(`%c[Feedback] ${"like"===e.feedback_type?"ð":"ð"} ${e.step_task_name} â item[${e.item_index}]`,"color: #3cff52; font-weight: bold; font-size: 13px;"),e.feedback_text,e.ab_test_name,e.context_chain.forEach(e=>{}),e.session_context,console.groupEnd(),"dislike"===e.feedback_type&&e.feedback_text){let r=function(e){let t=e.context_chain.find(e=>0===e.level);if(t)try{let e=JSON.parse(t.content_summary),r=[];return r.push(`Step: ${t.step_task_name}`),r.push(`Type: ${t.content_type}`),e.prompt&&r.push(`Prompt: ${e.prompt.substring(0,150)}`),r.join("; ")}catch{return`Step: ${t.step_task_name}, Type: ${t.content_type}`}}(e);t=(await o(e.feedback_text,r,e.feedback_history)).is_valid}try{var r,n;let o,c=function(e){let[t,...r]=[...e.context_chain].sort((e,t)=>e.level-t.level),n=+("like"===e.feedback_type),i=e.item_id?.trim()||void 0;return{schemaVersion:1,snapshotType:"agent_feedback_context",generatedAt:Date.now(),source:{serialNo:e.thread_id,stepId:e.step_id,stepTaskName:e.step_task_name,itemId:i,itemIndex:e.item_index,feedbackType:n},itemContext:t?{level:t.level,stepId:t.step_id,stepTaskName:t.step_task_name,contentType:t.content_type,contentUrl:t.content_url,summary:s(t.content_summary)}:void 0,upstreamContext:r.map(e=>({level:e.level,stepId:e.step_id,stepTaskName:e.step_task_name,contentType:e.content_type,contentUrl:e.content_url,summary:s(e.content_summary)})),ext:{agentName:e.agent_name,...e.feedback_text?{feedbackText:e.feedback_text}:{},...e.session_context?{sessionContext:e.session_context}:{}}}}(e),l=await a(e);await u(l.uploadUrl,l.uploadHeaders,c);let h=(r=t,n=l.objectKey,o=e.item_id?.trim(),{serialNo:e.thread_id,agentName:e.agent_name,stepId:e.step_id,stepTaskName:e.step_task_name,...o?{itemId:o}:{}
11,itemIndex:e.item_index,feedbackType:+("like"===e.feedback_type),..."dislike"===e.feedback_type&&e.feedback_text?{feedbackReason:e.feedback_text,feedbackValid:r}:{},...e.ab_test_name?.trim()?{abTestName:e.ab_test_name.trim(),abTestGroup:e.ab_test_group?.trim()||"control"}:{},...n?{contextObjectKey:n,contextSchemaVersion:1}:{}}),p=await i.default.post("/v1/aiAgent/agent/submitFeedback",h);return{success:!0===p.data,feedback_valid:t}}catch(e){throw console.error("[Feedback] Submit API failed:",e),e}}var l=e.i(125115);function h(e,t){return`${e}:${t}`}let p=(0,t.create)()((0,r.persist)((e,t)=>({feedbackMap:{},submittingSet:new Set,feedbackHistoryMap:{},getFeedback:(e,r)=>t().feedbackMap[h(e,r)]??null,isSubmitting:(e,r)=>t().submittingSet.has(h(e,r)),submitFeedback:async r=>{let n=h(r.thread_id,r.item_id);if(t().feedbackMap[n]||t().submittingSet.has(n))return null;e(e=>{let t=new Set(e.submittingSet);return t.add(n),{submittingSet:t}});try{e(e=>({feedbackMap:{...e.feedbackMap,[n]:r.feedback_type}})),"dislike"===r.feedback_type&&r.feedback_text&&(r.feedback_history=t().feedbackHistoryMap[r.thread_id]??[]);let i=await c(r);if((0,l.trackPostHogEvent)(l.POSTHOG_EVENTS.FEEDBACK_SUBMITTED,{thread_id:r.thread_id,agent_name:r.agent_name,step_id:r.step_id,step_task_name:r.step_task_name,item_id:r.item_id,item_index:r.item_index,feedback_type:r.feedback_type,ab_test_name:r.ab_test_name,ab_test_group:r.ab_test_group,feedback_valid:i.feedback_valid,success:i.success}),"dislike"===r.feedback_type&&r.feedback_text){let t=r.context_chain.find(e=>0===e.level),n=t?`Step: ${t.step_task_name}, Type: ${t.content_type}`:void 0;e(e=>{let t=e.feedbackHistoryMap[r.thread_id]??[];return{feedbackHistoryMap:{...e.feedbackHistoryMap,[r.thread_id]:[...t,{feedback_text:r.feedback_text,context_summary:n}]}}})}return i}catch(t){return(0,l.trackPostHogEvent)(l.POSTHOG_EVENTS.FEEDBACK_FAILED,{thread_id:r.thread_id,agent_name:r.agent_name,step_id:r.step_id,step_task_name:r.step_task_name,item_id:r.item_id,item_index:r.item_index,feedback_type:r.feedback_type,ab_test_name:r.ab_test_name,ab_test_group:r.ab_test_group,error_message:t instanceof Error?t.message:"Unknown error"}),e(e=>{let t={...e.feedbackMap};return delete t[n],{feedbackMap:t}}),console.error("[FeedbackStore] submitFeedback failed:",t),null}finally{e(e=>{let t=new Set(e.submittingSet);return t.delete(n),{submittingSet:t}})}}}),{name:"fb-feedback",partialize:e=>({feedbackMap:e.feedbackMap,feedbackHistoryMap:e.feedbackHistoryMap})}));e.s(["useFeedbackStore",0,p],57509);var d=e.i(575683),f=e.i(77983);async function m(e,t){let r,n,i=await fetch(`/api/proxy/v1/user/notify${e}`,{method:t?.method||"GET",cache:"no-store",credentials:"include",headers:{Accept:"application/json","fb-language":(r=window.location.pathname.split("/").filter(Boolean)[0],n=(0,d.resolveLocaleCode)(r),(0,d.getLanguageByCode)(n)?.requestCode||"en"),...t?.body?{"Content-Type":"application/json"}:{},...t?.headers||{}},body:t?.body});if(!i.ok)throw Error(`HTTP Error: ${i.status} ${i.statusText}`);let o=await i.json();if(0!==o.code&&200!==o.code)throw Error(o.msg||o.message||"Request failed");return o}function g(e){return"object"==typeof e&&null!==e}function v(e){return"string"==typeof e&&e.trim().length>0?e.trim():null}function y(e){return"string"==typeof e&&e.trim().length>0?e.trim():void 0}function _(e){let t=y(e);return t&&(0,f.isYouTubeUrl)(t)?t:void 0}function b(e){if("number"==typeof e&&Number.isFinite(e))return e;if("string"==typeof e&&e.trim().length>0){let t=Number(e);return Number.isFinite(t)?t:void 0}}function w(e){return"number"==typeof e&&Number.isFinite(e)?e:null}function k(e){return Number.isFinite(e)?new Date(e).toISOString():new Date().toISOString()}function S(e){if(!g(e))return null;let t=v(e.text),r=w(e.startTime),n=w(e.endTime),i="number"==typeof e.type?e.type:3;if(!t||null===r||null===n)return null;let o={active:!0===e.active,ctaText:y(e.ctaText)??null,ctaUrl:y(e.ctaUrl)??null,endTime:n,startTime:r,text:t,type:i};return{id:"number"==typeof e.id||"string"==typeof e.id?String(e.id):`ai_banner_${o.type}_${o.startTime}_${o.endTime}_${o.text}`,text:o.text,cta_text:o.ctaText??void 0,cta_url:o.ctaUrl??void 0,type:function(e){switch(e){case 1:return"promo";case 2:return"info";default:return"update"}}(o.type),start_time:k(o.startTime),end_time:k(o.endTime),announcement_popup:C(e.announcementPopup)}}function x(e){if(!g(e))return null;let t="number"==typeof e.id||"string"==typeof e.id?String(e.id):null,r=v(e.title),n=v(e.summary),i=v(e.content),o=w(e.publishTime);if(!t||!r||!n||!i||null===o)return null;
11let s={active:!0===e.active,content:i,ctaText:y(e.ctaText)??null,ctaUrl:y(e.ctaUrl)??null,externalLinkType:b(e.externalLinkType)??b(e.external_link_type)??null,externalUrl:y(e.externalUrl)??y(e.external_url)??null,id:Number(t),imageUrl:y(e.imageUrl)??y(e.image_url)??null,publishTime:o,sortOrder:"number"==typeof e.sortOrder?e.sortOrder:0,summary:n,thumbnailUrl:y(e.thumbnailUrl)??y(e.thumbnail_url)??null,title:r,videoUrl:y(e.videoUrl)??y(e.video_url)??null,youtubeUrl:y(e.youtubeUrl)??y(e.youtube_url)??null,youtubeVideoUrl:y(e.youtubeVideoUrl)??y(e.youtube_video_url)??null},a=(1===s.externalLinkType?_(s.externalUrl):void 0)||_(s.youtubeUrl)||_(s.youtubeVideoUrl)||_(s.videoUrl)||_(s.imageUrl);return{id:t,title:s.title,summary:s.summary,thumbnail_url:s.thumbnailUrl??void 0,image_url:s.imageUrl??void 0,youtube_url:a,external_link_type:s.externalLinkType??void 0,external_url:s.externalUrl??void 0,content:s.content,cta_text:s.ctaText??void 0,cta_url:s.ctaUrl??void 0,created_at:k(s.publishTime),read:!1,announcement_popup:C(e.announcementPopup)}}function C(e){if(!g(e))return;let t=v(e.title);if(!t)return;let r=v(e.layout);return{id:v(e.id)||[e.id,e.title,e.subtitle,e.body,e.primaryCtaUrl,e.secondaryCtaUrl].filter(e=>"string"==typeof e&&e.trim().length>0).join("|")||`announcement_${Date.now()}`,scene:y(e.scene),layout:"image-hero"===r||"split-media"===r||"editorial-text"===r?r:"editorial-text",eyebrow:y(e.eyebrow),title:t,subtitle:y(e.subtitle),body:y(e.body),highlights:function(e){if(!Array.isArray(e))return;let t=e.filter(e=>"string"==typeof e&&e.trim().length>0);return t.length>0?t:void 0}(e.highlights),image_url:y(e.imageUrl)||y(e.image_url),background_image_url:y(e.backgroundImageUrl)||y(e.background_image_url),youtube_url:(1===(b(e.externalLinkType)??b(e.external_link_type))?_(e.externalUrl)||_(e.external_url):void 0)||_(e.youtubeUrl)||_(e.youtube_url)||_(e.youtubeVideoUrl)||_(e.youtube_video_url)||_(e.videoUrl)||_(e.video_url)||_(e.imageUrl)||_(e.image_url)||_(e.backgroundImageUrl)||_(e.background_image_url),external_link_type:b(e.externalLinkType)??b(e.external_link_type),external_url:y(e.externalUrl)||y(e.external_url),primary_cta_text:y(e.primaryCtaText)||y(e.primary_cta_text),primary_cta_url:y(e.primaryCtaUrl)||y(e.primary_cta_url),secondary_cta_text:y(e.secondaryCtaText)||y(e.secondary_cta_text),secondary_cta_url:y(e.secondaryCtaUrl)||y(e.secondary_cta_url),ext:g(e.ext)?e.ext:void 0}}async function I(){var e=(await m("/listAiBanners")).data;if(null==e)return[];if(Array.isArray(e))return e.map(S).filter(e=>!!e);let t=S(e);return t?[t]:[]}async function O(){let e=await m("/listAiFeeds");if(!Array.isArray(e.data))throw Error("Feed list payload is not an array");return e.data.map(x).filter(e=>!!e)}async function E(e){return Promise.resolve()}async function M(e){if(!e)return[];let t=await m("/listAiPopups",{method:"POST",body:JSON.stringify({scene:e})});return Array.isArray(t.data)?t.data.map(C).filter(e=>!!e):[]}e.s(["getBanners",()=>I,"getFeedList",()=>O,"listAnnouncementPopups",()=>M,"markFeedRead",()=>E],414724);let A=(0,t.create)()((0,r.persist)((e,t)=>({banners:[],banner:null,dismissedBanners:{},feedItems:[],readFeedIds:[],unreadCount:0,isLoading:!1,feedLoadError:null,bannerLoadError:null,initialized:!1,initialize:async()=>{t().initialized||t().isLoading||await t().refresh()},refresh:async()=>{if(t().isLoading)return;e({isLoading:!0,feedLoadError:null,bannerLoadError:null});let[r,n]=await Promise.allSettled([I(),O()]);e(e=>{let t={isLoading:!1,initialized:!0};if("fulfilled"===r.status?(t.banners=r.value,t.banner=r.value[0]??null,t.bannerLoadError=null):(console.error("[FeedStore] Failed to refresh banner:",r.reason),t.banners=[],t.banner=null,t.bannerLoadError=r.reason instanceof Error?r.reason.message:"Failed to load banner"),"fulfilled"===n.status){let r=new Set(e.readFeedIds),i=n.value.filter(e=>!r.has(e.id)).length;t.feedItems=n.value,t.unreadCount=i,t.feedLoadError=null}else console.error("[FeedStore] Failed to refresh feeds:",n.reason),t.feedLoadError=n.reason instanceof Error?n.reason.message:"Failed to load notifications";return t})}
11,dismissBanner:t=>{e(e=>({dismissedBanners:{...e.dismissedBanners,[t]:Date.now()},banners:e.banners.filter(e=>e.id!==t),banner:e.banners.find(e=>e.id!==t)??null}))},isBannerDismissed:e=>{let r=t().dismissedBanners[e];return!!r&&Date.now()-r<864e5},markRead:r=>{let n=t();if(n.readFeedIds.includes(r))return;let i=[...n.readFeedIds,r],o=n.feedItems.filter(e=>!i.includes(e.id)).length;e({readFeedIds:i,unreadCount:o}),E(r).catch(console.error)}}),{name:"fb-feed",storage:(0,r.createJSONStorage)(()=>localStorage),merge:(e,t)=>({...t,dismissedBanners:e?.dismissedBanners??t.dismissedBanners,readFeedIds:e?.readFeedIds??t.readFeedIds}),partialize:e=>({dismissedBanners:e.dismissedBanners,readFeedIds:e.readFeedIds})}));e.s(["useFeedStore",0,A],4701)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.