mixpanel-browser 2.76.0 → 2.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.claude/settings.local.json +3 -1
  2. package/.github/dependabot.yml +8 -0
  3. package/.github/workflows/integration-tests.yml +2 -2
  4. package/.github/workflows/unit-tests.yml +2 -2
  5. package/CHANGELOG.md +8 -0
  6. package/dist/async-modules/mixpanel-recorder-BjSlYaNJ.min.js +2 -0
  7. package/dist/async-modules/mixpanel-recorder-BjSlYaNJ.min.js.map +1 -0
  8. package/dist/async-modules/{mixpanel-recorder-bIS4LMGd.js → mixpanel-recorder-zMBXIyeG.js} +84 -10
  9. package/dist/async-modules/{mixpanel-targeting-VOeN7RWY.min.js → mixpanel-targeting-BSHal4N9.min.js} +2 -2
  10. package/dist/async-modules/{mixpanel-targeting-VOeN7RWY.min.js.map → mixpanel-targeting-BSHal4N9.min.js.map} +1 -1
  11. package/dist/async-modules/{mixpanel-targeting-BcAPS-Mz.js → mixpanel-targeting-UHf4eBfC.js} +1 -1
  12. package/dist/mixpanel-core.cjs.d.ts +3 -1
  13. package/dist/mixpanel-core.cjs.js +292 -130
  14. package/dist/mixpanel-recorder.js +84 -10
  15. package/dist/mixpanel-recorder.min.js +1 -1
  16. package/dist/mixpanel-recorder.min.js.map +1 -1
  17. package/dist/mixpanel-targeting.js +1 -1
  18. package/dist/mixpanel-targeting.min.js +1 -1
  19. package/dist/mixpanel-targeting.min.js.map +1 -1
  20. package/dist/mixpanel-with-async-modules.cjs.d.ts +3 -1
  21. package/dist/mixpanel-with-async-modules.cjs.js +294 -132
  22. package/dist/mixpanel-with-async-recorder.cjs.d.ts +3 -1
  23. package/dist/mixpanel-with-async-recorder.cjs.js +294 -132
  24. package/dist/mixpanel-with-recorder.d.ts +3 -1
  25. package/dist/mixpanel-with-recorder.js +381 -168
  26. package/dist/mixpanel-with-recorder.min.d.ts +3 -1
  27. package/dist/mixpanel-with-recorder.min.js +1 -1
  28. package/dist/mixpanel.amd.d.ts +3 -1
  29. package/dist/mixpanel.amd.js +381 -168
  30. package/dist/mixpanel.cjs.d.ts +3 -1
  31. package/dist/mixpanel.cjs.js +381 -168
  32. package/dist/mixpanel.globals.js +294 -132
  33. package/dist/mixpanel.min.js +191 -186
  34. package/dist/mixpanel.module.d.ts +3 -1
  35. package/dist/mixpanel.module.js +381 -168
  36. package/dist/mixpanel.umd.d.ts +3 -1
  37. package/dist/mixpanel.umd.js +381 -168
  38. package/dist/rrweb-bundled.js +61 -9
  39. package/dist/rrweb-compiled.js +56 -9
  40. package/package.json +6 -5
  41. package/src/config.js +1 -1
  42. package/src/flags/CLAUDE.md +24 -0
  43. package/src/flags/index.js +109 -80
  44. package/src/index.d.ts +3 -1
  45. package/src/mixpanel-core.js +4 -2
  46. package/src/recorder/session-recording.js +5 -1
  47. package/src/recorder/utils.js +27 -1
  48. package/src/recorder-manager.js +110 -2
  49. package/testServer.js +16 -1
  50. package/dist/async-modules/mixpanel-recorder-hFoTniVR.min.js +0 -2
  51. package/dist/async-modules/mixpanel-recorder-hFoTniVR.min.js.map +0 -1
  52. /package/src/loaders/{loader-module-with-async-recorder.d.ts → loader-module-with-async-modules.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- (function(){"use strict";var W;if(typeof window=="undefined"){var Bs={hostname:""};W={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:Bs,referrer:""},screen:{width:0,height:0},location:Bs,addEventListener:function(){},removeEventListener:function(){},dispatchEvent:function(){},CustomEvent:function(){}}}else W=window;var gi={LIB_VERSION:"2.76.0"},bc="__mp_recorder";function Us(r,i){(i==null||i>r.length)&&(i=r.length);for(var o=0,e=new Array(i);o<i;o++)e[o]=r[o];return e}function zs(r,i,o,e,t,n,s){try{var a=r[n](s),u=a.value}catch(f){o(f);return}a.done?i(u):Promise.resolve(u).then(e,t)}function Pr(r){return function(){var i=this,o=arguments;return new Promise(function(e,t){var n=r.apply(i,o);function s(u){zs(n,e,t,s,a,"next",u)}function a(u){zs(n,e,t,s,a,"throw",u)}s(void 0)})}}function _r(r,i,o){return Ws()?_r=Reflect.construct:_r=function(t,n,s){var a=[null];a.push.apply(a,n);var u=Function.bind.apply(t,a),f=new u;return s&&Ht(f,s.prototype),f},_r.apply(null,arguments)}function Sc(r,i){for(var o=0;o<i.length;o++){var e=i[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function Z(r,i,o){return i&&Sc(r.prototype,i),r}function T(){return T=Object.assign||function(r){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(r[e]=o[e])}return r},T.apply(this,arguments)}function yi(r){return yi=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},yi(r)}function ee(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),i&&Ht(r,i)}function A(r,i){return i!=null&&typeof Symbol!="undefined"&&i[Symbol.hasInstance]?!!i[Symbol.hasInstance](r):r instanceof i}function Cc(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function et(r,i){if(r==null)return{};var o={},e=Object.keys(r),t,n;for(n=0;n<e.length;n++)t=e[n],!(i.indexOf(t)>=0)&&(o[t]=r[t]);return o}function Ht(r,i){return Ht=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ht(r,i)}function $(r){"@swc/helpers - typeof";return r&&typeof Symbol!="undefined"&&r.constructor===Symbol?"symbol":typeof r}function Ic(r,i){if(r){if(typeof r=="string")return Us(r,i);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(o);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Us(r,i)}}function Yt(r){var i=typeof Map=="function"?new Map:void 0;return Yt=function(e){if(e===null||!Cc(e))return e;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(typeof i!="undefined"){if(i.has(e))return i.get(e);i.set(e,t)}function t(){return _r(e,arguments,yi(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),Ht(t,e)},Yt(r)}function Ws(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(i){}return(Ws=function(){return!!r})()}function I(r,i){var o=typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(o)return(o=o.call(r)).next.bind(o);if(Array.isArray(r)||(o=Ic(r))||i){o&&(r=o);var e=0;return function(){return e>=r.length?{done:!0}:{done:!1,value:r[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tt(r,i){var o,e,t,n,s={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(f){return function(l){return u([f,l])}}function u(f){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,e&&(t=f[0]&2?e.return:f[0]?e.throw||((t=e.return)&&t.call(e),0):e.next)&&!(t=t.call(e,f[1])).done)return t;switch(e=0,t&&(f=[f[0]&2,t.value]),f[0]){case 0:case 1:t=f;break;case 4:return s.label++,{value:f[1],done:!1};case 5:s.label++,e=f[1],f=[0];continue;case 7:f=s.ops.pop(),s.trys.pop();continue;default:if(t=s.trys,!(t=t.length>0&&t[t.length-1])&&(f[0]===6||f[0]===2)){s=0;continue}if(f[0]===3&&(!t||f[1]>t[0]&&f[1]<t[3])){s.label=f[1];break}if(f[0]===6&&s.label<t[1]){s.label=t[1],t=f;break}if(t&&s.label<t[2]){s.label=t[2],s.ops.push(f);break}t[2]&&s.ops.pop(),s.trys.pop();continue}f=i.call(r,s)}catch(l){f=[6,l],e=0}finally{o=t=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function wi(r){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&r[i],e=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}var Oc=Object.defineProperty,xc=function(r,i,o){return i in r?Oc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},O=function(r,i,o){return xc(r,(typeof i=="undefined"?"undefined":$(i))!=="symbol"?i+"":i,o)},js,Rc=Object.defineProperty,Ec=function(r,i,o){return i in r?Rc(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Gs=function(r,i,o){return Ec(r,(typeof i=="undefined"?"undefined":$(i))!=="symbol"?i+"":i,o)},he=(function(r){return r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r})(he||{}),qs={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Vs={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Tr={},Ac=function(){return!!globalThis.Zone};function bi(r){if(Tr[r])return Tr[r];var i=globalThis[r],o=i.prototype,e=r in qs?qs[r]:void 0,t=!!(e&&e.every(function(l){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,l))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Vs?Vs[r]:void 0,s=!!(n&&n.every(function(l){var c;return typeof o[l]=="function"&&((c=o[l])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!Ac())return Tr[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var f=u[r].prototype;return document.body.removeChild(a),f?Tr[r]=f:o}catch(l){return o}}var Si={};function je(r,i,o){var e,t=r+"."+String(o);if(Si[t])return Si[t].call(i);var n=bi(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Si[t]=s,s.call(i)):i[o]}var Ci={};function Hs(r,i,o){var e=r+"."+String(o);if(Ci[e])return Ci[e].bind(i);var t=bi(r),n=t[o];return typeof n!="function"?i[o]:(Ci[e]=n,n.bind(i))}function Mc(r){return je("Node",r,"childNodes")}function $c(r){return je("Node",r,"parentNode")}function kc(r){return je("Node",r,"parentElement")}function Pc(r){return je("Node",r,"textContent")}function _c(r,i){return Hs("Node",r,"contains")(i)}function Tc(r){return Hs("Node",r,"getRootNode")()}function Nc(r){return!r||!("host"in r)?null:je("ShadowRoot",r,"host")}function Lc(r){return r.styleSheets}function Dc(r){return!r||!("shadowRoot"in r)?null:je("Element",r,"shadowRoot")}function Fc(r,i){return je("Element",r,"querySelector")(i)}function Bc(r,i){return je("Element",r,"querySelectorAll")(i)}function Uc(){return bi("MutationObserver").constructor}function zc(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var ve={childNodes:Mc,parentNode:$c,parentElement:kc,textContent:Pc,contains:_c,getRootNode:Tc,host:Nc,styleSheets:Lc,shadowRoot:Dc,querySelector:Fc,querySelectorAll:Bc,mutationObserver:Uc,patch:zc};function Ys(r){return r.nodeType===r.ELEMENT_NODE}function Jt(r){var i=r&&"host"in r&&"mode"in r&&ve.host(r)||null;return!!(i&&"shadowRoot"in i&&ve.shadowRoot(i)===r)}function Zt(r){return Object.prototype.toString.call(r)==="[object ShadowRoot]"}function Wc(r){return r.includes(" background-clip: text;")&&!r.includes(" -webkit-background-clip: text;")&&(r=r.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),r}function jc(r){var i=r.cssText;if(i.split('"').length<3)return i;var o=["@import","url("+JSON.stringify(r.href)+")"];return r.layerName===""?o.push("layer"):r.layerName&&o.push("layer("+r.layerName+")"),r.supportsText&&o.push("supports("+r.supportsText+")"),r.media.length&&o.push(r.media.mediaText),o.join(" ")+";"}function Ii(r){try{var i=r.rules||r.cssRules;if(!i)return null;var o=r.href;!o&&r.ownerNode&&r.ownerNode.ownerDocument&&(o=r.ownerNode.ownerDocument.location.href);var e=Array.from(i,function(t){return Js(t,o)}).join("");return Wc(e)}catch(t){return null}}function Js(r,i){if(qc(r)){var o;try{o=Ii(r.styleSheet)||jc(r)}catch(t){o=r.cssText}return r.styleSheet.href?Dr(o,r.styleSheet.href):o}else{var e=r.cssText;return Vc(r)&&r.selectorText.includes(":")&&(e=Gc(e)),i?Dr(e,i):e}}function Gc(r){var i=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return r.replace(i,"$1\\$2")}function qc(r){return"styleSheet"in r}function Vc(r){return"selectorText"in r}var Zs=(function(){function r(){Gs(this,"idNodeMap",new Map),Gs(this,"nodeMetaMap",new WeakMap)}var i=r.prototype;return i.getId=function(e){var t;if(!e)return-1;var n=(t=this.getMeta(e))==null?void 0:t.id;return n!=null?n:-1},i.getNode=function(e){return this.idNodeMap.get(e)||null},i.getIds=function(){return Array.from(this.idNodeMap.keys())},i.getMeta=function(e){return this.nodeMetaMap.get(e)||null},i.removeNodeFromMap=function(e,t){var n=this;t===void 0&&(t=!1);var s=this.getId(e);this.idNodeMap.delete(s),t&&this.nodeMetaMap.delete(e),e.childNodes&&e.childNodes.forEach(function(a){return n.removeNodeFromMap(a,t)})},i.has=function(e){return this.idNodeMap.has(e)},i.hasNode=function(e){return this.nodeMetaMap.has(e)},i.add=function(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)},i.replace=function(e,t){var n=this.getNode(e);if(n){var s=this.nodeMetaMap.get(n);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(e,t)},i.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},r})();function Hc(){return new Zs}function Nr(r){var i=r.element,o=r.maskInputOptions,e=r.tagName,t=r.type,n=r.value,s=r.maskInputFn,a=n||"",u=t&&rt(t);return(o[e.toLowerCase()]||u&&o[u])&&(s?a=s(a,i):a="*".repeat(a.length)),a}function rt(r){return r.toLowerCase()}var Ks="__rrweb_original__";function Yc(r){var i=r.getContext("2d");if(!i)return!0;for(var o=50,e=0;e<r.width;e+=o)for(var t=0;t<r.height;t+=o){var n=i.getImageData,s=Ks in n?n[Ks]:n,a=new Uint32Array(s.call(i,e,t,Math.min(o,r.width-e),Math.min(o,r.height-t)).data.buffer);if(a.some(function(u){return u!==0}))return!1}return!0}function Lr(r){var i=r.type;return r.hasAttribute("data-rr-is-password")?"password":i?rt(i):null}function Xs(r,i){var o;try{o=new URL(r,i!=null?i:window.location.href)}catch(s){return null}var e=/\.([0-9a-z]+)(?:$)/i,t=o.pathname.match(e),n;return(n=t==null?void 0:t[1])!=null?n:null}function Jc(r){var i="";return r.indexOf("//")>-1?i=r.split("/").slice(0,3).join("/"):i=r.split("/")[0],i=i.split("?")[0],i}var Zc=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Kc=/^(?:[a-z+]+:)?\/\//i,Xc=/^www\..*/i,Qc=/^(data:)([^,]*),(.*)/i;function Dr(r,i){return(r||"").replace(Zc,function(o,e,t,n,s,a){var u=t||s||a,f=e||n||"";if(!u)return o;if(Kc.test(u)||Xc.test(u)||Qc.test(u))return"url("+f+u+f+")";if(u[0]==="/")return"url("+f+(Jc(i)+u)+f+")";var l=i.split("/"),c=u.split("/");l.pop();for(var h=I(c),v;!(v=h()).done;){var d=v.value;d!=="."&&(d===".."?l.pop():l.push(d))}return"url("+f+l.join("/")+f+")"})}function Fr(r,i){return i===void 0&&(i=!1),i?r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):r.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function eh(r,i,o){o===void 0&&(o=!1);var e=Array.from(i.childNodes),t=[],n=0;if(e.length>1&&r&&typeof r=="string"){for(var s=Fr(r,o),a=s.length/r.length,u=1;u<e.length;u++)if(e[u].textContent&&typeof e[u].textContent=="string"){for(var f=Fr(e[u].textContent,o),l=100,c=3;c<f.length&&(f[c].match(/[a-zA-Z0-9]/)||f.indexOf(f.substring(0,c),1)!==-1);c++);for(;c<f.length;c++){var h=f.substring(0,c),v=s.split(h),d=-1;if(v.length===2)d=v[0].length;else if(v.length>2&&v[0]===""&&e[u-1].textContent!=="")d=s.indexOf(h,1);else if(v.length===1){if(h=h.substring(0,h.length-1),v=s.split(h),v.length<=1)return t.push(r),t;c=l+1}else c===f.length-1&&(d=s.indexOf(h));if(v.length>=2&&c>l){var m=e[u-1].textContent;if(m&&typeof m=="string"){var p=Fr(m).length;d=s.indexOf(h,p)}d===-1&&(d=v[0].length)}if(d!==-1){for(var g=Math.floor(d/a);g>0&&g<r.length;){if(n+=1,n>50*e.length)return t.push(r),t;var w=Fr(r.substring(0,g),o);if(w.length===d){t.push(r.substring(0,g)),r=r.substring(g),s=s.substring(d);break}else w.length<d?g+=Math.max(1,Math.floor((d-w.length)/a)):g-=Math.max(1,Math.floor((w.length-d)*a))}break}}}}return t.push(r),t}function th(r,i){return eh(r,i).join("/* rr_split */")}var rh=1,nh=new RegExp("[^a-z0-9-_:]"),Kt=-2;function Qs(){return rh++}function ih(r){if(A(r,HTMLFormElement))return"form";var i=rt(r.tagName);return nh.test(i)?"div":i}var bt,ea,oh=/^[^ \t\n\r\u000c]+/,sh=/^[, \t\n\r\u000c]+/;function ah(r,i){if(i.trim()==="")return i;var o=0;function e(f){var l,c=f.exec(i.substring(o));return c?(l=c[0],o+=l.length,l):""}for(var t=[];e(sh),!(o>=i.length);){var n=e(oh);if(n.slice(-1)===",")n=St(r,n.substring(0,n.length-1)),t.push(n);else{var s="";n=St(r,n);for(var a=!1;;){var u=i.charAt(o);if(u===""){t.push((n+s).trim());break}else if(a)u===")"&&(a=!1);else if(u===","){o+=1,t.push((n+s).trim());break}else u==="("&&(a=!0);s+=u,o+=1}}}return t.join(", ")}var ta=new WeakMap;function St(r,i){return!i||i.trim()===""?i:Oi(r,i)}function uh(r){return!!(r.tagName==="svg"||r.ownerSVGElement)}function Oi(r,i){var o=ta.get(r);if(o||(o=r.createElement("a"),ta.set(r,o)),!i)i="";else if(i.startsWith("blob:")||i.startsWith("data:"))return i;return o.setAttribute("href",i),o.href}function ra(r,i,o,e){return e&&(o==="src"||o==="href"&&!(i==="use"&&e[0]==="#")||o==="xlink:href"&&e[0]!=="#"||o==="background"&&(i==="table"||i==="td"||i==="th")?St(r,e):o==="srcset"?ah(r,e):o==="style"?Dr(e,Oi(r)):i==="object"&&o==="data"?St(r,e):e)}function na(r,i,o){return(r==="video"||r==="audio")&&i==="autoplay"}function fh(r,i,o){try{if(typeof i=="string"){if(r.classList.contains(i))return!0}else for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}if(o)return r.matches(o)}catch(n){}return!1}function Br(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return o?Br(ve.parentNode(r),i,o):!1;for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return o?Br(ve.parentNode(r),i,o):!1}function ia(r,i,o,e){var t;if(Ys(r)){if(t=r,!ve.childNodes(t).length)return!1}else{if(ve.parentElement(r)===null)return!1;t=ve.parentElement(r)}try{if(typeof i=="string"){if(e){if(t.closest("."+i))return!0}else if(t.classList.contains(i))return!0}else if(Br(t,i,e))return!0;if(o){if(e){if(t.closest(o))return!0}else if(t.matches(o))return!0}}catch(n){}return!1}function lh(r,i,o){var e=r.contentWindow;if(e){var t=!1,n;try{n=e.document.readyState}catch(u){return}if(n!=="complete"){var s=setTimeout(function(){t||(i(),t=!0)},o);r.addEventListener("load",function(){clearTimeout(s),t=!0,i()});return}var a="about:blank";if(e.location.href!==a||r.src===a||r.src==="")return setTimeout(i,0),r.addEventListener("load",i);r.addEventListener("load",i)}}function ch(r,i,o){var e=!1,t;try{t=r.sheet}catch(s){return}if(!t){var n=setTimeout(function(){e||(i(),e=!0)},o);r.addEventListener("load",function(){clearTimeout(n),e=!0,i()})}}function hh(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.needsMask,a=i.inlineStylesheet,u=i.maskInputOptions,f=u===void 0?{}:u,l=i.maskTextFn,c=i.maskInputFn,h=i.dataURLOptions,v=h===void 0?{}:h,d=i.inlineImages,m=i.recordCanvas,p=i.keepIframeSrcFn,g=i.newlyAddedElement,w=g===void 0?!1:g,b=i.cssCaptured,S=b===void 0?!1:b,C=ph(o,e);switch(r.nodeType){case r.DOCUMENT_NODE:return r.compatMode!=="CSS1Compat"?{type:he.Document,childNodes:[],compatMode:r.compatMode}:{type:he.Document,childNodes:[]};case r.DOCUMENT_TYPE_NODE:return{type:he.DocumentType,name:r.name,publicId:r.publicId,systemId:r.systemId,rootId:C};case r.ELEMENT_NODE:return vh(r,{doc:o,blockClass:t,blockSelector:n,inlineStylesheet:a,maskInputOptions:f,maskInputFn:c,dataURLOptions:v,inlineImages:d,recordCanvas:m,keepIframeSrcFn:p,newlyAddedElement:w,rootId:C});case r.TEXT_NODE:return dh(r,{doc:o,needsMask:s,maskTextFn:l,rootId:C,cssCaptured:S});case r.CDATA_SECTION_NODE:return{type:he.CDATA,textContent:"",rootId:C};case r.COMMENT_NODE:return{type:he.Comment,textContent:ve.textContent(r)||"",rootId:C};default:return!1}}function ph(r,i){if(i.hasNode(r)){var o=i.getId(r);return o===1?void 0:o}}function dh(r,i){var o=i.needsMask,e=i.maskTextFn,t=i.rootId,n=i.cssCaptured,s=ve.parentNode(r),a=s&&s.tagName,u="",f=a==="STYLE"?!0:void 0,l=a==="SCRIPT"?!0:void 0;return l?u="SCRIPT_PLACEHOLDER":n||(u=ve.textContent(r),f&&u&&(u=Dr(u,Oi(i.doc)))),!f&&!l&&u&&o&&(u=e?e(u,ve.parentElement(r)):u.replace(/[\S]/g,"*")),{type:he.Text,textContent:u||"",rootId:t}}function vh(r,i){for(var o=i.doc,e=i.blockClass,t=i.blockSelector,n=i.inlineStylesheet,s=i.maskInputOptions,a=s===void 0?{}:s,u=i.maskInputFn,f=i.dataURLOptions,l=f===void 0?{}:f,c=i.inlineImages,h=i.recordCanvas,v=i.keepIframeSrcFn,d=i.newlyAddedElement,m=d===void 0?!1:d,p=i.rootId,g=fh(r,e,t),w=ih(r),b={},S=r.attributes.length,C=0;C<S;C++){var x=r.attributes[C];na(w,x.name,x.value)||(b[x.name]=ra(o,w,rt(x.name),x.value))}if(w==="link"&&n){var E=Array.from(o.styleSheets).find(function(Ie){return Ie.href===r.href}),R=null;E&&(R=Ii(E)),R&&(delete b.rel,delete b.href,b._cssText=R)}if(w==="style"&&r.sheet){var k=Ii(r.sheet);k&&(r.childNodes.length>1&&(k=th(k,r)),b._cssText=k)}if(w==="input"||w==="textarea"||w==="select"){var N=r.value,ae=r.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&N?b.value=Nr({element:r,type:Lr(r),tagName:w,value:N,maskInputOptions:a,maskInputFn:u}):ae&&(b.checked=ae)}if(w==="option"&&(r.selected&&!a.select?b.selected=!0:delete b.selected),w==="dialog"&&r.open&&(b.rr_open_mode=r.matches("dialog:modal")?"modal":"non-modal"),w==="canvas"&&h){if(r.__context==="2d")Yc(r)||(b.rr_dataURL=r.toDataURL(l.type,l.quality));else if(!("__context"in r)){var P=r.toDataURL(l.type,l.quality),L=o.createElement("canvas");L.width=r.width,L.height=r.height;var ie=L.toDataURL(l.type,l.quality);P!==ie&&(b.rr_dataURL=P)}}if(w==="img"&&c){bt||(bt=o.createElement("canvas"),ea=bt.getContext("2d"));var z=r,Ce=z.currentSrc||z.getAttribute("src")||"<unknown-src>",be=z.crossOrigin,pe=function(){z.removeEventListener("load",pe);try{bt.width=z.naturalWidth,bt.height=z.naturalHeight,ea.drawImage(z,0,0),b.rr_dataURL=bt.toDataURL(l.type,l.quality)}catch(Ie){if(z.crossOrigin!=="anonymous"){z.crossOrigin="anonymous",z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe);return}else console.warn("Cannot inline img src="+Ce+"! Error: "+Ie)}z.crossOrigin==="anonymous"&&(be?b.crossOrigin=be:z.removeAttribute("crossorigin"))};z.complete&&z.naturalWidth!==0?pe():z.addEventListener("load",pe)}if(w==="audio"||w==="video"){var oe=b;oe.rr_mediaState=r.paused?"paused":"played",oe.rr_mediaCurrentTime=r.currentTime,oe.rr_mediaPlaybackRate=r.playbackRate,oe.rr_mediaMuted=r.muted,oe.rr_mediaLoop=r.loop,oe.rr_mediaVolume=r.volume}if(m||(r.scrollLeft&&(b.rr_scrollLeft=r.scrollLeft),r.scrollTop&&(b.rr_scrollTop=r.scrollTop)),g){var de=r.getBoundingClientRect(),ct=de.width,Ne=de.height;b={class:b.class,rr_width:""+ct+"px",rr_height:""+Ne+"px"}}w==="iframe"&&!v(b.src)&&(r.contentDocument||(b.rr_src=b.src),delete b.src);var Wt;try{customElements.get(w)&&(Wt=!0)}catch(Ie){}return{type:he.Element,tagName:w,attributes:b,childNodes:[],isSVG:uh(r)||void 0,needBlock:g,rootId:p,isCustom:Wt}}function Y(r){return r==null?"":r.toLowerCase()}function mh(r,i){if(i.comment&&r.type===he.Comment)return!0;if(r.type===he.Element){if(i.script&&(r.tagName==="script"||r.tagName==="link"&&(r.attributes.rel==="preload"&&r.attributes.as==="script"||r.attributes.rel==="modulepreload")||r.tagName==="link"&&r.attributes.rel==="prefetch"&&typeof r.attributes.href=="string"&&Xs(r.attributes.href)==="js"))return!0;if(i.headFavicon&&(r.tagName==="link"&&r.attributes.rel==="shortcut icon"||r.tagName==="meta"&&(Y(r.attributes.name).match(/^msapplication-tile(image|color)$/)||Y(r.attributes.name)==="application-name"||Y(r.attributes.rel)==="icon"||Y(r.attributes.rel)==="apple-touch-icon"||Y(r.attributes.rel)==="shortcut icon")))return!0;if(r.tagName==="meta"){if(i.headMetaDescKeywords&&Y(r.attributes.name).match(/^description|keywords$/))return!0;if(i.headMetaSocial&&(Y(r.attributes.property).match(/^(og|twitter|fb):/)||Y(r.attributes.name).match(/^(og|twitter):/)||Y(r.attributes.name)==="pinterest"))return!0;if(i.headMetaRobots&&(Y(r.attributes.name)==="robots"||Y(r.attributes.name)==="googlebot"||Y(r.attributes.name)==="bingbot"))return!0;if(i.headMetaHttpEquiv&&r.attributes["http-equiv"]!==void 0)return!0;if(i.headMetaAuthorship&&(Y(r.attributes.name)==="author"||Y(r.attributes.name)==="generator"||Y(r.attributes.name)==="framework"||Y(r.attributes.name)==="publisher"||Y(r.attributes.name)==="progid"||Y(r.attributes.property).match(/^article:/)||Y(r.attributes.property).match(/^product:/)))return!0;if(i.headMetaVerification&&(Y(r.attributes.name)==="google-site-verification"||Y(r.attributes.name)==="yandex-verification"||Y(r.attributes.name)==="csrf-token"||Y(r.attributes.name)==="p:domain_verify"||Y(r.attributes.name)==="verify-v1"||Y(r.attributes.name)==="verification"||Y(r.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ct(r,i){var o=i.doc,e=i.mirror,t=i.blockClass,n=i.blockSelector,s=i.maskTextClass,a=i.maskTextSelector,u=i.skipChild,f=u===void 0?!1:u,l=i.inlineStylesheet,c=l===void 0?!0:l,h=i.maskInputOptions,v=h===void 0?{}:h,d=i.maskTextFn,m=i.maskInputFn,p=i.slimDOMOptions,g=i.dataURLOptions,w=g===void 0?{}:g,b=i.inlineImages,S=b===void 0?!1:b,C=i.recordCanvas,x=C===void 0?!1:C,E=i.onSerialize,R=i.onIframeLoad,k=i.iframeLoadTimeout,N=k===void 0?5e3:k,ae=i.onStylesheetLoad,P=i.stylesheetLoadTimeout,L=P===void 0?5e3:P,ie=i.keepIframeSrcFn,z=ie===void 0?function(){return!1}:ie,Ce=i.newlyAddedElement,be=Ce===void 0?!1:Ce,pe=i.cssCaptured,oe=pe===void 0?!1:pe,de=i.needsMask,ct=i.preserveWhiteSpace,Ne=ct===void 0?!0:ct;if(!de){var Wt=de===void 0;de=ia(r,s,a,Wt)}var Ie=hh(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,dataURLOptions:w,inlineImages:S,recordCanvas:x,keepIframeSrcFn:z,newlyAddedElement:be,cssCaptured:oe});if(!Ie)return console.warn(r,"not serialized"),null;var ht;e.hasNode(r)?ht=e.getId(r):mh(Ie,p)||!Ne&&Ie.type===he.Text&&!Ie.textContent.replace(/^\s+|\s+$/gm,"").length?ht=Kt:ht=Qs();var j=Object.assign(Ie,{id:ht});if(e.add(r,j),ht===Kt)return null;E&&E(r);var pt=!f;if(j.type===he.Element){pt=pt&&!j.needBlock,delete j.needBlock;var dt=ve.shadowRoot(r);dt&&Zt(dt)&&(j.isShadowHost=!0)}if((j.type===he.Document||j.type===he.Element)&&pt){p.headWhitespace&&j.type===he.Element&&j.tagName==="head"&&(Ne=!1);var jt={doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:f,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,slimDOMOptions:p,dataURLOptions:w,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Ne,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z,cssCaptured:!1};if(!(j.type===he.Element&&j.tagName==="textarea"&&j.attributes.value!==void 0)){j.type===he.Element&&j.attributes._cssText!==void 0&&typeof j.attributes._cssText=="string"&&(jt.cssCaptured=!0);for(var Mr=I(Array.from(ve.childNodes(r))),$r;!($r=Mr()).done;){var Ns=$r.value,vi=Ct(Ns,jt);vi&&j.childNodes.push(vi)}}var Qe=null;if(Ys(r)&&(Qe=ve.shadowRoot(r)))for(var vt=I(Array.from(ve.childNodes(Qe))),Gt;!(Gt=vt()).done;){var kr=Gt.value,qt=Ct(kr,jt);qt&&(Zt(Qe)&&(qt.isShadow=!0),j.childNodes.push(qt))}}var mt=ve.parentNode(r);return mt&&Jt(mt)&&Zt(mt)&&(j.isShadow=!0),j.type===he.Element&&j.tagName==="iframe"&&lh(r,function(){var ze=r.contentDocument;if(ze&&R){var gt=Ct(ze,{doc:ze,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,slimDOMOptions:p,dataURLOptions:w,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Ne,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});gt&&R(r,gt)}},N),j.type===he.Element&&j.tagName==="link"&&typeof j.attributes.rel=="string"&&(j.attributes.rel==="stylesheet"||j.attributes.rel==="preload"&&typeof j.attributes.href=="string"&&Xs(j.attributes.href)==="css")&&ch(r,function(){if(ae){var ze=Ct(r,{doc:o,mirror:e,blockClass:t,blockSelector:n,needsMask:de,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:c,maskInputOptions:v,maskTextFn:d,maskInputFn:m,slimDOMOptions:p,dataURLOptions:w,inlineImages:S,recordCanvas:x,preserveWhiteSpace:Ne,onSerialize:E,onIframeLoad:R,iframeLoadTimeout:N,onStylesheetLoad:ae,stylesheetLoadTimeout:L,keepIframeSrcFn:z});ze&&ae(r,ze)}},L),j}function gh(r,i){var o=i||{},e=o.mirror,t=e===void 0?new Zs:e,n=o.blockClass,s=n===void 0?"rr-block":n,a=o.blockSelector,u=a===void 0?null:a,f=o.maskTextClass,l=f===void 0?"rr-mask":f,c=o.maskTextSelector,h=c===void 0?null:c,v=o.inlineStylesheet,d=v===void 0?!0:v,m=o.inlineImages,p=m===void 0?!1:m,g=o.recordCanvas,w=g===void 0?!1:g,b=o.maskAllInputs,S=b===void 0?!1:b,C=o.maskTextFn,x=o.maskInputFn,E=o.slimDOM,R=E===void 0?!1:E,k=o.dataURLOptions,N=o.preserveWhiteSpace,ae=o.onSerialize,P=o.onIframeLoad,L=o.iframeLoadTimeout,ie=o.onStylesheetLoad,z=o.stylesheetLoadTimeout,Ce=o.keepIframeSrcFn,be=Ce===void 0?function(){return!1}:Ce,pe=S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:S===!1?{password:!0}:S,oe=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return Ct(r,{doc:r,mirror:t,blockClass:s,blockSelector:u,maskTextClass:l,maskTextSelector:h,skipChild:!1,inlineStylesheet:d,maskInputOptions:pe,maskTextFn:C,maskInputFn:x,slimDOMOptions:oe,dataURLOptions:k,inlineImages:p,recordCanvas:w,preserveWhiteSpace:N,onSerialize:ae,onIframeLoad:P,iframeLoadTimeout:L,onStylesheetLoad:ie,stylesheetLoadTimeout:z,keepIframeSrcFn:be,newlyAddedElement:!1})}function yh(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function wh(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return A(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var xi={exports:{}},K=String,oa=function(){return{isColorSupported:!1,reset:K,bold:K,dim:K,italic:K,underline:K,inverse:K,hidden:K,strikethrough:K,black:K,red:K,green:K,yellow:K,blue:K,magenta:K,cyan:K,white:K,gray:K,bgBlack:K,bgRed:K,bgGreen:K,bgYellow:K,bgBlue:K,bgMagenta:K,bgCyan:K,bgWhite:K}};xi.exports=oa(),xi.exports.createColors=oa;var bh=xi.exports,Sh={},Ch=Object.freeze(Object.defineProperty({__proto__:null,default:Sh},Symbol.toStringTag,{value:"Module"})),ue=wh(Ch),sa=bh,aa=ue,Ri=(function(r){ee(i,r);function i(e,t,n,s,a,u){var f;return f=r.call(this,e)||this,f.name="CssSyntaxError",f.reason=e,a&&(f.file=a),s&&(f.source=s),u&&(f.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(f.line=t,f.column=n):(f.line=t.line,f.column=t.column,f.endLine=n.line,f.endColumn=n.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,i),f}var o=i.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=sa.isColorSupported),aa&&t&&(s=aa(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),l=String(f).length,c,h;if(t){var v=sa.createColors(!0),d=v.bold,m=v.gray,p=v.red;c=function(g){return d(p(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,f).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var C=h(S.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(S)+g+"\n "+C+c("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Yt(Error)),Ei=Ri;Ri.default=Ri;var Ge={};Ge.isClean=Symbol("isClean"),Ge.my=Symbol("my");var ua={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Ih(r){return r[0].toUpperCase()+r.slice(1)}var Ai=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var f=0;f<a;f++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return ua[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var f="raw"+Ih(n);return this[f]?s=this[f](u,e):u.walk(function(l){if(s=l.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=ua[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),fa=Ai;Ai.default=Ai;var Oh=fa;function Mi(r,i){var o=new Oh(i);o.stringify(r)}var Ur=Mi;Mi.default=Mi;var zr=Ge.isClean,xh=Ge.my,Rh=Ei,Eh=fa,Ah=Ur;function $i(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":$(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return $i(s,o)}):(n==="object"&&t!==null&&(t=$i(t)),o[e]=t)}return o}var ki=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[zr]=!1,this[xh]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.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},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=$i(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new Rh(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[zr]){this[zr]=!1;for(var e=this;e=e.parent;)e[zr]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new Eh;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),f;!(f=u()).done;){var l=f.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var f=this[u];if(Array.isArray(f))n[u]=f.map(function(c){return(typeof c=="undefined"?"undefined":$(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof f=="undefined"?"undefined":$(f))==="object"&&f.toJSON)n[u]=f.toJSON(null,t);else if(u==="source"){var l=t.get(f.input);l==null&&(l=a,t.set(f.input,a),a++),n[u]={end:f.end,inputId:l,start:f.start}}else n[u]=f}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=Ah),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),Wr=ki;ki.default=ki;var Mh=Wr,Pi=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(Mh),jr=Pi;Pi.default=Pi;var $h="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",kh=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=$h[Math.random()*64|0];return i},Ph={nanoid:kh},la=ue.SourceMapConsumer,ca=ue.SourceMapGenerator,_h=ue.existsSync,Th=ue.readFileSync,_i=ue.dirname,Nh=ue.join;function Lh(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Ti=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=_i(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new la(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Lh(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":$(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=_i(e),_h(e))return this.mapFile=e,Th(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(A(t,la))return ca.fromSourceMap(t).toString();if(A(t,ca))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Nh(_i(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),ha=Ti;Ti.default=Ti;var Dh=ue.SourceMapConsumer,Fh=ue.SourceMapGenerator,pa=ue.fileURLToPath,Gr=ue.pathToFileURL,Ni=ue.isAbsolute,Li=ue.resolve,Bh=Ph.nanoid,Di=ue,da=Ei,Uh=ha,Fi=Symbol("fromOffsetCache"),zh=!!(Dh&&Fh),va=!!(Li&&Ni),qr=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":$(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!va||/^\w+:\/\//.test(e.from)||Ni(e.from)?this.file=e.from:this.file=Li(e.from)),va&&zh){var t=new Uh(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Bh(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,f;if(t&&(typeof t=="undefined"?"undefined":$(t))==="object"){var l=t,c=n;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);t=h.line,n=h.col}else t=l.line,n=l.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,f=v.col}else u=c.line,f=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var m=this.origin(t,n,u,f);return m?a=new da(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new da(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:f,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:f,endLine:u,line:t,source:this.css},this.file&&(Gr&&(a.input.url=Gr(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[Fi])n=this[Fi];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,f=s.length;u<f;u++)n[u]=a,a+=s[u].length+1;this[Fi]=n}t=n[n.length-1];var l=0;if(e>=t)l=n.length-1;else for(var c=n.length-2,h;l<c;)if(h=l+(c-l>>1),e<n[h])c=h-1;else if(e>=n[h+1])l=h+1;else{l=h;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:Li(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var f;typeof n=="number"&&(f=a.originalPositionFor({column:s,line:n}));var l;Ni(u.source)?l=Gr(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Gr(this.map.mapFile));var c={column:u.column,endColumn:f&&f.column,endLine:f&&f.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(pa)c.file=pa(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),Vr=qr;qr.default=qr,Di&&Di.registerInput&&Di.registerInput(qr);var ma=ue.SourceMapConsumer,Hr=ue.SourceMapGenerator,Yr=ue.dirname,ga=ue.relative,ya=ue.resolve,wa=ue.sep,ba=ue.pathToFileURL,Wh=Vr,jh=!!(ma&&Hr),Gh=!!(Yr&&ya&&ga&&wa),qh=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,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 i=r.prototype;return i.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||Yr(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new ma(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Gh&&jh&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Hr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Hr({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]},i.generateString=function(){var e=this;this.css="",this.map=new Hr({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,f;this.stringify(this.root,function(l,c,h){if(e.css+=l,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(t+=u.length,f=l.lastIndexOf("\n"),n=l.length-f):n+=l.length,c&&h!=="start"){var v=c.parent||{raws:{}},d=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!d||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},i.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Yr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Yr(ya(n,this.mapOpts.annotation)));var s=ga(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new Wh(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(ba){var n=ba(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;wa==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),Sa=qh,Vh=Wr,Bi=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Vh),Jr=Bi;Bi.default=Bi;var Ca=Ge.isClean,Ia=Ge.my,Oa=jr,xa=Jr,Hh=Wr,Ra,Ui,zi,Ea;function Aa(r){return r.map(function(i){return i.nodes&&(i.nodes=Aa(i.nodes)),delete i.source,i})}function Ma(r){if(r[Ca]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;Ma(e)}}var Le=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var f=u.value,l=this.normalize(f,this.last),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var l;return(l=n)[s].apply(l,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var f=arguments.length,l=new Array(f>1?f-1:0),c=1;c<f;c++)l[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),f;!(f=u()).done;){var l=f.value;this.proxyOf.nodes.splice(s+1,0,l)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var f=I(u),l;!(l=f()).done;){var c=l.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=Aa(Ra(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var l=I(t),c;!(c=l()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Oa(t)]}else if(t.selector)t=[new Ui(t)];else if(t.name)t=[new zi(t)];else if(t.text)t=[new xa(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[Ia]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[Ca]&&Ma(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var f=u.value,l=this.normalize(f,this.first,"prepend").reverse(),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Hh);Le.registerParse=function(r){Ra=r},Le.registerRule=function(r){Ui=r},Le.registerAtRule=function(r){zi=r},Le.registerRoot=function(r){Ea=r};var nt=Le;Le.default=Le,Le.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,zi.prototype):r.type==="rule"?Object.setPrototypeOf(r,Ui.prototype):r.type==="decl"?Object.setPrototypeOf(r,Oa.prototype):r.type==="comment"?Object.setPrototypeOf(r,xa.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ea.prototype),r[Ia]=!0,r.nodes&&r.nodes.forEach(function(i){Le.rebuild(i)})};var Yh=nt,$a,ka,Xt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new $a(new ka,this,t);return n.stringify()},i})(Yh);Xt.registerLazyResult=function(r){$a=r},Xt.registerProcessor=function(r){ka=r};var Wi=Xt;Xt.default=Xt;var Pa={},_a=function(i){Pa[i]||(Pa[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},ji=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),Ta=ji;ji.default=ji;var Jh=Ta,Gi=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Jh(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),qi=Gi;Gi.default=Gi;var Vi=39,Na=34,Zr=92,La=47,Kr=10,Qt=32,Xr=12,Qr=9,en=13,Zh=91,Kh=93,Xh=40,Qh=41,ep=123,tp=125,rp=59,np=42,ip=58,op=64,tn=/[\t\n\f\r "#'()/;[\\\]{}]/g,rn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,sp=/.[\r\n"'(/\\]/,Da=/[\da-f]/i,ap=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,f,l,c,h,v,d,m=e.length,p=0,g=[],w=[];function b(){return p}function S(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=m}function x(R){if(w.length)return w.pop();if(!(p>=m)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case Kr:case Qt:case Qr:case en:case Xr:{s=p;do s+=1,n=e.charCodeAt(s);while(n===Qt||n===Kr||n===Qr||n===en||n===Xr);d=["space",e.slice(p,s)],p=s-1;break}case Zh:case Kh:case ep:case tp:case ip:case rp:case Qh:{var N=String.fromCharCode(n);d=[N,N,p];break}case Xh:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==Vi&&v!==Na&&v!==Qt&&v!==Kr&&v!==Qr&&v!==Xr&&v!==en){s=p;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else S("bracket");for(c=s;e.charCodeAt(c-1)===Zr;)c-=1,l=!l}while(l);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||sp.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case Vi:case Na:{a=n===Vi?"'":'"',s=p;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else S("string");for(c=s;e.charCodeAt(c-1)===Zr;)c-=1,l=!l}while(l);d=["string",e.slice(p,s+1),p,s],p=s;break}case op:{tn.lastIndex=p+1,tn.test(e),tn.lastIndex===0?s=e.length-1:s=tn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Zr:{for(s=p,f=!0;e.charCodeAt(s+1)===Zr;)s+=1,f=!f;if(n=e.charCodeAt(s+1),f&&n!==La&&n!==Qt&&n!==Kr&&n!==Qr&&n!==en&&n!==Xr&&(s+=1,Da.test(e.charAt(s)))){for(;Da.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===Qt&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===La&&e.charCodeAt(p+1)===np?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:S("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(rn.lastIndex=p+1,rn.test(e),rn.lastIndex===0?s=e.length-1:s=rn.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function E(R){w.push(R)}return{back:E,endOfFile:C,nextToken:x,position:b}},Fa=nt,nn=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(Fa),Hi=nn;nn.default=nn,Fa.registerAtRule(nn);var Ba=nt,Ua,za,It=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),f;!(f=u()).done;){var l=f.value;l.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new Ua(new za,this,t);return n.stringify()},i})(Ba);It.registerLazyResult=function(r){Ua=r},It.registerProcessor=function(r){za=r};var er=It;It.default=It,Ba.registerRoot(It);var tr={comma:function(i){return tr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return tr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,f="",l=!1,c=I(i),h;!(h=c()).done;){var v=h.value;l?l=!1:v==="\\"?l=!0:u?v===f&&(u=!1):v==='"'||v==="'"?(u=!0,f=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Wa=tr;tr.default=tr;var ja=nt,up=Wa,on=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return up.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(ja),Yi=on;on.default=on,ja.registerRule(on);var fp=jr,lp=ap,cp=Jr,hp=Hi,pp=er,Ga=Yi,qa={empty:!0,space:!0};function dp(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var vp=(function(){function r(o){this.input=o,this.root=new pp,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new hp;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,f=!1,l=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){f=!0;break}else if(n==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),u&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),f&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),f;!(f=u()).done;){var l=f.value,c=l[0],h=l[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new cp;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=lp(this.input)},i.decl=function(e,t){var n=new fp;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||dp(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var f=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)f.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",m=c;m>0;m--){var p=v[m][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=f.map(function(w){return w[1]}).join(""),f=[]),this.raw(n,"value",f.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new Ga;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],f=e[1].startsWith("--"),l=[],c=e;c;){if(n=c[0],l.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(f&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(l,f);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!f)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,f)}else this.unknownWord(l)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,f=n.length,l="",c=!0,h,v,d=0;d<f;d+=1)a=n[d],u=a[0],u==="space"&&d===f-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!qa[v]&&!qa[h]?l.slice(-1)===","?c=!1:l+=a[1]:c=!1):l+=a[1];if(!c){var m=n.reduce(function(p,g){return p+g[1]},"");e.raws[t]={raw:m,value:l}}e[t]=l},i.rule=function(e){e.pop();var t=new Ga;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),mp=vp,gp=nt,yp=mp,wp=Vr;function sn(r,i){var o=new wp(r,i),e=new yp(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var Ji=sn;sn.default=sn,gp.registerParse(sn);var Ae=Ge.isClean,bp=Ge.my,Sp=Sa,Cp=Ur,Ip=nt,Op=Wi,xp=_a,Va=qi,Rp=Ji,Ep=er,Ap={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Mp={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},$p={Once:!0,postcssPlugin:!0,prepare:!0},Ot=0;function rr(r){return(typeof r=="undefined"?"undefined":$(r))==="object"&&typeof r.then=="function"}function Ha(r){var i=!1,o=Ap[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Ot,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Ot,o+"Exit"]:[o,o+"Exit"]}function Ya(r){var i;return r.type==="document"?i=["Document",Ot,"DocumentExit"]:r.type==="root"?i=["Root",Ot,"RootExit"]:i=Ha(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Zi(r){return r[Ae]=!1,r.nodes&&r.nodes.forEach(function(i){return Zi(i)}),r}var Ki={},xt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":$(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Zi(e);else if(A(e,r)||A(e,Va))s=Zi(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=Rp;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[bp]&&Ip.rebuild(s)}this.result=new Va(o,s,t),this.helpers=T({},Ki,{postcss:Ki,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":$(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,f=a.split("."),l=u.split(".");(f[0]!==l[0]||parseInt(f[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(l,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([l,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":$(a))==="object")for(var u in a){if(!Mp[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!$p[u])if($(a[u])==="object")for(var f in a[u])f==="*"?t(a,u,a[u][f]):t(a,u+"-"+f.toLowerCase(),a[u][f]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return Pr(function(){var t,n,s,a,u,f,l,c,h,v,d,m;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!rr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Ae])return[3,14];u[Ae]=!0,f=[Ya(u)],p.label=8;case 8:if(!(f.length>0))return[3,13];if(l=e.visitTick(f),!rr(l))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,l];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=f[f.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return tt(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],b=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(E){return b(E,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(m=d()).done?[3,18]:[5,wi(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":$(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return rr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.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=Cp;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new Sp(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(rr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Ae];)a[Ae]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),f;!(f=u()).done;){var l=f.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||xp("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],f=a[1];this.result.lastPlugin=u;var l=void 0;try{l=f(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(rr(l))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],f=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return f(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var l=t.iterator,c;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[Ae]){c[Ae]=!0,e.push(Ya(c));return}t.iterator=0,delete n.indexes[l]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Ot){n.nodes&&n.nodes.length&&(n[Ae]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Ae]=!0;for(var n=Ha(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Ot)e.nodes&&e.each(function(l){l[Ae]||t.walkSync(l)});else{var f=this.listeners[u];if(f&&this.visitSync(f,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();xt.registerPostcss=function(r){Ki=r};var Ja=xt;xt.default=xt,Ep.registerLazyResult(xt),Op.registerLazyResult(xt);var kp=Sa,Pp=Ur,_p=_a,Tp=Ji,Np=qi,Xi=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=Pp;this.result=new Np(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new kp(s,n,this._opts,e);if(u.isMap()){var f=u.generate(),l=f[0],c=f[1];l&&(this.result.css=l),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||_p("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Tp;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),Lp=Xi;Xi.default=Xi;var Dp=Lp,Fp=Ja,Bp=Wi,Up=er,nr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":$(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":$(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":$(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Dp(this,e,t):new Fp(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),zp=nr;nr.default=nr,Up.registerProcessor(nr),Bp.registerProcessor(nr);var Wp=jr,jp=ha,Gp=Jr,qp=Hi,Vp=Vr,Hp=er,Yp=Yi;function ir(r,i){if(Array.isArray(r))return r.map(function(c){return ir(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Vp.prototype});a.map&&(a.map=T({},a.map,{__proto__:jp.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return ir(c,i)})),e.source){var u=e.source,f=u.inputId,l=et(u,["inputId"]);e.source=l,f!=null&&(e.source.input=i[f])}if(e.type==="root")return new Hp(e);if(e.type==="decl")return new Wp(e);if(e.type==="rule")return new Yp(e);if(e.type==="comment")return new Gp(e);if(e.type==="atrule")return new qp(e);throw new Error("Unknown node type: "+r.type)}var Jp=ir;ir.default=ir;var Zp=Ei,Za=jr,Kp=Ja,Xp=nt,Qi=zp,Qp=Ur,ed=Jp,Ka=Wi,td=Ta,Xa=Jr,Qa=Hi,rd=qi,nd=Vr,id=Ji,od=Wa,eu=Yi,tu=er,sd=Wr;function q(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Qi(i)}q.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var f=o.apply(void 0,[].concat(a));return f.postcssPlugin=i,f.postcssVersion=new Qi().version,f}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return q([t(u)]).process(s,a)},t},q.stringify=Qp,q.parse=id,q.fromJSON=ed,q.list=od,q.comment=function(r){return new Xa(r)},q.atRule=function(r){return new Qa(r)},q.decl=function(r){return new Za(r)},q.rule=function(r){return new eu(r)},q.root=function(r){return new tu(r)},q.document=function(r){return new Ka(r)},q.CssSyntaxError=Zp,q.Declaration=Za,q.Container=Xp,q.Processor=Qi,q.Document=Ka,q.Comment=Xa,q.Warning=td,q.AtRule=Qa,q.Result=rd,q.Input=nd,q.Rule=eu,q.Root=tu,q.Node=sd,Kp.registerPostcss(q);var ad=q;q.default=q;var te=yh(ad);te.stringify,te.fromJSON,te.plugin,te.parse,te.list,te.document,te.comment,te.atRule,te.rule,te.decl,te.root,te.CssSyntaxError,te.Declaration,te.Container,te.Processor,te.Document,te.Comment,te.Warning,te.AtRule,te.Result,te.Input,te.Rule,te.Root,te.Node;var ud=Object.defineProperty,fd=function(r,i,o){return i in r?ud(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},Oe=function(r,i,o){return fd(r,(typeof i=="undefined"?"undefined":$(i))!=="symbol"?i+"":i,o)};function ld(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function cd(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return A(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var eo={exports:{}},X=String,ru=function(){return{isColorSupported:!1,reset:X,bold:X,dim:X,italic:X,underline:X,inverse:X,hidden:X,strikethrough:X,black:X,red:X,green:X,yellow:X,blue:X,magenta:X,cyan:X,white:X,gray:X,bgBlack:X,bgRed:X,bgGreen:X,bgYellow:X,bgBlue:X,bgMagenta:X,bgCyan:X,bgWhite:X}};eo.exports=ru(),eo.exports.createColors=ru;var hd=eo.exports,pd={},dd=Object.freeze(Object.defineProperty({__proto__:null,default:pd},Symbol.toStringTag,{value:"Module"})),fe=cd(dd),nu=hd,iu=fe,to=(function(r){ee(i,r);function i(e,t,n,s,a,u){var f;return f=r.call(this,e)||this,f.name="CssSyntaxError",f.reason=e,a&&(f.file=a),s&&(f.source=s),u&&(f.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(f.line=t,f.column=n):(f.line=t.line,f.column=t.column,f.endLine=n.line,f.endColumn=n.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,i),f}var o=i.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=nu.isColorSupported),iu&&t&&(s=iu(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),l=String(f).length,c,h;if(t){var v=nu.createColors(!0),d=v.bold,m=v.gray,p=v.red;c=function(g){return d(p(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,f).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var C=h(S.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(S)+g+"\n "+C+c("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Yt(Error)),ro=to;to.default=to;var qe={};qe.isClean=Symbol("isClean"),qe.my=Symbol("my");var ou={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function vd(r){return r[0].toUpperCase()+r.slice(1)}var no=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var f=0;f<a;f++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return ou[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var f="raw"+vd(n);return this[f]?s=this[f](u,e):u.walk(function(l){if(s=l.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=ou[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),su=no;no.default=no;var md=su;function io(r,i){var o=new md(i);o.stringify(r)}var an=io;io.default=io;var un=qe.isClean,gd=qe.my,yd=ro,wd=su,bd=an;function oo(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":$(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return oo(s,o)}):(n==="object"&&t!==null&&(t=oo(t)),o[e]=t)}return o}var so=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[un]=!1,this[gd]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.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},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=oo(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new yd(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[un]){this[un]=!1;for(var e=this;e=e.parent;)e[un]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new wd;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),f;!(f=u()).done;){var l=f.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var f=this[u];if(Array.isArray(f))n[u]=f.map(function(c){return(typeof c=="undefined"?"undefined":$(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof f=="undefined"?"undefined":$(f))==="object"&&f.toJSON)n[u]=f.toJSON(null,t);else if(u==="source"){var l=t.get(f.input);l==null&&(l=a,t.set(f.input,a),a++),n[u]={end:f.end,inputId:l,start:f.start}}else n[u]=f}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=bd),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),fn=so;so.default=so;var Sd=fn,ao=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(Sd),ln=ao;ao.default=ao;var Cd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Id=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=Cd[Math.random()*64|0];return i},Od={nanoid:Id},au=fe.SourceMapConsumer,uu=fe.SourceMapGenerator,xd=fe.existsSync,Rd=fe.readFileSync,uo=fe.dirname,Ed=fe.join;function Ad(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var fo=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=uo(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new au(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Ad(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":$(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=uo(e),xd(e))return this.mapFile=e,Rd(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(A(t,au))return uu.fromSourceMap(t).toString();if(A(t,uu))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Ed(uo(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),fu=fo;fo.default=fo;var Md=fe.SourceMapConsumer,$d=fe.SourceMapGenerator,lu=fe.fileURLToPath,cn=fe.pathToFileURL,lo=fe.isAbsolute,co=fe.resolve,kd=Od.nanoid,ho=fe,cu=ro,Pd=fu,po=Symbol("fromOffsetCache"),_d=!!(Md&&$d),hu=!!(co&&lo),hn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":$(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!hu||/^\w+:\/\//.test(e.from)||lo(e.from)?this.file=e.from:this.file=co(e.from)),hu&&_d){var t=new Pd(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+kd(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,f;if(t&&(typeof t=="undefined"?"undefined":$(t))==="object"){var l=t,c=n;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);t=h.line,n=h.col}else t=l.line,n=l.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,f=v.col}else u=c.line,f=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var m=this.origin(t,n,u,f);return m?a=new cu(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new cu(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:f,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:f,endLine:u,line:t,source:this.css},this.file&&(cn&&(a.input.url=cn(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[po])n=this[po];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,f=s.length;u<f;u++)n[u]=a,a+=s[u].length+1;this[po]=n}t=n[n.length-1];var l=0;if(e>=t)l=n.length-1;else for(var c=n.length-2,h;l<c;)if(h=l+(c-l>>1),e<n[h])c=h-1;else if(e>=n[h+1])l=h+1;else{l=h;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:co(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var f;typeof n=="number"&&(f=a.originalPositionFor({column:s,line:n}));var l;lo(u.source)?l=cn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||cn(this.map.mapFile));var c={column:u.column,endColumn:f&&f.column,endLine:f&&f.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(lu)c.file=lu(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),pn=hn;hn.default=hn,ho&&ho.registerInput&&ho.registerInput(hn);var pu=fe.SourceMapConsumer,dn=fe.SourceMapGenerator,vn=fe.dirname,du=fe.relative,vu=fe.resolve,mu=fe.sep,gu=fe.pathToFileURL,Td=pn,Nd=!!(pu&&dn),Ld=!!(vn&&vu&&du&&mu),Dd=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,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 i=r.prototype;return i.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||vn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new pu(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Ld&&Nd&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=dn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new dn({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]},i.generateString=function(){var e=this;this.css="",this.map=new dn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,f;this.stringify(this.root,function(l,c,h){if(e.css+=l,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(t+=u.length,f=l.lastIndexOf("\n"),n=l.length-f):n+=l.length,c&&h!=="start"){var v=c.parent||{raws:{}},d=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!d||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},i.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?vn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=vn(vu(n,this.mapOpts.annotation)));var s=du(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new Td(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(gu){var n=gu(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;mu==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),yu=Dd,Fd=fn,vo=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Fd),mn=vo;vo.default=vo;var wu=qe.isClean,bu=qe.my,Su=ln,Cu=mn,Bd=fn,Iu,mo,go,Ou;function xu(r){return r.map(function(i){return i.nodes&&(i.nodes=xu(i.nodes)),delete i.source,i})}function Ru(r){if(r[wu]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;Ru(e)}}var De=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var f=u.value,l=this.normalize(f,this.last),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var l;return(l=n)[s].apply(l,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var f=arguments.length,l=new Array(f>1?f-1:0),c=1;c<f;c++)l[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),f;!(f=u()).done;){var l=f.value;this.proxyOf.nodes.splice(s+1,0,l)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var f=I(u),l;!(l=f()).done;){var c=l.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=xu(Iu(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var l=I(t),c;!(c=l()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new Su(t)]}else if(t.selector)t=[new mo(t)];else if(t.name)t=[new go(t)];else if(t.text)t=[new Cu(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[bu]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[wu]&&Ru(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var f=u.value,l=this.normalize(f,this.first,"prepend").reverse(),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Bd);De.registerParse=function(r){Iu=r},De.registerRule=function(r){mo=r},De.registerAtRule=function(r){go=r},De.registerRoot=function(r){Ou=r};var it=De;De.default=De,De.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,go.prototype):r.type==="rule"?Object.setPrototypeOf(r,mo.prototype):r.type==="decl"?Object.setPrototypeOf(r,Su.prototype):r.type==="comment"?Object.setPrototypeOf(r,Cu.prototype):r.type==="root"&&Object.setPrototypeOf(r,Ou.prototype),r[bu]=!0,r.nodes&&r.nodes.forEach(function(i){De.rebuild(i)})};var Ud=it,Eu,Au,or=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new Eu(new Au,this,t);return n.stringify()},i})(Ud);or.registerLazyResult=function(r){Eu=r},or.registerProcessor=function(r){Au=r};var yo=or;or.default=or;var Mu={},$u=function(i){Mu[i]||(Mu[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},wo=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),ku=wo;wo.default=wo;var zd=ku,bo=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new zd(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),So=bo;bo.default=bo;var Co=39,Pu=34,gn=92,_u=47,yn=10,sr=32,wn=12,bn=9,Sn=13,Wd=91,jd=93,Gd=40,qd=41,Vd=123,Hd=125,Yd=59,Jd=42,Zd=58,Kd=64,Cn=/[\t\n\f\r "#'()/;[\\\]{}]/g,In=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Xd=/.[\r\n"'(/\\]/,Tu=/[\da-f]/i,Qd=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,f,l,c,h,v,d,m=e.length,p=0,g=[],w=[];function b(){return p}function S(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=m}function x(R){if(w.length)return w.pop();if(!(p>=m)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case yn:case sr:case bn:case Sn:case wn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===sr||n===yn||n===bn||n===Sn||n===wn);d=["space",e.slice(p,s)],p=s-1;break}case Wd:case jd:case Vd:case Hd:case Zd:case Yd:case qd:{var N=String.fromCharCode(n);d=[N,N,p];break}case Gd:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==Co&&v!==Pu&&v!==sr&&v!==yn&&v!==bn&&v!==wn&&v!==Sn){s=p;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else S("bracket");for(c=s;e.charCodeAt(c-1)===gn;)c-=1,l=!l}while(l);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Xd.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case Co:case Pu:{a=n===Co?"'":'"',s=p;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else S("string");for(c=s;e.charCodeAt(c-1)===gn;)c-=1,l=!l}while(l);d=["string",e.slice(p,s+1),p,s],p=s;break}case Kd:{Cn.lastIndex=p+1,Cn.test(e),Cn.lastIndex===0?s=e.length-1:s=Cn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case gn:{for(s=p,f=!0;e.charCodeAt(s+1)===gn;)s+=1,f=!f;if(n=e.charCodeAt(s+1),f&&n!==_u&&n!==sr&&n!==yn&&n!==bn&&n!==Sn&&n!==wn&&(s+=1,Tu.test(e.charAt(s)))){for(;Tu.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===sr&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===_u&&e.charCodeAt(p+1)===Jd?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:S("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(In.lastIndex=p+1,In.test(e),In.lastIndex===0?s=e.length-1:s=In.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function E(R){w.push(R)}return{back:E,endOfFile:C,nextToken:x,position:b}},Nu=it,On=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(Nu),Io=On;On.default=On,Nu.registerAtRule(On);var Lu=it,Du,Fu,Rt=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),f;!(f=u()).done;){var l=f.value;l.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new Du(new Fu,this,t);return n.stringify()},i})(Lu);Rt.registerLazyResult=function(r){Du=r},Rt.registerProcessor=function(r){Fu=r};var ar=Rt;Rt.default=Rt,Lu.registerRoot(Rt);var ur={comma:function(i){return ur.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return ur.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,f="",l=!1,c=I(i),h;!(h=c()).done;){var v=h.value;l?l=!1:v==="\\"?l=!0:u?v===f&&(u=!1):v==='"'||v==="'"?(u=!0,f=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Bu=ur;ur.default=ur;var Uu=it,ev=Bu,xn=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return ev.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(Uu),Oo=xn;xn.default=xn,Uu.registerRule(xn);var tv=ln,rv=Qd,nv=mn,iv=Io,ov=ar,zu=Oo,Wu={empty:!0,space:!0};function sv(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var av=(function(){function r(o){this.input=o,this.root=new ov,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new iv;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,f=!1,l=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){f=!0;break}else if(n==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),u&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),f&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),f;!(f=u()).done;){var l=f.value,c=l[0],h=l[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new nv;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=rv(this.input)},i.decl=function(e,t){var n=new tv;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||sv(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var f=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)f.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",m=c;m>0;m--){var p=v[m][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=f.map(function(w){return w[1]}).join(""),f=[]),this.raw(n,"value",f.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new zu;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],f=e[1].startsWith("--"),l=[],c=e;c;){if(n=c[0],l.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(f&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(l,f);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!f)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,f)}else this.unknownWord(l)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,f=n.length,l="",c=!0,h,v,d=0;d<f;d+=1)a=n[d],u=a[0],u==="space"&&d===f-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!Wu[v]&&!Wu[h]?l.slice(-1)===","?c=!1:l+=a[1]:c=!1):l+=a[1];if(!c){var m=n.reduce(function(p,g){return p+g[1]},"");e.raws[t]={raw:m,value:l}}e[t]=l},i.rule=function(e){e.pop();var t=new zu;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),uv=av,fv=it,lv=uv,cv=pn;function Rn(r,i){var o=new cv(r,i),e=new lv(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var xo=Rn;Rn.default=Rn,fv.registerParse(Rn);var Me=qe.isClean,hv=qe.my,pv=yu,dv=an,vv=it,mv=yo,gv=$u,ju=So,yv=xo,wv=ar,bv={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Sv={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},Cv={Once:!0,postcssPlugin:!0,prepare:!0},Et=0;function fr(r){return(typeof r=="undefined"?"undefined":$(r))==="object"&&typeof r.then=="function"}function Gu(r){var i=!1,o=bv[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Et,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Et,o+"Exit"]:[o,o+"Exit"]}function qu(r){var i;return r.type==="document"?i=["Document",Et,"DocumentExit"]:r.type==="root"?i=["Root",Et,"RootExit"]:i=Gu(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Ro(r){return r[Me]=!1,r.nodes&&r.nodes.forEach(function(i){return Ro(i)}),r}var Eo={},At=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":$(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=Ro(e);else if(A(e,r)||A(e,ju))s=Ro(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=yv;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[hv]&&vv.rebuild(s)}this.result=new ju(o,s,t),this.helpers=T({},Eo,{postcss:Eo,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":$(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,f=a.split("."),l=u.split(".");(f[0]!==l[0]||parseInt(f[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(l,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([l,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":$(a))==="object")for(var u in a){if(!Sv[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Cv[u])if($(a[u])==="object")for(var f in a[u])f==="*"?t(a,u,a[u][f]):t(a,u+"-"+f.toLowerCase(),a[u][f]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return Pr(function(){var t,n,s,a,u,f,l,c,h,v,d,m;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!fr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[Me])return[3,14];u[Me]=!0,f=[qu(u)],p.label=8;case 8:if(!(f.length>0))return[3,13];if(l=e.visitTick(f),!fr(l))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,l];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=f[f.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return tt(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],b=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(E){return b(E,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(m=d()).done?[3,18]:[5,wi(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":$(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return fr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.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=dv;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new pv(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(fr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[Me];)a[Me]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),f;!(f=u()).done;){var l=f.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||gv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],f=a[1];this.result.lastPlugin=u;var l=void 0;try{l=f(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(fr(l))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],f=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return f(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var l=t.iterator,c;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[Me]){c[Me]=!0,e.push(qu(c));return}t.iterator=0,delete n.indexes[l]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Et){n.nodes&&n.nodes.length&&(n[Me]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[Me]=!0;for(var n=Gu(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Et)e.nodes&&e.each(function(l){l[Me]||t.walkSync(l)});else{var f=this.listeners[u];if(f&&this.visitSync(f,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();At.registerPostcss=function(r){Eo=r};var Vu=At;At.default=At,wv.registerLazyResult(At),mv.registerLazyResult(At);var Iv=yu,Ov=an,xv=$u,Rv=xo,Ev=So,Ao=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=Ov;this.result=new Ev(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Iv(s,n,this._opts,e);if(u.isMap()){var f=u.generate(),l=f[0],c=f[1];l&&(this.result.css=l),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||xv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Rv;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),Av=Ao;Ao.default=Ao;var Mv=Av,$v=Vu,kv=yo,Pv=ar,lr=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":$(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":$(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":$(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new Mv(this,e,t):new $v(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),_v=lr;lr.default=lr,Pv.registerProcessor(lr),kv.registerProcessor(lr);var Tv=ln,Nv=fu,Lv=mn,Dv=Io,Fv=pn,Bv=ar,Uv=Oo;function cr(r,i){if(Array.isArray(r))return r.map(function(c){return cr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:Fv.prototype});a.map&&(a.map=T({},a.map,{__proto__:Nv.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return cr(c,i)})),e.source){var u=e.source,f=u.inputId,l=et(u,["inputId"]);e.source=l,f!=null&&(e.source.input=i[f])}if(e.type==="root")return new Bv(e);if(e.type==="decl")return new Tv(e);if(e.type==="rule")return new Uv(e);if(e.type==="comment")return new Lv(e);if(e.type==="atrule")return new Dv(e);throw new Error("Unknown node type: "+r.type)}var zv=cr;cr.default=cr;var Wv=ro,Hu=ln,jv=Vu,Gv=it,Mo=_v,qv=an,Vv=zv,Yu=yo,Hv=ku,Ju=mn,Zu=Io,Yv=So,Jv=pn,Zv=xo,Kv=Bu,Ku=Oo,Xu=ar,Xv=fn;function V(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new Mo(i)}V.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var f=o.apply(void 0,[].concat(a));return f.postcssPlugin=i,f.postcssVersion=new Mo().version,f}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return V([t(u)]).process(s,a)},t},V.stringify=qv,V.parse=Zv,V.fromJSON=Vv,V.list=Kv,V.comment=function(r){return new Ju(r)},V.atRule=function(r){return new Zu(r)},V.decl=function(r){return new Hu(r)},V.rule=function(r){return new Ku(r)},V.root=function(r){return new Xu(r)},V.document=function(r){return new Yu(r)},V.CssSyntaxError=Wv,V.Declaration=Hu,V.Container=Gv,V.Processor=Mo,V.Document=Yu,V.Comment=Ju,V.Warning=Hv,V.AtRule=Zu,V.Result=Yv,V.Input=Jv,V.Rule=Ku,V.Root=Xu,V.Node=Xv,jv.registerPostcss(V);var Qv=V;V.default=V;var re=ld(Qv);re.stringify,re.fromJSON,re.plugin,re.parse,re.list,re.document,re.comment,re.atRule,re.rule,re.decl,re.root,re.CssSyntaxError,re.Declaration,re.Container,re.Processor,re.Document,re.Comment,re.Warning,re.AtRule,re.Result,re.Input,re.Rule,re.Root,re.Node;var em=(function(){function r(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];Oe(this,"parentElement",null),Oe(this,"parentNode",null),Oe(this,"ownerDocument"),Oe(this,"firstChild",null),Oe(this,"lastChild",null),Oe(this,"previousSibling",null),Oe(this,"nextSibling",null),Oe(this,"ELEMENT_NODE",1),Oe(this,"TEXT_NODE",3),Oe(this,"nodeType"),Oe(this,"nodeName"),Oe(this,"RRNodeType")}var i=r.prototype;return i.contains=function(e){if(A(e,r)){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1},i.appendChild=function(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},i.insertBefore=function(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},i.removeChild=function(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},i.toString=function(){return"RRNode"},Z(r,[{key:"childNodes",get:function(){for(var e=[],t=this.firstChild;t;)e.push(t),t=t.nextSibling;return e}}]),r})(),Qu={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},ef={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},En={},tm=function(){return!!globalThis.Zone};function $o(r){if(En[r])return En[r];var i=globalThis[r],o=i.prototype,e=r in Qu?Qu[r]:void 0,t=!!(e&&e.every(function(l){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,l))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in ef?ef[r]:void 0,s=!!(n&&n.every(function(l){var c;return typeof o[l]=="function"&&((c=o[l])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!tm())return En[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var f=u[r].prototype;return document.body.removeChild(a),f?En[r]=f:o}catch(l){return o}}var ko={};function Ve(r,i,o){var e,t=r+"."+String(o);if(ko[t])return ko[t].call(i);var n=$o(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(ko[t]=s,s.call(i)):i[o]}var Po={};function tf(r,i,o){var e=r+"."+String(o);if(Po[e])return Po[e].bind(i);var t=$o(r),n=t[o];return typeof n!="function"?i[o]:(Po[e]=n,n.bind(i))}function rm(r){return Ve("Node",r,"childNodes")}function nm(r){return Ve("Node",r,"parentNode")}function im(r){return Ve("Node",r,"parentElement")}function om(r){return Ve("Node",r,"textContent")}function sm(r,i){return tf("Node",r,"contains")(i)}function am(r){return tf("Node",r,"getRootNode")()}function um(r){return!r||!("host"in r)?null:Ve("ShadowRoot",r,"host")}function fm(r){return r.styleSheets}function lm(r){return!r||!("shadowRoot"in r)?null:Ve("Element",r,"shadowRoot")}function cm(r,i){return Ve("Element",r,"querySelector")(i)}function hm(r,i){return Ve("Element",r,"querySelectorAll")(i)}function rf(){return $o("MutationObserver").constructor}function ot(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var D={childNodes:rm,parentNode:nm,parentElement:im,textContent:om,contains:sm,getRootNode:am,host:um,styleSheets:fm,shadowRoot:lm,querySelector:cm,querySelectorAll:hm,mutationObserver:rf,patch:ot};function me(r,i,o){o===void 0&&(o=document);var e={capture:!0,passive:!0};return o.addEventListener(r,i,e),function(){return o.removeEventListener(r,i,e)}}var Mt="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.",nf={map:{},getId:function(){return console.error(Mt),-1},getNode:function(){return console.error(Mt),null},removeNodeFromMap:function(){console.error(Mt)},has:function(){return console.error(Mt),!1},reset:function(){console.error(Mt)}};typeof window!="undefined"&&window.Proxy&&window.Reflect&&(nf=new Proxy(nf,{get:function(i,o,e){return o==="map"&&console.error(Mt),Reflect.get(i,o,e)}}));function hr(r,i,o){o===void 0&&(o={});var e=null,t=0;return function(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];var u=Date.now();!t&&o.leading===!1&&(t=u);var f=i-(u-t),l=this;f<=0||f>i?(e&&(clearTimeout(e),e=null),t=u,r.apply(l,s)):!e&&o.trailing!==!1&&(e=setTimeout(function(){t=o.leading===!1?0:Date.now(),e=null,r.apply(l,s)},f))}}function An(r,i,o,e,t){t===void 0&&(t=window);var n=t.Object.getOwnPropertyDescriptor(r,i);return t.Object.defineProperty(r,i,e?o:{set:function(a){var u=this;setTimeout(function(){o.set.call(u,a)},0),n&&n.set&&n.set.call(this,a)}}),function(){return An(r,i,n||{},!0)}}var Mn=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Mn=function(){return new Date().getTime()});function of(r){var i,o,e,t,n=r.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:r.pageXOffset!==void 0?r.pageXOffset:n.documentElement.scrollLeft||(n==null?void 0:n.body)&&((i=D.parentElement(n.body))==null?void 0:i.scrollLeft)||((o=n==null?void 0:n.body)==null?void 0:o.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:r.pageYOffset!==void 0?r.pageYOffset:(n==null?void 0:n.documentElement.scrollTop)||(n==null?void 0:n.body)&&((e=D.parentElement(n.body))==null?void 0:e.scrollTop)||((t=n==null?void 0:n.body)==null?void 0:t.scrollTop)||0}}function sf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function af(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function uf(r){if(!r)return null;var i=r.nodeType===r.ELEMENT_NODE?r:D.parentElement(r);return i}function ge(r,i,o,e){if(!r)return!1;var t=uf(r);if(!t)return!1;try{if(typeof i=="string"){if(t.classList.contains(i)||e&&t.closest("."+i)!==null)return!0}else if(Br(t,i,e))return!0}catch(n){}return!!(o&&(t.matches(o)||e&&t.closest(o)!==null))}function pm(r,i){return i.getId(r)!==-1}function _o(r,i,o){return r.tagName==="TITLE"&&o.headTitleMutations?!0:i.getId(r)===Kt}function ff(r,i){if(Jt(r))return!1;var o=i.getId(r);if(!i.has(o))return!0;var e=D.parentNode(r);return e&&e.nodeType===r.DOCUMENT_NODE?!1:e?ff(e,i):!0}function To(r){return!!r.changedTouches}function dm(r){r===void 0&&(r=window),"NodeList"in r&&!r.NodeList.prototype.forEach&&(r.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in r&&!r.DOMTokenList.prototype.forEach&&(r.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function lf(r,i){return!!(r.nodeName==="IFRAME"&&i.getMeta(r))}function cf(r,i){return!!(r.nodeName==="LINK"&&r.nodeType===r.ELEMENT_NODE&&r.getAttribute&&r.getAttribute("rel")==="stylesheet"&&i.getMeta(r))}function No(r){return r?A(r,em)&&"shadowRoot"in r?!!r.shadowRoot:!!D.shadowRoot(r):!1}var vm=(function(){function r(){O(this,"id",1),O(this,"styleIDMap",new WeakMap),O(this,"idStyleMap",new Map)}var i=r.prototype;return i.getId=function(e){var t;return(t=this.styleIDMap.get(e))!=null?t:-1},i.has=function(e){return this.styleIDMap.has(e)},i.add=function(e,t){if(this.has(e))return this.getId(e);var n;return t===void 0?n=this.id++:n=t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n},i.getStyle=function(e){return this.idStyleMap.get(e)||null},i.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},i.generateId=function(){return this.id++},i.remove=function(e){var t=this.styleIDMap.get(e);return t!==void 0?(this.styleIDMap.delete(e),this.idStyleMap.delete(t),!0):!1},r})();function hf(r){var i,o=null;return"getRootNode"in r&&((i=D.getRootNode(r))==null?void 0:i.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&D.host(D.getRootNode(r))&&(o=D.host(D.getRootNode(r))),o}function mm(r){for(var i=r,o;o=hf(i);)i=o;return i}function gm(r){var i=r.ownerDocument;if(!i)return!1;var o=mm(r);return D.contains(i,o)}function pf(r){var i=r.ownerDocument;return i?D.contains(i,r)||gm(r):!1}var F=(function(r){return r[r.DomContentLoaded=0]="DomContentLoaded",r[r.Load=1]="Load",r[r.FullSnapshot=2]="FullSnapshot",r[r.IncrementalSnapshot=3]="IncrementalSnapshot",r[r.Meta=4]="Meta",r[r.Custom=5]="Custom",r[r.Plugin=6]="Plugin",r})(F||{}),_=(function(r){return r[r.Mutation=0]="Mutation",r[r.MouseMove=1]="MouseMove",r[r.MouseInteraction=2]="MouseInteraction",r[r.Scroll=3]="Scroll",r[r.ViewportResize=4]="ViewportResize",r[r.Input=5]="Input",r[r.TouchMove=6]="TouchMove",r[r.MediaInteraction=7]="MediaInteraction",r[r.StyleSheetRule=8]="StyleSheetRule",r[r.CanvasMutation=9]="CanvasMutation",r[r.Font=10]="Font",r[r.Log=11]="Log",r[r.Drag=12]="Drag",r[r.StyleDeclaration=13]="StyleDeclaration",r[r.Selection=14]="Selection",r[r.AdoptedStyleSheet=15]="AdoptedStyleSheet",r[r.CustomElement=16]="CustomElement",r})(_||{}),we=(function(r){return r[r.MouseUp=0]="MouseUp",r[r.MouseDown=1]="MouseDown",r[r.Click=2]="Click",r[r.ContextMenu=3]="ContextMenu",r[r.DblClick=4]="DblClick",r[r.Focus=5]="Focus",r[r.Blur=6]="Blur",r[r.TouchStart=7]="TouchStart",r[r.TouchMove_Departed=8]="TouchMove_Departed",r[r.TouchEnd=9]="TouchEnd",r[r.TouchCancel=10]="TouchCancel",r})(we||{}),Fe=(function(r){return r[r.Mouse=0]="Mouse",r[r.Pen=1]="Pen",r[r.Touch=2]="Touch",r})(Fe||{}),$t=(function(r){return r[r["2D"]=0]="2D",r[r.WebGL=1]="WebGL",r[r.WebGL2=2]="WebGL2",r})($t||{}),kt=(function(r){return r[r.Play=0]="Play",r[r.Pause=1]="Pause",r[r.Seeked=2]="Seeked",r[r.VolumeChange=3]="VolumeChange",r[r.RateChange=4]="RateChange",r})(kt||{}),df=(function(r){return r[r.Document=0]="Document",r[r.DocumentType=1]="DocumentType",r[r.Element=2]="Element",r[r.Text=3]="Text",r[r.CDATA=4]="CDATA",r[r.Comment=5]="Comment",r})(df||{});function vf(r){return"__ln"in r}var ym=(function(){function r(){O(this,"length",0),O(this,"head",null),O(this,"tail",null)}var i=r.prototype;return i.get=function(e){if(e>=this.length)throw new Error("Position outside of list range");for(var t=this.head,n=0;n<e;n++)t=(t==null?void 0:t.next)||null;return t},i.addNode=function(e){var t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&vf(e.previousSibling)){var n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&vf(e.nextSibling)&&e.nextSibling.__ln.previous){var s=e.nextSibling.__ln.previous;t.previous=s,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,s&&(s.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++},i.removeNode=function(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)},r})(),mf=function(r,i){return r+"@"+i},wm=(function(){function r(){var o=this;O(this,"frozen",!1),O(this,"locked",!1),O(this,"texts",[]),O(this,"attributes",[]),O(this,"attributeMap",new WeakMap),O(this,"removes",[]),O(this,"mapRemoves",[]),O(this,"movedMap",{}),O(this,"addedSet",new Set),O(this,"movedSet",new Set),O(this,"droppedSet",new Set),O(this,"removesSubTreeCache",new Set),O(this,"mutationCb"),O(this,"blockClass"),O(this,"blockSelector"),O(this,"maskTextClass"),O(this,"maskTextSelector"),O(this,"inlineStylesheet"),O(this,"maskInputOptions"),O(this,"maskTextFn"),O(this,"maskInputFn"),O(this,"keepIframeSrcFn"),O(this,"recordCanvas"),O(this,"inlineImages"),O(this,"slimDOMOptions"),O(this,"dataURLOptions"),O(this,"doc"),O(this,"mirror"),O(this,"iframeManager"),O(this,"stylesheetManager"),O(this,"shadowDomManager"),O(this,"canvasManager"),O(this,"processedNodeManager"),O(this,"unattachedDoc"),O(this,"processMutations",function(e){e.forEach(o.processMutation),o.emit()}),O(this,"emit",function(){if(!(o.frozen||o.locked)){for(var e=[],t=new Set,n=new ym,s=function(P){for(var L=P,ie=Kt;ie===Kt;)L=L&&L.nextSibling,ie=L&&o.mirror.getId(L);return ie},a=function(P){var L=D.parentNode(P);if(!(!L||!pf(P))){var ie=!1;if(P.nodeType===Node.TEXT_NODE){var z=L.tagName;if(z==="TEXTAREA")return;z==="STYLE"&&o.addedSet.has(L)&&(ie=!0)}var Ce=Jt(L)?o.mirror.getId(hf(P)):o.mirror.getId(L),be=s(P);if(Ce===-1||be===-1)return n.addNode(P);var pe=Ct(P,{doc:o.doc,mirror:o.mirror,blockClass:o.blockClass,blockSelector:o.blockSelector,maskTextClass:o.maskTextClass,maskTextSelector:o.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:o.inlineStylesheet,maskInputOptions:o.maskInputOptions,maskTextFn:o.maskTextFn,maskInputFn:o.maskInputFn,slimDOMOptions:o.slimDOMOptions,dataURLOptions:o.dataURLOptions,recordCanvas:o.recordCanvas,inlineImages:o.inlineImages,onSerialize:function(oe){lf(oe,o.mirror)&&o.iframeManager.addIframe(oe),cf(oe,o.mirror)&&o.stylesheetManager.trackLinkElement(oe),No(P)&&o.shadowDomManager.addShadowRoot(D.shadowRoot(P),o.doc)},onIframeLoad:function(oe,de){o.iframeManager.attachIframe(oe,de),o.shadowDomManager.observeAttachShadow(oe)},onStylesheetLoad:function(oe,de){o.stylesheetManager.attachLinkElement(oe,de)},cssCaptured:ie});pe&&(e.push({parentId:Ce,nextId:be,node:pe}),t.add(pe.id))}};o.mapRemoves.length;){var u=o.mapRemoves.shift();if(u.nodeName==="IFRAME")try{o.iframeManager.removeIframe(u)}catch(P){}else o.stylesheetManager.cleanupStylesheetsForRemovedNode(u);o.mirror.removeNodeFromMap(u)}for(var f=I(o.movedSet),l;!(l=f()).done;){var c=l.value;gf(o.removesSubTreeCache,c,o.mirror)&&!o.movedSet.has(D.parentNode(c))||a(c)}for(var h=I(o.addedSet),v;!(v=h()).done;){var d=v.value;!yf(o.droppedSet,d)&&!gf(o.removesSubTreeCache,d,o.mirror)||yf(o.movedSet,d)?a(d):o.droppedSet.add(d)}for(var m=null;n.length;){var p=null;if(m){var g=o.mirror.getId(D.parentNode(m.value)),w=s(m.value);g!==-1&&w!==-1&&(p=m)}if(!p)for(var b=n.tail;b;){var S=b;if(b=b.previous,S){var C=o.mirror.getId(D.parentNode(S.value)),x=s(S.value);if(x===-1)continue;if(C!==-1){p=S;break}else{var E=S.value,R=D.parentNode(E);if(R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var k=D.host(R),N=o.mirror.getId(k);if(N!==-1){p=S;break}}}}}if(!p){for(;n.head;)n.removeNode(n.head.value);break}m=p.previous,n.removeNode(p.value),a(p.value)}var ae={texts:o.texts.map(function(P){var L=P.node,ie=D.parentNode(L);return ie&&ie.tagName==="TEXTAREA"&&o.genTextAreaValueMutation(ie),{id:o.mirror.getId(L),value:P.value}}).filter(function(P){return!t.has(P.id)}).filter(function(P){return o.mirror.has(P.id)}),attributes:o.attributes.map(function(P){var L=P.attributes;if(typeof L.style=="string"){var ie=JSON.stringify(P.styleDiff),z=JSON.stringify(P._unchangedStyles);ie.length<L.style.length&&(ie+z).split("var(").length===L.style.split("var(").length&&(L.style=P.styleDiff)}return{id:o.mirror.getId(P.node),attributes:L}}).filter(function(P){return!t.has(P.id)}).filter(function(P){return o.mirror.has(P.id)}),removes:o.removes,adds:e};!ae.texts.length&&!ae.attributes.length&&!ae.removes.length&&!ae.adds.length||(o.texts=[],o.attributes=[],o.attributeMap=new WeakMap,o.removes=[],o.addedSet=new Set,o.movedSet=new Set,o.droppedSet=new Set,o.removesSubTreeCache=new Set,o.movedMap={},o.mutationCb(ae))}}),O(this,"genTextAreaValueMutation",function(e){var t=o.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(t),o.attributeMap.set(e,t));var n=Array.from(D.childNodes(e),function(s){return D.textContent(s)||""}).join("");t.attributes.value=Nr({element:e,maskInputOptions:o.maskInputOptions,tagName:e.tagName,type:Lr(e),value:n,maskInputFn:o.maskInputFn})}),O(this,"processMutation",function(e){if(!_o(e.target,o.mirror,o.slimDOMOptions))switch(e.type){case"characterData":{var t=D.textContent(e.target);!ge(e.target,o.blockClass,o.blockSelector,!1)&&t!==e.oldValue&&o.texts.push({value:ia(e.target,o.maskTextClass,o.maskTextSelector,!0)&&t?o.maskTextFn?o.maskTextFn(t,uf(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{var n=e.target,s=e.attributeName,a=e.target.getAttribute(s);if(s==="value"){var u=Lr(n);a=Nr({element:n,maskInputOptions:o.maskInputOptions,tagName:n.tagName,type:u,value:a,maskInputFn:o.maskInputFn})}if(ge(e.target,o.blockClass,o.blockSelector,!1)||a===e.oldValue)return;var f=o.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&s==="src"&&!o.keepIframeSrcFn(a))if(!n.contentDocument)s="rr_src";else return;if(f||(f={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},o.attributes.push(f),o.attributeMap.set(e.target,f)),s==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!na(n.tagName,s))if(f.attributes[s]=ra(o.doc,rt(n.tagName),rt(s),a),s==="style"){if(!o.unattachedDoc)try{o.unattachedDoc=document.implementation.createHTMLDocument()}catch(b){o.unattachedDoc=o.doc}var l=o.unattachedDoc.createElement("span");e.oldValue&&l.setAttribute("style",e.oldValue);for(var c=I(Array.from(n.style)),h;!(h=c()).done;){var v=h.value,d=n.style.getPropertyValue(v),m=n.style.getPropertyPriority(v);d!==l.style.getPropertyValue(v)||m!==l.style.getPropertyPriority(v)?m===""?f.styleDiff[v]=d:f.styleDiff[v]=[d,m]:f._unchangedStyles[v]=[d,m]}for(var p=I(Array.from(l.style)),g;!(g=p()).done;){var w=g.value;n.style.getPropertyValue(w)===""&&(f.styleDiff[w]=!1)}}else s==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?f.attributes.rr_open_mode="modal":f.attributes.rr_open_mode="non-modal");break}case"childList":{if(ge(e.target,o.blockClass,o.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){o.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(function(b){return o.genAdds(b,e.target)}),e.removedNodes.forEach(function(b){var S=o.mirror.getId(b),C=Jt(e.target)?o.mirror.getId(D.host(e.target)):o.mirror.getId(e.target);ge(e.target,o.blockClass,o.blockSelector,!1)||_o(b,o.mirror,o.slimDOMOptions)||!pm(b,o.mirror)||(o.addedSet.has(b)?(Lo(o.addedSet,b),o.droppedSet.add(b)):o.addedSet.has(e.target)&&S===-1||ff(e.target,o.mirror)||(o.movedSet.has(b)&&o.movedMap[mf(S,C)]?Lo(o.movedSet,b):(o.removes.push({parentId:C,id:S,isShadow:Jt(e.target)&&Zt(e.target)?!0:void 0}),bm(b,o.removesSubTreeCache))),o.mapRemoves.push(b))});break}}}),O(this,"genAdds",function(e,t){if(!o.processedNodeManager.inOtherBuffer(e,o)&&!(o.addedSet.has(e)||o.movedSet.has(e))){if(o.mirror.hasNode(e)){if(_o(e,o.mirror,o.slimDOMOptions))return;o.movedSet.add(e);var n=null;t&&o.mirror.hasNode(t)&&(n=o.mirror.getId(t)),n&&n!==-1&&(o.movedMap[mf(o.mirror.getId(e),n)]=!0)}else o.addedSet.add(e),o.droppedSet.delete(e);ge(e,o.blockClass,o.blockSelector,!1)||(D.childNodes(e).forEach(function(s){return o.genAdds(s)}),No(e)&&D.childNodes(D.shadowRoot(e)).forEach(function(s){o.processedNodeManager.add(s,o),o.genAdds(s,e)}))}})}var i=r.prototype;return i.init=function(e){var t=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(n){t[n]=e[n]})},i.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},i.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},i.isFrozen=function(){return this.frozen},i.lock=function(){this.locked=!0,this.canvasManager.lock()},i.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},i.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},i.getDoc=function(){return this.doc},r})();function Lo(r,i){r.delete(i),D.childNodes(i).forEach(function(o){return Lo(r,o)})}function bm(r,i){for(var o=[r];o.length;){var e=o.pop();i.has(e)||(i.add(e),D.childNodes(e).forEach(function(t){return o.push(t)}))}}function gf(r,i,o){return r.size===0?!1:Sm(r,i)}function Sm(r,i,o){var e=D.parentNode(i);return e?r.has(e):!1}function yf(r,i){return r.size===0?!1:wf(r,i)}function wf(r,i){var o=D.parentNode(i);return o?r.has(o)?!0:wf(r,o):!1}var pr;function Cm(r){pr=r}function Im(){pr=void 0}var U=function(r){if(!pr)return r;var i=function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];try{return r.apply(void 0,[].concat(e))}catch(n){if(pr&&pr(n)===!0)return;throw n}};return i},$e=[];function dr(r){try{if("composedPath"in r){var i=r.composedPath();if(i.length)return i[0]}else if("path"in r&&r.path.length)return r.path[0]}catch(o){}return r&&r.target}function bf(r,i){var o=new wm;$e.push(o),o.init(r);var e=new(rf())(U(o.processMutations.bind(o)));return e.observe(i,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function Om(r){for(var i=$e.length-1;i>=0;i--){var o=$e[i];o.getDoc()===r&&$e.splice(i,1)}}function xm(r){var i=r.mousemoveCb,o=r.sampling,e=r.doc,t=r.mirror;if(o.mousemove===!1)return function(){};var n=typeof o.mousemove=="number"?o.mousemove:50,s=typeof o.mousemoveCallback=="number"?o.mousemoveCallback:500,a=[],u,f=hr(U(function(h){var v=Date.now()-u;i(a.map(function(d){return d.timeOffset-=v,d}),h),a=[],u=null}),s),l=U(hr(U(function(h){var v=dr(h),d=To(h)?h.changedTouches[0]:h,m=d.clientX,p=d.clientY;u||(u=Mn()),a.push({x:m,y:p,id:t.getId(v),timeOffset:Mn()-u}),f(typeof DragEvent!="undefined"&&A(h,DragEvent)?_.Drag:A(h,MouseEvent)?_.MouseMove:_.TouchMove)}),n,{trailing:!1})),c=[me("mousemove",l,e),me("touchmove",l,e),me("drag",l,e)];return U(function(){c.forEach(function(h){return h()})})}function Rm(r){var i=r.mouseInteractionCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling;if(s.mouseInteraction===!1)return function(){};var a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[],f=null,l=function(c){return function(h){var v=dr(h);if(!ge(v,t,n,!0)){var d=null,m=c;if("pointerType"in h){switch(h.pointerType){case"mouse":d=Fe.Mouse;break;case"touch":d=Fe.Touch;break;case"pen":d=Fe.Pen;break}d===Fe.Touch?we[c]===we.MouseDown?m="TouchStart":we[c]===we.MouseUp&&(m="TouchEnd"):Fe.Pen}else To(h)&&(d=Fe.Touch);d!==null?(f=d,(m.startsWith("Touch")&&d===Fe.Touch||m.startsWith("Mouse")&&d===Fe.Mouse)&&(d=null)):we[c]===we.Click&&(d=f,f=null);var p=To(h)?h.changedTouches[0]:h;if(p){var g=e.getId(v),w=p.clientX,b=p.clientY;U(i)(T({type:we[m],id:g,x:w,y:b},d!==null&&{pointerType:d}))}}}};return Object.keys(we).filter(function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&a[c]!==!1}).forEach(function(c){var h=rt(c),v=l(c);if(window.PointerEvent)switch(we[c]){case we.MouseDown:case we.MouseUp:h=h.replace("mouse","pointer");break;case we.TouchStart:case we.TouchEnd:return}u.push(me(h,v,o))}),U(function(){u.forEach(function(c){return c()})})}function Sf(r){var i=r.scrollCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.sampling,a=U(hr(U(function(u){var f=dr(u);if(!(!f||ge(f,t,n,!0))){var l=e.getId(f);if(f===o&&o.defaultView){var c=of(o.defaultView);i({id:l,x:c.left,y:c.top})}else i({id:l,x:f.scrollLeft,y:f.scrollTop})}}),s.scroll||100));return me("scroll",a,o)}function Em(r,i){var o=r.viewportResizeCb,e=i.win,t=-1,n=-1,s=U(hr(U(function(){var a=sf(),u=af();(t!==a||n!==u)&&(o({width:Number(u),height:Number(a)}),t=a,n=u)}),200));return me("resize",s,e)}var Am=["INPUT","TEXTAREA","SELECT"],Cf=new WeakMap;function Mm(r){var i=r.inputCb,o=r.doc,e=r.mirror,t=r.blockClass,n=r.blockSelector,s=r.ignoreClass,a=r.ignoreSelector,u=r.maskInputOptions,f=r.maskInputFn,l=r.sampling,c=r.userTriggeredOnInput;function h(S){var C=dr(S),x=S.isTrusted,E=C&&C.tagName;if(C&&E==="OPTION"&&(C=D.parentElement(C)),!(!C||!E||Am.indexOf(E)<0||ge(C,t,n,!0))&&!(C.classList.contains(s)||a&&C.matches(a))){var R=C.value,k=!1,N=Lr(C)||"";N==="radio"||N==="checkbox"?k=C.checked:(u[E.toLowerCase()]||u[N])&&(R=Nr({element:C,maskInputOptions:u,tagName:E,type:N,value:R,maskInputFn:f})),v(C,c?{text:R,isChecked:k,userTriggered:x}:{text:R,isChecked:k});var ae=C.name;N==="radio"&&ae&&k&&o.querySelectorAll('input[type="radio"][name="'+ae+'"]').forEach(function(P){if(P!==C){var L=P.value;v(P,c?{text:L,isChecked:!k,userTriggered:!1}:{text:L,isChecked:!k})}})}}function v(S,C){var x=Cf.get(S);if(!x||x.text!==C.text||x.isChecked!==C.isChecked){Cf.set(S,C);var E=e.getId(S);U(i)(T({},C,{id:E}))}}var d=l.input==="last"?["change"]:["input","change"],m=d.map(function(S){return me(S,U(h),o)}),p=o.defaultView;if(!p)return function(){m.forEach(function(S){return S()})};var g=p.Object.getOwnPropertyDescriptor(p.HTMLInputElement.prototype,"value"),w=[[p.HTMLInputElement.prototype,"value"],[p.HTMLInputElement.prototype,"checked"],[p.HTMLSelectElement.prototype,"value"],[p.HTMLTextAreaElement.prototype,"value"],[p.HTMLSelectElement.prototype,"selectedIndex"],[p.HTMLOptionElement.prototype,"selected"]];if(g&&g.set){var b;(b=m).push.apply(b,[].concat(w.map(function(S){return An(S[0],S[1],{set:function(){U(h)({target:this,isTrusted:!1})}},!1,p)})))}return U(function(){m.forEach(function(S){return S()})})}function $n(r){var i=[];function o(e,t){if(kn("CSSGroupingRule")&&A(e.parentRule,CSSGroupingRule)||kn("CSSMediaRule")&&A(e.parentRule,CSSMediaRule)||kn("CSSSupportsRule")&&A(e.parentRule,CSSSupportsRule)||kn("CSSConditionRule")&&A(e.parentRule,CSSConditionRule)){var n=Array.from(e.parentRule.cssRules),s=n.indexOf(e);t.unshift(s)}else if(e.parentStyleSheet){var a=Array.from(e.parentStyleSheet.cssRules),u=a.indexOf(e);t.unshift(u)}return t}return o(r,i)}function He(r,i,o){var e,t;return r?(r.ownerNode?e=i.getId(r.ownerNode):t=o.getId(r),{styleId:t,id:e}):{}}function $m(r,i){var o=r.styleSheetRuleCb,e=r.mirror,t=r.stylesheetManager,n=i.win;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return function(){};var s=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:U(function(h,v,d){var m=d[0],p=d[1],g=He(v,e,t.styleMirror),w=g.id,b=g.styleId;return(w&&w!==-1||b&&b!==-1)&&o({id:w,styleId:b,adds:[{rule:m,index:p}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.addRule=function(h,v,d){d===void 0&&(d=this.cssRules.length);var m=h+" { "+v+" }";return n.CSSStyleSheet.prototype.insertRule.apply(this,[m,d])};var a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:U(function(h,v,d){var m=d[0],p=He(v,e,t.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,removes:[{index:m}]}),h.apply(v,d)})}),n.CSSStyleSheet.prototype.removeRule=function(h){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};var u;n.CSSStyleSheet.prototype.replace&&(u=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:U(function(h,v,d){var m=d[0],p=He(v,e,t.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replace:m}),h.apply(v,d)})}));var f;n.CSSStyleSheet.prototype.replaceSync&&(f=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(f,{apply:U(function(h,v,d){var m=d[0],p=He(v,e,t.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,replaceSync:m}),h.apply(v,d)})}));var l={};Pn("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Pn("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Pn("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Pn("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));var c={};return Object.entries(l).forEach(function(h){var v=h[0],d=h[1];c[v]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[v].insertRule,{apply:U(function(m,p,g){var w=g[0],b=g[1],S=He(p.parentStyleSheet,e,t.styleMirror),C=S.id,x=S.styleId;return(C&&C!==-1||x&&x!==-1)&&o({id:C,styleId:x,adds:[{rule:w,index:[].concat($n(p),[b||0])}]}),m.apply(p,g)})}),d.prototype.deleteRule=new Proxy(c[v].deleteRule,{apply:U(function(m,p,g){var w=g[0],b=He(p.parentStyleSheet,e,t.styleMirror),S=b.id,C=b.styleId;return(S&&S!==-1||C&&C!==-1)&&o({id:S,styleId:C,removes:[{index:[].concat($n(p),[w])}]}),m.apply(p,g)})})}),U(function(){n.CSSStyleSheet.prototype.insertRule=s,n.CSSStyleSheet.prototype.deleteRule=a,u&&(n.CSSStyleSheet.prototype.replace=u),f&&(n.CSSStyleSheet.prototype.replaceSync=f),Object.entries(l).forEach(function(h){var v=h[0],d=h[1];d.prototype.insertRule=c[v].insertRule,d.prototype.deleteRule=c[v].deleteRule})})}function If(r,i){var o=r.mirror,e=r.stylesheetManager,t,n,s,a=null;i.nodeName==="#document"?a=o.getId(i):a=o.getId(D.host(i));var u=i.nodeName==="#document"?(t=i.defaultView)==null?void 0:t.Document:(s=(n=i.ownerDocument)==null?void 0:n.defaultView)==null?void 0:s.ShadowRoot,f=u!=null&&u.prototype?Object.getOwnPropertyDescriptor(u==null?void 0:u.prototype,"adoptedStyleSheets"):void 0;return a===null||a===-1||!u||!f?function(){}:(Object.defineProperty(i,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:function(){var c;return(c=f.get)==null?void 0:c.call(this)},set:function(c){var h,v=(h=f.set)==null?void 0:h.call(this,c);if(a!==null&&a!==-1)try{e.adoptStyleSheets(c,a)}catch(d){}return v}}),U(function(){Object.defineProperty(i,"adoptedStyleSheets",{configurable:f.configurable,enumerable:f.enumerable,get:f.get,set:f.set})}))}function km(r,i){var o=r.styleDeclarationCb,e=r.mirror,t=r.ignoreCSSAttributes,n=r.stylesheetManager,s=i.win,a=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:U(function(f,l,c){var h,v=c[0],d=c[1],m=c[2];if(t.has(v))return a.apply(l,[v,d,m]);var p=He((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),g=p.id,w=p.styleId;return(g&&g!==-1||w&&w!==-1)&&o({id:g,styleId:w,set:{property:v,value:d,priority:m},index:$n(l.parentRule)}),f.apply(l,c)})});var u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:U(function(f,l,c){var h,v=c[0];if(t.has(v))return u.apply(l,[v]);var d=He((h=l.parentRule)==null?void 0:h.parentStyleSheet,e,n.styleMirror),m=d.id,p=d.styleId;return(m&&m!==-1||p&&p!==-1)&&o({id:m,styleId:p,remove:{property:v},index:$n(l.parentRule)}),f.apply(l,c)})}),U(function(){s.CSSStyleDeclaration.prototype.setProperty=a,s.CSSStyleDeclaration.prototype.removeProperty=u})}function Pm(r){var i=r.mediaInteractionCb,o=r.blockClass,e=r.blockSelector,t=r.mirror,n=r.sampling,s=r.doc,a=U(function(f){return hr(U(function(l){var c=dr(l);if(!(!c||ge(c,o,e,!0))){var h=c.currentTime,v=c.volume,d=c.muted,m=c.playbackRate,p=c.loop;i({type:f,id:t.getId(c),currentTime:h,volume:v,muted:d,playbackRate:m,loop:p})}}),n.media||500)}),u=[me("play",a(kt.Play),s),me("pause",a(kt.Pause),s),me("seeked",a(kt.Seeked),s),me("volumechange",a(kt.VolumeChange),s),me("ratechange",a(kt.RateChange),s)];return U(function(){u.forEach(function(f){return f()})})}function _m(r){var i=r.fontCb,o=r.doc,e=o.defaultView;if(!e)return function(){};var t=[],n=new WeakMap,s=e.FontFace;e.FontFace=function(f,l,c){var h=new s(f,l,c);return n.set(h,{family:f,buffer:typeof l!="string",descriptors:c,fontSource:typeof l=="string"?l:JSON.stringify(Array.from(new Uint8Array(l)))}),h};var a=ot(o.fonts,"add",function(u){return function(f){return setTimeout(U(function(){var l=n.get(f);l&&(i(l),n.delete(f))}),0),u.apply(this,[f])}});return t.push(function(){e.FontFace=s}),t.push(a),U(function(){t.forEach(function(u){return u()})})}function Tm(r){var i=r.doc,o=r.mirror,e=r.blockClass,t=r.blockSelector,n=r.selectionCb,s=!0,a=U(function(){var u=i.getSelection();if(!(!u||s&&(u!=null&&u.isCollapsed))){s=u.isCollapsed||!1;for(var f=[],l=u.rangeCount||0,c=0;c<l;c++){var h=u.getRangeAt(c),v=h.startContainer,d=h.startOffset,m=h.endContainer,p=h.endOffset,g=ge(v,e,t,!0)||ge(m,e,t,!0);g||f.push({start:o.getId(v),startOffset:d,end:o.getId(m),endOffset:p})}n({ranges:f})}});return a(),me("selectionchange",a)}function Nm(r){var i=r.doc,o=r.customElementCb,e=i.defaultView;if(!e||!e.customElements)return function(){};var t=ot(e.customElements,"define",function(n){return function(s,a,u){try{o({define:{name:s}})}catch(f){console.warn("Custom element callback failed for "+s)}return n.apply(this,[s,a,u])}});return t}function Lm(r,i){var o=r.mutationCb,e=r.mousemoveCb,t=r.mouseInteractionCb,n=r.scrollCb,s=r.viewportResizeCb,a=r.inputCb,u=r.mediaInteractionCb,f=r.styleSheetRuleCb,l=r.styleDeclarationCb,c=r.canvasMutationCb,h=r.fontCb,v=r.selectionCb,d=r.customElementCb;r.mutationCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mutation){var w;(w=i).mutation.apply(w,[].concat(p))}o.apply(void 0,[].concat(p))},r.mousemoveCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mousemove){var w;(w=i).mousemove.apply(w,[].concat(p))}e.apply(void 0,[].concat(p))},r.mouseInteractionCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mouseInteraction){var w;(w=i).mouseInteraction.apply(w,[].concat(p))}t.apply(void 0,[].concat(p))},r.scrollCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.scroll){var w;(w=i).scroll.apply(w,[].concat(p))}n.apply(void 0,[].concat(p))},r.viewportResizeCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.viewportResize){var w;(w=i).viewportResize.apply(w,[].concat(p))}s.apply(void 0,[].concat(p))},r.inputCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.input){var w;(w=i).input.apply(w,[].concat(p))}a.apply(void 0,[].concat(p))},r.mediaInteractionCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.mediaInteaction){var w;(w=i).mediaInteaction.apply(w,[].concat(p))}u.apply(void 0,[].concat(p))},r.styleSheetRuleCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.styleSheetRule){var w;(w=i).styleSheetRule.apply(w,[].concat(p))}f.apply(void 0,[].concat(p))},r.styleDeclarationCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.styleDeclaration){var w;(w=i).styleDeclaration.apply(w,[].concat(p))}l.apply(void 0,[].concat(p))},r.canvasMutationCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.canvasMutation){var w;(w=i).canvasMutation.apply(w,[].concat(p))}c.apply(void 0,[].concat(p))},r.fontCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.font){var w;(w=i).font.apply(w,[].concat(p))}h.apply(void 0,[].concat(p))},r.selectionCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.selection){var w;(w=i).selection.apply(w,[].concat(p))}v.apply(void 0,[].concat(p))},r.customElementCb=function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];if(i.customElement){var w;(w=i).customElement.apply(w,[].concat(p))}d.apply(void 0,[].concat(p))}}function Dm(r,i){i===void 0&&(i={});var o=r.doc.defaultView;if(!o)return function(){};Lm(r,i);var e;r.recordDOM&&(e=bf(r,r.doc));var t=xm(r),n=Rm(r),s=Sf(r),a=Em(r,{win:o}),u=Mm(r),f=Pm(r),l=function(){},c=function(){},h=function(){},v=function(){};r.recordDOM&&(l=$m(r,{win:o}),c=If(r,r.doc),h=km(r,{win:o}),r.collectFonts&&(v=_m(r)));for(var d=Tm(r),m=Nm(r),p=[],g=I(r.plugins),w;!(w=g()).done;){var b=w.value;p.push(b.observer(b.callback,o,b.options))}return U(function(){$e.forEach(function(S){return S.reset()}),e==null||e.disconnect(),t(),n(),s(),a(),u(),f(),l(),c(),h(),v(),d(),m(),p.forEach(function(S){return S()})})}function kn(r){return typeof window[r]!="undefined"}function Pn(r){return!!(typeof window[r]!="undefined"&&window[r].prototype&&"insertRule"in window[r].prototype&&"deleteRule"in window[r].prototype)}for(var Of=(function(){function r(o){O(this,"iframeIdToRemoteIdMap",new WeakMap),O(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=o}var i=r.prototype;return i.getId=function(e,t,n,s){var a=n||this.getIdToRemoteIdMap(e),u=s||this.getRemoteIdToIdMap(e),f=a.get(t);return f||(f=this.generateIdFn(),a.set(t,f),u.set(f,t)),f},i.getIds=function(e,t){var n=this,s=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return t.map(function(u){return n.getId(e,u,s,a)})},i.getRemoteId=function(e,t,n){var s=n||this.getRemoteIdToIdMap(e);if(typeof t!="number")return t;var a=s.get(t);return a||-1},i.getRemoteIds=function(e,t){var n=this,s=this.getRemoteIdToIdMap(e);return t.map(function(a){return n.getRemoteId(e,a,s)})},i.reset=function(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)},i.getIdToRemoteIdMap=function(e){var t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t},i.getRemoteIdToIdMap=function(e){var t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t},r})(),Fm=(function(){function r(o){O(this,"iframes",new WeakMap),O(this,"crossOriginIframeMap",new WeakMap),O(this,"crossOriginIframeMirror",new Of(Qs)),O(this,"crossOriginIframeStyleMirror"),O(this,"crossOriginIframeRootIdMap",new WeakMap),O(this,"iframeContentDocumentMap",new WeakMap),O(this,"iframeObserverCleanupMap",new WeakMap),O(this,"mirror"),O(this,"mutationCb"),O(this,"wrappedEmit"),O(this,"loadListener"),O(this,"stylesheetManager"),O(this,"recordCrossOriginIframes"),this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Of(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var i=r.prototype;return i.addIframe=function(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)},i.getIframeContentDocument=function(e){return this.iframeContentDocumentMap.get(e)},i.setObserverCleanup=function(e,t){this.iframeObserverCleanupMap.set(e,t)},i.getObserverCleanup=function(e){return this.iframeObserverCleanupMap.get(e)},i.removeIframe=function(e){var t=this.iframeContentDocumentMap.get(e);t&&(this.stylesheetManager.cleanupStylesheetsForRemovedNode(t),this.mirror.removeNodeFromMap(t,!0)),this.iframes.delete(e),this.iframeContentDocumentMap.delete(e);var n=this.iframeObserverCleanupMap.get(e);if(n){try{n()}catch(s){}this.iframeObserverCleanupMap.delete(e)}},i.addLoadListener=function(e){this.loadListener=e},i.attachIframe=function(e,t){var n,s;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),e.contentDocument&&this.iframeContentDocumentMap.set(e,e.contentDocument),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(s=this.loadListener)==null||s.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))},i.handleMessage=function(e){var t=e;if(!(t.data.type!=="rrweb"||t.origin!==t.data.origin)){var n=e.source;if(n){var s=this.crossOriginIframeMap.get(e.source);if(s){var a=this.transformCrossOriginEvent(s,t.data.event);a&&this.wrappedEmit(a,t.data.isCheckout)}}}},i.transformCrossOriginEvent=function(e,t){var n=this,s;switch(t.type){case F.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);var a=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(t.data.node,a),{timestamp:t.timestamp,type:F.IncrementalSnapshot,data:{source:_.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case F.Meta:case F.Load:case F.DomContentLoaded:return!1;case F.Plugin:return t;case F.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case F.IncrementalSnapshot:switch(t.data.source){case _.Mutation:return t.data.adds.forEach(function(u){n.replaceIds(u,e,["parentId","nextId","previousId"]),n.replaceIdOnNode(u.node,e);var f=n.crossOriginIframeRootIdMap.get(e);f&&n.patchRootIdOnNode(u.node,f)}),t.data.removes.forEach(function(u){n.replaceIds(u,e,["parentId","id"])}),t.data.attributes.forEach(function(u){n.replaceIds(u,e,["id"])}),t.data.texts.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case _.Drag:case _.TouchMove:case _.MouseMove:return t.data.positions.forEach(function(u){n.replaceIds(u,e,["id"])}),t;case _.ViewportResize:return!1;case _.MediaInteraction:case _.MouseInteraction:case _.Scroll:case _.CanvasMutation:case _.Input:return this.replaceIds(t.data,e,["id"]),t;case _.StyleSheetRule:case _.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case _.Font:return t;case _.Selection:return t.data.ranges.forEach(function(u){n.replaceIds(u,e,["start","end"])}),t;case _.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),(s=t.data.styles)==null||s.forEach(function(u){n.replaceStyleIds(u,e,["styleId"])}),t}}return!1},i.replace=function(e,t,n,s){for(var a=I(s),u;!(u=a()).done;){var f=u.value;!Array.isArray(t[f])&&typeof t[f]!="number"||(Array.isArray(t[f])?t[f]=e.getIds(n,t[f]):t[f]=e.getId(n,t[f]))}return t},i.replaceIds=function(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)},i.replaceStyleIds=function(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)},i.replaceIdOnNode=function(e,t){var n=this;this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(function(s){n.replaceIdOnNode(s,t)})},i.patchRootIdOnNode=function(e,t){var n=this;e.type!==df.Document&&!e.rootId&&(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(function(s){n.patchRootIdOnNode(s,t)})},r})(),Bm=(function(){function r(o){O(this,"shadowDoms",new WeakSet),O(this,"mutationCb"),O(this,"scrollCb"),O(this,"bypassOptions"),O(this,"mirror"),O(this,"restoreHandlers",[]),this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}var i=r.prototype;return i.init=function(){this.reset(),this.patchAttachShadow(Element,document)},i.addShadowRoot=function(e,t){var n=this;if(Zt(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);var s=bf(T({},this.bypassOptions,{doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),e);this.restoreHandlers.push(function(){return s.disconnect()}),this.restoreHandlers.push(Sf(T({},this.bypassOptions,{scrollCb:this.scrollCb,doc:e,mirror:this.mirror}))),setTimeout(function(){e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&n.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,n.mirror.getId(D.host(e))),n.restoreHandlers.push(If({mirror:n.mirror,stylesheetManager:n.bypassOptions.stylesheetManager},e))},0)}},i.observeAttachShadow=function(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)},i.patchAttachShadow=function(e,t){var n=this;this.restoreHandlers.push(ot(e.prototype,"attachShadow",function(s){return function(a){var u=s.call(this,a),f=D.shadowRoot(this);return f&&pf(this)&&n.addShadowRoot(f,t),u}}))},i.reset=function(){this.restoreHandlers.forEach(function(e){try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},r})(),Pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Um=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_n=0;_n<Pt.length;_n++)Um[Pt.charCodeAt(_n)]=_n;var zm=function(i){var o=new Uint8Array(i),e,t=o.length,n="";for(e=0;e<t;e+=3)n+=Pt[o[e]>>2],n+=Pt[(o[e]&3)<<4|o[e+1]>>4],n+=Pt[(o[e+1]&15)<<2|o[e+2]>>6],n+=Pt[o[e+2]&63];return t%3===2?n=n.substring(0,n.length-1)+"=":t%3===1&&(n=n.substring(0,n.length-2)+"=="),n},xf=new Map;function Wm(r,i){var o=xf.get(r);return o||(o=new Map,xf.set(r,o)),o.has(i)||o.set(i,[]),o.get(i)}var Rf=function(r,i,o){if(!(!r||!(Af(r,i)||(typeof r=="undefined"?"undefined":$(r))==="object"))){var e=r.constructor.name,t=Wm(o,e),n=t.indexOf(r);return n===-1&&(n=t.length,t.push(r)),n}};function Tn(r,i,o){if(A(r,Array))return r.map(function(d){return Tn(d,i,o)});if(r===null)return r;if(A(r,Float32Array)||A(r,Float64Array)||A(r,Int32Array)||A(r,Uint32Array)||A(r,Uint8Array)||A(r,Uint16Array)||A(r,Int16Array)||A(r,Int8Array)||A(r,Uint8ClampedArray)){var e=r.constructor.name;return{rr_type:e,args:[Object.values(r)]}}else if(A(r,ArrayBuffer)){var t=r.constructor.name,n=zm(r);return{rr_type:t,base64:n}}else if(A(r,DataView)){var s=r.constructor.name;return{rr_type:s,args:[Tn(r.buffer,i,o),r.byteOffset,r.byteLength]}}else if(A(r,HTMLImageElement)){var a=r.constructor.name,u=r.src;return{rr_type:a,src:u}}else if(A(r,HTMLCanvasElement)){var f="HTMLImageElement",l=r.toDataURL();return{rr_type:f,src:l}}else if(A(r,ImageData)){var c=r.constructor.name;return{rr_type:c,args:[Tn(r.data,i,o),r.width,r.height]}}else if(Af(r,i)||(typeof r=="undefined"?"undefined":$(r))==="object"){var h=r.constructor.name,v=Rf(r,i,o);return{rr_type:h,index:v}}return r}var Ef=function(r,i,o){return r.map(function(e){return Tn(e,i,o)})},Af=function(r,i){var o=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],e=o.filter(function(t){return typeof i[t]=="function"});return!!e.find(function(t){return A(r,i[t])})};function jm(r,i,o,e){for(var t=function(){var f=u.value;try{if(typeof i.CanvasRenderingContext2D.prototype[f]!="function")return"continue";var l=ot(i.CanvasRenderingContext2D.prototype,f,function(h){return function(){for(var v=this,d=arguments.length,m=new Array(d),p=0;p<d;p++)m[p]=arguments[p];return ge(this.canvas,o,e,!0)||setTimeout(function(){var g=Ef(m,i,v);r(v.canvas,{type:$t["2D"],property:f,args:g})},0),h.apply(this,m)}});n.push(l)}catch(h){var c=An(i.CanvasRenderingContext2D.prototype,f,{set:function(d){r(this.canvas,{type:$t["2D"],property:f,args:[d],setter:!0})}});n.push(c)}},n=[],s=Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype),a=I(s),u;!(u=a()).done;)t();return function(){n.forEach(function(f){return f()})}}function Gm(r){return r==="experimental-webgl"?"webgl":r}function Mf(r,i,o,e){var t=[];try{var n=ot(r.HTMLCanvasElement.prototype,"getContext",function(s){return function(a){for(var u=arguments.length,f=new Array(u>1?u-1:0),l=1;l<u;l++)f[l-1]=arguments[l];if(!ge(this,i,o,!0)){var c=Gm(a);if("__context"in this||(this.__context=c),e&&["webgl","webgl2"].includes(c))if(f[0]&&$(f[0])==="object"){var h=f[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else f.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[].concat([a],f))}});t.push(n)}catch(s){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){t.forEach(function(s){return s()})}}function $f(r,i,o,e,t,n){for(var s=function(){var c=l.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))return"continue";try{if(typeof r[c]!="function")return"continue";var h=ot(r,c,function(d){return function(){for(var m=arguments.length,p=new Array(m),g=0;g<m;g++)p[g]=arguments[g];var w=d.apply(this,p);if(Rf(w,n,this),"tagName"in this.canvas&&!ge(this.canvas,e,t,!0)){var b=Ef(p,n,this),S={type:i,property:c,args:b};o(this.canvas,S)}return w}});a.push(h)}catch(d){var v=An(r,c,{set:function(p){o(this.canvas,{type:i,property:c,args:[p],setter:!0})}});a.push(v)}},a=[],u=Object.getOwnPropertyNames(r),f=I(u),l;!(l=f()).done;)s();return a}function qm(r,i,o,e){var t,n=[];if((t=n).push.apply(t,[].concat($f(i.WebGLRenderingContext.prototype,$t.WebGL,r,o,e,i))),typeof i.WebGL2RenderingContext!="undefined"){var s;(s=n).push.apply(s,[].concat($f(i.WebGL2RenderingContext.prototype,$t.WebGL2,r,o,e,i)))}return function(){n.forEach(function(a){return a()})}}var kf="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Vm=function(r){return Uint8Array.from(atob(r),function(i){return i.charCodeAt(0)})},Pf=typeof window!="undefined"&&window.Blob&&new Blob([Vm(kf)],{type:"text/javascript;charset=utf-8"});function Hm(r){var i;try{if(i=Pf&&(window.URL||window.webkitURL).createObjectURL(Pf),!i)throw"";var o=new Worker(i,{name:r==null?void 0:r.name});return o.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(i)}),o}catch(e){return new Worker("data:text/javascript;base64,"+kf,{name:r==null?void 0:r.name})}finally{i&&(window.URL||window.webkitURL).revokeObjectURL(i)}}var Ym=(function(){function r(o){var e=this;O(this,"pendingCanvasMutations",new Map),O(this,"rafStamps",{latestId:0,invokeId:null}),O(this,"mirror"),O(this,"mutationCb"),O(this,"resetObservers"),O(this,"frozen",!1),O(this,"locked",!1),O(this,"processMutation",function(c,h){var v=e.rafStamps.invokeId&&e.rafStamps.latestId!==e.rafStamps.invokeId;(v||!e.rafStamps.invokeId)&&(e.rafStamps.invokeId=e.rafStamps.latestId),e.pendingCanvasMutations.has(c)||e.pendingCanvasMutations.set(c,[]),e.pendingCanvasMutations.get(c).push(h)});var t=o.sampling,n=t===void 0?"all":t,s=o.win,a=o.blockClass,u=o.blockSelector,f=o.recordCanvas,l=o.dataURLOptions;this.mutationCb=o.mutationCb,this.mirror=o.mirror,f&&n==="all"&&this.initCanvasMutationObserver(s,a,u),f&&typeof n=="number"&&this.initCanvasFPSObserver(n,s,a,u,{dataURLOptions:l})}var i=r.prototype;return i.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},i.freeze=function(){this.frozen=!0},i.unfreeze=function(){this.frozen=!1},i.lock=function(){this.locked=!0},i.unlock=function(){this.locked=!1},i.initCanvasFPSObserver=function(e,t,n,s,a){var u=this,f=Mf(t,n,s,!0),l=new Map,c=new Hm;c.onmessage=function(g){var w=g.data.id;if(l.set(w,!1),"base64"in g.data){var b=g.data,S=b.base64,C=b.type,x=b.width,E=b.height;u.mutationCb({id:w,type:$t["2D"],commands:[{property:"clearRect",args:[0,0,x,E]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:C}]},0,0]}]})}};var h=1e3/e,v=0,d,m=function(){var g=[];return t.document.querySelectorAll("canvas").forEach(function(w){ge(w,n,s,!0)||g.push(w)}),g},p=function(g){if(v&&g-v<h){d=requestAnimationFrame(p);return}v=g;var w=u;m().forEach(Pr(function(b){var S,C,x,E;return tt(this,function(R){switch(R.label){case 0:return C=w.mirror.getId(b),l.get(C)?[2]:b.width===0||b.height===0?[2]:(l.set(C,!0),["webgl","webgl2"].includes(b.__context)&&(x=b.getContext(b.__context),((S=x==null?void 0:x.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&x.clear(x.COLOR_BUFFER_BIT)),[4,createImageBitmap(b)]);case 1:return E=R.sent(),c.postMessage({id:C,bitmap:E,width:b.width,height:b.height,dataURLOptions:a.dataURLOptions},[E]),[2]}})})),d=requestAnimationFrame(p)};d=requestAnimationFrame(p),this.resetObservers=function(){f(),cancelAnimationFrame(d)}},i.initCanvasMutationObserver=function(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var s=Mf(e,t,n,!1),a=jm(this.processMutation.bind(this),e,t,n),u=qm(this.processMutation.bind(this),e,t,n);this.resetObservers=function(){s(),a(),u()}},i.startPendingCanvasMutationFlusher=function(){var e=this;requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.startRAFTimestamping=function(){var e=this,t=function(n){e.rafStamps.latestId=n,requestAnimationFrame(t)};requestAnimationFrame(t)},i.flushPendingCanvasMutations=function(){var e=this;this.pendingCanvasMutations.forEach(function(t,n){var s=e.mirror.getId(n);e.flushPendingCanvasMutationFor(n,s)}),requestAnimationFrame(function(){return e.flushPendingCanvasMutations()})},i.flushPendingCanvasMutationFor=function(e,t){if(!(this.frozen||this.locked)){var n=this.pendingCanvasMutations.get(e);if(!(!n||t===-1)){var s=n.map(function(u){u.type;var f=et(u,["type"]);return f}),a=n[0].type;this.mutationCb({id:t,type:a,commands:s}),this.pendingCanvasMutations.delete(e)}}},r})(),Jm=(function(){function r(o){O(this,"trackedLinkElements",new WeakSet),O(this,"mutationCb"),O(this,"adoptedStyleSheetCb"),O(this,"styleMirror",new vm),this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}var i=r.prototype;return i.attachLinkElement=function(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)},i.trackLinkElement=function(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))},i.adoptStyleSheets=function(e,t){var n,s=function(){var c=l.value,h=void 0;n.styleMirror.has(c)?h=n.styleMirror.getId(c):(h=n.styleMirror.add(c),u.push({styleId:h,rules:Array.from(c.rules||CSSRule,function(v,d){return{rule:Js(v,c.href),index:d}})})),a.styleIds.push(h)};if(e.length!==0){for(var a={id:t,styleIds:[]},u=[],f=I(e),l;!(l=f()).done;)n=this,s();u.length>0&&(a.styles=u),this.adoptedStyleSheetCb(a)}},i.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},i.cleanupStylesheetsForRemovedNode=function(e){var t=this;try{if(e.nodeType===Node.DOCUMENT_NODE){var n=e;if(n.adoptedStyleSheets)for(var s=I(n.adoptedStyleSheets),a;!(a=s()).done;){var u=a.value;this.styleMirror.remove(u)}}if(e.nodeName==="STYLE"){var f=e;f.sheet&&this.styleMirror.remove(f.sheet)}if(e.nodeName==="LINK"&&e.rel==="stylesheet"){var l=e;l.sheet&&this.styleMirror.remove(l.sheet)}e.childNodes&&e.childNodes.forEach(function(c){t.cleanupStylesheetsForRemovedNode(c)})}catch(c){}},i.trackStylesheetInLinkElement=function(e){},r})(),Zm=(function(){function r(){O(this,"nodeMap",new WeakMap),O(this,"active",!1)}var i=r.prototype;return i.inOtherBuffer=function(e,t){var n=this.nodeMap.get(e);return n&&Array.from(n).some(function(s){return s!==t})},i.add=function(e,t){var n=this;this.active||(this.active=!0,requestAnimationFrame(function(){n.nodeMap=new WeakMap,n.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))},i.destroy=function(){},r})(),se,Nn,Do,Ln=!1;try{if(Array.from([1],function(r){return r*2})[0]!==2){var Fo=document.createElement("iframe");document.body.appendChild(Fo),Array.from=((js=Fo.contentWindow)==null?void 0:js.Array.from)||Array.from,document.body.removeChild(Fo)}}catch(r){console.debug("Unable to override Array.from",r)}var xe=Hc();function Ye(r){r===void 0&&(r={});var i=r.emit,o=r.checkoutEveryNms,e=r.checkoutEveryNth,t=r.blockClass,n=t===void 0?"rr-block":t,s=r.blockSelector,a=s===void 0?null:s,u=r.ignoreClass,f=u===void 0?"rr-ignore":u,l=r.ignoreSelector,c=l===void 0?null:l,h=r.maskTextClass,v=h===void 0?"rr-mask":h,d=r.maskTextSelector,m=d===void 0?null:d,p=r.inlineStylesheet,g=p===void 0?!0:p,w=r.maskAllInputs,b=r.maskInputOptions,S=r.slimDOMOptions,C=r.maskInputFn,x=r.maskTextFn,E=r.hooks,R=r.packFn,k=r.sampling,N=k===void 0?{}:k,ae=r.dataURLOptions,P=ae===void 0?{}:ae,L=r.mousemoveWait,ie=r.recordDOM,z=ie===void 0?!0:ie,Ce=r.recordCanvas,be=Ce===void 0?!1:Ce,pe=r.recordCrossOriginIframes,oe=pe===void 0?!1:pe,de=r.recordAfter,ct=de===void 0?r.recordAfter==="DOMContentLoaded"?r.recordAfter:"load":de,Ne=r.userTriggeredOnInput,Wt=Ne===void 0?!1:Ne,Ie=r.collectFonts,ht=Ie===void 0?!1:Ie,j=r.inlineImages,pt=j===void 0?!1:j,dt=r.plugins,jt=r.keepIframeSrcFn,Mr=jt===void 0?function(){return!1}:jt,$r=r.ignoreCSSAttributes,Ns=$r===void 0?new Set([]):$r,vi=r.errorHandler;Cm(vi);var Qe=oe?window.parent===window:!0,vt=!1;if(!Qe)try{window.parent.document&&(vt=!1)}catch(G){vt=!0}if(Qe&&!i)throw new Error("emit function is required");if(!Qe&&!vt)return function(){};L!==void 0&&N.mousemove===void 0&&(N.mousemove=L),xe.reset();var Gt=w===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0,hidden:!0}:b!==void 0?b:{password:!0},kr=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all",headTitleMutations:S==="all"}:S||{};dm();var qt,mt=0,ze=function(G){for(var ye=I(dt||[]),M;!(M=ye()).done;){var J=M.value;J.eventProcessor&&(G=J.eventProcessor(G))}return R&&!vt&&(G=R(G)),G};se=function(G,ye){var M,J=G;if(J.timestamp=Mn(),(M=$e[0])!=null&&M.isFrozen()&&J.type!==F.FullSnapshot&&!(J.type===F.IncrementalSnapshot&&J.data.source===_.Mutation)&&$e.forEach(function(ob){return ob.unfreeze()}),Qe)i==null||i(ze(J),ye);else if(vt){var Vt={type:"rrweb",event:ze(J),origin:window.location.origin,isCheckout:ye};window.parent.postMessage(Vt,"*")}if(J.type===F.FullSnapshot)qt=J,mt=0;else if(J.type===F.IncrementalSnapshot){if(J.data.source===_.Mutation&&J.data.isAttachIframe)return;mt++;var Fs=e&&mt>=e,ib=o&&J.timestamp-qt.timestamp>o;(Fs||ib)&&Nn(!0)}};for(var gt=function(G){se({type:F.IncrementalSnapshot,data:T({source:_.Mutation},G)})},vc=function(G){return se({type:F.IncrementalSnapshot,data:T({source:_.Scroll},G)})},mc=function(G){return se({type:F.IncrementalSnapshot,data:T({source:_.CanvasMutation},G)})},rb=function(G){return se({type:F.IncrementalSnapshot,data:T({source:_.AdoptedStyleSheet},G)})},yt=new Jm({mutationCb:gt,adoptedStyleSheetCb:rb}),We=new Fm({mirror:xe,mutationCb:gt,stylesheetManager:yt,recordCrossOriginIframes:oe,wrappedEmit:se}),nb=I(dt||[]),gc;!(gc=nb()).done;){var yc=gc.value;yc.getMirror&&yc.getMirror({nodeMirror:xe,crossOriginIframeMirror:We.crossOriginIframeMirror,crossOriginIframeStyleMirror:We.crossOriginIframeStyleMirror})}var Ls=new Zm;Do=new Ym({recordCanvas:be,mutationCb:mc,win:window,blockClass:n,blockSelector:a,mirror:xe,sampling:N.canvas,dataURLOptions:P});var mi=new Bm({mutationCb:gt,scrollCb:vc,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:m,inlineStylesheet:g,maskInputOptions:Gt,dataURLOptions:P,maskTextFn:x,maskInputFn:C,recordCanvas:be,inlineImages:pt,sampling:N,slimDOMOptions:kr,iframeManager:We,stylesheetManager:yt,canvasManager:Do,keepIframeSrcFn:Mr,processedNodeManager:Ls},mirror:xe});Nn=function(G){if(G===void 0&&(G=!1),!!z){se({type:F.Meta,data:{href:window.location.href,width:af(),height:sf()}},G),yt.reset(),mi.init(),$e.forEach(function(M){return M.lock()});var ye=gh(document,{mirror:xe,blockClass:n,blockSelector:a,maskTextClass:v,maskTextSelector:m,inlineStylesheet:g,maskAllInputs:Gt,maskTextFn:x,maskInputFn:C,slimDOM:kr,dataURLOptions:P,recordCanvas:be,inlineImages:pt,onSerialize:function(M){lf(M,xe)&&We.addIframe(M),cf(M,xe)&&yt.trackLinkElement(M),No(M)&&mi.addShadowRoot(D.shadowRoot(M),document)},onIframeLoad:function(M,J){We.attachIframe(M,J),mi.observeAttachShadow(M)},onStylesheetLoad:function(M,J){yt.attachLinkElement(M,J)},keepIframeSrcFn:Mr});if(!ye)return console.warn("Failed to snapshot the document");se({type:F.FullSnapshot,data:{node:ye,initialOffset:of(window)}},G),$e.forEach(function(M){return M.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&yt.adoptStyleSheets(document.adoptedStyleSheets,xe.getId(document))}};try{var wt=[],wc=function(G){var ye;return U(Dm)({mutationCb:gt,mousemoveCb:function(M,J){return se({type:F.IncrementalSnapshot,data:{source:J,positions:M}})},mouseInteractionCb:function(M){return se({type:F.IncrementalSnapshot,data:T({source:_.MouseInteraction},M)})},scrollCb:vc,viewportResizeCb:function(M){return se({type:F.IncrementalSnapshot,data:T({source:_.ViewportResize},M)})},inputCb:function(M){return se({type:F.IncrementalSnapshot,data:T({source:_.Input},M)})},mediaInteractionCb:function(M){return se({type:F.IncrementalSnapshot,data:T({source:_.MediaInteraction},M)})},styleSheetRuleCb:function(M){return se({type:F.IncrementalSnapshot,data:T({source:_.StyleSheetRule},M)})},styleDeclarationCb:function(M){return se({type:F.IncrementalSnapshot,data:T({source:_.StyleDeclaration},M)})},canvasMutationCb:mc,fontCb:function(M){return se({type:F.IncrementalSnapshot,data:T({source:_.Font},M)})},selectionCb:function(M){se({type:F.IncrementalSnapshot,data:T({source:_.Selection},M)})},customElementCb:function(M){se({type:F.IncrementalSnapshot,data:T({source:_.CustomElement},M)})},blockClass:n,ignoreClass:f,ignoreSelector:c,maskTextClass:v,maskTextSelector:m,maskInputOptions:Gt,inlineStylesheet:g,sampling:N,recordDOM:z,recordCanvas:be,inlineImages:pt,userTriggeredOnInput:Wt,collectFonts:ht,doc:G,maskInputFn:C,maskTextFn:x,keepIframeSrcFn:Mr,blockSelector:a,slimDOMOptions:kr,dataURLOptions:P,mirror:xe,iframeManager:We,stylesheetManager:yt,shadowDomManager:mi,processedNodeManager:Ls,canvasManager:Do,ignoreCSSAttributes:Ns,plugins:((ye=dt==null?void 0:dt.filter(function(M){return M.observer}))==null?void 0:ye.map(function(M){return{observer:M.observer,options:M.options,callback:function(J){return se({type:F.Plugin,data:{plugin:M.name,payload:J}})}}}))||[]},E)};We.addLoadListener(function(G){try{var ye=G.contentDocument,M=wc(ye);wt.push(M);var J=We.getObserverCleanup(G);We.setObserverCleanup(G,function(){if(J)try{J()}catch(Fs){}try{M();var Vt=wt.indexOf(M);Vt!==-1&&wt.splice(Vt,1),Om(ye)}catch(Fs){}})}catch(Vt){console.warn(Vt)}});var Ds=function(){Nn(),wt.push(wc(document)),Ln=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ds():(wt.push(me("DOMContentLoaded",function(){se({type:F.DomContentLoaded,data:{}}),ct==="DOMContentLoaded"&&Ds()})),wt.push(me("load",function(){se({type:F.Load,data:{}}),ct==="load"&&Ds()},window))),function(){wt.forEach(function(G){try{G()}catch(M){var ye=String(M).toLowerCase();ye.includes("cross-origin")||console.warn(M)}}),Ls.destroy(),Ln=!1,Im()}}catch(G){console.warn(G)}}Ye.addCustomEvent=function(r,i){if(!Ln)throw new Error("please add custom event after start recording");se({type:F.Custom,data:{tag:r,payload:i}})},Ye.freezePage=function(){$e.forEach(function(r){return r.freeze()})},Ye.takeFullSnapshot=function(r){if(!Ln)throw new Error("please take full snapshot after start recording");Nn(r)},Ye.mirror=xe;var _f;(function(r){r[r.NotStarted=0]="NotStarted",r[r.Running=1]="Running",r[r.Stopped=2]="Stopped"})(_f||(_f={})),Ye.addCustomEvent,Ye.freezePage,Ye.takeFullSnapshot;var Tf={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Nf={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Dn={},Km=function(){return!!globalThis.Zone};function Bo(r){if(Dn[r])return Dn[r];var i=globalThis[r],o=i.prototype,e=r in Tf?Tf[r]:void 0,t=!!(e&&e.every(function(l){var c,h;return!!((h=(c=Object.getOwnPropertyDescriptor(o,l))==null?void 0:c.get)!=null&&h.toString().includes("[native code]"))})),n=r in Nf?Nf[r]:void 0,s=!!(n&&n.every(function(l){var c;return typeof o[l]=="function"&&((c=o[l])==null?void 0:c.toString().includes("[native code]"))}));if(t&&s&&!Km())return Dn[r]=i.prototype,i.prototype;try{var a=document.createElement("iframe");document.body.appendChild(a);var u=a.contentWindow;if(!u)return i.prototype;var f=u[r].prototype;return document.body.removeChild(a),f?Dn[r]=f:o}catch(l){return o}}var Uo={};function Je(r,i,o){var e,t=r+"."+String(o);if(Uo[t])return Uo[t].call(i);var n=Bo(r),s=(e=Object.getOwnPropertyDescriptor(n,o))==null?void 0:e.get;return s?(Uo[t]=s,s.call(i)):i[o]}var zo={};function Lf(r,i,o){var e=r+"."+String(o);if(zo[e])return zo[e].bind(i);var t=Bo(r),n=t[o];return typeof n!="function"?i[o]:(zo[e]=n,n.bind(i))}function Xm(r){return Je("Node",r,"childNodes")}function Qm(r){return Je("Node",r,"parentNode")}function eg(r){return Je("Node",r,"parentElement")}function tg(r){return Je("Node",r,"textContent")}function rg(r,i){return Lf("Node",r,"contains")(i)}function ng(r){return Lf("Node",r,"getRootNode")()}function ig(r){return!r||!("host"in r)?null:Je("ShadowRoot",r,"host")}function og(r){return r.styleSheets}function sg(r){return!r||!("shadowRoot"in r)?null:Je("Element",r,"shadowRoot")}function ag(r,i){return Je("Element",r,"querySelector")(i)}function ug(r,i){return Je("Element",r,"querySelectorAll")(i)}function fg(){return Bo("MutationObserver").constructor}function lg(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var Df={childNodes:Xm,parentNode:Qm,parentElement:eg,textContent:tg,contains:rg,getRootNode:ng,host:ig,styleSheets:og,shadowRoot:sg,querySelector:ag,querySelectorAll:ug,mutationObserver:fg,patch:lg};function Wo(r,i,o){if(!r)return!1;if(r.nodeType!==r.ELEMENT_NODE)return Wo(Df.parentNode(r),i);for(var e=r.classList.length;e--;){var t=r.classList[e];if(i.test(t))return!0}return Wo(Df.parentNode(r),i)}function cg(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function hg(r){if(r.__esModule)return r;var i=r.default;if(typeof i=="function"){var o=function e(){return A(this,e)?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};o.prototype=i.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(r).forEach(function(e){var t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(o,e,t.get?t:{enumerable:!0,get:function(){return r[e]}})}),o}var jo={exports:{}},Q=String,Ff=function(){return{isColorSupported:!1,reset:Q,bold:Q,dim:Q,italic:Q,underline:Q,inverse:Q,hidden:Q,strikethrough:Q,black:Q,red:Q,green:Q,yellow:Q,blue:Q,magenta:Q,cyan:Q,white:Q,gray:Q,bgBlack:Q,bgRed:Q,bgGreen:Q,bgYellow:Q,bgBlue:Q,bgMagenta:Q,bgCyan:Q,bgWhite:Q}};jo.exports=Ff(),jo.exports.createColors=Ff;var pg=jo.exports,dg={},vg=Object.freeze(Object.defineProperty({__proto__:null,default:dg},Symbol.toStringTag,{value:"Module"})),le=hg(vg),Bf=pg,Uf=le,Go=(function(r){ee(i,r);function i(e,t,n,s,a,u){var f;return f=r.call(this,e)||this,f.name="CssSyntaxError",f.reason=e,a&&(f.file=a),s&&(f.source=s),u&&(f.plugin=u),typeof t!="undefined"&&typeof n!="undefined"&&(typeof t=="number"?(f.line=t,f.column=n):(f.line=t.line,f.column=t.column,f.endLine=n.line,f.endColumn=n.column)),f.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(f,i),f}var o=i.prototype;return o.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line!="undefined"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},o.showSourceCode=function(t){var n=this;if(!this.source)return"";var s=this.source;t==null&&(t=Bf.isColorSupported),Uf&&t&&(s=Uf(s));var a=s.split(/\r?\n/),u=Math.max(this.line-3,0),f=Math.min(this.line+2,a.length),l=String(f).length,c,h;if(t){var v=Bf.createColors(!0),d=v.bold,m=v.gray,p=v.red;c=function(g){return d(p(g))},h=function(g){return m(g)}}else c=h=function(g){return g};return a.slice(u,f).map(function(g,w){var b=u+1+w,S=" "+(" "+b).slice(-l)+" | ";if(b===n.line){var C=h(S.replace(/\d/g," "))+g.slice(0,n.column-1).replace(/[^\t]/g," ");return c(">")+h(S)+g+"\n "+C+c("^")}return" "+h(S)+g}).join("\n")},o.toString=function(){var t=this.showSourceCode();return t&&(t="\n\n"+t+"\n"),this.name+": "+this.message+t},i})(Yt(Error)),qo=Go;Go.default=Go;var Ze={};Ze.isClean=Symbol("isClean"),Ze.my=Symbol("my");var zf={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function mg(r){return r[0].toUpperCase()+r.slice(1)}var Vo=(function(){function r(o){this.builder=o}var i=r.prototype;return i.atrule=function(e,t){var n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!="undefined"?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{var a=(e.raws.between||"")+(t?";":"");this.builder(n+s+a,e)}},i.beforeAfter=function(e,t){var n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");for(var s=e.parent,a=0;s&&s.type!=="root";)a+=1,s=s.parent;if(n.includes("\n")){var u=this.raw(e,null,"indent");if(u.length)for(var f=0;f<a;f++)n+=u}return n},i.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var s;e.nodes&&e.nodes.length?(this.body(e),s=this.raw(e,"after")):s=this.raw(e,"after","emptyBody"),s&&this.builder(s),this.builder("}",e,"end")},i.body=function(e){for(var t=e.nodes.length-1;t>0&&e.nodes[t].type==="comment";)t-=1;for(var n=this.raw(e,"semicolon"),s=0;s<e.nodes.length;s++){var a=e.nodes[s],u=this.raw(a,"before");u&&this.builder(u),this.stringify(a,t!==s||n)}},i.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},i.decl=function(e,t){var n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)},i.document=function(e){this.body(e)},i.raw=function(e,t,n){var s;if(n||(n=t),t&&(s=e.raws[t],typeof s!="undefined"))return s;var a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return zf[n];var u=e.root();if(u.rawCache||(u.rawCache={}),typeof u.rawCache[n]!="undefined")return u.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);var f="raw"+mg(n);return this[f]?s=this[f](u,e):u.walk(function(l){if(s=l.raws[t],typeof s!="undefined")return!1}),typeof s=="undefined"&&(s=zf[n]),u.rawCache[n]=s,s},i.rawBeforeClose=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length>0&&typeof n.raws.after!="undefined")return t=n.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawBeforeComment=function(e,t){var n;return e.walkComments(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeDecl=function(e,t){var n;return e.walkDecls(function(s){if(typeof s.raws.before!="undefined")return n=s.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n=="undefined"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n},i.rawBeforeOpen=function(e){var t;return e.walk(function(n){if(n.type!=="decl"&&(t=n.raws.between,typeof t!="undefined"))return!1}),t},i.rawBeforeRule=function(e){var t;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before!="undefined")return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t},i.rawColon=function(e){var t;return e.walkDecls(function(n){if(typeof n.raws.between!="undefined")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t},i.rawEmptyBody=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t!="undefined"))return!1}),t},i.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t;return e.walk(function(n){var s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&typeof n.raws.before!="undefined"){var a=n.raws.before.split("\n");return t=a[a.length-1],t=t.replace(/\S/g,""),!1}}),t},i.rawSemicolon=function(e){var t;return e.walk(function(n){if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t!="undefined"))return!1}),t},i.rawValue=function(e,t){var n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n},i.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},i.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},i.stringify=function(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)},r})(),Wf=Vo;Vo.default=Vo;var gg=Wf;function Ho(r,i){var o=new gg(i);o.stringify(r)}var Fn=Ho;Ho.default=Ho;var Bn=Ze.isClean,yg=Ze.my,wg=qo,bg=Wf,Sg=Fn;function Yo(r,i){var o=new r.constructor;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e)&&e!=="proxyCache"){var t=r[e],n=typeof t=="undefined"?"undefined":$(t);e==="parent"&&n==="object"?i&&(o[e]=i):e==="source"?o[e]=t:Array.isArray(t)?o[e]=t.map(function(s){return Yo(s,o)}):(n==="object"&&t!==null&&(t=Yo(t)),o[e]=t)}return o}var Jo=(function(){function r(o){o===void 0&&(o={}),this.raws={},this[Bn]=!1,this[yg]=!0;for(var e in o)if(e==="nodes"){this.nodes=[];for(var t=I(o[e]),n;!(n=t()).done;){var s=n.value;typeof s.clone=="function"?this.append(s.clone()):this.append(s)}}else this[e]=o[e]}var i=r.prototype;return i.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},i.after=function(e){return this.parent.insertAfter(this,e),this},i.assign=function(e){e===void 0&&(e={});for(var t in e)this[t]=e[t];return this},i.before=function(e){return this.parent.insertBefore(this,e),this},i.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},i.clone=function(e){e===void 0&&(e={});var t=Yo(this);for(var n in e)t[n]=e[n];return t},i.cloneAfter=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertAfter(this,t),t},i.cloneBefore=function(e){e===void 0&&(e={});var t=this.clone(e);return this.parent.insertBefore(this,t),t},i.error=function(e,t){if(t===void 0&&(t={}),this.source){var n=this.rangeBy(t),s=n.end,a=n.start;return this.source.input.error(e,{column:a.column,line:a.line},{column:s.column,line:s.line},t)}return new wg(e)},i.getProxyProcessor=function(){return{get:function(t,n){return n==="proxyOf"?t:n==="root"?function(){return t.root().toProxy()}:t[n]},set:function(t,n,s){return t[n]===s||(t[n]=s,(n==="prop"||n==="value"||n==="name"||n==="params"||n==="important"||n==="text")&&t.markDirty()),!0}}},i.markDirty=function(){if(this[Bn]){this[Bn]=!1;for(var e=this;e=e.parent;)e[Bn]=!1}},i.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},i.positionBy=function(e,t){var n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();var s=t.indexOf(e.word);s!==-1&&(n=this.positionInside(s,t))}return n},i.positionInside=function(e,t){for(var n=t||this.toString(),s=this.source.start.column,a=this.source.start.line,u=0;u<e;u++)n[u]==="\n"?(s=1,a+=1):s+=1;return{column:s,line:a}},i.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},i.rangeBy=function(e){var t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){var s=this.toString(),a=s.indexOf(e.word);a!==-1&&(t=this.positionInside(a,s),n=this.positionInside(a+e.word.length,s))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}},i.raw=function(e,t){var n=new bg;return n.raw(this,e,t)},i.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},i.replaceWith=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this.parent){for(var s=this,a=!1,u=I(t),f;!(f=u()).done;){var l=f.value;l===this?a=!0:a?(this.parent.insertAfter(s,l),s=l):this.parent.insertBefore(s,l)}a||this.remove()}return this},i.root=function(){for(var e=this;e.parent&&e.parent.type!=="document";)e=e.parent;return e},i.toJSON=function(e,t){var n={},s=t==null;t=t||new Map;var a=0;for(var u in this)if(Object.prototype.hasOwnProperty.call(this,u)&&!(u==="parent"||u==="proxyCache")){var f=this[u];if(Array.isArray(f))n[u]=f.map(function(c){return(typeof c=="undefined"?"undefined":$(c))==="object"&&c.toJSON?c.toJSON(null,t):c});else if((typeof f=="undefined"?"undefined":$(f))==="object"&&f.toJSON)n[u]=f.toJSON(null,t);else if(u==="source"){var l=t.get(f.input);l==null&&(l=a,t.set(f.input,a),a++),n[u]={end:f.end,inputId:l,start:f.start}}else n[u]=f}return s&&(n.inputs=[].concat(t.keys()).map(function(c){return c.toJSON()})),n},i.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},i.toString=function(e){e===void 0&&(e=Sg),e.stringify&&(e=e.stringify);var t="";return e(this,function(n){t+=n}),t},i.warn=function(e,t,n){var s={node:this};for(var a in n)s[a]=n[a];return e.warn(t,s)},Z(r,[{key:"proxyOf",get:function(){return this}}]),r})(),Un=Jo;Jo.default=Jo;var Cg=Un,Zo=(function(r){ee(i,r);function i(o){var e;return o&&typeof o.value!="undefined"&&typeof o.value!="string"&&(o=T({},o,{value:String(o.value)})),e=r.call(this,o)||this,e.type="decl",e}return Z(i,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),i})(Cg),zn=Zo;Zo.default=Zo;var Ig="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Og=function(r){r===void 0&&(r=21);for(var i="",o=r;o--;)i+=Ig[Math.random()*64|0];return i},xg={nanoid:Og},jf=le.SourceMapConsumer,Gf=le.SourceMapGenerator,Rg=le.existsSync,Eg=le.readFileSync,Ko=le.dirname,Ag=le.join;function Mg(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}var Xo=(function(){function r(o,e){if(e.map!==!1){this.loadAnnotation(o),this.inline=this.startWith(this.annotation,"data:");var t=e.map?e.map.prev:void 0,n=this.loadMap(e.from,t);!this.mapFile&&e.from&&(this.mapFile=e.from),this.mapFile&&(this.root=Ko(this.mapFile)),n&&(this.text=n)}}var i=r.prototype;return i.consumer=function(){return this.consumerCache||(this.consumerCache=new jf(this.text)),this.consumerCache},i.decodeInline=function(e){var t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,s=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/;if(s.test(e)||a.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Mg(e.substr(RegExp.lastMatch.length));var u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)},i.getAnnotationURL=function(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},i.isMap=function(e){return(typeof e=="undefined"?"undefined":$(e))!=="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)},i.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(t){var n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}},i.loadFile=function(e){if(this.root=Ko(e),Rg(e))return this.mapFile=e,Eg(e,"utf-8").toString().trim()},i.loadMap=function(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){var n=t(e);if(n){var s=this.loadFile(n);if(!s)throw new Error("Unable to load previous source map: "+n.toString());return s}}else{if(A(t,jf))return Gf.fromSourceMap(t).toString();if(A(t,Gf))return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var a=this.annotation;return e&&(a=Ag(Ko(e),a)),this.loadFile(a)}}},i.startWith=function(e,t){return e?e.substr(0,t.length)===t:!1},i.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},r})(),qf=Xo;Xo.default=Xo;var $g=le.SourceMapConsumer,kg=le.SourceMapGenerator,Vf=le.fileURLToPath,Wn=le.pathToFileURL,Qo=le.isAbsolute,es=le.resolve,Pg=xg.nanoid,ts=le,Hf=qo,_g=qf,rs=Symbol("fromOffsetCache"),Tg=!!($g&&kg),Yf=!!(es&&Qo),jn=(function(){function r(o,e){if(e===void 0&&(e={}),o===null||typeof o=="undefined"||(typeof o=="undefined"?"undefined":$(o))==="object"&&!o.toString)throw new Error("PostCSS received "+o+" instead of CSS string");if(this.css=o.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,e.from&&(!Yf||/^\w+:\/\//.test(e.from)||Qo(e.from)?this.file=e.from:this.file=es(e.from)),Yf&&Tg){var t=new _g(this.css,e);if(t.text){this.map=t;var n=t.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+Pg(6)+">"),this.map&&(this.map.file=this.from)}var i=r.prototype;return i.error=function(e,t,n,s){s===void 0&&(s={});var a,u,f;if(t&&(typeof t=="undefined"?"undefined":$(t))==="object"){var l=t,c=n;if(typeof l.offset=="number"){var h=this.fromOffset(l.offset);t=h.line,n=h.col}else t=l.line,n=l.column;if(typeof c.offset=="number"){var v=this.fromOffset(c.offset);u=v.line,f=v.col}else u=c.line,f=c.column}else if(!n){var d=this.fromOffset(t);t=d.line,n=d.col}var m=this.origin(t,n,u,f);return m?a=new Hf(e,m.endLine===void 0?m.line:{column:m.column,line:m.line},m.endLine===void 0?m.column:{column:m.endColumn,line:m.endLine},m.source,m.file,s.plugin):a=new Hf(e,u===void 0?t:{column:n,line:t},u===void 0?n:{column:f,line:u},this.css,this.file,s.plugin),a.input={column:n,endColumn:f,endLine:u,line:t,source:this.css},this.file&&(Wn&&(a.input.url=Wn(this.file).toString()),a.input.file=this.file),a},i.fromOffset=function(e){var t,n;if(this[rs])n=this[rs];else{var s=this.css.split("\n");n=new Array(s.length);for(var a=0,u=0,f=s.length;u<f;u++)n[u]=a,a+=s[u].length+1;this[rs]=n}t=n[n.length-1];var l=0;if(e>=t)l=n.length-1;else for(var c=n.length-2,h;l<c;)if(h=l+(c-l>>1),e<n[h])c=h-1;else if(e>=n[h+1])l=h+1;else{l=h;break}return{col:e-n[l]+1,line:l+1}},i.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:es(this.map.consumer().sourceRoot||this.map.root||".",e)},i.origin=function(e,t,n,s){if(!this.map)return!1;var a=this.map.consumer(),u=a.originalPositionFor({column:t,line:e});if(!u.source)return!1;var f;typeof n=="number"&&(f=a.originalPositionFor({column:s,line:n}));var l;Qo(u.source)?l=Wn(u.source):l=new URL(u.source,this.map.consumer().sourceRoot||Wn(this.map.mapFile));var c={column:u.column,endColumn:f&&f.column,endLine:f&&f.line,line:u.line,url:l.toString()};if(l.protocol==="file:")if(Vf)c.file=Vf(l);else throw new Error("file: protocol is not available in this PostCSS build");var h=a.sourceContentFor(u.source);return h&&(c.source=h),c},i.toJSON=function(){for(var e={},t=0,n=["hasBOM","css","file","id"];t<n.length;t++){var s=n[t];this[s]!=null&&(e[s]=this[s])}return this.map&&(e.map=T({},this.map),e.map.consumerCache&&(e.map.consumerCache=void 0)),e},Z(r,[{key:"from",get:function(){return this.file||this.id}}]),r})(),Gn=jn;jn.default=jn,ts&&ts.registerInput&&ts.registerInput(jn);var Jf=le.SourceMapConsumer,qn=le.SourceMapGenerator,Vn=le.dirname,Zf=le.relative,Kf=le.resolve,Xf=le.sep,Qf=le.pathToFileURL,Ng=Gn,Lg=!!(Jf&&qn),Dg=!!(Vn&&Kf&&Zf&&Xf),Fg=(function(){function r(o,e,t,n){this.stringify=o,this.mapOpts=t.map||{},this.root=e,this.opts=t,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 i=r.prototype;return i.addAnnotation=function(){var e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";var t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},i.applyPrevMaps=function(){for(var e=I(this.previous()),t;!(t=e()).done;){var n=t.value,s=this.toUrl(this.path(n.file)),a=n.root||Vn(n.file),u=void 0;this.mapOpts.sourcesContent===!1?(u=new Jf(n.text),u.sourcesContent&&(u.sourcesContent=null)):u=n.consumer(),this.map.applySourceMap(u,s,this.toUrl(this.path(a)))}},i.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var e,t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},i.generate=function(){if(this.clearAnnotation(),Dg&&Lg&&this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},i.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qn.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qn({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},i.generateString=function(){var e=this;this.css="",this.map=new qn({file:this.outputFile(),ignoreInvalidMapping:!0});var t=1,n=1,s="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""},u,f;this.stringify(this.root,function(l,c,h){if(e.css+=l,c&&h!=="end"&&(a.generated.line=t,a.generated.column=n-1,c.source&&c.source.start?(a.source=e.sourcePath(c),a.original.line=c.source.start.line,a.original.column=c.source.start.column-1,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,e.map.addMapping(a))),u=l.match(/\n/g),u?(t+=u.length,f=l.lastIndexOf("\n"),n=l.length-f):n+=l.length,c&&h!=="start"){var v=c.parent||{raws:{}},d=c.type==="decl"||c.type==="atrule"&&!c.nodes;(!d||c!==v.last||v.raws.semicolon)&&(c.source&&c.source.end?(a.source=e.sourcePath(c),a.original.line=c.source.end.line,a.original.column=c.source.end.column-1,a.generated.line=t,a.generated.column=n-2,e.map.addMapping(a)):(a.source=s,a.original.line=1,a.original.column=0,a.generated.line=t,a.generated.column=n-1,e.map.addMapping(a)))}})},i.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation!="undefined"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(e){return e.annotation}):!0},i.isInline=function(){if(typeof this.mapOpts.inline!="undefined")return this.mapOpts.inline;var e=this.mapOpts.annotation;return typeof e!="undefined"&&e!==!0?!1:this.previous().length?this.previous().some(function(t){return t.inline}):!0},i.isMap=function(){return typeof this.opts.map!="undefined"?!!this.opts.map:this.previous().length>0},i.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent!="undefined"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(e){return e.withContent()}):!0},i.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"},i.path=function(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;var t=this.memoizedPaths.get(e);if(t)return t;var n=this.opts.to?Vn(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=Vn(Kf(n,this.mapOpts.annotation)));var s=Zf(n,e);return this.memoizedPaths.set(e,s),s},i.previous=function(){var e=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(n){if(n.source&&n.source.input.map){var s=n.source.input.map;e.previousMaps.includes(s)||e.previousMaps.push(s)}});else{var t=new Ng(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps},i.setSourcesContent=function(){var e=this,t={};if(this.root)this.root.walk(function(s){if(s.source){var a=s.source.input.from;if(a&&!t[a]){t[a]=!0;var u=e.usesFileUrls?e.toFileUrl(a):e.toUrl(e.path(a));e.map.setSourceContent(u,s.source.input.css)}}});else if(this.css){var n=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(n,this.css)}},i.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))},i.toBase64=function(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},i.toFileUrl=function(e){var t=this.memoizedFileURLs.get(e);if(t)return t;if(Qf){var n=Qf(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")},i.toUrl=function(e){var t=this.memoizedURLs.get(e);if(t)return t;Xf==="\\"&&(e=e.replace(/\\/g,"/"));var n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n},r})(),el=Fg,Bg=Un,ns=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="comment",e}return i})(Bg),Hn=ns;ns.default=ns;var tl=Ze.isClean,rl=Ze.my,nl=zn,il=Hn,Ug=Un,ol,is,os,sl;function al(r){return r.map(function(i){return i.nodes&&(i.nodes=al(i.nodes)),delete i.source,i})}function ul(r){if(r[tl]=!1,r.proxyOf.nodes)for(var i=I(r.proxyOf.nodes),o;!(o=i()).done;){var e=o.value;ul(e)}}var Be=(function(r){ee(i,r);function i(){return r.apply(this,arguments)||this}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];for(var a=I(n),u;!(u=a()).done;)for(var f=u.value,l=this.normalize(f,this.last),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.push(v)}return this.markDirty(),this},o.cleanRaws=function(t){if(r.prototype.cleanRaws.call(this,t),this.nodes)for(var n=I(this.nodes),s;!(s=n()).done;){var a=s.value;a.cleanRaws(t)}},o.each=function(t){if(this.proxyOf.nodes){for(var n=this.getIterator(),s,a;this.indexes[n]<this.proxyOf.nodes.length&&(s=this.indexes[n],a=t(this.proxyOf.nodes[s],s),a!==!1);)this.indexes[n]+=1;return delete this.indexes[n],a}},o.every=function(t){return this.nodes.every(t)},o.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;return this.indexes[t]=0,t},o.getProxyProcessor=function(){return{get:function(n,s){return s==="proxyOf"?n:n[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?function(){for(var a=arguments.length,u=new Array(a),f=0;f<a;f++)u[f]=arguments[f];var l;return(l=n)[s].apply(l,[].concat(u.map(function(c){return typeof c=="function"?function(h,v){return c(h.toProxy(),v)}:c})))}:s==="every"||s==="some"?function(a){return n[s](function(u){for(var f=arguments.length,l=new Array(f>1?f-1:0),c=1;c<f;c++)l[c-1]=arguments[c];return a.apply(void 0,[].concat([u.toProxy()],l))})}:s==="root"?function(){return n.root().toProxy()}:s==="nodes"?n.nodes.map(function(a){return a.toProxy()}):s==="first"||s==="last"?n[s].toProxy():n[s]:n[s]},set:function(n,s,a){return n[s]===a||(n[s]=a,(s==="name"||s==="params"||s==="selector")&&n.markDirty()),!0}}},o.index=function(t){return typeof t=="number"?t:(t.proxyOf&&(t=t.proxyOf),this.proxyOf.nodes.indexOf(t))},o.insertAfter=function(t,n){var s=this.index(t),a=this.normalize(n,this.proxyOf.nodes[s]).reverse();s=this.index(t);for(var u=I(a),f;!(f=u()).done;){var l=f.value;this.proxyOf.nodes.splice(s+1,0,l)}var c;for(var h in this.indexes)c=this.indexes[h],s<c&&(this.indexes[h]=c+a.length);return this.markDirty(),this},o.insertBefore=function(t,n){var s=this.index(t),a=s===0?"prepend":!1,u=this.normalize(n,this.proxyOf.nodes[s],a).reverse();s=this.index(t);for(var f=I(u),l;!(l=f()).done;){var c=l.value;this.proxyOf.nodes.splice(s,0,c)}var h;for(var v in this.indexes)h=this.indexes[v],s<=h&&(this.indexes[v]=h+u.length);return this.markDirty(),this},o.normalize=function(t,n){var s=this;if(typeof t=="string")t=al(ol(t).nodes);else if(typeof t=="undefined")t=[];else if(Array.isArray(t)){t=t.slice(0);for(var a=I(t),u;!(u=a()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(t.type==="root"&&this.type!=="document"){t=t.nodes.slice(0);for(var l=I(t),c;!(c=l()).done;){var h=c.value;h.parent&&h.parent.removeChild(h,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(typeof t.value=="undefined")throw new Error("Value field is missed in node creation");typeof t.value!="string"&&(t.value=String(t.value)),t=[new nl(t)]}else if(t.selector)t=[new is(t)];else if(t.name)t=[new os(t)];else if(t.text)t=[new il(t)];else throw new Error("Unknown node type in node creation");var v=t.map(function(d){return d[rl]||i.rebuild(d),d=d.proxyOf,d.parent&&d.parent.removeChild(d),d[tl]&&ul(d),typeof d.raws.before=="undefined"&&n&&typeof n.raws.before!="undefined"&&(d.raws.before=n.raws.before.replace(/\S/g,"")),d.parent=s.proxyOf,d});return v},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];n=n.reverse();for(var a=I(n),u;!(u=a()).done;){for(var f=u.value,l=this.normalize(f,this.first,"prepend").reverse(),c=I(l),h;!(h=c()).done;){var v=h.value;this.proxyOf.nodes.unshift(v)}for(var d in this.indexes)this.indexes[d]=this.indexes[d]+l.length}return this.markDirty(),this},o.push=function(t){return t.parent=this,this.proxyOf.nodes.push(t),this},o.removeAll=function(){for(var t=I(this.proxyOf.nodes),n;!(n=t()).done;){var s=n.value;s.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},o.removeChild=function(t){t=this.index(t),this.proxyOf.nodes[t].parent=void 0,this.proxyOf.nodes.splice(t,1);var n;for(var s in this.indexes)n=this.indexes[s],n>=t&&(this.indexes[s]=n-1);return this.markDirty(),this},o.replaceValues=function(t,n,s){return s||(s=n,n={}),this.walkDecls(function(a){n.props&&!n.props.includes(a.prop)||n.fast&&!a.value.includes(n.fast)||(a.value=a.value.replace(t,s))}),this.markDirty(),this},o.some=function(t){return this.nodes.some(t)},o.walk=function(t){return this.each(function(n,s){var a;try{a=t(n,s)}catch(u){throw n.addToError(u)}return a!==!1&&n.walk&&(a=n.walk(t)),a})},o.walkAtRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="atrule"&&t.test(s.name))return n(s,a)}):this.walk(function(s,a){if(s.type==="atrule"&&s.name===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="atrule")return n(s,a)}))},o.walkComments=function(t){return this.walk(function(n,s){if(n.type==="comment")return t(n,s)})},o.walkDecls=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="decl"&&t.test(s.prop))return n(s,a)}):this.walk(function(s,a){if(s.type==="decl"&&s.prop===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="decl")return n(s,a)}))},o.walkRules=function(t,n){return n?A(t,RegExp)?this.walk(function(s,a){if(s.type==="rule"&&t.test(s.selector))return n(s,a)}):this.walk(function(s,a){if(s.type==="rule"&&s.selector===t)return n(s,a)}):(n=t,this.walk(function(s,a){if(s.type==="rule")return n(s,a)}))},Z(i,[{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]}}]),i})(Ug);Be.registerParse=function(r){ol=r},Be.registerRule=function(r){is=r},Be.registerAtRule=function(r){os=r},Be.registerRoot=function(r){sl=r};var st=Be;Be.default=Be,Be.rebuild=function(r){r.type==="atrule"?Object.setPrototypeOf(r,os.prototype):r.type==="rule"?Object.setPrototypeOf(r,is.prototype):r.type==="decl"?Object.setPrototypeOf(r,nl.prototype):r.type==="comment"?Object.setPrototypeOf(r,il.prototype):r.type==="root"&&Object.setPrototypeOf(r,sl.prototype),r[rl]=!0,r.nodes&&r.nodes.forEach(function(i){Be.rebuild(i)})};var zg=st,fl,ll,vr=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,T({type:"document"},e))||this,t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.toResult=function(t){t===void 0&&(t={});var n=new fl(new ll,this,t);return n.stringify()},i})(zg);vr.registerLazyResult=function(r){fl=r},vr.registerProcessor=function(r){ll=r};var ss=vr;vr.default=vr;var cl={},hl=function(i){cl[i]||(cl[i]=!0,typeof console!="undefined"&&console.warn&&console.warn(i))},as=(function(){function r(o,e){if(e===void 0&&(e={}),this.type="warning",this.text=o,e.node&&e.node.source){var t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(var n in e)this[n]=e[n]}var i=r.prototype;return i.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},r})(),pl=as;as.default=as;var Wg=pl,us=(function(){function r(o,e,t){this.processor=o,this.messages=[],this.root=e,this.opts=t,this.css=void 0,this.map=void 0}var i=r.prototype;return i.toString=function(){return this.css},i.warn=function(e,t){t===void 0&&(t={}),t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new Wg(e,t);return this.messages.push(n),n},i.warnings=function(){return this.messages.filter(function(e){return e.type==="warning"})},Z(r,[{key:"content",get:function(){return this.css}}]),r})(),fs=us;us.default=us;var ls=39,dl=34,Yn=92,vl=47,Jn=10,mr=32,Zn=12,Kn=9,Xn=13,jg=91,Gg=93,qg=40,Vg=41,Hg=123,Yg=125,Jg=59,Zg=42,Kg=58,Xg=64,Qn=/[\t\n\f\r "#'()/;[\\\]{}]/g,ei=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qg=/.[\r\n"'(/\\]/,ml=/[\da-f]/i,ey=function(i,o){o===void 0&&(o={});var e=i.css.valueOf(),t=o.ignoreErrors,n,s,a,u,f,l,c,h,v,d,m=e.length,p=0,g=[],w=[];function b(){return p}function S(R){throw i.error("Unclosed "+R,p)}function C(){return w.length===0&&p>=m}function x(R){if(w.length)return w.pop();if(!(p>=m)){var k=R?R.ignoreUnclosed:!1;switch(n=e.charCodeAt(p),n){case Jn:case mr:case Kn:case Xn:case Zn:{s=p;do s+=1,n=e.charCodeAt(s);while(n===mr||n===Jn||n===Kn||n===Xn||n===Zn);d=["space",e.slice(p,s)],p=s-1;break}case jg:case Gg:case Hg:case Yg:case Kg:case Jg:case Vg:{var N=String.fromCharCode(n);d=[N,N,p];break}case qg:{if(h=g.length?g.pop()[1]:"",v=e.charCodeAt(p+1),h==="url"&&v!==ls&&v!==dl&&v!==mr&&v!==Jn&&v!==Kn&&v!==Zn&&v!==Xn){s=p;do{if(l=!1,s=e.indexOf(")",s+1),s===-1)if(t||k){s=p;break}else S("bracket");for(c=s;e.charCodeAt(c-1)===Yn;)c-=1,l=!l}while(l);d=["brackets",e.slice(p,s+1),p,s],p=s}else s=e.indexOf(")",p+1),u=e.slice(p,s+1),s===-1||Qg.test(u)?d=["(","(",p]:(d=["brackets",u,p,s],p=s);break}case ls:case dl:{a=n===ls?"'":'"',s=p;do{if(l=!1,s=e.indexOf(a,s+1),s===-1)if(t||k){s=p+1;break}else S("string");for(c=s;e.charCodeAt(c-1)===Yn;)c-=1,l=!l}while(l);d=["string",e.slice(p,s+1),p,s],p=s;break}case Xg:{Qn.lastIndex=p+1,Qn.test(e),Qn.lastIndex===0?s=e.length-1:s=Qn.lastIndex-2,d=["at-word",e.slice(p,s+1),p,s],p=s;break}case Yn:{for(s=p,f=!0;e.charCodeAt(s+1)===Yn;)s+=1,f=!f;if(n=e.charCodeAt(s+1),f&&n!==vl&&n!==mr&&n!==Jn&&n!==Kn&&n!==Xn&&n!==Zn&&(s+=1,ml.test(e.charAt(s)))){for(;ml.test(e.charAt(s+1));)s+=1;e.charCodeAt(s+1)===mr&&(s+=1)}d=["word",e.slice(p,s+1),p,s],p=s;break}default:{n===vl&&e.charCodeAt(p+1)===Zg?(s=e.indexOf("*/",p+2)+1,s===0&&(t||k?s=e.length:S("comment")),d=["comment",e.slice(p,s+1),p,s],p=s):(ei.lastIndex=p+1,ei.test(e),ei.lastIndex===0?s=e.length-1:s=ei.lastIndex-2,d=["word",e.slice(p,s+1),p,s],g.push(d),p=s);break}}return p++,d}}function E(R){w.push(R)}return{back:E,endOfFile:C,nextToken:x,position:b}},gl=st,ti=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="atrule",t}var o=i.prototype;return o.append=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.append).call.apply(a,[].concat([this],n))},o.prepend=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];var a;return this.proxyOf.nodes||(this.nodes=[]),(a=r.prototype.prepend).call.apply(a,[].concat([this],n))},i})(gl),cs=ti;ti.default=ti,gl.registerAtRule(ti);var yl=st,wl,bl,_t=(function(r){ee(i,r);function i(e){var t;return t=r.call(this,e)||this,t.type="root",t.nodes||(t.nodes=[]),t}var o=i.prototype;return o.normalize=function(t,n,s){var a=r.prototype.normalize.call(this,t);if(n){if(s==="prepend")this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n)for(var u=I(a),f;!(f=u()).done;){var l=f.value;l.raws.before=n.raws.before}}return a},o.removeChild=function(t,n){var s=this.index(t);return!n&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),r.prototype.removeChild.call(this,t)},o.toResult=function(t){t===void 0&&(t={});var n=new wl(new bl,this,t);return n.stringify()},i})(yl);_t.registerLazyResult=function(r){wl=r},_t.registerProcessor=function(r){bl=r};var gr=_t;_t.default=_t,yl.registerRoot(_t);var yr={comma:function(i){return yr.split(i,[","],!0)},space:function(i){var o=[" ","\n"," "];return yr.split(i,o)},split:function(i,o,e){for(var t=[],n="",s=!1,a=0,u=!1,f="",l=!1,c=I(i),h;!(h=c()).done;){var v=h.value;l?l=!1:v==="\\"?l=!0:u?v===f&&(u=!1):v==='"'||v==="'"?(u=!0,f=v):v==="("?a+=1:v===")"?a>0&&(a-=1):a===0&&o.includes(v)&&(s=!0),s?(n!==""&&t.push(n.trim()),n="",s=!1):n+=v}return(e||n!=="")&&t.push(n.trim()),t}},Sl=yr;yr.default=yr;var Cl=st,ty=Sl,ri=(function(r){ee(i,r);function i(o){var e;return e=r.call(this,o)||this,e.type="rule",e.nodes||(e.nodes=[]),e}return Z(i,[{key:"selectors",get:function(){return ty.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),i})(Cl),hs=ri;ri.default=ri,Cl.registerRule(ri);var ry=zn,ny=ey,iy=Hn,oy=cs,sy=gr,Il=hs,Ol={empty:!0,space:!0};function ay(r){for(var i=r.length-1;i>=0;i--){var o=r[i],e=o[3]||o[2];if(e)return e}}var uy=(function(){function r(o){this.input=o,this.root=new sy,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:o,start:{column:1,line:1,offset:0}}}var i=r.prototype;return i.atrule=function(e){var t=new oy;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);for(var n,s,a,u=!1,f=!1,l=[],c=[];!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){f=!0;break}else if(n==="}"){if(l.length>0){for(a=l.length-1,s=l[a];s&&s[0]==="space";)s=l[--a];s&&(t.source.end=this.getPosition(s[3]||s[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){u=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),u&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),f&&(t.nodes=[],this.current=t)},i.checkMissedSemicolon=function(e){var t=this.colon(e);if(t!==!1){for(var n=0,s,a=t-1;a>=0&&(s=e[a],!(s[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",s[0]==="word"?s[3]+1:s[2])}},i.colon=function(e){for(var t=0,n,s,a,u=I(e.entries()),f;!(f=u()).done;){var l=f.value,c=l[0],h=l[1];if(n=h,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!a)this.doubleColon(n);else{if(a[0]==="word"&&a[1]==="progid")continue;return c}a=n}return!1},i.comment=function(e){var t=new iy;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var s=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=s[2],t.raws.left=s[1],t.raws.right=s[3]}},i.createTokenizer=function(){this.tokenizer=ny(this.input)},i.decl=function(e,t){var n=new ry;this.init(n,e[0][2]);var s=e[e.length-1];for(s[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||ay(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){var a=e[0][0];if(a===":"||a==="space"||a==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";for(var u;e.length;)if(u=e.shift(),u[0]===":"){n.raws.between+=u[1];break}else u[0]==="word"&&/\w/.test(u[1])&&this.unknownWord([u]),n.raws.between+=u[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));for(var f=[],l;e.length&&(l=e[0][0],!(l!=="space"&&l!=="comment"));)f.push(e.shift());this.precheckMissedSemicolon(e);for(var c=e.length-1;c>=0;c--){if(u=e[c],u[1].toLowerCase()==="!important"){n.important=!0;var h=this.stringFrom(e,c);h=this.spacesFromEnd(e)+h,h!==" !important"&&(n.raws.important=h);break}else if(u[1].toLowerCase()==="important"){for(var v=e.slice(0),d="",m=c;m>0;m--){var p=v[m][0];if(d.trim().indexOf("!")===0&&p!=="space")break;d=v.pop()[1]+d}d.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=d,e=v)}if(u[0]!=="space"&&u[0]!=="comment")break}var g=e.some(function(w){return w[0]!=="space"&&w[0]!=="comment"});g&&(n.raws.between+=f.map(function(w){return w[1]}).join(""),f=[]),this.raw(n,"value",f.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)},i.doubleColon=function(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})},i.emptyRule=function(e){var t=new Il;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t},i.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)},i.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())},i.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},i.getPosition=function(e){var t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}},i.init=function(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)},i.other=function(e){for(var t=!1,n=null,s=!1,a=null,u=[],f=e[1].startsWith("--"),l=[],c=e;c;){if(n=c[0],l.push(c),n==="("||n==="[")a||(a=c),u.push(n==="("?")":"]");else if(f&&s&&n==="{")a||(a=c),u.push("}");else if(u.length===0)if(n===";")if(s){this.decl(l,f);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(s=!0);else n===u[u.length-1]&&(u.pop(),u.length===0&&(a=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),u.length>0&&this.unclosedBracket(a),t&&s){if(!f)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,f)}else this.unknownWord(l)},i.parse=function(){for(var e;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()},i.precheckMissedSemicolon=function(){},i.raw=function(e,t,n,s){for(var a,u,f=n.length,l="",c=!0,h,v,d=0;d<f;d+=1)a=n[d],u=a[0],u==="space"&&d===f-1&&!s?c=!1:u==="comment"?(v=n[d-1]?n[d-1][0]:"empty",h=n[d+1]?n[d+1][0]:"empty",!Ol[v]&&!Ol[h]?l.slice(-1)===","?c=!1:l+=a[1]:c=!1):l+=a[1];if(!c){var m=n.reduce(function(p,g){return p+g[1]},"");e.raws[t]={raw:m,value:l}}e[t]=l},i.rule=function(e){e.pop();var t=new Il;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},i.spacesAndCommentsFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n},i.spacesAndCommentsFromStart=function(e){for(var t,n="";e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n},i.spacesFromEnd=function(e){for(var t,n="";e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n},i.stringFrom=function(e,t){for(var n="",s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n},i.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},i.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})},i.unexpectedClose=function(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})},i.unknownWord=function(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})},i.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})},r})(),fy=uy,ly=st,cy=fy,hy=Gn;function ni(r,i){var o=new hy(r,i),e=new cy(o);try{e.parse()}catch(t){throw process.env.NODE_ENV!=="production"&&t.name==="CssSyntaxError"&&i&&i.from&&(/\.scss$/i.test(i.from)?t.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(i.from)?t.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(i.from)&&(t.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),t}return e.root}var ps=ni;ni.default=ni,ly.registerParse(ni);var ke=Ze.isClean,py=Ze.my,dy=el,vy=Fn,my=st,gy=ss,yy=hl,xl=fs,wy=ps,by=gr,Sy={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Cy={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},Iy={Once:!0,postcssPlugin:!0,prepare:!0},Tt=0;function wr(r){return(typeof r=="undefined"?"undefined":$(r))==="object"&&typeof r.then=="function"}function Rl(r){var i=!1,o=Sy[r.type];return r.type==="decl"?i=r.prop.toLowerCase():r.type==="atrule"&&(i=r.name.toLowerCase()),i&&r.append?[o,o+"-"+i,Tt,o+"Exit",o+"Exit-"+i]:i?[o,o+"-"+i,o+"Exit",o+"Exit-"+i]:r.append?[o,Tt,o+"Exit"]:[o,o+"Exit"]}function El(r){var i;return r.type==="document"?i=["Document",Tt,"DocumentExit"]:r.type==="root"?i=["Root",Tt,"RootExit"]:i=Rl(r),{eventIndex:0,events:i,iterator:0,node:r,visitorIndex:0,visitors:[]}}function ds(r){return r[ke]=!1,r.nodes&&r.nodes.forEach(function(i){return ds(i)}),r}var vs={},Nt=(function(){function r(o,e,t){var n=this;this.stringified=!1,this.processed=!1;var s;if((typeof e=="undefined"?"undefined":$(e))==="object"&&e!==null&&(e.type==="root"||e.type==="document"))s=ds(e);else if(A(e,r)||A(e,xl))s=ds(e.root),e.map&&(typeof t.map=="undefined"&&(t.map={}),t.map.inline||(t.map.inline=!1),t.map.prev=e.map);else{var a=wy;t.syntax&&(a=t.syntax.parse),t.parser&&(a=t.parser),a.parse&&(a=a.parse);try{s=a(e,t)}catch(u){this.processed=!0,this.error=u}s&&!s[py]&&my.rebuild(s)}this.result=new xl(o,s,t),this.helpers=T({},vs,{postcss:vs,result:this.result}),this.plugins=this.processor.plugins.map(function(u){return(typeof u=="undefined"?"undefined":$(u))==="object"&&u.prepare?T({},u,u.prepare(n.result)):u})}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},i.handleError=function(e,t){var n=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){var s=n.postcssPlugin,a=n.postcssVersion,u=this.result.processor.version,f=a.split("."),l=u.split(".");(f[0]!==l[0]||parseInt(f[1])>parseInt(l[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+u+", but "+s+" uses "+a+". Perhaps this is the source of the error below.")}}catch(c){console&&console.error&&console.error(c)}return e},i.prepareVisitors=function(){var e=this;this.listeners={};for(var t=function(l,c,h){e.listeners[c]||(e.listeners[c]=[]),e.listeners[c].push([l,h])},n=I(this.plugins),s;!(s=n()).done;){var a=s.value;if((typeof a=="undefined"?"undefined":$(a))==="object")for(var u in a){if(!Cy[u]&&/^[A-Z]/.test(u))throw new Error("Unknown event "+u+" in "+a.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!Iy[u])if($(a[u])==="object")for(var f in a[u])f==="*"?t(a,u,a[u][f]):t(a,u+"-"+f.toLowerCase(),a[u][f]);else typeof a[u]=="function"&&t(a,u,a[u])}}this.hasListener=Object.keys(this.listeners).length>0},i.runAsync=function(){var e=this;return Pr(function(){var t,n,s,a,u,f,l,c,h,v,d,m;return tt(this,function(p){switch(p.label){case 0:e.plugin=0,t=0,p.label=1;case 1:if(!(t<e.plugins.length))return[3,6];if(n=e.plugins[t],s=e.runOnRoot(n),!wr(s))return[3,5];p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s];case 3:return p.sent(),[3,5];case 4:throw a=p.sent(),e.handleError(a);case 5:return t++,[3,1];case 6:if(e.prepareVisitors(),!e.hasListener)return[3,18];u=e.result.root,p.label=7;case 7:if(u[ke])return[3,14];u[ke]=!0,f=[El(u)],p.label=8;case 8:if(!(f.length>0))return[3,13];if(l=e.visitTick(f),!wr(l))return[3,12];p.label=9;case 9:return p.trys.push([9,11,,12]),[4,l];case 10:return p.sent(),[3,12];case 11:throw c=p.sent(),h=f[f.length-1].node,e.handleError(c,h);case 12:return[3,8];case 13:return[3,7];case 14:if(!e.listeners.OnceExit)return[3,18];v=function(){var g,w,b,S,C;return tt(this,function(x){switch(x.label){case 0:g=m.value,w=g[0],b=g[1],e.result.lastPlugin=w,x.label=1;case 1:return x.trys.push([1,6,,7]),u.type!=="document"?[3,3]:(S=u.nodes.map(function(E){return b(E,e.helpers)}),[4,Promise.all(S)]);case 2:return x.sent(),[3,5];case 3:return[4,b(u,e.helpers)];case 4:x.sent(),x.label=5;case 5:return[3,7];case 6:throw C=x.sent(),e.handleError(C);case 7:return[2]}})},d=I(e.listeners.OnceExit),p.label=15;case 15:return(m=d()).done?[3,18]:[5,wi(v())];case 16:p.sent(),p.label=17;case 17:return[3,15];case 18:return e.processed=!0,[2,e.stringify()]}})})()},i.runOnRoot=function(e){var t=this;this.result.lastPlugin=e;try{if((typeof e=="undefined"?"undefined":$(e))==="object"&&e.Once){if(this.result.root.type==="document"){var n=this.result.root.nodes.map(function(s){return e.Once(s,t.helpers)});return wr(n[0])?Promise.all(n):n}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(s){throw this.handleError(s)}},i.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=vy;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new dy(t,this.result.root,this.result.opts),s=n.generate();return this.result.css=s[0],this.result.map=s[1],this.result},i.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var e=I(this.plugins),t;!(t=e()).done;){var n=t.value,s=this.runOnRoot(n);if(wr(s))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var a=this.result.root;!a[ke];)a[ke]=!0,this.walkSync(a);if(this.listeners.OnceExit)if(a.type==="document")for(var u=I(a.nodes),f;!(f=u()).done;){var l=f.value;this.visitSync(this.listeners.OnceExit,l)}else this.visitSync(this.listeners.OnceExit,a)}return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||yy("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this.css},i.visitSync=function(e,t){for(var n=I(e),s;!(s=n()).done;){var a=s.value,u=a[0],f=a[1];this.result.lastPlugin=u;var l=void 0;try{l=f(t,this.helpers)}catch(c){throw this.handleError(c,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(wr(l))throw this.getAsyncError()}},i.visitTick=function(e){var t=e[e.length-1],n=t.node,s=t.visitors;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(s.length>0&&t.visitorIndex<s.length){var a=s[t.visitorIndex],u=a[0],f=a[1];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=u;try{return f(n.toProxy(),this.helpers)}catch(d){throw this.handleError(d,n)}}if(t.iterator!==0){for(var l=t.iterator,c;c=n.nodes[n.indexes[l]];)if(n.indexes[l]+=1,!c[ke]){c[ke]=!0,e.push(El(c));return}t.iterator=0,delete n.indexes[l]}for(var h=t.events;t.eventIndex<h.length;){var v=h[t.eventIndex];if(t.eventIndex+=1,v===Tt){n.nodes&&n.nodes.length&&(n[ke]=!0,t.iterator=n.getIterator());return}else if(this.listeners[v]){t.visitors=this.listeners[v];return}}e.pop()},i.walkSync=function(e){var t=this;e[ke]=!0;for(var n=Rl(e),s=I(n),a;!(a=s()).done;){var u=a.value;if(u===Tt)e.nodes&&e.each(function(l){l[ke]||t.walkSync(l)});else{var f=this.listeners[u];if(f&&this.visitSync(f,e.toProxy()))return}}},i.warnings=function(){return this.sync().warnings()},Z(r,[{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"}}]),r})();Nt.registerPostcss=function(r){vs=r};var Al=Nt;Nt.default=Nt,by.registerLazyResult(Nt),gy.registerLazyResult(Nt);var Oy=el,xy=Fn,Ry=hl,Ey=ps,Ay=fs,ms=(function(){function r(o,e,t){e=e.toString(),this.stringified=!1,this._processor=o,this._css=e,this._opts=t,this._map=void 0;var n,s=xy;this.result=new Ay(this._processor,n,this._opts),this.result.css=e;var a=this;Object.defineProperty(this.result,"root",{get:function(){return a.root}});var u=new Oy(s,n,this._opts,e);if(u.isMap()){var f=u.generate(),l=f[0],c=f[1];l&&(this.result.css=l),c&&(this.result.map=c)}else u.clearAnnotation(),this.result.css=u.css}var i=r.prototype;return i.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},i.catch=function(e){return this.async().catch(e)},i.finally=function(e){return this.async().then(e,e)},i.sync=function(){if(this.error)throw this.error;return this.result},i.then=function(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||Ry("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)},i.toString=function(){return this._css},i.warnings=function(){return[]},Z(r,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var e,t=Ey;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),r})(),My=ms;ms.default=ms;var $y=My,ky=Al,Py=ss,_y=gr,br=(function(){function r(o){o===void 0&&(o=[]),this.version="8.4.38",this.plugins=this.normalize(o)}var i=r.prototype;return i.normalize=function(e){for(var t=[],n=I(e),s;!(s=n()).done;){var a=s.value;if(a.postcss===!0?a=a():a.postcss&&(a=a.postcss),(typeof a=="undefined"?"undefined":$(a))==="object"&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if((typeof a=="undefined"?"undefined":$(a))==="object"&&a.postcssPlugin)t.push(a);else if(typeof a=="function")t.push(a);else if((typeof a=="undefined"?"undefined":$(a))==="object"&&(a.parse||a.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(a+" is not a PostCSS plugin")}return t},i.process=function(e,t){return t===void 0&&(t={}),!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new $y(this,e,t):new ky(this,e,t)},i.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},r})(),Ty=br;br.default=br,_y.registerProcessor(br),Py.registerProcessor(br);var Ny=zn,Ly=qf,Dy=Hn,Fy=cs,By=Gn,Uy=gr,zy=hs;function Sr(r,i){if(Array.isArray(r))return r.map(function(c){return Sr(c)});var o=r.inputs,e=et(r,["inputs"]);if(o){i=[];for(var t=I(o),n;!(n=t()).done;){var s=n.value,a=T({},s,{__proto__:By.prototype});a.map&&(a.map=T({},a.map,{__proto__:Ly.prototype})),i.push(a)}}if(e.nodes&&(e.nodes=r.nodes.map(function(c){return Sr(c,i)})),e.source){var u=e.source,f=u.inputId,l=et(u,["inputId"]);e.source=l,f!=null&&(e.source.input=i[f])}if(e.type==="root")return new Uy(e);if(e.type==="decl")return new Ny(e);if(e.type==="rule")return new zy(e);if(e.type==="comment")return new Dy(e);if(e.type==="atrule")return new Fy(e);throw new Error("Unknown node type: "+r.type)}var Wy=Sr;Sr.default=Sr;var jy=qo,Ml=zn,Gy=Al,qy=st,gs=Ty,Vy=Fn,Hy=Wy,$l=ss,Yy=pl,kl=Hn,Pl=cs,Jy=fs,Zy=Gn,Ky=ps,Xy=Sl,_l=hs,Tl=gr,Qy=Un;function H(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new gs(i)}H.plugin=function(i,o){var e=!1;function t(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];console&&console.warn&&!e&&(e=!0,console.warn(i+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(i+": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"));var f=o.apply(void 0,[].concat(a));return f.postcssPlugin=i,f.postcssVersion=new gs().version,f}var n;return Object.defineProperty(t,"postcss",{get:function(){return n||(n=t()),n}}),t.process=function(s,a,u){return H([t(u)]).process(s,a)},t},H.stringify=Vy,H.parse=Ky,H.fromJSON=Hy,H.list=Xy,H.comment=function(r){return new kl(r)},H.atRule=function(r){return new Pl(r)},H.decl=function(r){return new Ml(r)},H.rule=function(r){return new _l(r)},H.root=function(r){return new Tl(r)},H.document=function(r){return new $l(r)},H.CssSyntaxError=jy,H.Declaration=Ml,H.Container=qy,H.Processor=gs,H.Document=$l,H.Comment=kl,H.Warning=Yy,H.AtRule=Pl,H.Result=Jy,H.Input=Zy,H.Rule=_l,H.Root=Tl,H.Node=Qy,Gy.registerPostcss(H);var ew=H;H.default=H;var ne=cg(ew);ne.stringify,ne.fromJSON,ne.plugin,ne.parse,ne.list,ne.document,ne.comment,ne.atRule,ne.rule,ne.decl,ne.root,ne.CssSyntaxError,ne.Declaration,ne.Container,ne.Processor,ne.Document,ne.Comment,ne.Warning,ne.AtRule,ne.Result,ne.Input,ne.Rule,ne.Root,ne.Node;var tw=Object.defineProperty,rw=function(r,i,o){return i in r?tw(r,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[i]=o},ii=function(r,i,o){return rw(r,(typeof i=="undefined"?"undefined":$(i))!=="symbol"?i+"":i,o)};function nw(r,i,o){try{if(!(i in r))return function(){};var e=r[i],t=o(e);return typeof t=="function"&&(t.prototype=t.prototype||{},Object.defineProperties(t,{__rrweb_original__:{enumerable:!1,value:e}})),r[i]=t,function(){r[i]=e}}catch(n){return function(){}}}var Lt=(function(){function r(o){ii(this,"fileName"),ii(this,"functionName"),ii(this,"lineNumber"),ii(this,"columnNumber"),this.fileName=o.fileName||"",this.functionName=o.functionName||"",this.lineNumber=o.lineNumber,this.columnNumber=o.columnNumber}var i=r.prototype;return i.toString=function(){var e=this.lineNumber||"",t=this.columnNumber||"";return this.functionName?this.functionName+" ("+this.fileName+":"+e+":"+t+")":this.fileName+":"+e+":"+t},r})(),iw=/(^|@)\S+:\d+/,Nl=/^\s*at .*(\S+:\d+|\(native\))/m,ow=/^(eval@)?(\[native code])?$/,ys={parse:function(i){return i?typeof i.stacktrace!="undefined"||typeof i["opera#sourceloc"]!="undefined"?this.parseOpera(i):i.stack&&i.stack.match(Nl)?this.parseV8OrIE(i):i.stack?this.parseFFOrSafari(i):(console.warn("[console-record-plugin]: Failed to parse error object:",i),[]):[]},extractLocation:function(i){if(i.indexOf(":")===-1)return[i];var o=/(.+?)(?::(\d+))?(?::(\d+))?$/,e=o.exec(i.replace(/[()]/g,""));if(!e)throw new Error("Cannot parse given url: "+i);return[e[1],e[2]||void 0,e[3]||void 0]},parseV8OrIE:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(Nl)},this);return o.map(function(e){e.indexOf("(eval ")>-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var t=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=t.match(/ (\((.+):(\d+):(\d+)\)$)/);t=n?t.replace(n[0],""):t;var s=t.split(/\s+/).slice(1),a=this.extractLocation(n?n[1]:s.pop()),u=s.join(" ")||void 0,f=["eval","<anonymous>"].indexOf(a[0])>-1?void 0:a[0];return new Lt({functionName:u,fileName:f,lineNumber:a[1],columnNumber:a[2]})},this)},parseFFOrSafari:function(i){var o=i.stack.split("\n").filter(function(e){return!e.match(ow)},this);return o.map(function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),e.indexOf("@")===-1&&e.indexOf(":")===-1)return new Lt({functionName:e});var t=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=e.match(t),s=n&&n[1]?n[1]:void 0,a=this.extractLocation(e.replace(t,""));return new Lt({functionName:s,fileName:a[0],lineNumber:a[1],columnNumber:a[2]})},this)},parseOpera:function(i){return!i.stacktrace||i.message.indexOf("\n")>-1&&i.message.split("\n").length>i.stacktrace.split("\n").length?this.parseOpera9(i):i.stack?this.parseOpera11(i):this.parseOpera10(i)},parseOpera9:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)/i,e=i.message.split("\n"),t=[],n=2,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Lt({fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera10:function(i){for(var o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,e=i.stacktrace.split("\n"),t=[],n=0,s=e.length;n<s;n+=2){var a=o.exec(e[n]);a&&t.push(new Lt({functionName:a[3]||void 0,fileName:a[2],lineNumber:parseFloat(a[1])}))}return t},parseOpera11:function(i){var o=i.stack.split("\n").filter(function(e){return!!e.match(iw)&&!e.match(/^Error created at/)},this);return o.map(function(e){var t=e.split("@"),n=this.extractLocation(t.pop()),s=t.shift()||"",a=s.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;return new Lt({functionName:a,fileName:n[0],lineNumber:n[1],columnNumber:n[2]})},this)}};function sw(r){if(!r||!r.outerHTML)return"";for(var i="";r.parentElement;){var o=r.localName;if(!o)break;o=o.toLowerCase();var e=r.parentElement,t=[];if(e.children&&e.children.length>0)for(var n=0;n<e.children.length;n++){var s=e.children[n];s.localName&&s.localName.toLowerCase&&s.localName.toLowerCase()===o&&t.push(s)}t.length>1&&(o+=":eq("+t.indexOf(r)+")"),i=o+(i?">"+i:""),r=e}return i}function ws(r){return Object.prototype.toString.call(r)==="[object Object]"}function Ll(r,i){if(i===0)return!0;for(var o=Object.keys(r),e=I(o),t;!(t=e()).done;){var n=t.value;if(ws(r[n])&&Ll(r[n],i-1))return!0}return!1}function Dt(r,i){var o={numOfKeysLimit:50,depthOfLimit:4};Object.assign(o,i);var e=[],t=[];return JSON.stringify(r,function(a,u){if(e.length>0){var f=e.indexOf(this);~f?e.splice(f+1):e.push(this),~f?t.splice(f,1/0,a):t.push(a),~e.indexOf(u)&&(e[0]===u?u="[Circular ~]":u="[Circular ~."+t.slice(0,e.indexOf(u)).join(".")+"]")}else e.push(u);if(u===null)return u;if(u===void 0)return"undefined";if(n(u))return s(u);if((typeof u=="undefined"?"undefined":$(u))==="bigint")return u.toString()+"n";if(A(u,Event)){var l={};for(var c in u){var h=u[c];Array.isArray(h)?l[c]=sw(h.length?h[0]:null):l[c]=h}return l}else{if(A(u,Node))return A(u,HTMLElement)?u?u.outerHTML:"":u.nodeName;if(A(u,Error))return u.stack?u.stack+"\nEnd of stack for Error object":u.name+": "+u.message}return u});function n(a){return!!(ws(a)&&Object.keys(a).length>o.numOfKeysLimit||typeof a=="function"||ws(a)&&Ll(a,o.depthOfLimit))}function s(a){var u=a.toString();return o.stringLengthLimit&&u.length>o.stringLengthLimit&&(u=""+u.slice(0,o.stringLengthLimit)+"..."),u}}var Dl={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 aw(r,i,o){var e=o?Object.assign({},Dl,o):Dl,t=e.logger;if(!t)return function(){};var n;typeof t=="string"?n=i[t]:n=t;var s=0,a=!1,u=[];if(e.level.includes("error")){var f=function(m){var p=m.message,g=m.error,w=ys.parse(g).map(function(S){return S.toString()}),b=[Dt(p,e.stringifyOptions)];r({level:"error",trace:w,payload:b})};i.addEventListener("error",f),u.push(function(){i.removeEventListener("error",f)});var l=function(m){var p,g;A(m.reason,Error)?(p=m.reason,g=[Dt("Uncaught (in promise) "+p.name+": "+p.message,e.stringifyOptions)]):(p=new Error,g=[Dt("Uncaught (in promise)",e.stringifyOptions),Dt(m.reason,e.stringifyOptions)]);var w=ys.parse(p).map(function(b){return b.toString()});r({level:"error",trace:w,payload:g})};i.addEventListener("unhandledrejection",l),u.push(function(){i.removeEventListener("unhandledrejection",l)})}for(var c=I(e.level),h;!(h=c()).done;){var v=h.value;u.push(d(n,v))}return function(){u.forEach(function(m){return m()})};function d(m,p){var g=this;return m[p]?nw(m,p,function(w){var b=g;return function(){for(var S=arguments.length,C=new Array(S),x=0;x<S;x++)C[x]=arguments[x];if(w.apply(b,C),!(p==="assert"&&C[0])&&!a){a=!0;try{var E=ys.parse(new Error).map(function(N){return N.toString()}).splice(1),R=p==="assert"?C.slice(1):C,k=R.map(function(N){return Dt(N,e.stringifyOptions)});s++,s<e.lengthThreshold?r({level:p,trace:E,payload:k}):s===e.lengthThreshold&&r({level:"warn",trace:[],payload:[Dt("The number of log records reached the threshold.")]})}catch(N){w.apply(void 0,[].concat(["rrweb logger error:",N],C))}finally{a=!1}}}}):function(){}}}var uw="rrweb/console@1",fw=function(r){return{name:uw,observer:aw,options:r}},Fl=W.setImmediate,Ke,bs,Ss,Bl=Object.prototype.toString,lw=typeof Fl!="undefined"?function(i){return Fl(i)}:setTimeout;try{Object.defineProperty({},"x",{}),Ke=function(i,o,e,t){return Object.defineProperty(i,o,{value:e,writable:!0,configurable:t!==!1})}}catch(r){Ke=function(o,e,t){return o[e]=t,o}}Ss=(function(){var i,o,e;function t(n,s){this.fn=n,this.self=s,this.next=void 0}return{add:function(s,a){e=new t(s,a),o?o.next=e:i=e,o=e,e=void 0},drain:function(){var s=i;for(i=o=bs=void 0;s;)s.fn.call(s.self),s=s.next}}})();function oi(r,i){Ss.add(r,i),bs||(bs=lw(Ss.drain))}function Ul(r){var i,o=typeof r;return r!==null&&(o==="object"||o==="function")&&(i=r.then),typeof i=="function"?i:!1}function Cs(){for(var r=0;r<this.chain.length;r++)cw(this,this.state===1?this.chain[r].success:this.chain[r].failure,this.chain[r]);this.chain.length=0}function cw(r,i,o){var e,t;try{i===!1?o.reject(r.msg):(i===!0?e=r.msg:e=i.call(void 0,r.msg),e===o.promise?o.reject(TypeError("Promise-chain cycle")):(t=Ul(e))?t.call(e,o.resolve,o.reject):o.resolve(e))}catch(n){o.reject(n)}}function zl(r){var i,o=this;if(!o.triggered){o.triggered=!0,o.def&&(o=o.def);try{(i=Ul(r))?oi(function(){var e=new jl(o);try{i.call(r,function(){zl.apply(e,arguments)},function(){Cr.apply(e,arguments)})}catch(t){Cr.call(e,t)}}):(o.msg=r,o.state=1,o.chain.length>0&&oi(Cs,o))}catch(e){Cr.call(new jl(o),e)}}}function Cr(r){var i=this;i.triggered||(i.triggered=!0,i.def&&(i=i.def),i.msg=r,i.state=2,i.chain.length>0&&oi(Cs,i))}function Wl(r,i,o,e){for(var t=0;t<i.length;t++)(function(s){r.resolve(i[s]).then(function(u){o(s,u)},e)})(t)}function jl(r){this.def=r,this.triggered=!1}function hw(r){this.promise=r,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function Xe(r){if(typeof r!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var i=new hw(this);this.then=function(e,t){var n={success:typeof e=="function"?e:!0,failure:typeof t=="function"?t:!1};return n.promise=new this.constructor(function(a,u){if(typeof a!="function"||typeof u!="function")throw TypeError("Not a function");n.resolve=a,n.reject=u}),i.chain.push(n),i.state!==0&&oi(Cs,i),n.promise},this.catch=function(e){return this.then(void 0,e)};try{r.call(void 0,function(e){zl.call(i,e)},function(e){Cr.call(i,e)})}catch(o){Cr.call(i,o)}}var Gl=Ke({},"constructor",Xe,!1);Xe.prototype=Gl,Ke(Gl,"__NPO__",0,!1),Ke(Xe,"resolve",function(i){var o=this;return i&&typeof i=="object"&&i.__NPO__===1?i:new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"reject",function(i){return new this(function(e,t){if(typeof e!="function"||typeof t!="function")throw TypeError("Not a function");t(i)})}),Ke(Xe,"all",function(i){var o=this;return Bl.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):i.length===0?o.resolve([]):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");var s=i.length,a=Array(s),u=0;Wl(o,i,function(l,c){a[l]=c,++u===s&&t(a)},n)})}),Ke(Xe,"race",function(i){var o=this;return Bl.call(i)!=="[object Array]"?o.reject(TypeError("Not an array")):new o(function(t,n){if(typeof t!="function"||typeof n!="function")throw TypeError("Not a function");Wl(o,i,function(a,u){t(u)},n)})});var B;typeof Promise!="undefined"&&Promise.toString().indexOf("[native code]")!==-1?B=Promise:B=Xe;var si=1440*60*1e3,Is=8*1e3,ai=Array.prototype,pw=Function.prototype,ql=Object.prototype,at=ai.slice,Ir=ql.toString,ui=ql.hasOwnProperty,Or=W.console,Ft=W.navigator,Se=W.document,xr=W.opera,Vl=W.screen,ut=Ft.userAgent,Os=pw.bind,Hl=ai.forEach,Yl=ai.indexOf,Jl=ai.map,dw=Array.isArray,xs={},y={trim:function(r){return r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Re={log:function(){},warn:function(){},error:function(){},critical:function(){if(!y.isUndefined(Or)&&Or){var r=["Mixpanel error:"].concat(y.toArray(arguments));try{Or.error.apply(Or,r)}catch(i){y.each(r,function(o){Or.error(o)})}}}},Rs=function(r,i){return function(){return arguments[0]="["+i+"] "+arguments[0],r.apply(Re,arguments)}},ft=function(r){return{log:Rs(Re.log,r),error:Rs(Re.error,r),critical:Rs(Re.critical,r)}};y.bind=function(r,i){var o,e;if(Os&&r.bind===Os)return Os.apply(r,at.call(arguments,1));if(!y.isFunction(r))throw new TypeError;return o=at.call(arguments,2),e=function(){if(!(this instanceof e))return r.apply(i,o.concat(at.call(arguments)));var t={};t.prototype=r.prototype;var n=new t;t.prototype=null;var s=r.apply(n,o.concat(at.call(arguments)));return Object(s)===s?s:n},e},y.each=function(r,i,o){if(r!=null){if(Hl&&r.forEach===Hl)r.forEach(i,o);else if(r.length===+r.length){for(var e=0,t=r.length;e<t;e++)if(e in r&&i.call(o,r[e],e,r)===xs)return}else for(var n in r)if(ui.call(r,n)&&i.call(o,r[n],n,r)===xs)return}},y.extend=function(r){return y.each(at.call(arguments,1),function(i){for(var o in i)i[o]!==void 0&&(r[o]=i[o])}),r},y.isArray=dw||function(r){return Ir.call(r)==="[object Array]"},y.isFunction=function(r){return typeof r=="function"},y.isArguments=function(r){return!!(r&&ui.call(r,"callee"))},y.toArray=function(r){return r?r.toArray?r.toArray():y.isArray(r)||y.isArguments(r)?at.call(r):y.values(r):[]},y.map=function(r,i,o){if(Jl&&r.map===Jl)return r.map(i,o);var e=[];return y.each(r,function(t){e.push(i.call(o,t))}),e},y.keys=function(r){var i=[];return r===null||y.each(r,function(o,e){i[i.length]=e}),i},y.values=function(r){var i=[];return r===null||y.each(r,function(o){i[i.length]=o}),i},y.include=function(r,i){var o=!1;return r===null?o:Yl&&r.indexOf===Yl?r.indexOf(i)!=-1:(y.each(r,function(e){if(o||(o=e===i))return xs}),o)},y.includes=function(r,i){return r.indexOf(i)!==-1},y.inherit=function(r,i){return r.prototype=new i,r.prototype.constructor=r,r.superclass=i.prototype,r},y.isObject=function(r){return r===Object(r)&&!y.isArray(r)},y.isEmptyObject=function(r){if(y.isObject(r)){for(var i in r)if(ui.call(r,i))return!1;return!0}return!1},y.isUndefined=function(r){return r===void 0},y.isString=function(r){return Ir.call(r)=="[object String]"},y.isDate=function(r){return Ir.call(r)=="[object Date]"},y.isNumber=function(r){return Ir.call(r)=="[object Number]"},y.isElement=function(r){return!!(r&&r.nodeType===1)},y.encodeDates=function(r){return y.each(r,function(i,o){y.isDate(i)?r[o]=y.formatDate(i):y.isObject(i)&&(r[o]=y.encodeDates(i))}),r},y.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},y.formatDate=function(r){function i(o){return o<10?"0"+o:o}return r.getUTCFullYear()+"-"+i(r.getUTCMonth()+1)+"-"+i(r.getUTCDate())+"T"+i(r.getUTCHours())+":"+i(r.getUTCMinutes())+":"+i(r.getUTCSeconds())},y.strip_empty_properties=function(r){var i={};return y.each(r,function(o,e){y.isString(o)&&o.length>0&&(i[e]=o)}),i},y.truncate=function(r,i){var o;return typeof r=="string"?o=r.slice(0,i):y.isArray(r)?(o=[],y.each(r,function(e){o.push(y.truncate(e,i))})):y.isObject(r)?(o={},y.each(r,function(e,t){o[t]=y.truncate(e,i)})):o=r,o},y.JSONEncode=(function(){return function(r){var i=r,o=function(t){var n=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return n.lastIndex=0,n.test(t)?'"'+t.replace(n,function(a){var u=s[a];return typeof u=="string"?u:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'},e=function(t,n){var s="",a=" ",u=0,f="",l="",c=0,h=s,v=[],d=n[t];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(t)),typeof d){case"string":return o(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(s+=a,v=[],Ir.apply(d)==="[object Array]"){for(c=d.length,u=0;u<c;u+=1)v[u]=e(u,d)||"null";return l=v.length===0?"[]":s?"[\n"+s+v.join(",\n"+s)+"\n"+h+"]":"["+v.join(",")+"]",s=h,l}for(f in d)ui.call(d,f)&&(l=e(f,d),l&&v.push(o(f)+(s?": ":":")+l));return l=v.length===0?"{}":s?"{"+v.join(",")+h+"}":"{"+v.join(",")+"}",s=h,l}};return e("",{"":i})}})(),y.JSONDecode=(function(){var r,i,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:" "},e,t=function(v){var d=new SyntaxError(v);throw d.at=r,d.text=e,d},n=function(v){return v&&v!==i&&t("Expected '"+v+"' instead of '"+i+"'"),i=e.charAt(r),r+=1,i},s=function(){var v,d="";for(i==="-"&&(d="-",n("-"));i>="0"&&i<="9";)d+=i,n();if(i===".")for(d+=".";n()&&i>="0"&&i<="9";)d+=i;if(i==="e"||i==="E")for(d+=i,n(),(i==="-"||i==="+")&&(d+=i,n());i>="0"&&i<="9";)d+=i,n();if(v=+d,!isFinite(v))t("Bad number");else return v},a=function(){var v,d,m="",p;if(i==='"')for(;n();){if(i==='"')return n(),m;if(i==="\\")if(n(),i==="u"){for(p=0,d=0;d<4&&(v=parseInt(n(),16),!!isFinite(v));d+=1)p=p*16+v;m+=String.fromCharCode(p)}else if(typeof o[i]=="string")m+=o[i];else break;else m+=i}t("Bad string")},u=function(){for(;i&&i<=" ";)n()},f=function(){switch(i){case"t":return n("t"),n("r"),n("u"),n("e"),!0;case"f":return n("f"),n("a"),n("l"),n("s"),n("e"),!1;case"n":return n("n"),n("u"),n("l"),n("l"),null}t('Unexpected "'+i+'"')},l,c=function(){var v=[];if(i==="["){if(n("["),u(),i==="]")return n("]"),v;for(;i;){if(v.push(l()),u(),i==="]")return n("]"),v;n(","),u()}}t("Bad array")},h=function(){var v,d={};if(i==="{"){if(n("{"),u(),i==="}")return n("}"),d;for(;i;){if(v=a(),u(),n(":"),Object.hasOwnProperty.call(d,v)&&t('Duplicate key "'+v+'"'),d[v]=l(),u(),i==="}")return n("}"),d;n(","),u()}}t("Bad object")};return l=function(){switch(u(),i){case"{":return h();case"[":return c();case'"':return a();case"-":return s();default:return i>="0"&&i<="9"?s():f()}},function(v){var d;return e=v,r=0,i=" ",d=l(),u(),i&&t("Syntax error"),d}})(),y.base64Encode=function(r){var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o,e,t,n,s,a,u,f,l=0,c=0,h="",v=[];if(!r)return r;r=y.utf8Encode(r);do o=r.charCodeAt(l++),e=r.charCodeAt(l++),t=r.charCodeAt(l++),f=o<<16|e<<8|t,n=f>>18&63,s=f>>12&63,a=f>>6&63,u=f&63,v[c++]=i.charAt(n)+i.charAt(s)+i.charAt(a)+i.charAt(u);while(l<r.length);switch(h=v.join(""),r.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"=";break}return h},y.utf8Encode=function(r){r=(r+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n");var i="",o,e,t=0,n;for(o=e=0,t=r.length,n=0;n<t;n++){var s=r.charCodeAt(n),a=null;s<128?e++:s>127&&s<2048?a=String.fromCharCode(s>>6|192,s&63|128):a=String.fromCharCode(s>>12|224,s>>6&63|128,s&63|128),a!==null&&(e>o&&(i+=r.substring(o,e)),i+=a,o=e=n+1)}return e>o&&(i+=r.substring(o,r.length)),i},y.UUID=function(){try{return W.crypto.randomUUID()}catch(o){for(var r=new Array(36),i=0;i<36;i++)r[i]=Math.floor(Math.random()*16);return r[14]=4,r[19]=r[19]&=-5,r[19]=r[19]|=8,r[8]=r[13]=r[18]=r[23]="-",y.map(r,function(e){return e.toString(16)}).join("")}};var Zl=["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"];y.isBlockedUA=function(r){var i;for(r=r.toLowerCase(),i=0;i<Zl.length;i++)if(r.indexOf(Zl[i])!==-1)return!0;return!1},y.HTTPBuildQuery=function(r,i){var o,e,t=[];return y.isUndefined(i)&&(i="&"),y.each(r,function(n,s){o=encodeURIComponent(n.toString()),e=encodeURIComponent(s),t[t.length]=e+"="+o}),t.join(i)},y.getQueryParam=function(r,i){i=i.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var o="[\\?&]"+i+"=([^&#]*)",e=new RegExp(o),t=e.exec(r);if(t===null||t&&typeof t[1]!="string"&&t[1].length)return"";var n=t[1];try{n=decodeURIComponent(n)}catch(s){Re.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},y.cookie={get:function(r){for(var i=r+"=",o=Se.cookie.split(";"),e=0;e<o.length;e++){for(var t=o[e];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(i)===0)return decodeURIComponent(t.substring(i.length,t.length))}return null},parse:function(r){var i;try{i=y.JSONDecode(y.cookie.get(r))||{}}catch(o){}return i},set_seconds:function(r,i,o,e,t,n,s){var a="",u="",f="";if(s)a="; domain="+s;else if(e){var l=tc(Se.location.hostname);a=l?"; domain=."+l:""}if(o){var c=new Date;c.setTime(c.getTime()+o*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,f="; SameSite=None"),t&&(f+="; secure"),Se.cookie=r+"="+encodeURIComponent(i)+u+"; path=/"+a+f},set:function(r,i,o,e,t,n,s){var a="",u="",f="";if(s)a="; domain="+s;else if(e){var l=tc(Se.location.hostname);a=l?"; domain=."+l:""}if(o){var c=new Date;c.setTime(c.getTime()+o*24*60*60*1e3),u="; expires="+c.toGMTString()}n&&(t=!0,f="; SameSite=None"),t&&(f+="; secure");var h=r+"="+encodeURIComponent(i)+u+"; path=/"+a+f;return Se.cookie=h,h},remove:function(r,i,o){y.cookie.set(r,"",-1,i,!1,!1,o)}};var Kl=function(r){var i=!0;try{var o="__mplss_"+Ms(8),e="xyz";r.setItem(o,e),r.getItem(o)!==e&&(i=!1),r.removeItem(o)}catch(t){i=!1}return i},Es=null,Rr=function(r,i){return Es!==null&&!i?Es:Es=Kl(r||W.localStorage)},As=null,vw=function(r,i){return As!==null&&!i?As:As=Kl(r||W.sessionStorage)};function Xl(r,i,o){var e=function(t){Re.error(i+" error: "+t)};return{is_supported:function(t){var n=o(r,t);return n||Re.error(i+" unsupported"),n},error:e,get:function(t){try{return r.getItem(t)}catch(n){e(n)}return null},parse:function(t){try{return y.JSONDecode(r.getItem(t))||{}}catch(n){}return null},set:function(t,n){try{r.setItem(t,n)}catch(s){e(s)}},remove:function(t){try{r.removeItem(t)}catch(n){e(n)}}}}var Ql=null,ec=null;try{Ql=W.localStorage,ec=W.sessionStorage}catch(r){}y.localStorage=Xl(Ql,"localStorage",Rr),y.sessionStorage=Xl(ec,"sessionStorage",vw),y.register_event=(function(){var r=function(e,t,n,s,a){if(!e){Re.error("No valid element provided to register_event");return}if(e.addEventListener&&!s)e.addEventListener(t,n,!!a);else{var u="on"+t,f=e[u];e[u]=i(e,n,f)}};function i(e,t,n){var s=function(a){if(a=a||o(W.event),!!a){var u=!0,f,l;return y.isFunction(n)&&(f=n(a)),l=t.call(e,a),(f===!1||l===!1)&&(u=!1),u}};return s}function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation),e}return o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},r})();var mw=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');y.dom_query=(function(){function r(t){return t.all?t.all:t.getElementsByTagName("*")}var i=/[\t\r\n]/g;function o(t,n){var s=" "+n+" ";return(" "+t.className+" ").replace(i," ").indexOf(s)>=0}function e(t){if(!Se.getElementsByTagName)return[];var n=t.split(" "),s,a,u,f,l,c,h,v,d,m,p=[Se];for(c=0;c<n.length;c++){if(s=n[c].replace(/^\s+/,"").replace(/\s+$/,""),s.indexOf("#")>-1){a=s.split("#"),u=a[0];var g=a[1],w=Se.getElementById(g);if(!w||u&&w.nodeName.toLowerCase()!=u)return[];p=[w];continue}if(s.indexOf(".")>-1){a=s.split("."),u=a[0];var b=a[1];for(u||(u="*"),f=[],l=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)f[l++]=d[v];for(p=[],m=0,h=0;h<f.length;h++)f[h].className&&y.isString(f[h].className)&&o(f[h],b)&&(p[m++]=f[h]);continue}var S=s.match(mw);if(S){u=S[1];var C=S[2],x=S[3],E=S[4];for(u||(u="*"),f=[],l=0,h=0;h<p.length;h++)for(u=="*"?d=r(p[h]):d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)f[l++]=d[v];p=[],m=0;var R;switch(x){case"=":R=function(k){return k.getAttribute(C)==E};break;case"~":R=function(k){return k.getAttribute(C).match(new RegExp("\\b"+E+"\\b"))};break;case"|":R=function(k){return k.getAttribute(C).match(new RegExp("^"+E+"-?"))};break;case"^":R=function(k){return k.getAttribute(C).indexOf(E)===0};break;case"$":R=function(k){return k.getAttribute(C).lastIndexOf(E)==k.getAttribute(C).length-E.length};break;case"*":R=function(k){return k.getAttribute(C).indexOf(E)>-1};break;default:R=function(k){return k.getAttribute(C)}}for(p=[],m=0,h=0;h<f.length;h++)R(f[h])&&(p[m++]=f[h]);continue}for(u=s,f=[],l=0,h=0;h<p.length;h++)for(d=p[h].getElementsByTagName(u),v=0;v<d.length;v++)f[l++]=d[v];p=f}return p}return function(t){return y.isElement(t)?[t]:y.isObject(t)&&!y.isUndefined(t.length)?t:e.call(this,t)}})();var gw=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],yw=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];y.info={campaignParams:function(r){var i="",o={};return y.each(gw,function(e){i=y.getQueryParam(Se.URL,e),i.length?o[e]=i:r!==void 0&&(o[e]=r)}),o},clickParams:function(){var r="",i={};return y.each(yw,function(o){r=y.getQueryParam(Se.URL,o),r.length&&(i[o]=r)}),i},marketingParams:function(){return y.extend(y.info.campaignParams(),y.info.clickParams())},searchEngine:function(r){return r.search("https?://(.*)google.([^/?]*)")===0?"google":r.search("https?://(.*)bing.com")===0?"bing":r.search("https?://(.*)yahoo.com")===0?"yahoo":r.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(r){var i=y.info.searchEngine(r),o=i!="yahoo"?"q":"p",e={};if(i!==null){e.$search_engine=i;var t=y.getQueryParam(r,o);t.length&&(e.mp_keyword=t)}return e},browser:function(r,i,o){return i=i||"",o||y.includes(r," OPR/")?y.includes(r,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":y.includes(r,"IEMobile")||y.includes(r,"WPDesktop")?"Internet Explorer Mobile":y.includes(r,"SamsungBrowser/")?"Samsung Internet":y.includes(r,"Edge")||y.includes(r,"Edg/")?"Microsoft Edge":y.includes(r,"FBIOS")?"Facebook Mobile":y.includes(r,"Whale/")?"Whale Browser":y.includes(r,"Chrome")?"Chrome":y.includes(r,"CriOS")?"Chrome iOS":y.includes(r,"UCWEB")||y.includes(r,"UCBrowser")?"UC Browser":y.includes(r,"FxiOS")?"Firefox iOS":y.includes(i,"Apple")?y.includes(r,"Mobile")?"Mobile Safari":"Safari":y.includes(r,"Android")?"Android Mobile":y.includes(r,"Konqueror")?"Konqueror":y.includes(r,"Firefox")?"Firefox":y.includes(r,"MSIE")||y.includes(r,"Trident/")?"Internet Explorer":y.includes(r,"Gecko")?"Mozilla":""},browserVersion:function(r,i,o){var e=y.info.browser(r,i,o),t={"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+)?)/},n=t[e];if(n===void 0)return null;var s=r.match(n);return s?parseFloat(s[s.length-2]):null},os:function(){var r=ut;return/Windows/i.test(r)?/Phone/.test(r)||/WPDesktop/.test(r)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(r)?"iOS":/Android/.test(r)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Mac/i.test(r)?"Mac OS X":/Linux/.test(r)?"Linux":/CrOS/.test(r)?"Chrome OS":""},device:function(r){return/Windows Phone/i.test(r)||/WPDesktop/.test(r)?"Windows Phone":/iPad/.test(r)?"iPad":/iPod/.test(r)?"iPod Touch":/iPhone/.test(r)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(r)?"BlackBerry":/Android/.test(r)?"Android":""},referringDomain:function(r){var i=r.split("/");return i.length>=3?i[2]:""},currentUrl:function(){return W.location.href},properties:function(r){return typeof r!="object"&&(r={}),y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ut,Ft.vendor,xr),$referrer:Se.referrer,$referring_domain:y.info.referringDomain(Se.referrer),$device:y.info.device(ut)}),{$current_url:y.info.currentUrl(),$browser_version:y.info.browserVersion(ut,Ft.vendor,xr),$screen_height:Vl.height,$screen_width:Vl.width,mp_lib:"web",$lib_version:gi.LIB_VERSION,$insert_id:Ms(),time:y.timestamp()/1e3},y.strip_empty_properties(r))},people_properties:function(){return y.extend(y.strip_empty_properties({$os:y.info.os(),$browser:y.info.browser(ut,Ft.vendor,xr)}),{$browser_version:y.info.browserVersion(ut,Ft.vendor,xr)})},mpPageViewProperties:function(){return y.strip_empty_properties({current_page_title:Se.title,current_domain:W.location.hostname,current_url_path:W.location.pathname,current_url_protocol:W.location.protocol,current_url_search:W.location.search})}};var ww=function(r,i){var o=null,e=[];return function(t){var n=this;return e.push(t),o||(o=new B(function(s){setTimeout(function(){var a=r.apply(n,[e]);o=null,e=[],s(a)},i)})),o}},Ms=function(r){var i=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return r?i.substring(0,r):i},bw=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Sw=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,tc=function(r){var i=Sw,o=r.split("."),e=o[o.length-1];(e.length>4||e==="com"||e==="org")&&(i=bw);var t=r.match(i);return t?t[0]:""},Cw=function(){var r=W.navigator.onLine;return y.isUndefined(r)||r},$s=function(){},rc=function(r,i){for(var o=!1,e=0;e<i.length;e++)if(r.match(i[e])){o=!0;break}return o},fi=null,li=null;typeof JSON!="undefined"&&(fi=JSON.stringify,li=JSON.parse),fi=fi||y.JSONEncode,li=li||y.JSONDecode;var Iw=function(r,i,o){if(!W.CompressionStream)return!1;var e=y.info.browser(r,i,o),t=y.info.browserVersion(r,i,o);return!((e==="Safari"||e==="Mobile Safari")&&t>=16.4&&t<16.6)};y.info=y.info,y.info.browser=y.info.browser,y.info.browserVersion=y.info.browserVersion,y.info.device=y.info.device,y.info.properties=y.info.properties,y.isBlockedUA=y.isBlockedUA,y.isEmptyObject=y.isEmptyObject,y.isObject=y.isObject,y.JSONDecode=y.JSONDecode,y.JSONEncode=y.JSONEncode,y.toArray=y.toArray,y.NPO=Xe;var Ow="mixpanelBrowserDb",nc="mixpanelRecordingEvents",ic="mixpanelRecordingRegistry",xw=1,Rw=[nc,ic],Pe=function(r){this.dbPromise=null,this.storeName=r};Pe.prototype._openDb=function(){return new B(function(r,i){var o=W.indexedDB.open(Ow,xw);o.onerror=function(){i(o.error)},o.onsuccess=function(){r(o.result)},o.onupgradeneeded=function(e){var t=e.target.result;Rw.forEach(function(n){t.createObjectStore(n)})}})},Pe.prototype.init=function(){return W.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(r){return r instanceof W.IDBDatabase?B.resolve():B.reject(r)})):B.reject("indexedDB is not supported in this browser")},Pe.prototype.isInitialized=function(){return!!this.dbPromise},Pe.prototype.makeTransaction=function(r,i){var o=this.storeName,e=function(t){return new B(function(n,s){var a=t.transaction(o,r);a.oncomplete=function(){n(a)},a.onabort=a.onerror=function(){s(a.error)},i(a.objectStore(o))})};return this.dbPromise.then(e).catch(function(t){return t&&t.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(e)):B.reject(t)}.bind(this))},Pe.prototype.setItem=function(r,i){return this.makeTransaction("readwrite",function(o){o.put(i,r)})},Pe.prototype.getItem=function(r){var i;return this.makeTransaction("readonly",function(o){i=o.get(r)}).then(function(){return i.result})},Pe.prototype.removeItem=function(r){return this.makeTransaction("readwrite",function(i){i.delete(r)})},Pe.prototype.getAll=function(){var r;return this.makeTransaction("readonly",function(i){r=i.getAll()}).then(function(){return r.result})};var Ew="__mp_opt_in_out_";function Aw(r,i){if(_w(i))return Re.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 o=Pw(r,i)==="0";return o&&Re.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),o}function Mw(r){return Tw(r,function(i){return this.get_config(i)})}function $w(r){return r=r||{},r.persistenceType==="localStorage"?y.localStorage:y.cookie}function kw(r,i){return i=i||{},(i.persistencePrefix||Ew)+r}function Pw(r,i){return $w(i).get(kw(r,i))}function _w(r){if(r&&r.ignoreDnt)return!1;var i=r&&r.window||W,o=i.navigator||{},e=!1;return y.each([o.doNotTrack,o.msDoNotTrack,i.doNotTrack],function(t){y.includes([!0,1,"1","yes"],t)&&(e=!0)}),e}function Tw(r,i){return function(){var o=!1;try{var e=i.call(this,"token"),t=i.call(this,"ignore_dnt"),n=i.call(this,"opt_out_tracking_persistence_type"),s=i.call(this,"opt_out_tracking_cookie_prefix"),a=i.call(this,"window");e&&(o=Aw(e,{ignoreDnt:t,persistenceType:n,persistencePrefix:s,window:a}))}catch(f){Re.error("Unexpected error when checking tracking opt-out status: "+f)}if(!o)return r.apply(this,arguments);var u=arguments[arguments.length-1];typeof u=="function"&&u(0)}}var Nw=ft("lock"),oc=function(r,i){i=i||{},this.storageKey=r,this.storage=i.storage||W.localStorage,this.pollIntervalMS=i.pollIntervalMS||100,this.timeoutMS=i.timeoutMS||2e3,this.promiseImpl=i.promiseImpl||B};oc.prototype.withLock=function(r,i){var o=this.promiseImpl;return new o(y.bind(function(e,t){var n=i||new Date().getTime()+"|"+Math.random(),s=new Date().getTime(),a=this.storageKey,u=this.pollIntervalMS,f=this.timeoutMS,l=this.storage,c=a+":X",h=a+":Y",v=a+":Z",d=function(b){if(new Date().getTime()-s>f){Nw.error("Timeout waiting for mutex on "+a+"; clearing lock. ["+n+"]"),l.removeItem(v),l.removeItem(h),g();return}setTimeout(function(){try{b()}catch(S){t(S)}},u*(Math.random()+.1))},m=function(b,S){b()?S():d(function(){m(b,S)})},p=function(){var b=l.getItem(h);return b&&b!==n?!1:(l.setItem(h,n),l.getItem(h)===n?!0:(Rr(l,!0)||t(new Error("localStorage support dropped while acquiring lock")),!1))},g=function(){l.setItem(c,n),m(p,function(){if(l.getItem(c)===n){w();return}d(function(){if(l.getItem(h)!==n){g();return}m(function(){return!l.getItem(v)},w)})})},w=function(){l.setItem(v,"1");var b=function(){l.removeItem(v),l.getItem(h)===n&&l.removeItem(h),l.getItem(c)===n&&l.removeItem(c)};r().then(function(S){b(),e(S)}).catch(function(S){b(),t(S)})};try{if(Rr(l,!0))g();else throw new Error("localStorage support check failed")}catch(b){t(b)}},this))};var Bt=function(r){this.storage=r||W.localStorage};Bt.prototype.init=function(){return B.resolve()},Bt.prototype.isInitialized=function(){return!0},Bt.prototype.setItem=function(r,i){return new B(y.bind(function(o,e){try{this.storage.setItem(r,fi(i))}catch(t){e(t)}o()},this))},Bt.prototype.getItem=function(r){return new B(y.bind(function(i,o){var e;try{e=li(this.storage.getItem(r))}catch(t){o(t)}i(e)},this))},Bt.prototype.removeItem=function(r){return new B(y.bind(function(i,o){try{this.storage.removeItem(r)}catch(e){o(e)}i()},this))};var sc=ft("batch"),_e=function(r,i){i=i||{},this.storageKey=r,this.usePersistence=i.usePersistence,this.usePersistence&&(this.queueStorage=i.queueStorage||new Bt,this.lock=new oc(r,{storage:i.sharedLockStorage||W.localStorage,timeoutMS:i.sharedLockTimeoutMS})),this.reportError=i.errorReporter||y.bind(sc.error,sc),this.pid=i.pid||null,this.memQueue=[],this.initialized=!1,i.enqueueThrottleMs?this.enqueuePersisted=ww(y.bind(this._enqueuePersisted,this),i.enqueueThrottleMs):this.enqueuePersisted=y.bind(function(o){return this._enqueuePersisted([o])},this)};_e.prototype.ensureInit=function(){return this.initialized||!this.usePersistence?B.resolve():this.queueStorage.init().then(y.bind(function(){this.initialized=!0},this)).catch(y.bind(function(r){this.reportError("Error initializing queue persistence. Disabling persistence",r),this.initialized=!0,this.usePersistence=!1},this))},_e.prototype.enqueue=function(r,i){var o={id:Ms(),flushAfter:new Date().getTime()+i*2,payload:r};return this.usePersistence?this.enqueuePersisted(o):(this.memQueue.push(o),B.resolve(!0))},_e.prototype._enqueuePersisted=function(r){var i=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return this.saveToStorage(o.concat(r))},this)).then(y.bind(function(o){return o&&(this.memQueue=this.memQueue.concat(r)),o},this)).catch(y.bind(function(o){return this.reportError("Error enqueueing items",o,r),!1},this))},this);return this.lock.withLock(i,this.pid).catch(y.bind(function(o){return this.reportError("Error acquiring storage lock",o),!1},this))},_e.prototype.fillBatch=function(r){var i=this.memQueue.slice(0,r);return this.usePersistence&&i.length<r?this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){if(o.length){var e={};y.each(i,function(s){e[s.id]=!0});for(var t=0;t<o.length;t++){var n=o[t];if(new Date().getTime()>n.flushAfter&&!e[n.id]&&(n.orphaned=!0,i.push(n),i.length>=r))break}}return i},this)):B.resolve(i)};var ac=function(r,i){var o=[];return y.each(r,function(e){e.id&&!i[e.id]&&o.push(e)}),o};_e.prototype.removeItemsByID=function(r){var i={};if(y.each(r,function(e){i[e]=!0}),this.memQueue=ac(this.memQueue,i),this.usePersistence){var o=y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){return e=ac(e,i),this.saveToStorage(e)},this)).then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.id&&i[n.id])throw new Error("Item not removed from storage")}return!0},this)).catch(y.bind(function(e){return this.reportError("Error removing items",e,r),!1},this))},this);return this.lock.withLock(o,this.pid).catch(y.bind(function(e){return this.reportError("Error acquiring storage lock",e),Rr(this.lock.storage,!0)?!1:o().then(y.bind(function(t){return t||this.queueStorage.removeItem(this.storageKey).then(function(){return t})},this)).catch(y.bind(function(t){return this.reportError("Error clearing queue",t),!1},this))},this))}else return B.resolve(!0)};var uc=function(r,i){var o=[];return y.each(r,function(e){var t=e.id;if(t in i){var n=i[t];n!==null&&(e.payload=n,o.push(e))}else o.push(e)}),o};_e.prototype.updatePayloads=function(r){return this.memQueue=uc(this.memQueue,r),this.usePersistence?this.lock.withLock(y.bind(function(){return this.ensureInit().then(y.bind(function(){return this.readFromStorage()},this)).then(y.bind(function(o){return o=uc(o,r),this.saveToStorage(o)},this)).catch(y.bind(function(o){return this.reportError("Error updating items",r,o),!1},this))},this),this.pid).catch(y.bind(function(i){return this.reportError("Error acquiring storage lock",i),!1},this)):B.resolve(!0)},_e.prototype.readFromStorage=function(){return this.ensureInit().then(y.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(y.bind(function(r){return r&&(y.isArray(r)||(this.reportError("Invalid storage entry:",r),r=null)),r||[]},this)).catch(y.bind(function(r){return this.reportError("Error retrieving queue",r),[]},this))},_e.prototype.saveToStorage=function(r){return this.ensureInit().then(y.bind(function(){return this.queueStorage.setItem(this.storageKey,r)},this)).then(function(){return!0}).catch(y.bind(function(i){return this.reportError("Error saving queue",i),!1},this))},_e.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(y.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):B.resolve()};var Lw=600*1e3,Er=ft("batch"),Ee=function(r,i){this.errorReporter=i.errorReporter,this.queue=new _e(r,{errorReporter:y.bind(this.reportError,this),queueStorage:i.queueStorage,sharedLockStorage:i.sharedLockStorage,sharedLockTimeoutMS:i.sharedLockTimeoutMS,usePersistence:i.usePersistence,enqueueThrottleMs:i.enqueueThrottleMs}),this.libConfig=i.libConfig,this.sendRequest=i.sendRequestFunc,this.beforeSendHook=i.beforeSendHook,this.stopAllBatching=i.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=i.flushOnlyOnInterval||!1,this._flushPromise=null};Ee.prototype.enqueue=function(r){return this.queue.enqueue(r,this.flushInterval)},Ee.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},Ee.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},Ee.prototype.clear=function(){return this.queue.clear()},Ee.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},Ee.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},Ee.prototype.scheduleFlush=function(r){this.flushInterval=r,this.stopped||(this.timeoutID=setTimeout(y.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))},Ee.prototype.sendRequestPromise=function(r,i){return new B(y.bind(function(o){this.sendRequest(r,i,o)},this))},Ee.prototype.flush=function(r){if(this.requestInProgress)return Er.log("Flush: Request already in progress"),B.resolve();this.requestInProgress=!0,r=r||{};var i=this.libConfig.batch_request_timeout_ms,o=new Date().getTime(),e=this.batchSize;return this.queue.fillBatch(e).then(y.bind(function(t){var n=t.length===e,s=[],a={};if(y.each(t,function(c){var h=c.payload;if(this.beforeSendHook&&!c.orphaned&&(h=this.beforeSendHook(h)),h){h.event&&h.properties&&(h.properties=y.extend({},h.properties,{mp_sent_by_lib_version:gi.LIB_VERSION}));var v=!0,d=c.id;d?(this.itemIdsSentSuccessfully[d]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:c,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[d]}),v=!1):this.reportError("[dupe] found item with no ID",{item:c}),v&&s.push(h)}a[c.id]=h},this),s.length<1)return this.requestInProgress=!1,this.resetFlush(),B.resolve();var u=y.bind(function(){return this.queue.removeItemsByID(y.map(t,function(c){return c.id})).then(y.bind(function(c){return y.each(t,y.bind(function(h){var v=h.id;v?(this.itemIdsSentSuccessfully[v]=this.itemIdsSentSuccessfully[v]||0,this.itemIdsSentSuccessfully[v]++,this.itemIdsSentSuccessfully[v]>5&&this.reportError("[dupe] item ID sent too many times",{item:h,batchSize:t.length,timesSent:this.itemIdsSentSuccessfully[v]})):this.reportError("[dupe] found item with no ID while removing",{item:h})},this)),c?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!n?(this.resetFlush(),B.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),B.resolve())},this))},this),f=y.bind(function(c){this.requestInProgress=!1;try{if(r.unloading)return this.queue.updatePayloads(a);if(y.isObject(c)&&c.error==="timeout"&&new Date().getTime()-o>=i)return this.reportError("Network timeout; retrying"),this.flush();if(y.isObject(c)&&(c.httpStatusCode>=500||c.httpStatusCode===429||c.httpStatusCode<=0&&!Cw()||c.error==="timeout")){var h=this.flushInterval*2;return c.retryAfter&&(h=parseInt(c.retryAfter,10)*1e3||h),h=Math.min(Lw,h),this.reportError("Error; retry in "+h+" ms"),this.scheduleFlush(h),B.resolve()}else if(y.isObject(c)&&c.httpStatusCode===413)if(t.length>1){var v=Math.max(1,Math.floor(e/2));return this.batchSize=Math.min(this.batchSize,v,t.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),B.resolve()}else return this.reportError("Single-event request too large; dropping",t),this.resetBatchSize(),u();else return u()}catch(d){this.reportError("Error handling API response",d),this.resetFlush()}},this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:i};return r.unloading&&(l.transport="sendBeacon"),Er.log("MIXPANEL REQUEST:",s),this.sendRequestPromise(s,l).then(f)},this)).catch(y.bind(function(t){this.reportError("Error flushing request queue",t),this.resetFlush()},this))},Ee.prototype.reportError=function(r,i){if(Er.error.apply(Er.error,arguments),this.errorReporter)try{i instanceof Error||(i=new Error(r)),this.errorReporter(r,i)}catch(o){Er.error(o)}};var fc=function(r){var i=Date.now();return!r||i>r.maxExpires||i>r.idleExpires},Dw=250;ft("autocapture");function Fw(r){var i=(r.name||r.id||"").toString().toLowerCase();if(typeof i=="string"){var o=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(o.test(i.replace(/[^a-zA-Z0-9]/g,"")))return!0}return!1}var lc=".mp-mask, .fs-mask, .amp-mask, .rr-mask, .ph-mask",Bw="data-rr-is-password",Uw=["password","email","tel","hidden"];function ci(r){return r?Array.isArray(r)?r:[r]:[]}function zw(r){var i={input:{maskingSelector:"",unmaskingSelector:"",maskAll:!0},text:{maskingSelector:"",unmaskingSelector:"",maskAll:!0}},o=r.get_config("record_mask_input_selector"),e=r.get_config("record_unmask_input_selector"),t=r.get_config("record_mask_all_inputs");i.input.maskingSelector=ci(o).join(","),i.input.unmaskingSelector=ci(e).join(","),t!==void 0&&(i.input.maskAll=t);var n=r.get_config("record_mask_text_selector"),s=r.get_config("record_unmask_text_selector"),a=r.get_config("record_mask_all_text"),u=r.get_config("record_mask_text_class"),f=ci(n);if(u)if(u instanceof RegExp)i.text._legacyClassRegex=u;else{var l="."+u;f.indexOf(l)===-1&&f.push(l)}return i.text.maskingSelector=f.join(","),i.text.unmaskingSelector=ci(s).join(","),a===void 0&&n!==void 0?i.text.maskAll=!1:a!==void 0&&(i.text.maskAll=a),i}function Ut(r,i){return i?!!r.closest(i):!1}function Ww(r,i){var o=(r.getAttribute("type")||"").toLowerCase();if(Uw.indexOf(o)!==-1)return!0;var e=(r.getAttribute("autocomplete")||"").toLowerCase();return e&&e!==""&&e!=="off"||r.hasAttribute(Bw)||Fw(r)?!0:i.input.maskAll?!Ut(r,i.input.unmaskingSelector):!!(Ut(r,i.input.maskingSelector)||Ut(r,lc))}function jw(r,i){return r?i.text._legacyClassRegex&&Wo(r,i.text._legacyClassRegex)?!0:i.text.maskAll?!Ut(r,i.text.unmaskingSelector):!!(Ut(r,i.text.maskingSelector)||Ut(r,lc)):!1}var lt=ft("network-plugin");function hi(r){return Math.round(Date.now()-r.performance.now())}var ks={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 Gw(r){return r.entryType==="navigation"}function Ps(r){return r.entryType==="resource"}function qw(r,i){for(var o=r.length,e=o-1;e>=0;e-=1)if(i(r[e]))return r[e]}function cc(r,i,o){if(!(i in r)||typeof r[i]!="function")return function(){};var e=r[i],t=o(e);return r[i]=t,function(){r[i]=e}}var _s=1024*1024;function hc(r){return!r||typeof r!="string"?r:r.length>_s?(lt.error("Body truncated from "+r.length+" to "+_s+" characters"),r.substring(0,_s)+"... [truncated]"):r}function Vw(r,i,o){if(!i.PerformanceObserver)return lt.error("PerformanceObserver not supported"),function(){};if(o.recordInitialRequests){var e=i.performance.getEntries().filter(function(n){return Gw(n)||Ps(n)&&o.initiatorTypes.includes(n.initiatorType)});r({requests:e.map(function(n){return{url:n.name,initiatorType:n.initiatorType,status:"responseStatus"in n?n.responseStatus:void 0,startTime:Math.round(n.startTime),endTime:Math.round(n.responseEnd),timeOrigin:hi(i)}}),isInitial:!0})}var t=new i.PerformanceObserver(function(n){var s=n.getEntries().filter(function(a){return Ps(a)&&o.initiatorTypes.includes(a.initiatorType)&&a.initiatorType!=="xmlhttprequest"&&a.initiatorType!=="fetch"});r({requests:s.map(function(a){return{url:a.name,initiatorType:a.initiatorType,status:"responseStatus"in a?a.responseStatus:void 0,startTime:Math.round(a.startTime),endTime:Math.round(a.responseEnd),timeOrigin:hi(i)}})})});return t.observe({entryTypes:["navigation","resource"]}),function(){t.disconnect()}}function pi(r,i,o){return!i[r]||i[r].length===0?!1:i[r].includes(o.toLowerCase())}function di(r,i,o){return!i[r]||i[r].length===0?!1:rc(o,i[r])}function pc(r){if(r==null)return null;var i;if(typeof r=="string")i=r;else if(r instanceof Document)i=r.textContent;else if(r instanceof FormData)i=y.HTTPBuildQuery(r);else if(y.isObject(r))try{i=JSON.stringify(r)}catch(o){return"Failed to stringify response object"}else return"Cannot read body of type "+typeof r;return hc(i)}function dc(r){return new Promise(function(i){var o=setTimeout(function(){i("Timeout while trying to read body")},500);try{r.clone().text().then(function(e){clearTimeout(o),i(hc(e))},function(e){clearTimeout(o),i("Failed to read body: "+String(e))})}catch(e){clearTimeout(o),i("Failed to read body: "+String(e))}})}function Ts(r,i,o,e,t,n){if(n===void 0&&(n=0),n>10)return lt.error("Cannot find performance entry"),Promise.resolve(null);var s=r.performance.getEntriesByName(o),a=qw(s,function(u){return Ps(u)&&u.initiatorType===i&&(!e||u.startTime>=e)&&(!t||u.startTime<=t)});return a?Promise.resolve(a):new Promise(function(u){setTimeout(u,50*n)}).then(function(){return Ts(r,i,o,e,t,n+1)})}function Hw(r,i,o){if(!o.initiatorTypes.includes("xmlhttprequest"))return function(){};var e=cc(i.XMLHttpRequest.prototype,"open",function(t){return function(n,s,a,u,f){a===void 0&&(a=!0);var l=this,c=new Request(s,{method:n}),h={},v,d,m={},p=l.setRequestHeader.bind(l);l.setRequestHeader=function(w,b){return pi("request",o.recordHeaders,w)&&(m[w]=b),p(w,b)},h.requestHeaders=m;var g=l.send.bind(l);l.send=function(w){return di("request",o.recordBodyUrls,c.url)&&(h.requestBody=pc(w)),v=i.performance.now(),g(w)},l.addEventListener("readystatechange",function(){if(l.readyState===l.DONE){d=i.performance.now();var w={},b=l.getAllResponseHeaders();if(b){var S=b.trim().split(/[\r\n]+/);S.forEach(function(C){if(C){var x=C.indexOf(": ");if(x!==-1){var E=C.substring(0,x),R=C.substring(x+2);E&&pi("response",o.recordHeaders,E)&&(w[E]=R)}}})}h.responseHeaders=w,di("response",o.recordBodyUrls,c.url)&&(h.responseBody=pc(l.response)),Ts(i,"xmlhttprequest",c.url,v,d).then(function(C){if(!C){lt.error("Failed to get performance entry for XHR request to "+c.url);return}var x={url:C.name,method:c.method,initiatorType:C.initiatorType,status:l.status,startTime:Math.round(C.startTime),endTime:Math.round(C.responseEnd),timeOrigin:hi(i),requestHeaders:h.requestHeaders,requestBody:h.requestBody,responseHeaders:h.responseHeaders,responseBody:h.responseBody};r({requests:[x]})}).catch(function(C){lt.error("Error recording XHR request to "+c.url+": "+String(C))})}}),t.call(l,n,s,a,u,f)}});return function(){e()}}function Yw(r,i,o){if(!o.initiatorTypes.includes("fetch"))return function(){};var e=cc(i,"fetch",function(t){return function(){var n=new Request(arguments[0],arguments[1]),s,a={},u,f,l,c=Promise.resolve(void 0),h=Promise.resolve(void 0);try{var v={};n.headers.forEach(function(d,m){pi("request",o.recordHeaders,m)&&(v[m]=d)}),a.requestHeaders=v,di("request",o.recordBodyUrls,n.url)&&(c=dc(n).then(function(d){a.requestBody=d})),u=i.performance.now(),l=t.apply(i,arguments).then(function(d){s=d,f=i.performance.now();var m={};return s.headers.forEach(function(p,g){pi("response",o.recordHeaders,g)&&(m[g]=p)}),a.responseHeaders=m,di("response",o.recordBodyUrls,n.url)&&(h=dc(s).then(function(p){a.responseBody=p})),s})}catch(d){l=Promise.reject(d)}return Promise.all([c,h,l]).then(function(){return Ts(i,"fetch",n.url,u,f)}).then(function(d){if(!d){lt.error("Failed to get performance entry for fetch request to "+n.url);return}var m={url:d.name,method:n.method,initiatorType:d.initiatorType,status:s?s.status:void 0,startTime:Math.round(d.startTime),endTime:Math.round(d.responseEnd),timeOrigin:hi(i),requestHeaders:a.requestHeaders,requestBody:a.requestBody,responseHeaders:a.responseHeaders,responseBody:a.responseBody};r({requests:[m]})}).catch(function(d){lt.error("Error recording fetch request to "+n.url+": "+String(d))}),l}});return function(){e()}}function Jw(r,i,o){if(!("performance"in i))return function(){};var e=Object.assign({},ks.recordHeaders,o.recordHeaders||{}),t=Object.assign({},ks.recordBodyUrls,o.recordBodyUrls||{});o=Object.assign({},o,{recordHeaders:e,recordBodyUrls:t});var n=Object.assign({},ks,o),s=function(l){var c=l.requests.filter(function(h){var v=rc(h.url,n.ignoreRequestUrls||[]);return!v&&!n.ignoreRequestFn(h)});(c.length>0||l.isInitial)&&r(Object.assign({},l,{requests:c}))},a=Vw(s,i,n),u=Hw(s,i,n),f=Yw(s,i,n);return function(){a(),u(),f()}}var Zw="rrweb/network@1.mp",Kw=function(r){return{name:Zw,observer:Jw,options:r}},zt=ft("recorder"),Xw=W.CompressionStream,Qw={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},eb=new Set([_.MouseMove,_.MouseInteraction,_.Scroll,_.ViewportResize,_.Input,_.TouchMove,_.MediaInteraction,_.Drag,_.Selection]);function tb(r){return r.type===F.IncrementalSnapshot&&eb.has(r.data.source)}var ce=function(r){this._mixpanel=r.mixpanelInstance,this._onIdleTimeout=r.onIdleTimeout||$s,this._onMaxLengthReached=r.onMaxLengthReached||$s,this._onBatchSent=r.onBatchSent||$s,this._rrwebRecord=r.rrwebRecord||null,this._stopRecording=null,this.replayId=r.replayId,this.batchStartUrl=r.batchStartUrl||null,this.replayStartUrl=r.replayStartUrl||null,this.idleExpires=r.idleExpires||null,this.maxExpires=r.maxExpires||null,this.replayStartTime=r.replayStartTime||null,this.lastEventTimestamp=r.lastEventTimestamp||null,this.seqNo=r.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=si,this.recordMinMs=0;var i=Rr(r.sharedLockStorage,!0)&&!this.getConfig("disable_persistence");this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Pe(nc),this.batcher=new Ee(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:Qw,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:r.sharedLockStorage,usePersistence:i,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:Dw,sharedLockTimeoutMS:10*1e3})};ce.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var r={distinct_id:String(this._mixpanel.get_distinct_id())},i=this._mixpanel.get_property("$device_id");i&&(r.$device_id=i);var o=this._mixpanel.get_property("$user_id");return o&&(r.$user_id=o),r},ce.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.queueStorage.init().catch(function(){this.reportError("Error initializing IndexedDB storage for unloading persisted data.")}.bind(this)).then(function(){return this.getDurationMs()<this._getRecordMinMs()?this.queueStorage.removeItem(this.batcherKey):this.batcher.flush().then(function(){return this.queueStorage.removeItem(this.batcherKey)}.bind(this))}.bind(this))},ce.prototype.getConfig=function(r){return this._mixpanel.get_config(r)},ce.prototype.get_config=function(r){return this.getConfig(r)},ce.prototype.startRecording=function(r){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){zt.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>si&&(this.recordMaxMs=si,zt.critical("record_max_ms cannot be greater than "+si+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this._getRecordMinMs(),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=y.info.currentUrl(),this.replayStartUrl=y.info.currentUrl()),r||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var i=function(){clearTimeout(this.idleTimeoutId);var u=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,u),this.idleExpires=new Date().getTime()+u}.bind(this);i();var o=this.getConfig("record_block_selector");(o===""||o===null)&&(o=void 0);var e=zw(this._mixpanel),t=[];if(this.getConfig("record_network")){var n=this.getConfig("record_network_options")||{},s=(n.ignoreRequestUrls||[]).slice();s.push(this._getApiRoute()),n.ignoreRequestUrls=s,t.push(Kw(n))}this.getConfig("record_console")&&t.push(fw({stringifyOptions:{stringLengthLimit:1e3,numOfKeysLimit:50,depthOfLimit:2}}));try{this._stopRecording=this._rrwebRecord({emit:function(u){if(this.idleExpires&&this.idleExpires<u.timestamp){this._onIdleTimeout();return}tb(u)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),i()),this.__enqueuePromise=this.batcher.enqueue(u),(this.lastEventTimestamp===null||u.timestamp>this.lastEventTimestamp)&&(this.lastEventTimestamp=u.timestamp)}.bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:o,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextSelector:"*",maskInputFn:this._getMaskFn(Ww,e),maskTextFn:this._getMaskFn(jw,e),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15},plugins:t})}catch(u){this.reportError("Unexpected error when starting rrweb recording.",u)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var a=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),a)},ce.prototype.stopRecording=function(r){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(o){this.reportError("Error with rrweb stopRecording",o)}this._stopRecording=null}var i;return this.batcher.stopped?i=this.batcher.clear():r||(i=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),i},ce.prototype.isRrwebStopped=function(){return this._stopRecording===null},ce.prototype.flushEventsWithOptOut=function(r,i,o){var e=function(t){t===0&&(this.stopRecording(),o({error:"Tracking has been opted out, stopping recording."}))}.bind(this);this._flushEvents(r,i,o,e)},ce.prototype.serialize=function(){var r;try{r=this._mixpanel.get_tab_id()}catch(i){this.reportError("Error getting tab ID for serialization ",i),r=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:r}},ce.deserialize=function(r,i){var o=new ce(y.extend({},i,{replayId:r.replayId,batchStartUrl:r.batchStartUrl,replayStartUrl:r.replayStartUrl,idleExpires:r.idleExpires,maxExpires:r.maxExpires,replayStartTime:r.replayStartTime,lastEventTimestamp:r.lastEventTimestamp,seqNo:r.seqNo,sharedLockStorage:i.sharedLockStorage}));return o},ce.prototype._getApiRoute=function(){return this.getConfig("api_routes").record},ce.prototype._sendRequest=function(r,i,o,e){var t=function(s,a){s.status===200&&this.replayId===r&&(this.seqNo++,this.batchStartUrl=y.info.currentUrl()),this._onBatchSent(),e({status:0,httpStatusCode:s.status,responseBody:a,retryAfter:s.headers.get("Retry-After")})}.bind(this),n=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");W.fetch(n+"/"+this._getApiRoute()+"?"+new URLSearchParams(i),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:o}).then(function(s){s.json().then(function(a){t(s,a)}).catch(function(a){e({error:a})})}).catch(function(s){e({error:s,httpStatusCode:0})})},ce.prototype._flushEvents=Mw(function(r,i,o){var e=r.length;if(e>0){for(var t=this.replayId,n=1/0,s=-1/0,a=!1,u=0;u<e;u++)n=Math.min(n,r[u].timestamp),s=Math.max(s,r[u].timestamp),r[u].type===F.FullSnapshot&&(a=!0);if(this.seqNo===0){if(!a){o({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=n}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=n);var f=s-this.replayStartTime,l={$current_url:this.batchStartUrl,$lib_version:gi.LIB_VERSION,batch_start_time:n/1e3,mp_lib:"web",replay_id:t,replay_length_ms:f,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},c=JSON.stringify(r);if(Object.assign(l,this.getUserIdInfo()),Iw(ut,Ft.vendor,xr)){var h=new Blob([c],{type:"application/json"}).stream(),v=h.pipeThrough(new Xw("gzip"));new Response(v).blob().then(function(d){l.format="gzip",this._sendRequest(t,l,d,o)}.bind(this))}else l.format="body",this._sendRequest(t,l,c,o)}}),ce.prototype.reportError=function(r,i){zt.error.apply(zt.error,arguments);try{!i&&!(r instanceof Error)&&(r=new Error(r)),this.getConfig("error_reporter")(r,i)}catch(o){zt.error(o)}},ce.prototype.getDurationMs=function(){return this.replayStartTime===null?0:this.lastEventTimestamp===null?new Date().getTime()-this.replayStartTime:this.lastEventTimestamp-this.replayStartTime},ce.prototype._getRecordMinMs=function(){var r=this.getConfig("record_min_ms");return r>Is?(zt.critical("record_min_ms cannot be greater than "+Is+"ms. Capping value."),Is):r},ce.prototype._getMaskFn=function(r,i){return function(o,e){if(!o.trim().length)return"";var t=!0;try{t=r(e,i)}catch(s){this.reportError("Error checking if text should be masked, defaulting to masked",s)}if(t){var n=Math.min(o.length,1e4);return"*".repeat(n)}else return o}.bind(this)};var Ue=function(r){this.idb=new Pe(ic),this.errorReporter=r.errorReporter,this.mixpanelInstance=r.mixpanelInstance,this.sharedLockStorage=r.sharedLockStorage};Ue.prototype.isPersistenceEnabled=function(){return!this.mixpanelInstance.get_config("disable_persistence")},Ue.prototype.handleError=function(r){this.errorReporter("IndexedDB error: ",r)},Ue.prototype.setActiveRecording=function(r){if(!this.isPersistenceEnabled())return B.resolve();var i=r.tabId;return i?this.idb.init().then(function(){return this.idb.setItem(i,r)}.bind(this)).catch(this.handleError.bind(this)):(console.warn("No tab ID is set, cannot persist recording metadata."),B.resolve())},Ue.prototype.getActiveRecording=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}.bind(this)).then(function(r){return fc(r)?null:r}.bind(this)).catch(this.handleError.bind(this)):B.resolve(null)},Ue.prototype.clearActiveRecording=function(){return this.isPersistenceEnabled()?this.markActiveRecordingExpired():this.deleteActiveRecording()},Ue.prototype.markActiveRecordingExpired=function(){return this.getActiveRecording().then(function(r){if(r)return r.maxExpires=0,this.setActiveRecording(r)}.bind(this)).catch(this.handleError.bind(this))},Ue.prototype.deleteActiveRecording=function(){return this.idb.isInitialized()?this.idb.removeItem(this.mixpanelInstance.get_tab_id()).catch(this.handleError.bind(this)):B.resolve()},Ue.prototype.flushInactiveRecordings=function(){return this.isPersistenceEnabled()?this.idb.init().then(function(){return this.idb.getAll()}.bind(this)).then(function(r){var i=r.filter(function(o){return fc(o)}).map(function(o){var e=ce.deserialize(o,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return e.unloadPersistedData().then(function(){return this.idb.removeItem(o.tabId)}.bind(this)).catch(this.handleError.bind(this))}.bind(this));return B.all(i)}.bind(this)).catch(this.handleError.bind(this)):B.resolve([])};var Ar=ft("recorder"),Te=function(r,i,o){this.mixpanelInstance=r,this.rrwebRecord=i||Ye,this.sharedLockStorage=o,this.recordingRegistry=new Ue({mixpanelInstance:this.mixpanelInstance,errorReporter:Ar.error,sharedLockStorage:o}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Te.prototype.startRecording=function(r){if(r=r||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Ar.log("Recording already in progress, skipping startRecording.");return}var i=function(){Ar.log("Idle timeout reached, restarting recording."),this.resetRecording()}.bind(this),o=function(){Ar.log("Max recording length reached, stopping recording."),this.resetRecording()}.bind(this),e=function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}.bind(this),t={mixpanelInstance:this.mixpanelInstance,onBatchSent:e,onIdleTimeout:i,onMaxLengthReached:o,replayId:y.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return r.activeSerializedRecording?this.activeRecording=ce.deserialize(r.activeSerializedRecording,t):this.activeRecording=new ce(t),this.activeRecording.startRecording(r.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())},Te.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))},Te.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)},Te.prototype._stopCurrentRecording=function(r,i){if(this.activeRecording){var o=this.activeRecording.stopRecording(r);return i&&(this.activeRecording=null),o}return B.resolve()},Te.prototype.resumeRecording=function(r){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),B.resolve(null)):this.recordingRegistry.getActiveRecording().then(function(i){return i&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:i}):r?this.startRecording({shouldStopBatcher:!1}):(Ar.log("No resumable recording found."),null)}.bind(this))},Te.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})},Te.prototype.isRecording=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()},Te.prototype.getActiveReplayId=function(){return this.isRecording()?this.activeRecording.replayId:null},Object.defineProperty(Te.prototype,"replayId",{get:function(){return this.getActiveReplayId()}}),W[bc]=Te})();
2
- //# sourceMappingURL=mixpanel-recorder-hFoTniVR.min.js.map